Hi all

In some Latex documentation for various things, I have seen source code
snippets inserted that show up nicely with syntax highlighting. Is there
any way I can do that with LyX?

So for example, let's say I write an algorithm using some python code. I
want to put the code into a report, and explain it. Where the code
appears in my report, I would like the keywords to appear bold, and the
variables to appear blue, etc, etc -- but I want LyX to sort that all
out automatically.

It seems that the 'highlight' tool will be of use, however I'm not sure
how one can use it:
http://www.andre-simon.de/index.html

This would be a bit like using the 'conversion filters' used for
graphics, but it would need to apply somehow to text. I'd be quite happy
with an ERT way of doing this -- anything really.

Cheers
JP

-- 
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney  NSW 2052  Australia
t +61 2 9385 5127
f +61 2 9663 1222
mailto:john.pye_AT_student_DOT_unsw.edu.au
http://pye.dyndns.org/

Reply via email to