An example, I have imported CSS and javascript that Alex so kindly shared on Amazon S3, use and donate, it is worth it. Then wrap the code in PRE tags with a style that define the language in use. Following code example actually uses Alexs syntax highlighting for Javascript:
/**
* SyntaxHighlighter
*/
function foo()
{
if (counter <= 10)
return;
// it works!
}
Nice! I use http://coderay.rubychan.de/ on my blog but I think I will switch to embedded gists instead. https://gist.github.com/
ReplyDelete