Up: Component summary Component

SyntaxHighlight

Reads a program code listing, and creates a syntax highlighted HTML file.

List of lexers (value of language parameter). Additionally, there is an Anduril lexer in the component.

Version 1.1
Bundle tools
Categories Convert Reporting Latex
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Requires python ; python-pygments (DEB) ; python-imaging (DEB)
Source files component.xml syntaxhi.py
Usage Example with default values

Inputs

Name Type Mandatory Description
in TextFile Mandatory Any kind of program code.

Outputs

Name Type Description
HTML HTMLFile Code as HTML.
image ImageList Code as PNG.
latex Latex Code as LaTeX snippet.

Parameters

Name Type Default Description
PNGFont string "Andale Mono" Font for the PNG rendering. Preferably a monospace font.
PNGPad int 5 Pixels between lines for the PNG rendering.
PNGSize int 14 Font size for the PNG rendering.
language string "Anduril" Language of the code.
rowNumbers boolean true Print row numbers.
title string "Code listing" HTML page title, PNG image name.

Test cases

Test case Parameters IN
in
OUT
HTML
OUT
image
OUT
latex
case1_anduril (missing) in HTML (missing) latex
case2_gnuplot properties in HTML (missing) latex

language=gnuplot,
rowNumbers=false


Generated 2018-12-17 07:42:38 by Anduril 2.0.0