Highlight: convert code to formatted text

I discussed Vim in the previous two blog posts. Vim can be used to convert source code such as BaCon or C or Bash (etc.) to various color-highlighted formats, including HTML:

The 'Highlight' application was suggested as an alternative that will do the same thing.

I have downloaded the latest version of Highlight and compiled it. The PET package has two binary executables, 'highlight' which is a cli converter, and 'highlight-gui' which is a GUI application that uses the Qt4 library.

Highlight (1.1MB):

...this creates an entry in the Document menu.

If you want to use the GUI application then you also need Qt4 (9.0MB):

Highlight project page:

Posted on 8 Mar 2011, 15:57


Posted on 9 Mar 2011, 11:27 by jamesbond
For info only: geany can do the same if the "Export" plugin is activated (it's part of the default geany package, if not explicitly disabled when compiling geany, I think). Just use menu Tools-Export-As HTML.


Posted on 9 Mar 2011, 15:14 by BarryK
Re Geany export
Ha ha ha, how about that, I never knew Geany could do that! I just tried it, it works, but of course we don't have a syntax highlighter for BaCon -- but I think that someone is/was working on one.

Posted on 10 Mar 2011, 19:23 by scsijon
Tea anyone?
Maybe consider Tea, and I quote the deb site:

TEA features are:

* Spell checker (using aspell and hunspell)
* Tabbed layout engine
* Support for multiple encodings
* Syntax highlighting
* Code snippets and templates support
* Wikipedia, Docbook, LaTeX, and Lout editing support
* Reading of OpenDocument Text, SWX (old OpenOffice.org format),
KWord, AbiWord, DOCX, Scribus, RTF, FB2
* Hotkeys customizations
* "Open at cursor"-function for HTML-files and images
* Miscalleneous HTML tools
* Preview in external browsers
* String-handling functions such as sorting, reverse, format killing,
trimming, filtering, conversions etc.
* Bookmarks
* Drag'n'drop support (with text files and pictures)
* Built-in image viewer (PNG, JPEG, GIF, WBMP, BMP, SVG)

I'm building it at the moment for another, so I shall also puppy it!