/pygments-jana

A pygments plugin for the algorithm description language jana.

Primary LanguageHTMLMIT LicenseMIT

pygments-jana

This project aims to implement a pygments plugin to highlight the algorithm design language Jana. It is a forked version of the original Java lexer from the pygments project.

Example

Example of the highlighting engine

Installing

First, clone the repository using:

git clone git@github.com:maximaximal/pygments-jana.git
cd pygments-jana

After that, choose an installation method:

End-User Mode

Using this method, the software can be used directly.

sudo python setup.py develop

Developer Mode

This mode enables code changes directly in the repository, which propagate to the lexer called by pygmentize. It is therefore more suited for development.

sudo python setup.py develop

Usage in LaTeX

This highlighter can easily be used in LaTeX with the great minted-Package (Documentation, Tutorial). This is also the main use-case for this small project, which emerged from the wish to have nice syntax highlighting in student exercises.

After installation, the highlighter should directly be usable in minted. It is configured to work for the keywords Jana, jana, and on *.jana files.

Ressources for writing pygments plugins