From a826c74edf478d72c55237a69ee10e2d9bd67661 Mon Sep 17 00:00:00 2001 From: Jean-Michel Sarlat Date: Sat, 6 Aug 2011 20:03:32 +0200 Subject: [PATCH] Chargement de metapost.php --- metapost.php | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 metapost.php diff --git a/metapost.php b/metapost.php new file mode 100644 index 0000000..51a9b41 --- /dev/null +++ b/metapost.php @@ -0,0 +1,165 @@ + 'MetaPost', + 'COMMENT_SINGLE' => array(1 => '%'), + 'COMMENT_MULTI' => array( + 'verbatim'=>'etex', # TeX and LaTeX preambule + 'btex' => 'etex' # TeX invocation + ), + 'COMMENT_REGEXP' => array( + ), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array('"',"'"), + 'ESCAPE_CHAR' => '', + 'KEYWORDS' => array( + 1 => array( # type + 'pair','numeric','string','path','color','suffix','text','expr','picture','transform','pen' + ), + 2 => array( # file construction + 'beginfig','begingroup','def','end','enddef','endfig','endgroup','hide','image','input','let','makepen','makepath','primary','primarydef','save','secondarydef','tertiarydef','vardef' + ), + 3 => array( # prgrammation structure + 'else','elseif','endfor','exitif','exitunless','fi','for','forever','forsuffix','if','step','until','upto' + ), + 4 => array( # operations + 'buildcycle','substring','subpath','arclength','unitvector','angle','length','bbox','ulcorner','urcorner','llcorner','lrcorner','center','reverse','xpart','ypart','xxpart','xypart','yxpart','yypart','rt','lft','top','bot' + ), + 5 => array( # numeric operations + 'floor','sind','cosd','sqrt','uniformdeviate','abs','mexp','mlog','not','known','unknown','scantokens','decimal','write' + ), + 6 => array( # constructors + 'to','whatever','of','cycle','mod','controls','and','doublepath','contour','also' + ), + 7 => array( # labels + 'label','label.bot','label.top','label.llft','label.lft','label.ulft','label.lrt','label.rt','label.urt','labels','labels.bot','labels.top','labels.llft','labels.lft','labels.ulft','labels.lrt','labels.rt','labels.urt','thelabel','thelabel.bot','thelabel.top','thelabel.llft','thelabel.lft','thelabel.ulft','thelabel.lrt','thelabel.rt','thelabel.urt','dotlabel','dotlabel.bot','dotlabel.top','dotlabel.llft','dotlabel.lft','dotlabel.ulft','dotlabel.lrt','dotlabel.rt','dotlabel.urt' + ), + 8 => array(# path transformations + 'scaled','xscaled','yscaled','zscaled','shifted','rotated','transformed','reflected','about','reflectedaround','rotatedaround','rotatedabout' + ), + 9 => array(# draw instructions + 'draw','drawarrow','drawdblarrow','fill','unfill','undraw','clip','addto' + ), + 10 => array(# style + 'dashed','withcolor','withpen','pickup','drawoptions','str','cutafter','cutbefore','direction','directiontime','intersectionpoint','intersectiontimes','arctime','dir','curl','tension','point','precontrol','postcontrol' + ), + 11 => array(# div + 'nullpicture','currentpicture','pencircle','pensquare','evenly','withdots','labeloffset','fullcircle','halfcircle','unitsquare','ahlength','black','white','red','green','blue','identity','up','down','right','origin','infont','defaultfont','extra_endfig','extra_beginfig','jobname','charcode','prologues' + ) + ), + 'SYMBOLS' => array( + '&',':=','=','+','-','*','**','/' + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => true, + 2 => true, + 3 => true, + 4 => true, + 5 => true, + 6 => true, + 7 => true, + 8 => true, + 9 => true, + 10 => true, + 11 => true + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #472;', # type + 2 => 'color: #35A;font-weight: bold;', # file construction + 3 => 'color: #A53;', # structure + 4 => 'color: #35A;', # operation + 5 => 'color: #35A;', # numeric operation + 6 => 'color: #35A;', # constructors + 7 => 'color: #35A;', # labels + 8 => 'color: #3B5;', # transformations + 9 => 'color: #35A;', # draw instructions + 10 => 'color: #472;', # style + 11 => 'color: #000;' # div + ), + 'COMMENTS' => array( + 1 => 'color: #777;', + 'MULTI' => 'color: #880;' + ), + 'ESCAPE_CHAR' => array( + 0 => '' + ), + 'BRACKETS' => array( + 0 => 'color: #820;' + ), + 'STRINGS' => array( + 0 => 'color: #880;' + ), + 'NUMBERS' => array( + 0 => 'color: #000;' + ), + 'METHODS' => array( + 1 => '', + 2 => '' + ), + 'SYMBOLS' => array( + 0 => 'color: #000;' + ), + 'REGEXPS' => array( + ), + 'SCRIPT' => array( + 0 => '' + ) + ), + 'URLS' => array( + 1 => '', + 2 => '', + 3 => '', + 4 => '', + 5 => '', + 6 => '', + 7 => '', + 8 => '', + 9 => '', + 10 => '', + 11 => '' + ), + 'OOLANG' => false, + 'OBJECT_SPLITTERS' => array( + ), + 'REGEXPS' => array( + ), + 'STRICT_MODE_APPLIES' => GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ) +); + +?> \ No newline at end of file -- 2.20.1