A tumblelog CMS built on AJAX, PHP and MySQL.

dot.php 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /*************************************************************************************
  3. * dot.php
  4. * ---------------------------------
  5. * Author: Adrien Friggeri (adrien@friggeri.net)
  6. * Copyright: (c) 2007 Adrien Friggeri (http://www.friggeri.net)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2007/05/30
  9. *
  10. * dot language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2007/05/30 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO (updated 2007/05/30)
  18. * -------------------------
  19. * Everything
  20. *
  21. *************************************************************************************
  22. *
  23. * This file is part of GeSHi.
  24. *
  25. * GeSHi is free software; you can redistribute it and/or modify
  26. * it under the terms of the GNU General Public License as published by
  27. * the Free Software Foundation; either version 2 of the License, or
  28. * (at your option) any later version.
  29. *
  30. * GeSHi is distributed in the hope that it will be useful,
  31. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. * GNU General Public License for more details.
  34. *
  35. * You should have received a copy of the GNU General Public License
  36. * along with GeSHi; if not, write to the Free Software
  37. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  38. *
  39. ************************************************************************************/
  40. $language_data = array (
  41. 'LANG_NAME' => 'dot',
  42. 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
  43. 'COMMENT_MULTI' => array('/*' => '*/'),
  44. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  45. 'QUOTEMARKS' => array('"'),
  46. 'ESCAPE_CHAR' => '\\',
  47. 'KEYWORDS' => array(
  48. 1 => array('URL', 'arrowhead', 'arrowsize', 'arrowtail', 'bb', 'bgcolor', 'bottomlabel',
  49. 'center', 'clusterrank', 'color', 'comment', 'constraint', 'decorate',
  50. 'dir', 'distortion', 'fillcolor', 'fixedsize', 'fontcolor',
  51. 'fontname', 'fontsize', 'group', 'headclip', 'headlabel', 'headport',
  52. 'height', 'id', 'label', 'labelangle', 'labeldistance', 'labelfontcolor',
  53. 'labelfontname', 'labelfontsize', 'layer', 'layers', 'margin', 'mclimit',
  54. 'minlen', 'nodesep', 'nslimit', 'ordering', 'orientation', 'page',
  55. 'pagedir', 'peripheries', 'port_label_distance', 'quantum', 'rank', 'rankdir',
  56. 'ranksep', 'ratio', 'regular', 'rotate', 'samehead', 'sametail', 'searchsize',
  57. 'shape', 'shapefile', 'showboxes', 'sides', 'size', 'skew', 'style',
  58. 'tailclip', 'taillabel', 'tailport', 'toplabel', 'weight', 'width'
  59. ),
  60. 2 => array('node', 'graph', 'digraph', 'strict', 'edge', 'subgraph'),
  61. 3 => array('FALSE', 'Mcircle', 'Mdiamond', 'Mrecord', 'Msquare', 'TRUE', 'auto', 'back',
  62. 'bold', 'both', 'box', 'circle', 'compress', 'dashed', 'diamond', 'dot',
  63. 'dotted', 'doublecircle', 'doubleoctagon', 'egg', 'ellipse', 'epsf', 'false',
  64. 'fill', 'filled', 'forward', 'global', 'hexagon', 'house', 'inv', 'invdot',
  65. 'invhouse', 'invis', 'invodot', 'invtrapezium', 'invtriangle', 'local', 'max',
  66. 'min', 'none', 'normal', 'octagon', 'odot', 'out', 'parallelogram', 'plaintext',
  67. 'polygon', 'record', 'same', 'solid', 'trapezium', 'triangle', 'tripleoctagon',
  68. 'true'
  69. ),
  70. 4 => array('aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'black',
  71. 'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood', 'cadetblue',
  72. 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson',
  73. 'cyan', 'darkgoldenrod', 'darkgreen', 'darkkhaki', 'darkolivegreen',
  74. 'darkorange', 'darkorchid', 'darksalmon', 'darkseagreen', 'darkslateblue',
  75. 'darkslategray', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue',
  76. 'dimgray', 'dodgerblue', 'firebrick', 'forestgreen', 'gainsboro', 'ghostwhite',
  77. 'gold', 'goldenrod', 'gray', 'green', 'greenyellow', 'honeydew', 'hotpink',
  78. 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush',
  79. 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcyan', 'lightgoldenrod',
  80. 'lightgoldenrodyellow', 'lightgray', 'lightpink', 'lightsalmon',
  81. 'lightseagreen', 'lightskyblue', 'lightslateblue', 'lightslategray',
  82. 'lightyellow', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine',
  83. 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen',
  84. 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred',
  85. 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'navy',
  86. 'navyblue', 'oldlace', 'olivedrab', 'oralwhite', 'orange', 'orangered',
  87. 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred',
  88. 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple',
  89. 'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'salmon2', 'sandybrown',
  90. 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'snow',
  91. 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet',
  92. 'violetred', 'wheat', 'white', 'whitesmoke', 'yellow', 'yellowgreen'
  93. )
  94. ),
  95. 'SYMBOLS' => array(
  96. '[', ']', '{', '}', '-', '+', '*', '/', '<', '>', '!', '~', '%', '&', '|', '='
  97. ),
  98. 'CASE_SENSITIVE' => array(
  99. GESHI_COMMENTS => false,
  100. 1 => false,
  101. 2 => false,
  102. 3 => false,
  103. 4 => false,
  104. ),
  105. 'STYLES' => array(
  106. 'KEYWORDS' => array(
  107. 1 => 'color: #000066;',
  108. 2 => 'color: #000000; font-weight: bold;',
  109. 3 => 'color: #993333;',
  110. 4 => 'color: #b1b100;'
  111. ),
  112. 'COMMENTS' => array(
  113. 1 => 'color: #808080; font-style: italic;',
  114. 2 => 'color: #339933;',
  115. 'MULTI' => 'color: #808080; font-style: italic;'
  116. ),
  117. 'ESCAPE_CHAR' => array(
  118. 0 => 'color: #af624d; font-weight: bold;'
  119. ),
  120. 'BRACKETS' => array(
  121. 0 => 'color: #66cc66;'
  122. ),
  123. 'STRINGS' => array(
  124. 0 => 'color: #ff0000;'
  125. ),
  126. 'NUMBERS' => array(
  127. 0 => 'color: #cc66cc;'
  128. ),
  129. 'SYMBOLS' => array(
  130. 0 => 'color: #66cc66;'
  131. ),
  132. 'METHODS' => array(
  133. ),
  134. 'SCRIPT' => array(
  135. ),
  136. 'REGEXPS' => array(
  137. ),
  138. ),
  139. 'URLS' => array(
  140. 1 => '',
  141. 2 => '',
  142. 3 => ''
  143. ),
  144. 'OOLANG' => false,
  145. 'OBJECT_SPLITTER' => '',
  146. 'REGEXPS' => array(),
  147. 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  148. 'SCRIPT_DELIMITERS' => array(),
  149. 'HIGHLIGHT_STRICT_BLOCK' => array(
  150. 0 => true,
  151. 1 => true,
  152. 2 => true,
  153. 3 => true
  154. )
  155. );
  156. ?>