Chargement de metapost.php
authorJean-Michel Sarlat <jm.sarlat@gmail.com>
Sat, 6 Aug 2011 18:03:32 +0000 (20:03 +0200)
committerJean-Michel Sarlat <jm.sarlat@gmail.com>
Sat, 6 Aug 2011 18:03:32 +0000 (20:03 +0200)
metapost.php [new file with mode: 0644]

diff --git a/metapost.php b/metapost.php
new file mode 100644 (file)
index 0000000..51a9b41
--- /dev/null
@@ -0,0 +1,165 @@
+<?php
+/*************************************************************************************
+ * metapost.php
+ * -----------
+ * Author: Maxime Chupin (notezik@gmail.com)
+ * Copyright: (c) 2011 Maxime Chupin
+ * Release Version: 1.0.8.10
+ * Date Started: 2011/08/02
+ *
+ * Metapost language file for GeSHi.
+ *
+ *
+ *************************************************************************************
+ *
+ *     This file is part of GeSHi.
+ *
+ *   GeSHi is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
+ *
+ *   GeSHi is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with GeSHi; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ ************************************************************************************/
+
+$language_data = array (
+    'LANG_NAME' => '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

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.