Aditya Mahajan wrote:
> Hi,
> 
>  I was trying to define a pretty printing environment for matlab files. 
> The basic requirements that I have are
>  
> The syntax is similar to both perl and MP. I had a look at the 
> verb-*.tex files and tried to write verb-matlab. My attempt is attached.

If you have to change any of the actual syntax rules (like for comments
etc.), then you have to be brave and create a fully new definition.

That may sound like a very daunting task, but it is not as hard as you
may think, just something to be done meticulously. The verb-xxxx
definitions are rather straightforward state engines that use character
codes as command tokens.

Cheers, Taco
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to