Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

uranusjr/bbshighlighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBS Code Highlighter

Inspired by this post. This utility is a simple custom formatter that can be used with Pygments.

Howto

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/.

License

This project is published under the BSD 3-cluse license. See the content of file LICENSE.