|
Project Information
Members
Links
|
The aim of this project is to have simplify setting up the use of the Syntax Highlighter project to format all properly tagged code in a blog. Just add the following two lines to your template, preferably just before the </body> tag. <script src='http://easy-blog-code-syntax-highlighting.googlecode.com/svn/trunk/ebcsh.js' type='text/javascript'/> <link href='http://www.geocities.com/easyblogcodesyntax/ebcsh.css' rel='stylesheet' type='text/css'/> Then, just wrap any code in <pre> tags, make sure you add the name="code" attribute, and select the language you are formatting for in the class: <pre name="code" class="brush: c-sharp;">
function test() : String
{
return 10;
}
</pre>This release is built against SyntaxHighlighter 2.0.287. More information can be found here. |