This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Syntax highlighting

Posted by: Anonymous [ip: 69.248.236.96] on October 10, 2007 05:31 PM
Nice article!

Another approach for syntax highlighting:
highlight --syntax=python --inline-css sample.py > sample.html

OOWriter can then easily import the colored html.

The downside is that you can't tweak the appearance in Writer since all the styling is "direct formatting" in the code block.

#

Return to Converting text files into ODF with odtwriter