Differences between version 6 and previous revision of CyberLeo/Syntax.
Other diffs: Previous Major Revision, Previous Author
| Newer page: | version 6 | Last edited on Sunday, 19 April 2009 11:13:11 | by CyberLeo | Revert |
| Older page: | version 5 | Last edited on Sunday, 19 April 2009 11:09:54 | by CyberLeo | Revert |
@@ -8,9 +8,9 @@
</pre>
?>
-<pre class
="brush:
php;
">
+<code type
="php">
/**
* Add and enable syntax highlighting using http://alexgorbatchev.com/wiki/
*/
$this->addMoreHeaders(HTML::link(Array("rel" => "stylesheet", "type" => "text/css", "href" => "/sh/styles/shCore.css")));
@@ -39,5 +39,5 @@
."SyntaxHighlighter.all();\n"));
/**
* All done with the syntax highlighting.
*/
-</pre
>
+</code
>
version 6
Plugin RawHtml disabled. Raw HTML is only allowed in locked pages.
<?plugin RawHtml
<pre class="brush: c-sharp;">
function test() : String
{
return 10;
}
</pre>
?>
/**
* Add and enable syntax highlighting using http://alexgorbatchev.com/wiki/
*/
$this->addMoreHeaders(HTML::link(Array("rel" => "stylesheet", "type" => "text/css", "href" => "/sh/styles/shCore.css")));
$this->addMoreHeaders(HTML::link(Array("rel" => "stylesheet", "type" => "text/css", "href" => "/sh/styles/shThemeDefault.css")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shCore.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushBash.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushCpp.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushCSharp.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushCss.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushDelphi.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushDiff.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushGroovy.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushJava.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushJScript.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushPhp.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushPlain.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushPython.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushRuby.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushScala.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushSql.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushVb.js")));
$this->addMoreHeaders(JavaScript("", Array("src" => "/sh/scripts/shBrushXml.js")));
$this->addMoreHeaders(JavaScript("SyntaxHighlighter.config.clipboardSwf = '/sh/scripts/clipboard.swf';\n"
."SyntaxHighlighter.all();\n"));
/**
* All done with the syntax highlighting.
*/
