I’m a mathematics instructor at a large two year college in the San Francisco Bay Area. I use an online homework system called “WebWork” for some of my classes. Within this system, I can author my own mathematics problems for my classes. This authoring system is based or PERL but allows the incorporation of LaTeX for displaying mathematics. The code for a problem is placed in a *.pg file.
I want to create a pg-grammar based on the PERL grammar but anything within the pg-file enclosed within delimiters:
and] for inline display of mathematics, or
and] for displayed mathematics on its own line
would be handled by the LaTeX grammar.
I created the pg.cson file below in ~/.atom/packages/language-pg/grammars
' 'end': ']’
This does give PERL syntax highlighting to perl code in the .pg file but doesn’t do syntax highlighting for LaTeX code within delimiters [
Is there some way to modify this pg.cson file to get the desired behavior?
Thanks much for any help you can offer.