MyBB.de Forum

Normale Version: MyBB Syntax Highlighter v1.1
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: MyBB Syntax Highlighter v1.1

Zitat:Based on SyntaxHighlighter3.0.83
Official Page : http://alexgorbatchev.com/SyntaxHighlighter/

Installation :
1. Upload all files >> inc >> plugins
2. Configuration >> Plugins >> MyBB Syntax Highlighter >> Activate

Examples :
[shcode=php]PHP Codes Here[/shcode]
[shcode=python]Python Codes Here[/shcode]
.
.

Supported Languages :
ActionScript3 : as3
Bash/shell : bash
ColdFusion : cf
C# : c-sharp
C++ : cpp
CSS : css
Delphi : delphi
Diff : diff
Erlang : erlang
Groovy : groovy
JavaScript : jscript
Java : java
JavaFX : javafx
Perl : perl
PHP : php
Plain Text : plain
PowerShell : ps
Python : python
Ruby : rails
SQL : sql
Scala : scala
Visual Basic : vbnet
XML : xml

[!] For PowerShell, you must enter ps :

[shcode=ps]PowerShell Codes[/shcode]
Schöne Sache nur leider erfolgt keine ausgabe in dem format.

es wird einfach dargestellt so als ob man dieses plugin nicht nutzt.

so wird es ausgeben:

[shcode=php]if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

function mwsshcode_info() {
return array(
"name" => "MWS Syntax Highlighter",
"description" => "[shcode=python][/shcode] SyntaxHighlighter is an open source Java Script client side code syntax highlighter..",
"website" => "http://alexgorbatchev.com/SyntaxHighlighter/",
"author" => "MaRZoCHi",
"authorsite" => "http://www.marzochi.ws",
"version" => "1.1",
"compatibility" => "14*,16*",
"guid" => "8036c90522d8e7d1b30caa08b218c2e7"
);
}

$plugins->add_hook("parse_message", "mwsshcode_run");[/shcode]
Bei mir kommt script nicht gefunden obwohl er da ist

//Edit Da steht dann Can´t find Brush for cpp oder php und co
(11.04.2012, 10:23)sonic1978 schrieb: [ -> ]Schöne Sache nur leider erfolgt keine ausgabe in dem format.

es wird einfach dargestellt so als ob man dieses plugin nicht nutzt.

so wird es ausgeben:

[shcode=php]if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

function mwsshcode_info() {
return array(
"name" => "MWS Syntax Highlighter",
"description" => "[shcode=python][/shcode] SyntaxHighlighter is an open source Java Script client side code syntax highlighter..",
"website" => "http://alexgorbatchev.com/SyntaxHighlighter/",
"author" => "MaRZoCHi",
"authorsite" => "http://www.marzochi.ws",
"version" => "1.1",
"compatibility" => "14*,16*",
"guid" => "8036c90522d8e7d1b30caa08b218c2e7"
);
}

$plugins->add_hook("parse_message", "mwsshcode_run");[/shcode]

Hast Du dir ma deinen Code genauer betrachtet ? Eher NEIN, denn dann wäre dir der "[shcode=python][/shcode] " hier aufgefallen. Einen Code Tag nochmals in einem Code Tag mag das Plugin nicht. Korrigiere es und Du wirst sehn es geht.