Get syntax highlighting in the console.
Example output (using the 'monokai' theme):
Another example (using the 'solarized_dark' theme):
How it works
Does this already exist?
By leveraging highlight.js for the actual highlighting logic, this library gains quite a lot: support for 71 languages and 44 styles. Even better, whatever improvements are made to highlight.js in the future will automatically benefit the console-highlight library.