How to use it

example

<!DOCTYPE html> <html> <head> <title>highlighter test page</title> <script src="code-highlighter.js"></script> </head> <body> <div id="exampleCodeBlock"> &lt;script&gt; function foo(){bar="foobar";} &lt;/script&gt; </div> <script>highlightCode('exampleCodeBlock','blueish green');</script> </body> <html>