[NTG-context] code with reserved words

Erik Margraf erik.margraf at googlemail.com
Tue Mar 23 20:49:59 CET 2010


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 <rbastian at free.fr>

> On Tue, 23 Mar 2010 13:24:09 +0100
> luigi scarso <luigi.scarso at gmail.com> scribit:
>
> > On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian <rbastian at free.fr> 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 at 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 at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100323/5043f582/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.tex
Type: application/x-tex
Size: 1451 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100323/5043f582/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pret-py.lua
Type: text/x-lua
Size: 6505 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100323/5043f582/attachment-0001.bin>


More information about the ntg-context mailing list