MyBB.de Forum
MyBB Syntax Highlighter v1.1 - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Veröffentlichungen und -Support (https://www.mybb.de/forum/forum-82.html)
+--- Thema: MyBB Syntax Highlighter v1.1 (/thread-25255.html)



MyBB Syntax Highlighter v1.1 - MyBB.de Bot - 26.03.2012

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]



RE: MyBB Syntax Highlighter v1.1 - sonic1978 - 11.04.2012

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]


RE: MyBB Syntax Highlighter v1.1 - ternes3 - 14.06.2012

Bei mir kommt script nicht gefunden obwohl er da ist

//Edit Da steht dann Can´t find Brush for cpp oder php und co


RE: MyBB Syntax Highlighter v1.1 - MrBrechreiz - 14.06.2012

(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.