Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 158

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/demos/codulle/classes/geshi.php on line 2012
.: Codulle : Source de ocaml.php :.

pub

Codulle - L'explorateur de code sources

Accueil>> Codulle0.1.1 >> codulle >> classes >> geshi

Informations fichier

Nom du fichier : ocaml.php
Taille du fichier : 6 Ko (164 lignes)
Language : PHP

  1. span style="color: #808080; font-style: italic;">/*************************************************************************************
  2. * ocaml.php
  3. * ----------
  4. * Author: Flaie (fireflaie@gmail.com)
  5. * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
  6. * Release Version: 1.0.7.5
  7. * CVS Revision Version: $Revision: 1.3 $
  8. * Date Started: 2005/08/27
  9. * Last Modified: $Date: 2005/10/22 07:52:59 $
  10. *
  11. * OCaml (Objective Caml) language file for GeSHi.
  12. *
  13. * CHANGES
  14. * -------
  15. * 2005/08/27 (1.0.0)
  16. * - First Release
  17. *
  18. * TODO (updated 2005/08/27)
  19. * -------------------------
  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. ************************************************************************************/'LANG_NAME' => 'OCaml',
  40. 'COMMENT_SINGLE''COMMENT_MULTI''(*' => '*)'),
  41. 'CASE_KEYWORDS' => 0,
  42. 'QUOTEMARKS''"'),
  43. 'ESCAPE_CHAR' => "",
  44. 'KEYWORDS'/* main OCaml keywords */'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
  45. 'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
  46. 'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
  47. 'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
  48. 'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
  49. 'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
  50. ),
  51. /* define names of main librarys, so we can link to it */'Arg', 'Arith_status', 'Array', 'ArrayLabels', 'Big_int', 'Bigarray', 'Buffer', 'Callback',
  52. 'CamlinternalOO', 'Char', 'Complex', 'Condition', 'Dbm', 'Digest', 'Dynlink', 'Event',
  53. 'Filename', 'Format', 'Gc', 'Genlex', 'Graphics', 'GraphicsX11', 'Hashtbl', 'Int32', 'Int64',
  54. 'Lazy', 'Lexing', 'List', 'ListLabels', 'Map', 'Marshal', 'MoreLabels', 'Mutex', 'Nativeint',
  55. 'Num', 'Obj', 'Oo', 'Parsing', 'Pervasives', 'Printexc', 'Printf', 'Queue', 'Random', 'Scanf',
  56. 'Set', 'Sort', 'Stack', 'StdLabels', 'Str', 'Stream', 'String', 'StringLabels', 'Sys', 'Thread',
  57. 'ThreadUnix', 'Tk'
  58. ),
  59. /* just link to the Pervasives functions library, cause it's the default opened library when starting OCaml */'raise', 'invalid_arg', 'failwith', 'compare', 'min', 'max', 'succ', 'pred', 'mod', 'abs',
  60. 'max_int', 'min_int', 'sqrt', 'exp', 'log', 'log10', 'cos', 'sin', 'tan', 'acos', 'asin',
  61. 'atan', 'atan2', 'cosh', 'sinh', 'tanh', 'ceil', 'floor', 'abs_float', 'mod_float', 'frexp',
  62. 'ldexp', 'modf', 'float', 'float_of_int', 'truncate', 'int_of_float', 'infinity', 'nan',
  63. 'max_float', 'min_float', 'epsilon_float', 'classify_float', 'int_of_char', 'char_of_int',
  64. 'ignore', 'string_of_bool', 'bool_of_string', 'string_of_int', 'int_of_string',
  65. 'string_of_float', 'float_of_string', 'fst', 'snd', 'stdin', 'stdout', 'stderr', 'print_char',
  66. 'print_string', 'print_int', 'print_float', 'print_endline', 'print_newline', 'prerr_char',
  67. 'prerr_string', 'prerr_int', 'prerr_float', 'prerr_endline', 'prerr_newline', 'read_line',
  68. 'read_int', 'read_float', 'open_out', 'open_out_bin', 'open_out_gen', 'flush', 'flush_all',
  69. 'output_char', 'output_string', 'output', 'output_byte', 'output_binary_int', 'output_value',
  70. 'seek_out', 'pos_out', 'out_channel_length', 'close_out', 'close_out_noerr', 'set_binary_mode_out',
  71. 'open_in', 'open_in_bin', 'open_in_gen', 'input_char', 'input_line', 'input', 'really_input',
  72. 'input_byte', 'input_binary_int', 'input_value', 'seek_in', 'pos_in', 'in_channel_length',
  73. 'close_in', 'close_in_noerr', 'set_binary_mode_in', 'incr', 'decr', 'string_of_format',
  74. 'format_of_string', 'exit', 'at_exit'
  75. ),
  76. /* here Pervasives Types */'fpclass', 'in_channel', 'out_channel', 'open_flag', 'Sys_error', 'ref', 'format'
  77. ),
  78. /* finally Pervasives Exceptions */'Exit', 'Invalid_Argument', 'Failure', 'Division_by_zero'
  79. )
  80. ),
  81. /* highlighting symbols is really important in OCaml */
  82. 'SYMBOLS'';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
  83. '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
  84. ),
  85. 'CASE_SENSITIVE'/* functions name are case seinsitive *//* types name too *//* finally exceptions too */
  86. ),
  87. 'STYLES''KEYWORDS''color: #06c; font-weight: bold;' /* nice blue */
  88. ),
  89. 'COMMENTS''MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
  90. ),
  91. 'ESCAPE_CHAR''BRACKETS''color: #6c6;'
  92. ),
  93. 'STRINGS''color: #3cb371;' /* nice green */
  94. ),
  95. 'NUMBERS''color: #c6c;' /* pink */
  96. ),
  97. 'METHODS''color: #060;' /* dark green */
  98. ),
  99. 'REGEXPS''SYMBOLS''color: #a52a2a;' /* maroon */
  100. ),
  101. 'SCRIPT''URLS'/* some of keywords are Pervasives functions (land, lxor, asr, ...) */
  102. 1 => '',
  103. /* link to the wanted library */
  104. 2 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/{FNAME}.html',
  105. /* link to Pervasives functions */
  106. 3 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#VAL{FNAME}',
  107. /* link to Pervasives type */
  108. 4 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#TYPE{FNAME}',
  109. /* link to Pervasives exceptions */
  110. 5 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#EXCEPTION{FNAME}'
  111. ),
  112. 'OOLANG''OBJECT_SPLITTERS''.'
  113. ),
  114. 'REGEXPS''STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''HIGHLIGHT_STRICT_BLOCK'

Liste des projets

Téléchargez Codulle

Publié par Codulle - v0.1.1 - © Bubulles Creations