We wrote a small but quite complete syntactic marker in Pharo for Seaside. It takes a method, parses it, and outputs annotated html. You should specify only some rules in css to change the color of different AST nodes (selectors, strings, characters, numbers, keywords, variables).
WebDoc squeaksource. SourceFormatter, , , .