From ed7a9440e24e272dabf10ea1cc1c3c06bbc79c06 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 06:46:52 +0100 Subject: downgraded geshi to stable version to support all languages --- paste/include/class.geshi.php | 738 ---- paste/include/geshi.php | 4644 ++++++++++++++++++++ paste/include/geshi/abap.php | 1409 ++++++ paste/include/geshi/actionscript.php | 197 + paste/include/geshi/actionscript3.php | 473 ++ paste/include/geshi/ada.php | 133 + paste/include/geshi/apache.php | 480 ++ paste/include/geshi/applescript.php | 157 + paste/include/geshi/apt_sources.php | 144 + paste/include/geshi/asm.php | 225 + paste/include/geshi/asp.php | 164 + paste/include/geshi/autoit.php | 1171 +++++ paste/include/geshi/avisynth.php | 194 + paste/include/geshi/bash.php | 282 ++ paste/include/geshi/basic4gl.php | 341 ++ paste/include/geshi/bf.php | 114 + paste/include/geshi/bibtex.php | 183 + paste/include/geshi/blitzbasic.php | 185 + paste/include/geshi/bnf.php | 110 + paste/include/geshi/boo.php | 217 + paste/include/geshi/c.php | 188 + paste/include/geshi/c_mac.php | 212 + paste/include/geshi/caddcl.php | 126 + paste/include/geshi/cadlisp.php | 186 + paste/include/geshi/cfdg.php | 124 + paste/include/geshi/cfm.php | 299 ++ paste/include/geshi/cil.php | 196 + .../geshi/classes/class.geshicodecontext.php | 550 --- paste/include/geshi/classes/class.geshicontext.php | 721 --- .../geshi/classes/class.geshistringcontext.php | 190 - paste/include/geshi/classes/class.geshistyler.php | 224 - .../css/class.geshicssinlinemediacontext.php | 60 - .../php/class.geshiphpdoublestringcontext.php | 182 - paste/include/geshi/cmake.php | 181 + paste/include/geshi/cobol.php | 244 + .../geshi/contexts/codeworker/codeworker.php | 126 - .../geshi/contexts/codeworker/cworkercwt.php | 138 - paste/include/geshi/contexts/codeworker/cwt.php | 41 - .../geshi/contexts/codeworker/roughtext.php | 58 - .../geshi/contexts/common/double_string.php | 51 - .../geshi/contexts/common/multi_comment.php | 46 - .../geshi/contexts/common/single_comment.php | 46 - .../geshi/contexts/common/single_string.php | 51 - .../geshi/contexts/common/single_string_eol.php | 51 - paste/include/geshi/contexts/css/at_rule.php | 74 - .../geshi/contexts/css/attribute_selector.php | 49 - paste/include/geshi/contexts/css/css.php | 103 - paste/include/geshi/contexts/css/inline_media.php | 54 - paste/include/geshi/contexts/css/rule.php | 301 -- paste/include/geshi/contexts/css/string.php | 55 - paste/include/geshi/contexts/delphi/asm.php | 271 -- paste/include/geshi/contexts/delphi/delphi.php | 382 -- .../geshi/contexts/delphi/exports_brackets.php | 178 - paste/include/geshi/contexts/delphi/extern.php | 131 - .../geshi/contexts/delphi/multi_comment.php | 51 - .../include/geshi/contexts/delphi/preprocessor.php | 51 - paste/include/geshi/contexts/delphi/property.php | 157 - .../geshi/contexts/delphi/property_index.php | 143 - paste/include/geshi/contexts/doxygen/doxygen.php | 44 - paste/include/geshi/contexts/doxygen/link.php | 46 - paste/include/geshi/contexts/doxygen/tag.php | 46 - paste/include/geshi/contexts/html/comment.php | 46 - paste/include/geshi/contexts/html/css.php | 49 - paste/include/geshi/contexts/html/doctype.php | 50 - paste/include/geshi/contexts/html/html.php | 55 - paste/include/geshi/contexts/html/javascript.php | 49 - paste/include/geshi/contexts/html/string.php | 56 - .../geshi/contexts/html/string_javascript.php | 55 - paste/include/geshi/contexts/html/tag.php | 98 - .../geshi/contexts/javascript/javascript.php | 187 - paste/include/geshi/contexts/php/double_string.php | 57 - paste/include/geshi/contexts/php/doxygen.php | 45 - paste/include/geshi/contexts/php/heredoc.php | 60 - paste/include/geshi/contexts/php/php.php | 910 ---- paste/include/geshi/contexts/php/php4.php | 851 ---- paste/include/geshi/contexts/php/php5.php | 900 ---- .../include/geshi/contexts/php/single_comment.php | 47 - paste/include/geshi/contexts/qbasic/comment.php | 47 - paste/include/geshi/contexts/qbasic/qbasic.php | 68 - paste/include/geshi/contexts/qbasic/string.php | 46 - paste/include/geshi/contexts/web3d/comment.php | 48 - paste/include/geshi/contexts/web3d/string.php | 50 - .../geshi/contexts/web3d/string_javascript.php | 51 - paste/include/geshi/contexts/web3d/vrml1.php | 214 - paste/include/geshi/contexts/web3d/vrml97.php | 218 - paste/include/geshi/contexts/web3d/x3d_ascii.php | 221 - paste/include/geshi/cpp-qt.php | 315 ++ paste/include/geshi/cpp.php | 226 + paste/include/geshi/csharp.php | 250 ++ paste/include/geshi/css.php | 212 + paste/include/geshi/d.php | 272 ++ paste/include/geshi/dcs.php | 185 + paste/include/geshi/delphi.php | 289 ++ paste/include/geshi/diff.php | 196 + paste/include/geshi/div.php | 126 + paste/include/geshi/dos.php | 198 + paste/include/geshi/dot.php | 164 + paste/include/geshi/eiffel.php | 395 ++ paste/include/geshi/email.php | 209 + paste/include/geshi/erlang.php | 441 ++ paste/include/geshi/fo.php | 327 ++ paste/include/geshi/fortran.php | 160 + paste/include/geshi/freebasic.php | 141 + paste/include/geshi/functions.geshi.php | 282 -- paste/include/geshi/genero.php | 463 ++ paste/include/geshi/gettext.php | 97 + paste/include/geshi/glsl.php | 205 + paste/include/geshi/gml.php | 506 +++ paste/include/geshi/gnuplot.php | 296 ++ paste/include/geshi/groovy.php | 1011 +++++ paste/include/geshi/haskell.php | 198 + paste/include/geshi/hq9plus.php | 104 + paste/include/geshi/html4strict.php | 203 + paste/include/geshi/idl.php | 123 + paste/include/geshi/ini.php | 128 + paste/include/geshi/inno.php | 212 + paste/include/geshi/intercal.php | 122 + paste/include/geshi/io.php | 138 + paste/include/geshi/java.php | 983 +++++ paste/include/geshi/java5.php | 1031 +++++ paste/include/geshi/javascript.php | 150 + paste/include/geshi/kixtart.php | 329 ++ paste/include/geshi/klonec.php | 282 ++ paste/include/geshi/klonecpp.php | 310 ++ .../geshi/languages/codeworker/codeworker.php | 52 - paste/include/geshi/languages/css/css.php | 52 - paste/include/geshi/languages/delphi/delphi.php | 54 - paste/include/geshi/languages/html/html.php | 52 - .../geshi/languages/javascript/javascript.php | 52 - paste/include/geshi/languages/php/php.php | 53 - paste/include/geshi/languages/php/php4.php | 54 - paste/include/geshi/languages/php/php5.php | 53 - paste/include/geshi/languages/qbasic/qbasic.php | 52 - paste/include/geshi/languages/web3d/vrml97.php | 46 - paste/include/geshi/latex.php | 218 + paste/include/geshi/lisp.php | 144 + paste/include/geshi/locobasic.php | 130 + paste/include/geshi/lolcode.php | 152 + paste/include/geshi/lotusformulas.php | 318 ++ paste/include/geshi/lotusscript.php | 191 + paste/include/geshi/lscript.php | 387 ++ paste/include/geshi/lsl2.php | 898 ++++ paste/include/geshi/lua.php | 137 + paste/include/geshi/m68k.php | 143 + paste/include/geshi/make.php | 151 + paste/include/geshi/matlab.php | 227 + paste/include/geshi/mirc.php | 171 + paste/include/geshi/modula3.php | 135 + paste/include/geshi/mpasm.php | 164 + paste/include/geshi/mxml.php | 145 + paste/include/geshi/mysql.php | 475 ++ paste/include/geshi/nsis.php | 351 ++ paste/include/geshi/oberon2.php | 135 + paste/include/geshi/objc.php | 358 ++ paste/include/geshi/ocaml-brief.php | 112 + paste/include/geshi/ocaml.php | 174 + paste/include/geshi/oobas.php | 135 + paste/include/geshi/oracle11.php | 614 +++ paste/include/geshi/oracle8.php | 496 +++ paste/include/geshi/pascal.php | 152 + paste/include/geshi/per.php | 302 ++ paste/include/geshi/perl.php | 213 + paste/include/geshi/php-brief.php | 222 + paste/include/geshi/php.php | 1114 +++++ paste/include/geshi/pic16.php | 141 + paste/include/geshi/pixelbender.php | 176 + paste/include/geshi/plsql.php | 256 ++ paste/include/geshi/povray.php | 199 + paste/include/geshi/powershell.php | 277 ++ paste/include/geshi/progress.php | 485 ++ paste/include/geshi/prolog.php | 143 + paste/include/geshi/properties.php | 127 + paste/include/geshi/providex.php | 299 ++ paste/include/geshi/python.php | 237 + paste/include/geshi/qbasic.php | 151 + paste/include/geshi/rails.php | 406 ++ paste/include/geshi/rebol.php | 196 + paste/include/geshi/reg.php | 233 + paste/include/geshi/robots.php | 98 + paste/include/geshi/ruby.php | 226 + paste/include/geshi/sas.php | 290 ++ paste/include/geshi/scala.php | 122 + paste/include/geshi/scheme.php | 170 + paste/include/geshi/scilab.php | 295 ++ .../include/geshi/scripts/get-keywords/docs/README | 23 - .../geshi/scripts/get-keywords/get-keywords.php | 143 - .../languages/css/class.csskeywordgetter.php | 101 - .../languages/css/class.cssxmlparser.php | 112 - .../languages/html/class.htmlkeywordgetter.php | 96 - .../javascript/class.javascriptkeywordgetter.php | 121 - .../javascript/class.javascriptxmlparser.php | 107 - .../languages/php/class.phpkeywordgetter.php | 120 - .../languages/php/class.phpxmlparser.php | 107 - .../get-keywords/lib/class.keywordgetter.php | 184 - .../get-keywords/lib/class.keywordgettererror.php | 97 - .../lib/class.keywordgetterstrategy.php | 105 - .../get-keywords/lib/class.keywordxmlparser.php | 58 - .../get-keywords/lib/functions.get-keywords.php | 95 - .../get-keywords/lib/pear/Console/Getopt.php | 251 -- .../geshi/scripts/get-keywords/lib/pear/PEAR.php | 1055 ----- .../scripts/get-keywords/lib/pear/XML/Parser.php | 684 --- paste/include/geshi/sdlbasic.php | 165 + paste/include/geshi/smalltalk.php | 160 + paste/include/geshi/smarty.php | 192 + paste/include/geshi/sql.php | 140 + paste/include/geshi/tcl.php | 194 + paste/include/geshi/teraterm.php | 317 ++ paste/include/geshi/text.php | 84 + paste/include/geshi/thinbasic.php | 868 ++++ paste/include/geshi/tsql.php | 375 ++ paste/include/geshi/typoscript.php | 300 ++ paste/include/geshi/vb.php | 133 + paste/include/geshi/vbnet.php | 201 + paste/include/geshi/verilog.php | 173 + paste/include/geshi/vhdl.php | 144 + paste/include/geshi/vim.php | 185 + paste/include/geshi/visualfoxpro.php | 456 ++ paste/include/geshi/visualprolog.php | 129 + paste/include/geshi/whitespace.php | 121 + paste/include/geshi/whois.php | 181 + paste/include/geshi/winbatch.php | 369 ++ paste/include/geshi/xml.php | 157 + paste/include/geshi/xorg_conf.php | 124 + paste/include/geshi/xpp.php | 436 ++ paste/include/geshi/z80.php | 144 + paste/include/pastify.inc | 12 +- 226 files changed, 42417 insertions(+), 14158 deletions(-) delete mode 100644 paste/include/class.geshi.php create mode 100644 paste/include/geshi.php create mode 100644 paste/include/geshi/abap.php create mode 100644 paste/include/geshi/actionscript.php create mode 100644 paste/include/geshi/actionscript3.php create mode 100644 paste/include/geshi/ada.php create mode 100644 paste/include/geshi/apache.php create mode 100644 paste/include/geshi/applescript.php create mode 100644 paste/include/geshi/apt_sources.php create mode 100644 paste/include/geshi/asm.php create mode 100644 paste/include/geshi/asp.php create mode 100644 paste/include/geshi/autoit.php create mode 100644 paste/include/geshi/avisynth.php create mode 100644 paste/include/geshi/bash.php create mode 100644 paste/include/geshi/basic4gl.php create mode 100644 paste/include/geshi/bf.php create mode 100644 paste/include/geshi/bibtex.php create mode 100644 paste/include/geshi/blitzbasic.php create mode 100644 paste/include/geshi/bnf.php create mode 100644 paste/include/geshi/boo.php create mode 100644 paste/include/geshi/c.php create mode 100644 paste/include/geshi/c_mac.php create mode 100644 paste/include/geshi/caddcl.php create mode 100644 paste/include/geshi/cadlisp.php create mode 100644 paste/include/geshi/cfdg.php create mode 100644 paste/include/geshi/cfm.php create mode 100644 paste/include/geshi/cil.php delete mode 100644 paste/include/geshi/classes/class.geshicodecontext.php delete mode 100644 paste/include/geshi/classes/class.geshicontext.php delete mode 100644 paste/include/geshi/classes/class.geshistringcontext.php delete mode 100644 paste/include/geshi/classes/class.geshistyler.php delete mode 100644 paste/include/geshi/classes/css/class.geshicssinlinemediacontext.php delete mode 100644 paste/include/geshi/classes/php/class.geshiphpdoublestringcontext.php create mode 100644 paste/include/geshi/cmake.php create mode 100644 paste/include/geshi/cobol.php delete mode 100644 paste/include/geshi/contexts/codeworker/codeworker.php delete mode 100644 paste/include/geshi/contexts/codeworker/cworkercwt.php delete mode 100644 paste/include/geshi/contexts/codeworker/cwt.php delete mode 100644 paste/include/geshi/contexts/codeworker/roughtext.php delete mode 100644 paste/include/geshi/contexts/common/double_string.php delete mode 100644 paste/include/geshi/contexts/common/multi_comment.php delete mode 100644 paste/include/geshi/contexts/common/single_comment.php delete mode 100644 paste/include/geshi/contexts/common/single_string.php delete mode 100644 paste/include/geshi/contexts/common/single_string_eol.php delete mode 100644 paste/include/geshi/contexts/css/at_rule.php delete mode 100644 paste/include/geshi/contexts/css/attribute_selector.php delete mode 100644 paste/include/geshi/contexts/css/css.php delete mode 100644 paste/include/geshi/contexts/css/inline_media.php delete mode 100644 paste/include/geshi/contexts/css/rule.php delete mode 100644 paste/include/geshi/contexts/css/string.php delete mode 100644 paste/include/geshi/contexts/delphi/asm.php delete mode 100644 paste/include/geshi/contexts/delphi/delphi.php delete mode 100644 paste/include/geshi/contexts/delphi/exports_brackets.php delete mode 100644 paste/include/geshi/contexts/delphi/extern.php delete mode 100644 paste/include/geshi/contexts/delphi/multi_comment.php delete mode 100644 paste/include/geshi/contexts/delphi/preprocessor.php delete mode 100644 paste/include/geshi/contexts/delphi/property.php delete mode 100644 paste/include/geshi/contexts/delphi/property_index.php delete mode 100644 paste/include/geshi/contexts/doxygen/doxygen.php delete mode 100644 paste/include/geshi/contexts/doxygen/link.php delete mode 100644 paste/include/geshi/contexts/doxygen/tag.php delete mode 100644 paste/include/geshi/contexts/html/comment.php delete mode 100644 paste/include/geshi/contexts/html/css.php delete mode 100644 paste/include/geshi/contexts/html/doctype.php delete mode 100644 paste/include/geshi/contexts/html/html.php delete mode 100644 paste/include/geshi/contexts/html/javascript.php delete mode 100644 paste/include/geshi/contexts/html/string.php delete mode 100644 paste/include/geshi/contexts/html/string_javascript.php delete mode 100644 paste/include/geshi/contexts/html/tag.php delete mode 100644 paste/include/geshi/contexts/javascript/javascript.php delete mode 100644 paste/include/geshi/contexts/php/double_string.php delete mode 100644 paste/include/geshi/contexts/php/doxygen.php delete mode 100644 paste/include/geshi/contexts/php/heredoc.php delete mode 100644 paste/include/geshi/contexts/php/php.php delete mode 100644 paste/include/geshi/contexts/php/php4.php delete mode 100644 paste/include/geshi/contexts/php/php5.php delete mode 100644 paste/include/geshi/contexts/php/single_comment.php delete mode 100644 paste/include/geshi/contexts/qbasic/comment.php delete mode 100644 paste/include/geshi/contexts/qbasic/qbasic.php delete mode 100644 paste/include/geshi/contexts/qbasic/string.php delete mode 100644 paste/include/geshi/contexts/web3d/comment.php delete mode 100644 paste/include/geshi/contexts/web3d/string.php delete mode 100644 paste/include/geshi/contexts/web3d/string_javascript.php delete mode 100644 paste/include/geshi/contexts/web3d/vrml1.php delete mode 100644 paste/include/geshi/contexts/web3d/vrml97.php delete mode 100644 paste/include/geshi/contexts/web3d/x3d_ascii.php create mode 100644 paste/include/geshi/cpp-qt.php create mode 100644 paste/include/geshi/cpp.php create mode 100644 paste/include/geshi/csharp.php create mode 100644 paste/include/geshi/css.php create mode 100644 paste/include/geshi/d.php create mode 100644 paste/include/geshi/dcs.php create mode 100644 paste/include/geshi/delphi.php create mode 100644 paste/include/geshi/diff.php create mode 100644 paste/include/geshi/div.php create mode 100644 paste/include/geshi/dos.php create mode 100644 paste/include/geshi/dot.php create mode 100644 paste/include/geshi/eiffel.php create mode 100644 paste/include/geshi/email.php create mode 100644 paste/include/geshi/erlang.php create mode 100644 paste/include/geshi/fo.php create mode 100644 paste/include/geshi/fortran.php create mode 100644 paste/include/geshi/freebasic.php delete mode 100644 paste/include/geshi/functions.geshi.php create mode 100644 paste/include/geshi/genero.php create mode 100644 paste/include/geshi/gettext.php create mode 100644 paste/include/geshi/glsl.php create mode 100644 paste/include/geshi/gml.php create mode 100644 paste/include/geshi/gnuplot.php create mode 100644 paste/include/geshi/groovy.php create mode 100644 paste/include/geshi/haskell.php create mode 100644 paste/include/geshi/hq9plus.php create mode 100644 paste/include/geshi/html4strict.php create mode 100644 paste/include/geshi/idl.php create mode 100644 paste/include/geshi/ini.php create mode 100644 paste/include/geshi/inno.php create mode 100644 paste/include/geshi/intercal.php create mode 100644 paste/include/geshi/io.php create mode 100644 paste/include/geshi/java.php create mode 100644 paste/include/geshi/java5.php create mode 100644 paste/include/geshi/javascript.php create mode 100644 paste/include/geshi/kixtart.php create mode 100644 paste/include/geshi/klonec.php create mode 100644 paste/include/geshi/klonecpp.php delete mode 100644 paste/include/geshi/languages/codeworker/codeworker.php delete mode 100644 paste/include/geshi/languages/css/css.php delete mode 100644 paste/include/geshi/languages/delphi/delphi.php delete mode 100644 paste/include/geshi/languages/html/html.php delete mode 100644 paste/include/geshi/languages/javascript/javascript.php delete mode 100644 paste/include/geshi/languages/php/php.php delete mode 100644 paste/include/geshi/languages/php/php4.php delete mode 100644 paste/include/geshi/languages/php/php5.php delete mode 100644 paste/include/geshi/languages/qbasic/qbasic.php delete mode 100644 paste/include/geshi/languages/web3d/vrml97.php create mode 100644 paste/include/geshi/latex.php create mode 100644 paste/include/geshi/lisp.php create mode 100644 paste/include/geshi/locobasic.php create mode 100644 paste/include/geshi/lolcode.php create mode 100644 paste/include/geshi/lotusformulas.php create mode 100644 paste/include/geshi/lotusscript.php create mode 100644 paste/include/geshi/lscript.php create mode 100644 paste/include/geshi/lsl2.php create mode 100644 paste/include/geshi/lua.php create mode 100644 paste/include/geshi/m68k.php create mode 100644 paste/include/geshi/make.php create mode 100644 paste/include/geshi/matlab.php create mode 100644 paste/include/geshi/mirc.php create mode 100644 paste/include/geshi/modula3.php create mode 100644 paste/include/geshi/mpasm.php create mode 100644 paste/include/geshi/mxml.php create mode 100644 paste/include/geshi/mysql.php create mode 100644 paste/include/geshi/nsis.php create mode 100644 paste/include/geshi/oberon2.php create mode 100644 paste/include/geshi/objc.php create mode 100644 paste/include/geshi/ocaml-brief.php create mode 100644 paste/include/geshi/ocaml.php create mode 100644 paste/include/geshi/oobas.php create mode 100644 paste/include/geshi/oracle11.php create mode 100644 paste/include/geshi/oracle8.php create mode 100644 paste/include/geshi/pascal.php create mode 100644 paste/include/geshi/per.php create mode 100644 paste/include/geshi/perl.php create mode 100644 paste/include/geshi/php-brief.php create mode 100644 paste/include/geshi/php.php create mode 100644 paste/include/geshi/pic16.php create mode 100644 paste/include/geshi/pixelbender.php create mode 100644 paste/include/geshi/plsql.php create mode 100644 paste/include/geshi/povray.php create mode 100644 paste/include/geshi/powershell.php create mode 100644 paste/include/geshi/progress.php create mode 100644 paste/include/geshi/prolog.php create mode 100644 paste/include/geshi/properties.php create mode 100644 paste/include/geshi/providex.php create mode 100644 paste/include/geshi/python.php create mode 100644 paste/include/geshi/qbasic.php create mode 100644 paste/include/geshi/rails.php create mode 100644 paste/include/geshi/rebol.php create mode 100644 paste/include/geshi/reg.php create mode 100644 paste/include/geshi/robots.php create mode 100644 paste/include/geshi/ruby.php create mode 100644 paste/include/geshi/sas.php create mode 100644 paste/include/geshi/scala.php create mode 100644 paste/include/geshi/scheme.php create mode 100644 paste/include/geshi/scilab.php delete mode 100644 paste/include/geshi/scripts/get-keywords/docs/README delete mode 100644 paste/include/geshi/scripts/get-keywords/get-keywords.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/css/class.csskeywordgetter.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/css/class.cssxmlparser.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/html/class.htmlkeywordgetter.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/javascript/class.javascriptkeywordgetter.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/javascript/class.javascriptxmlparser.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/php/class.phpkeywordgetter.php delete mode 100644 paste/include/geshi/scripts/get-keywords/languages/php/class.phpxmlparser.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/class.keywordgetter.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/class.keywordgettererror.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/class.keywordgetterstrategy.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/class.keywordxmlparser.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/functions.get-keywords.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/pear/Console/Getopt.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/pear/PEAR.php delete mode 100644 paste/include/geshi/scripts/get-keywords/lib/pear/XML/Parser.php create mode 100644 paste/include/geshi/sdlbasic.php create mode 100644 paste/include/geshi/smalltalk.php create mode 100644 paste/include/geshi/smarty.php create mode 100644 paste/include/geshi/sql.php create mode 100644 paste/include/geshi/tcl.php create mode 100644 paste/include/geshi/teraterm.php create mode 100644 paste/include/geshi/text.php create mode 100644 paste/include/geshi/thinbasic.php create mode 100644 paste/include/geshi/tsql.php create mode 100644 paste/include/geshi/typoscript.php create mode 100644 paste/include/geshi/vb.php create mode 100644 paste/include/geshi/vbnet.php create mode 100644 paste/include/geshi/verilog.php create mode 100644 paste/include/geshi/vhdl.php create mode 100644 paste/include/geshi/vim.php create mode 100644 paste/include/geshi/visualfoxpro.php create mode 100644 paste/include/geshi/visualprolog.php create mode 100644 paste/include/geshi/whitespace.php create mode 100644 paste/include/geshi/whois.php create mode 100644 paste/include/geshi/winbatch.php create mode 100644 paste/include/geshi/xml.php create mode 100644 paste/include/geshi/xorg_conf.php create mode 100644 paste/include/geshi/xpp.php create mode 100644 paste/include/geshi/z80.php (limited to 'paste') diff --git a/paste/include/class.geshi.php b/paste/include/class.geshi.php deleted file mode 100644 index f804af0..0000000 --- a/paste/include/class.geshi.php +++ /dev/null @@ -1,738 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2004, 2005 Nigel McNie - * @version 1.1.0 - * - */ - -/** - * MAJOR TODOs: - * - * @todo [blocking 1.1.1] (bug 5) Support balanced context endings - * @todo [blocking 1.1.1] (bug 14) OCCs should be able to modify their parent context - * @todo [blocking 1.1.1] (bug 16, 17) Better Delphi and Codeworker support - */ - -/** GeSHi Version */ -define('GESHI_VERSION', '1.1.0'); - -/** Set the correct directory separator */ -define('GESHI_DIR_SEPARATOR', ('WIN' != substr(PHP_OS, 0, 3)) ? '/' : '\\'); - -// Define the root directory for the GeSHi code tree -if (!defined('GESHI_ROOT')) { - /** The root directory for GeSHi (where class.geshi.php is located) */ - define('GESHI_ROOT', dirname(__FILE__) . GESHI_DIR_SEPARATOR); -} - -/**#@+ - * @access private - */ -/** The data directory for GeSHi */ -define('GESHI_DATA_ROOT', GESHI_ROOT . 'geshi' . GESHI_DIR_SEPARATOR); -/** The classes directory for GeSHi */ -define('GESHI_CLASSES_ROOT', GESHI_DATA_ROOT . 'classes' . GESHI_DIR_SEPARATOR); -/** The languages directory for GeSHi */ -define('GESHI_LANGUAGES_ROOT', GESHI_DATA_ROOT . 'languages' . GESHI_DIR_SEPARATOR); -/** The context files directory for GeSHi */ -define('GESHI_CONTEXTS_ROOT', GESHI_DATA_ROOT . 'contexts' . GESHI_DIR_SEPARATOR); -/** The theme files directory for GeSHi */ -define('GESHI_THEMES_ROOT', GESHI_DATA_ROOT . 'themes' . GESHI_DIR_SEPARATOR); -/**#@-*/ - -/** Get required functions */ -require GESHI_DATA_ROOT . 'functions.geshi.php'; - -/** Get styler class */ -require GESHI_CLASSES_ROOT . 'class.geshistyler.php'; - -/** Get context class */ -require GESHI_CLASSES_ROOT . 'class.geshicontext.php'; - - -// -// Constants -// - -// Debugging constants. These will disappear in stable builds. Specify -// as a bitfield, e.g. GESHI_DBG_API | GESHI_DBG_PARSE, by defining the -// GESHI_DBG context before including this file -/** No debugging */ -define('GESHI_DBG_NONE', 0); -/** Debug the API */ -define('GESHI_DBG_API', 1); -/** Debug actual parsing */ -define('GESHI_DBG_PARSE', 2); -/** Debug error handling */ -define('GESHI_DBG_ERR', 4); -/** Maximum debug level */ -define('GESHI_DBG_ALL', GESHI_DBG_API | GESHI_DBG_PARSE | GESHI_DBG_ERR); - -// Set efault debug level -if (!defined('GESHI_DBG')) { - /** Default debug level */ - define('GESHI_DBG', GESHI_DBG_NONE); -} - -// These provide BACKWARD COMPATIBILITY ONLY -// Use New Method setStyles(mixed identifiers, string styles); -// e.g. setStyles('html/tag', 'styles'); -// setStyles(array('html/tag', 'html/css-delimiters'), 'style'); -/** Used to mark a context as having no equivalence in 1.0.X */ -define('GESHI_STYLE_NONE', 0); -/** Used to mark a context as being like a number in 1.0.X */ -define('GESHI_STYLE_NUMBERS', 1); -/** Used to mark a context as being like a comment in 1.0.X */ -define('GESHI_STYLE_COMMENTS', 2); -/** Used to mark a context as being like a string in 1.0.X */ -define('GESHI_STYLE_STRINGS', 3); -/** Used to mark a context as being like a symbol in 1.0.X */ -define('GESHI_STYLE_SYMBOLS', 4); -/** Used to mark a context as being like a method in 1.0.X */ -define('GESHI_STYLE_METHODS', 5); - -/**#@+ - * @access private - */ - -// Error related constants, not needed by users of GeSHi -/** No error has occured */ -define('GESHI_ERROR_NONE', 0); -/** There is no source code to highlight */ -define('GESHI_ERROR_NO_INPUT', 1); -/** You don't have a language file for the specified language */ -define('GESHI_ERROR_NO_SUCH_LANG', 2); -/** The language name contained illegal characters */ -define('GESHI_ERROR_LANG_NAME_ILLEGAL_CHARS', 4); -/** The path specified is not readable */ -//define('GESHI_ERROR_ILLEGAL_PATH', 5); -/** The theme specified does not exist */ -//define('GESHI_ERROR_NO_SUCH_THEME', 6); -/** Parsing is in strict mode, but the root context does not have a specific opener */ -//define('GESHI_ERROR_STRICT_MODE_NO_OPENER', 7); -/** getTime($type) was called with an invalid type */ -define('GESHI_ERROR_INVALID_TIME_TYPE', 8); -/** A file that was requested for loading data is not available */ -define('GESHI_ERROR_FILE_UNAVAILABLE', 9); - -// Constants for specifying who (out of the parent or child) highlights the delimiter -// between the parent and the child. Note that if you view the numbers as two bit binary, -// a 1 indicates where the child parses and a 0 indicates where the parent should parse. -// The default is GESHI_CHILD_PARSE_BOTH -/** The child should parse neither delimiter (parent parses both) */ -define('GESHI_CHILD_PARSE_NONE', 0); -/** The child should parse the right (end) delimiter, the parent should parse the left delimiter */ -define('GESHI_CHILD_PARSE_RIGHT', 1); -/** The child should parse the left (beginning) delimiter, the parent should parse the right delimiter */ -define('GESHI_CHILD_PARSE_LEFT', 2); -/** The child should parse both delimiters (default) */ -define('GESHI_CHILD_PARSE_BOTH', 3); - -// The name of integer/double number contexts -define('GESHI_NUM_INT', 'num/int'); -define('GESHI_NUM_DBL', 'num/dbl'); - -/** Default file extension */ -define('GESHI_DEFAULT_FILE_EXTENSION', '.php'); - -/**#@-*/ - - -/** - * The GeSHi class - * - * @package core - * @author Nigel McNie - * @version 1.1.0 - * @since 1.0.0 - */ -class GeSHi -{ - /**#@+ - * @access private - * @var string - */ - - /** - * The source code to parse - */ - var $_source; - - /** - * The name of the language to use when parsing the source - */ - var $language; - - /** - * The humanised version of the language name - */ - var $humanLanguageName; - - /** - * The error code of any error that has occured - */ - var $_error; - - /**#@-*/ - /**#@+ - * @access private - */ - - /** - * The root context to use for parsing the source - * - * @var GeSHiContext - */ - var $_rootContext; - - /** - * Whether this object should be prepared as if it will be used - * many times - * - * @var boolean - */ - var $_cacheRootContext; - - /** - * The cached root context, if caching of context trees is enabled - * - * @var GeSHiContext - */ - var $_cachedRootContext; - - /** - * The GeSHiStyler object used by this class and all contexts for - * assisting parsing. - * - * @var GeSHiStyler - */ - - /**#@-*/ - - /** - * Sets the source and language name of the source to parse - * - * Also sets up other defaults, such as the default encoding - * - * USAGE: - * - *
$geshi =& new GeSHi($source, $language);
-     * if (false !== ($msg = $geshi->error())) {
-     *     // Handle error here: error message in $msg
-     * }
-     * $code = $geshi->parseCode();
- * - * @param string The source code to highlight - * @param string The language to highlight the source with - * @param string The path to the GeSHi data files. This is no longer used! The path is detected - * automatically by GeSHi, this paramters is only included for backward compatibility. If - * you want to set the path to the GeSHi data directories yourself, you should define the - * GESHI_ROOT constant before including class.geshi.php. - * @since 1.0.0 - */ - function GeSHi ($source, $language_name, $path = '') - { - geshi_dbg('GeSHi::GeSHi (language='.$language_name.')', GESHI_DBG_API); - - // Initialise timing - $initial_times = array(0 => '0 0', 1 => '0 0'); - $this->_times = array( - 'pre' => $initial_times, - 'parse' => $initial_times, - 'post' => $initial_times - ); - - $this->_styler =& new GeSHiStyler; - - // @todo [blocking 1.1.5] Make third parameter an option array thing - - $this->setFileExtension(GESHI_DEFAULT_FILE_EXTENSION); - //$this->setOutputFormat(GESHI_OUTPUT_HTML); - //$this->setEncoding(GESHI_DEFAULT_ENCODING); - - // Set the initial source/language - $this->setSource($source); - $this->setLanguage($language_name); - } - - /** - * Returns an error message if there has been an error. Useful for debugging, - * but not recommended for use on a live site. - * - * The last error that occured is returned by this method - * @todo [blocking 1.1.9] Documentation: has this changed from 1.0.X? - * - * @return false|string A message if there is an error, else false - * @since 1.0.0 - */ - function error () - { - geshi_dbg('GeSHi::error()', GESHI_DBG_ERR | GESHI_DBG_API); - if ($this->_error) { - $msg = $this->_getErrorMessage(); - geshi_dbg(' ERR: ' . $this->_error . ': ' . $msg, GESHI_DBG_API | GESHI_DBG_ERR); - return sprintf('
GeSHi Error: %s (code %s)
', - $msg, - '#' . $this->_error . '' - ); - } - geshi_dbg(' No error', GESHI_DBG_ERR | GESHI_DBG_API); - return false; - } - - /** - * Sets the source code to highlight - * - * @param string The source code to highlight - * @since 1.0.0 - */ - function setSource ($source) - { - geshi_dbg('GeSHi::setSource(' . substr($source, 0, 15) . '...)', GESHI_DBG_API); - $this->_source = $source; - if (!$this->_sourceValid()) { - geshi_dbg('@e Source code is not valid!', GESHI_DBG_API | GESHI_DBG_ERR); - } - } - - /** - * Sets the source code to highlight. This method is deprecated, and will be - * removed in 1.4/2.0. - * - * @param string The source code to highlight - * @since 1.0.0 - * @deprecated In favour of {@link setSource()} - */ - function set_source ($source) - { - $this->setSource($source); - } - - /** - * Sets the language to use for highlighting - * - * @param string The language to use for highlighting - * @since 1.0.0 - */ - function setLanguage ($language_name) - { - $this->_times['pre'][0] = microtime(); - geshi_dbg('GeSHi::setLanguage('.$language_name.')', GESHI_DBG_API); - $this->_language = strtolower($language_name); - - // Make a legal language name - if (false === strpos($this->_language, '/')) { - $this->_language .= '/'.$this->_language; - geshi_dbg(' Language name converted to '.$this->_language, GESHI_DBG_API); - } - - if ($this->_languageNameValid()) { - // load language now - geshi_dbg('@o Language name fine, loading data', GESHI_DBG_API); - $this->_parsePreProcess(); - } else { - geshi_dbg('@e Language name not OK! (code '.$this->_error.')', GESHI_DBG_API | GESHI_DBG_ERR); - } - - $this->_times['pre'][1] = microtime(); - geshi_dbg(' Language data loaded in ' . number_format($this->getTime('pre'), 3) . ' seconds', GESHI_DBG_API); - } - - /** - * Sets the language to use for highlighting. This method is deprecated, and - * will be removed in 1.4/2.0. - * - * @param string The language to use for highlighting - * @since 1.0.0 - * @deprecated In favour of {@link setLanguage()} - */ - function set_language($language_name) - { - $this->setLanguage($language_name); - } - - /** - * Sets whether this object should cache the root context as loaded. Use - * this if you're going to use the same language in this object to parse - * multiple source codes. - * - * @param boolean true if caching of context data should be used - */ - function cacheRootContext ($flag = true) - { - geshi_dbg('GeSHi::cacheRootContext(' . $flag . ')', GESHI_DBG_API); - $this->_cacheRootContext = ($flag) ? true : false; - $this->_cachedRootContext = ($this->_cacheRootContext) ? $this->_rootContext : null; - geshi_dbg(' Set caching to ' . $flag . ', cached root context size = ' . count($this->_cachedRootContext), GESHI_DBG_API); - } - - /** - * Sets the file extension to use when getting external php files - * - * @param string The file extension for PHP files. Can be specified with or without the leading "." - */ - function setFileExtension ($extension) - { - $this->_styler->fileExtension = ('.' == substr($extension, 0, 1)) ? $extension : '.' . $extension; - geshi_dbg('GeSHi::setFileExtension(' . $this->_styler->fileExtension . ')', GESHI_DBG_API); - } - - /** - * Returns various timings related to this object. - * - * For example, how long it took to load a specific context, - * or parse the source code. - * - * You can pass a string to this method, it will return various timings based - * on what string you pass: - * - *