Alex Gorbatchev’s SyntaxHighlighter has support for about as many languages as we are getting out of the box with DocBook XSL highlighting. Both the DocBook XSL and SyntaxHighlighter solutions let you define your own highlighting schemes.
Three features of SyntaxHighlighter beat DocBook XSL highlighting:
- CSS is independent, not embedded.
- Double-click selects the entire code sample.
- (Automatic) line numbers are not included when you select code.
Two features of DocBook XSL highlighting beat SyntaxHighlighter:
- Runs at build time, adding less to web pages.
- Preserves content inside verbatim elements.
At this point, I’m still debating whether to replace what we have now with SyntaxHighlighter. Trying it out on the OpenDJ docs.

