On Wed, 15 Mar 2006, Taco Hoekwater wrote:
> > > 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. The syntax is quite similar to MP. I will see if I can make the corresponding changes for things to work. > 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. Is this documented somewhere? Even the source files (verb-*.tex) did not have too many hints on what is going on. Should I also look into some other files? Thanks, Aditya _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context