Introduction

With Text_Highlighter it is possible to create syntax highlighted versions of different file formats.

Currently, the following formats are supported:

  • ABAP
  • C++
  • CSS
  • output of diff(1)
  • DTD
  • HTML
  • Java
  • Javascript
  • MySQL
  • Perl
  • PHP
  • Python
  • Ruby
  • sh
  • SQL
  • VBScript
  • XML

There are different options for getting the results of the highlighting, through the use of renderers. The list of renderers is as follows.

  • Array
  • Console
  • HTML - using span-tags containing a CSS class name, this is the default renderer
  • HTMLTags - using simple set of tags, only B, I and U, useful for devices that support only a subset of HTML (example is an iPod)
  • JSON
  • XML