This library allow syntax highlighting for your SQL syntax in HTML page. You can custom it to fit your needs. Add the syntax.css file in your header Point to the syntax.js file into your html file. To colorise an element represented an id, simply call the getElem() méthode like this:
var elemToColorise = new LibHighligthSyntax.getElem(the_elem_id);