If you own a technical website or blog you surely have wrote some posts that provide code examples and you surely want your code syntax highlighted. There are a lot of library and plugins out there that do the job good (e.g: Google Syntax Highlighter). Today we present an pretty cool alternative for code syntax highlighting called Rainbow.
Rainbow provides a cool API with 4 main public methods (.color, .addClass, .onHighlight, .extend) which are very well documented on the syntax highlighter website. There is also an example on how to use and integrate with your project and ways to match a pattern.