Codulle - L'explorateur de code sources

Accueil>> AlBulle >> AlBulle0.6 >> themes

Informations fichier

Nom du fichier : dos.php
Taille du fichier : 5 Ko (180 lignes)
Language : PHP

  1. span style="color: #808080; font-style: italic;">/*************************************************************************************
  2. * dos.php
  3. * -------
  4. * Author: Alessandro Staltari (staltari@geocities.com)
  5. * Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
  6. * Release Version: 1.0.7.5
  7. * CVS Revision Version: $Revision: 1.5 $
  8. * Date Started: 2005/07/05
  9. * Last Modified: $Date: 2005/10/22 07:52:59 $
  10. *
  11. * DOS language file for GeSHi.
  12. *
  13. * CHANGES
  14. * -------
  15. * 2005/07/05 (1.0.0)
  16. * - First Release
  17. *
  18. * TODO (updated 2005/07/05)
  19. * -------------------------
  20. *
  21. * - Find a way to higlight %*
  22. * - Highlight pipes and redirection (do we really need this?)
  23. * - Add missing keywords.
  24. * - Find a good hyperlink for keywords.
  25. * - Improve styles.
  26. *
  27. * KNOWN ISSUES (updated 2005/07/07)
  28. * ---------------------------------
  29. *
  30. * - Doesn't even try to handle spaces in variables name or labels (I can't
  31. * find a reliable way to establish if a sting is a name or not, in some
  32. * cases it depends on the contex or enviroment status).
  33. * - Doesn't handle %%[letter] pseudo variable used inside FOR constructs
  34. * (it should be done only into its scope: how to handle variable it?).
  35. * - Doesn't handle %~[something] pseudo arguments.
  36. * - If the same keyword is placed at the end of the line and the
  37. * beginning of the next, the second occourrence is not highlighted
  38. * (this should be a GeSHi bug, not related to the language definition).
  39. * - I can't avoid to have keyword highlighted even when they are not used
  40. * as keywords but, for example, as arguments to the echo command.
  41. *
  42. *************************************************************************************
  43. *
  44. * This file is part of GeSHi.
  45. *
  46. * GeSHi is free software; you can redistribute it and/or modify
  47. * it under the terms of the GNU General Public License as published by
  48. * the Free Software Foundation; either version 2 of the License, or
  49. * (at your option) any later version.
  50. *
  51. * GeSHi is distributed in the hope that it will be useful,
  52. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  53. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  54. * GNU General Public License for more details.
  55. *
  56. * You should have received a copy of the GNU General Public License
  57. * along with GeSHi; if not, write to the Free Software
  58. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  59. *
  60. ************************************************************************************/'LANG_NAME' => 'DOS',
  61. 'COMMENT_SINGLE''REM', 2 => '@REM'),
  62. 'COMMENT_MULTI''CASE_KEYWORDS''QUOTEMARKS''ESCAPE_CHAR' => '',
  63. 'KEYWORDS'/* Flow control keywords */'IF', 'ELSE', 'GOTO',
  64. 'FOR', 'IN', 'DO',
  65. 'CALL', 'EXIT'
  66. ),
  67. /* IF statement keywords */'NOT', 'EXIST', 'ERRORLEVEL',
  68. 'DEFINED',
  69. 'EQU', 'NEQ', 'LSS', 'LEQ', 'GTR', 'GEQ'
  70. ),
  71. /* Internal commands */'SHIFT',
  72. 'CD', 'DIR', 'ECHO',
  73. 'SETLOCAL', 'ENDLOCAL', 'SET',
  74. 'PAUSE'
  75. ),
  76. /* Special files */'PRN', 'NUL', 'LPT3', 'LPT2', 'LPT1', 'CON',
  77. 'COM4', 'COM3', 'COM2', 'COM1', 'AUX'
  78. )
  79. ),
  80. 'SYMBOLS''(', ')'
  81. ),
  82. 'CASE_SENSITIVE''STYLES''KEYWORDS''color: #00b100; font-weight: bold;',
  83. 2 => 'color: #000000; font-weight: bold;',
  84. 3 => 'color: #b1b100; font-weight: bold;',
  85. 4 => 'color: #0000ff; font-weight: bold;'
  86. ),
  87. 'COMMENTS''color: #808080; font-style: italic;',
  88. 2 => 'color: #808080; font-style: italic;'
  89. ),
  90. 'ESCAPE_CHAR''BRACKETS''color: #66cc66;'
  91. ),
  92. 'STRINGS''color: #ff0000;'
  93. ),
  94. 'NUMBERS'/* 0 => 'color: #cc66cc;' */
  95. ),
  96. 'METHODS''SYMBOLS''color: #33cc33;',
  97. 1 => 'color: #33cc33;'
  98. ),
  99. 'SCRIPT''REGEXPS''color: #b100b1; font-weight: bold;',
  100. 1 => 'color: #448844;',
  101. 2 => 'color: #448888;'
  102. )
  103. ),
  104. 'OOLANG''OBJECT_SPLITTERS''REGEXPS'/* Label *//* GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',*/'((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\n]*)''\\2''si''\\1'''
  105. ),
  106. /* Variable assignement *//* GESHI_SEARCH => '(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\s\n]+)([\s]*=)',*/'(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\n]+)([\s]*=)''\\2''si''\\1''\\3'
  107. ),
  108. /* Arguments or variable evaluation *//* GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/'(%)([\d*]|[^%]*(?=%))((?<!%\d)%|)''\\2''si''\\1''\\3'
  109. )
  110. ),
  111. 'STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''HIGHLIGHT_STRICT_BLOCK'

Liste des projets

Téléchargez Codulle

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