Inspired by this post. This utility is a simple custom formatter that can be used with Pygments.
To use the formatter, simply run the Pygments script like this:
pygmentize -f bbs -l <source language> <file to format>
Or you can write your own script an take advantage with Pygments's API. The formatter class is at bbshighlighter.formatters.BBSFormatter
A simple Django project is attached in directory haas
(stands for "Highlighter as a Service," of course) to serve the formatter as a web app. You can see it in action at http://bbshighlighter.uranusjr.com/.
This project is published under the BSD 3-cluse license. See the content of file LICENSE
.