Samstag, 23. Mai 2009

Test syntaxhighlighter

I followed the tutorial written by urenjoy to allow SyntaxHighlighter, a really rocking tool for programmers writing blogs. Use string-functions.com website to convert HTML strings.

The following is test result, NOScript users have to allow googlecode.com to see the effect.

// Allocate all the windows
for (int i = 0; i < max; i++)
{
wins[i] = new Window();
}



Thanks for the info provided by .NET dev, Firefox users has to do following steps in addition:
1. Open following url:
http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css
2. Copy it
3. paste with existing styles in Layout-> Edit HTML in blogger.
4. Remove following line:
<link href='http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/>