[toc]

Introduction

SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript. To get an idea of what SyntaxHighlighter is capable of, have a look at the demo page.

The project was started in 2004 and since then has gained a lot of acceptance. Version 2.0 is the new page in history of the project representing a near complete rewrite, clean up, optimization, standard compliance and new features.

News

欢迎使用 WordPress 。这是系统自动生成的演示文章。编辑或者删除它,开始您的博客!

[ruby]
def my_ruby_snippet
blog_post.should(be_highlighted)
end
[/ruby]

[php]
// error handler function
function definitive_stopper($errno, $errstr, $errfile, $errline)
{
echo sprintf("Fatal error: %s in %s on line %d\n", $errstr, $errfile, $errline);
exit($errno);

/* Don’t execute PHP internal error handler */
return true;
}
[/php]