On 7-12-2010 6:57, Aditya Mahajan wrote:

Thanks for the explanation. But, I am not too keen to write parsers on
my own when I can easily borrow existing ones.

sure, but a simple one can be:

function myparser(str)
  .. call your prog do do something with str and return the result

But it does allow you to choose a "color scheme" for pretty printing.
This is similar to how most editors choose color schemes.

sure, but my experience is that there are easily 10-15 different categories and naming them right is somewhat tricky

On a related note, does it make sense to add foregroundcolor and
foregroupdstyle keys to \definebar? (Then, bars will be an appropriate
and versatile mechanism to define syntax highlighting regions).



                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
If your question is of interest to others as well, please add an entry to the 

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

Reply via email to