Skip to content
An XML Calabash 1.x extension step to perform syntax highlighting with Pygments
Java XProc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

XML Calabash Pygments extension step

Build Status

This repository contains an XML Calabash 1.x extension step that invokes the Pygments syntax highlighter. In order for this to work, the pygmentize program must be on your path.

This can’t quite be implemented with p:exec in XProc 1.0 because I only want to process the text nodes inside elements.


For standalone installation, get the most recent release from the project releases page. The release distributed there includes relevant dependencies. Unpack it somewhere on your system and add the included, top-level jar file to your class path.

If you're using Maven, you can also get it from there. Note, however, that the Maven distribution includes a POM file that identifies other dependencies that must also be downloaded. You'll need them too, which happens naturally if you're including the Maven dependency in some other Maven project. If you just grab the jar from Maven and don't get the other dependencies, you're likely to find that the step doesn't work because of some missing dependencies.

You can’t perform that action at this time.