Codulle - L'explorateur de code sources

Accueil>> Codulle

Informations fichier

Nom du fichier : c.php
Taille du fichier : 3 Ko (144 lignes)
Language : PHP

  1. span style="color: #808080; font-style: italic;">/*************************************************************************************
  2. * c.php
  3. * -----
  4. * Author: Nigel McNie (oracle.shinoda@gmail.com)
  5. * Contributors:
  6. * - Jack Lloyd (lloyd@randombit.net)
  7. * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
  8. * Release Version: 1.0.7.5
  9. * CVS Revision Version: $Revision: 1.5 $
  10. * Date Started: 2004/06/04
  11. * Last Modified: $Date: 2005/10/22 07:52:59 $
  12. *
  13. * C language file for GeSHi.
  14. *
  15. * CHANGES
  16. * -------
  17. * 2004/XX/XX (1.0.4)
  18. * - Added a couple of new keywords (Jack Lloyd)
  19. * 2004/11/27 (1.0.3)
  20. * - Added support for multiple object splitters
  21. * 2004/10/27 (1.0.2)
  22. * - Added support for URLs
  23. * 2004/08/05 (1.0.1)
  24. * - Added support for symbols
  25. * 2004/07/14 (1.0.0)
  26. * - First Release
  27. *
  28. * TODO (updated 2004/11/27)
  29. * -------------------------
  30. * - Get a list of inbuilt functions to add (and explore C more
  31. * to complete this rather bare language file
  32. *
  33. *************************************************************************************
  34. *
  35. * This file is part of GeSHi.
  36. *
  37. * GeSHi is free software; you can redistribute it and/or modify
  38. * it under the terms of the GNU General Public License as published by
  39. * the Free Software Foundation; either version 2 of the License, or
  40. * (at your option) any later version.
  41. *
  42. * GeSHi is distributed in the hope that it will be useful,
  43. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  44. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45. * GNU General Public License for more details.
  46. *
  47. * You should have received a copy of the GNU General Public License
  48. * along with GeSHi; if not, write to the Free Software
  49. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  50. *
  51. ************************************************************************************/'LANG_NAME' => 'C',
  52. 'COMMENT_SINGLE''//', 2 => '#'),
  53. 'COMMENT_MULTI''/*' => '*/'),
  54. 'CASE_KEYWORDS''QUOTEMARKS'"'", '"'),
  55. 'ESCAPE_CHAR' => '\\',
  56. 'KEYWORDS''if', 'return', 'while', 'case', 'continue', 'default',
  57. 'do', 'else', 'for', 'switch', 'goto''null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline''printf', 'cout''auto', 'char', 'const', 'double', 'float', 'int', 'long',
  58. 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
  59. 'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t'
  60. ),
  61. ),
  62. 'SYMBOLS''(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
  63. ),
  64. 'CASE_SENSITIVE''STYLES''KEYWORDS''color: #b1b100;',
  65. 2 => 'color: #000000; font-weight: bold;',
  66. 3 => 'color: #000066;',
  67. 4 => 'color: #993333;'
  68. ),
  69. 'COMMENTS''color: #808080; font-style: italic;',
  70. 2 => 'color: #339933;',
  71. 'MULTI' => 'color: #808080; font-style: italic;'
  72. ),
  73. 'ESCAPE_CHAR''color: #000099; font-weight: bold;'
  74. ),
  75. 'BRACKETS''color: #66cc66;'
  76. ),
  77. 'STRINGS''color: #ff0000;'
  78. ),
  79. 'NUMBERS''color: #cc66cc;'
  80. ),
  81. 'METHODS''color: #202020;',
  82. 2 => 'color: #202020;'
  83. ),
  84. 'SYMBOLS''color: #66cc66;'
  85. ),
  86. 'REGEXPS''SCRIPT''URLS''',
  87. 2 => '',
  88. 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
  89. 4 => ''
  90. ),
  91. 'OOLANG''OBJECT_SPLITTERS''.',
  92. 2 => '::'
  93. ),
  94. 'REGEXPS''STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''HIGHLIGHT_STRICT_BLOCK'

Liste des projets

Téléchargez Codulle

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