From Alex Gorbatchev

SyntaxHighlighter is open source and needs your donations. Please download and follow @syntaxhighlight on Twitter.


This feature requires version 2.0 or higher.


[edit] No-CSS fallback

When something goes wrong and CSS becomes unavailable, SyntaxHighlighter's output will remain legible. Here's what it would look like:

view sourcecopy to clipboardprint?
001.package free.cafekiwi.gotapi;
002.import groovy.xml.MarkupBuilder
003./**
004.* test
005.**/
006.class XmlGotApiGenerator {
007. 
008. 
009.    static void main(args) {
010.      def writer = new FileWriter( new File('gotapi.xml'))
011.      def xml = new MarkupBuilder(writer)
012.      def pages = []
013. 
014.      def apidocRoot = 'http://groovy.codehaus.org/api'
015.      def parser = new JavaDocParser();