! Very stupid syntax highlighting patterns for metapost and NEdit ! ! Jean-Pierre Sutto (jpsn@free.fr) ! September 22, 2000 ! ! These patterns highlight the metapost strings for use with NEdit. ! The patterns are very stupids: just a list of the basic keywords ! used by metapost. But very easy to understand and update ! ! ! To load this file, start NEdit using the -import command line ! option (nedit -import ). Retain the patterns ! in your NEdit startup file with Preferences -> Save Default. nedit.highlightPatterns: \ metapost:1:0{\n\ Comment:"%.+":::RedItalic::\n\ Command:"beginfig|endfig|for|endfor|upto|downto|dotlabel|label|draw|\ path|intersectionpoint|sqrt|def|enddef|infinity|end|down|dashed|evenly|\ rotated|cycle|right|left|expr":::Blue::\n\ TeX:"btex":"etex"::Brown4::\n\ KeyTeX:"&":"&"::Blue:TeX:C\n\ Dot:"\\.urt|\\.bot|\\.rt|\\.lft|\\.lrt|\\.top|\\.llft|\\.ulft|\\llft"\ :::Blue::\n\ EndLine:"(;$)|(\\\\$)":::Blue::\n\ Text:"""":""""::Darkgreen::\n\ } nedit.languageModes: metapost:.mp:::::: nedit.styles: \ Blue:blue:Plain\n\ Brown4:brown4:Plain\n\ Darkgreen:darkgreen:Plain\n\ RedItalic:red:Italic