Based on the pretty printer in the wiki, I wrote my own.
If I understood you well, you want a b/w pretty printer
with reserved words bold. The pretty printer is capable
of doing both. An example is attached. Probably missing
is the functionality to control the typesetting of reserved
words in TeX. This is done in the lua code. I didn't mind
up to now. Any feedback is welcome.
Erik
2010/3/23 R. Bastian
On Tue, 23 Mar 2010 13:24:09 +0100 luigi scarso
scribit: On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian
wrote: Hello,
is there a way to get Python code with reserved words highlighted ? Not colored as in http://wiki.contextgarden.net/Verbatim_with_LuaTeX but {\bf ...}
I use context 2010.01.26 Mk IV or texexec well, I'm working to a pretty-printer for Python with low priority....
Attendo ;-)
-- luigi
If your question is of interest to others as well, please add an entry to
___________________________________________________________________________________ the Wiki!
maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________