<?plugin RawHtml <pre class="brush: c-sharp;"> function test() : String { return 10; } </pre> ?>
<pre class="brush: 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"))); $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"
/**
- All done with the syntax highlighting.
*/
</pre>