It was designed to be lightweight (1.2kb), easy to use, and extendable.
It is completely themable via CSS.
Include some markup for code you want to be highlighted:
<pre><code data-language="python">def openFile(path): file = open(path, "r") content = file.read() file.close() return content</code></pre>
Include a CSS theme file in the
<link href="/assets/css/theme.css" rel="stylesheet" type="text/css">
Include rainbow.js and whatever languages you want before the closing
<script src="/assets/js/rainbow.min.js"></script> <script src="/assets/js/language/generic.js"></script> <script src="/assets/js/language/python.js"></script>
You can check out the documentation and build custom packages at rainbowco.de.