diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /extensions/SyntaxHighlight_GeSHi/geshi/docs | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'extensions/SyntaxHighlight_GeSHi/geshi/docs')
72 files changed, 17431 insertions, 0 deletions
diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/BUGS b/extensions/SyntaxHighlight_GeSHi/geshi/docs/BUGS new file mode 100644 index 00000000..8a5cf046 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/BUGS @@ -0,0 +1,29 @@ + + BUGS - list of known bugs in GeSHi + Version 1.0.8 + +- Number highlighting is quite poor [possibly better now] +- I'm not happy with URLS - there still could be extra bugs, and it's rather unflexible + (see TODO for a possible fix) +- "Important" sections for some reason seem to have their spans added after every + newline up until the next lexic, instead of stopping at the <END GeSHi> part. In fact, + context sensitiveness is quite poor... +- Using the extra line number highlighting feature without actually using line numbers + will result in malformed XHTML (not sure about this one though...) +- Slow!!! Especially for source with lots of strings in it. GeSHi will work acceptably + for sourcecode under 5K (for simple language files like SQL, a 100K file can be + highlighted in just 6 seconds), but above about 25K things get a little slow... If + you're using this as part of some larger software, you may want to think about + making some sort of "cache" effect to speed things up and reduce server load. +- The result is built by string replacement instead of by building another string based + on the source, that would be much safer. The focus of releases beyond 1.0.7 will be on + changing this behaviour, which may well fix some of the other bugs mentioned above. +- As of 1.0.7.1, dots (.) are allowed before keywords. This may change highlighting of some + things slightly, if you notice anything odd about the highlighting then please report + it to me. +- Perl/Javascript /.../ regex syntax is only supported basically and there's no + guarantee it is working all the time. +- The <pre> header output is not XHTML compliant. Please use the <div> header instead. + +Send any bug reports to BenBE@omorphia.de, or submit them via the bug tracker at +sourceforge (http://sourceforge.net/tracker/?group_id=114997&atid=670231) diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/CHANGES b/extensions/SyntaxHighlight_GeSHi/geshi/docs/CHANGES new file mode 100644 index 00000000..ee510fe0 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/CHANGES @@ -0,0 +1,923 @@ + + CHANGES - Changelog for GeSHi (geshi.php only) + +Changes to the code are listed under the version they occured in, with who suggested +it by each one (if there's nobody listed as suggesting it I dreamed it up :)). Users +who suggested an idea often also provided the code that was used as a basis for the +changes - thanks to all who suggested these ideas and gave me the code to show me how! + +Language files listed under each version were made by the author beside them, and then +modified by me for consistency/bug fixing. + +Please send any bug reports to BenBE@omorphia.de, or use the bug report tracker +at sourceforge (http://sourceforge.net/tracker/?group_id=114997&atid=670231) + +Version 1.0.8.11 + - Added language files + * ARM (Marat Dukhan) + * Asymptote (Manuel Yguel) + * DCL (Petr Hendl) + * DCPU-16 (Benny Baumann) + * FreeSWITCH (James Rose) + * Haxe (Andy Li, John Liao) + * LDIF (Bruno Harbulot) + * Nagios (Albéric de Pertat) + * Octave (Carnë Draug, Juan Pablo Carbajal) + * ParaSail (sttaft) + * PARI/GP (Charles R Greathouse IV) + * Python for S60 (Sohan Basak) + * Rexx (Jon Wolfers) + * SPARK (Phil Thornley) + * SPARQL (Karima Rafes) + * StoneScript (Archimmersion) + * UPC (Viraj Sinha) + * Urbi (Alexandre Morgand) + * Vedit (Pauli Lindgren) + - Updated aliasd.php contrib script (SF#3073275, count) + - Fallback to "text" when extension is unknown (SF#3514714, murkymark, BenBE) + - detect extensions case-insensitive (SF#3514714, murkymark, BenBE) + - Fixed two bugs within contrib scripts included with each release (BenBE) + - Improvements to language files (BenBE) + * Symbol and char literal handling for Scala (Paul Butcher, BenBE) + * Multiline comments of F# weren't actually multiline (BenBE) + * Support for IPv6 addresses in RFC822 messages (BenBE) + * Properly handle retrieving names from language files (MikeSee, BenBE) + * Changes for improved highlighting of signle line comments and end-of-code indicators + * Missing keywords and improved highlighting of comments + * Problem with DOS/Batch highlighting breaking out at variables (BenBE) + * Addition of MMX/SSE/x86-64 registers and MMX/SSE instructions for + ASM language file(up to 4.2) (Dennis Yurichev) + * Further improvements to ASM language file to introduce all latest + already documented x86 architecture instructions (Marat Dukhan) + * Fixed links for R/S+ language file (Fernando H.F.P. da Rosa) + * Fix a problem with Delphi/Pascal regarding hex numbers/chars (BenBE) + * Fixed a typo and missing keywords for HTML4 and HTML5 (SF#3365452, BenBE) + * Fixed a typo in Modula-3 language file (SF#3358216, BenBE) + * Added missing keywords for MySQL (SF#3290998, ct-bob, BenBE) + * Added missing keywords for Pascal (SF#3176749, BenBE) + * Properly detect the keyword that is to be linked (BenBE) + * Updated VHDL language file (Kevin Thibedeau) + * Added missing keyword for Verilog (SF#3557903, BenBE) + * Fixed typo in Haskell causing a keyword to be missing (SF#3529439, BenBE) + * Fixed Long String handling for Lua (SF#3541510, Tim Starling) + * Updated JavaDoc links for Java language files (SF#3538552, jeneag, BenBE) + * CSS keywords incorrectly highlighted as part of identifiers (SF#3554101, BenBE) + * CSS3 keywords missing from highlighting (SF#3525084, vlaKoff, BenBE) + * Make variable handling compatible to PHP (SF#3489142, BenBE) + * Fixed obsolete MySQL documentation links (SF#3441642, BenBE) + * Add mising keywords for T-SQL (SF#3435026, BenBE) + * Fix discarded text when highlighting TypoScript (SF#3160238, BenBE) +Version 1.0.8.10 + - Added language files + * BASCOM AVR (Michal Goralczyk) + * C: Loadrunner dialect (Stuart Moncrieff) + * CoffeeScript (Trevor Burnham) + * EPC (Thorsten Muehlfelder) + * Euphoria (Nicholas Koceja) + * Falcon (billykater) + * HTML5 (Robert Lidberg) + * LLVM (Azriel Fasten) + * PL/I (Robert Prins) + * ProFTPd (Benny Baumann) + * PyCon (Benny Baumann) + * UnrealScript (pospi) + * YAML (Josh Ventura) + - Small bugfix in LangCheck when looking for language files + - Added '-' to list of RX chars that require explicit escaping (SF#3056454, BenBE) + - Minor changes to boundary checks (SF#3077256, BenBE) + - Improvements to language files (BenBE) + * Major rework of the ALGOL68 language file (Neville Dempsey) + * LangCheck warnings from GO language file (BenBE) + * Some additions to the Objeck language file (Randy Hollines) + * Properly highlight infinity as numbers for J (Ric Sherlock) + * Improved GDB Backtrace language file (Milian Wolff) + * Updated Liberty BASIC language file (Chris Iverson) + * Fixed a small issue with detection of division vs. regular expressions + for ActionScript 3 and JavaScript (Kevin Day) + * Fixed Escape handling for CSS (SF#3080513, yecril71pl, BenBE) + * Additional comment styles for SAS (SF#3024708, ahnolds, BenBE) + * Updated keyword list for TeraTerm (Boris Maisuradze) + * Incorrect handling of /**/ comments in Javascript (BenBE) + * Support for mod_upload_progress in Apache Config files (BenBE) + * Prefix operator handling in F# was broken (BenBE) + * CDATA handling for html4strict (BenBE) + * Common subcommands for Apache, APT, CVS, Git, SVN and YUM for Bash (BenBE) + * Limited support for prompt detection in single line Bash snippets (BenBE) + * Added functions of the C standard library (BenBE) + * Rework of Lua to use GeSHi's features better (BenBE) + * Language file improvements for Python (Zbyszek Szmek) + * Fixed documentation links for Groovy (SF#3152356, lifeisfoo) + * Fixed incorrect highlighting of certain keywords in Erlang (SF#3138853, BenBE) + * Escape chars in C++/C++Qt handled incorrectly (SF#3122706, C. Pötsch) + * Empty parameters of LaTeX commands tipped the highlighting off (SF#3098329, James Oldfield, BenBE) + * Additional Keywords and minor tweaks to Logtalk (Paulo Moura) +Version 1.0.8.9 + - Added language files + * Algol68 (Neville Dempsey) + * E (Kevin Reid) + * FormulaOne (Juro Bystricky) + * Go (Markus Jarderot) + * Liberty BASIC (Chris Iverson) + * MOS 6502/6510 Assemblers (Warren Willmey) + * Motorola 68k assembler (Warren Willmey) + * Objeck Programming Language (Randy Hollines) + * ZXBasic (Jose Rodriguez) + - Added support for $-prefixed hex numbers and @-prefixed octal numbers + - Added Parser Control for languages to tell when numbers are present + inside of non-string parts + - Introduced querying supported/known languages directly + - Introduced querying full language names without loading the language file + - Improvements to language files (BenBE) + * Added loads of keywords for generic SQL highlighting (Jürgen Thomas) +Version 1.0.8.8 + - Added language files + * ChaiScript (Jason Turner & Jonathan Turner) + * Genie (Nicolas Joseph) + * GwBasic (José Gabriel Moya Yangüela) + * HicEst (Georg Petrich) + * Icon (Matt Oates) + * MagikSF (Sjoerd van Leent) + * Modula 2 (Benjamin Kowarsch) + * Oz (Wolfgang Meyer) + * PCRE (BenBE) + * PostgreSQL (Christophe Chauvet) + * q/kdb+ (Ian Roddis) + * RPM Specification Files (Paul Grinberg) + * Unicon (Matt Oates) + * Vala (Nicolas Joseph) + * XBasic (José Gabriel Moya Yangüela) + - Improvements to language files (BenBE) + * Major reworks and improvements to OCaml language file (BenBE) + * Removed duplicate entries from keyword groups of VIM language file (Segaja) + * Properly protect Regexps against GeSHi Black Magic in Matlab (BenBE) + * Added support for Block Comments in PowerShell (BenBE) + * Added some keywords for VB; split into multiple groups (leejkennedy, BenBE) + * Basic Heredoc Support for Ruby (BenBE) +Version 1.0.8.7 + - Added language files + * Autoconf (Mihai Vasilian) + * ECMAScript (Michel Mariani) + * J (Ric Sherlock) + * OpenBSD Packet Filter (David Berard) + * Oxygene / Delphi Prism (Carlo Kok) + - Minor change in INT_BASIC number regexp to support '..' range operator + as to be found in most Pascal-like languages (BenBE) + - Fixed an issue with Hardquotes for empty strings (like '' in Delphi) (BenBE) + - Introduced a fix for improved performance when matching numbers (BenBE) + - Improvements to language files (BenBE) + * Fixed broken links in Prolog language file (BenBE) + * Fixed keywords in generics expressions in Java5 (BenBE) + * Added support for import static in Java5 (BenBE) + * Added Standard Integer Types for C and c++ (BenBE) + * Fixed some regexp issues in Erlang (BenBE) + * Added some missing keywords for Clojure (BenBE) + * Added some missing keywords for Lisp (BenBE) + * Fixed a problem with variable names in Prolog (BenBE) + * Some color changes for AutoIt (BenBE) + * Added support for basic include directive processing for AutoIt (BenBE) + * Added support for ::-style labels as comments (SF#2947393, BenBE) + * Removed backslash as Escape Char in T-SQL (SF#2939199, Bruno Braga) + * Added Nested Comments Support for Haskell (SF#2922317, BenBE) + * Fixed Comments for VIM, added some keywords, proposed porting of + Regular Expression markup from Perl (SF#2818047, psycojoker, BenBE) + * Fixed warnings for Language Check of Tcl (BenBE) +Version 1.0.8.6 + - Added language files + * Clojure (Jess Johnson) + * Cuesheet (Benny Baumann) + * F# (Julien Ortin) + * GAMBAS (Jesus Guardon) + * Logtalk (Paulo Moura) + * MapBasic (Tomasz Berus) + * NewLisp (cormullion) + * Perl 6 (Kodi Arfer) + * Pike (Rick E.) + * SystemVerilog (Sean O'Boyle) + - Reworked parts of the number support (BenBE) + - Improvements to language files (BenBE) + * Fixed broken links in R/S+ language file (BenBE) + * Fixed an issue with if= argument for dd command (BenBE) + * T-SQL should use GESHI_CAPS_NO_CHANGE for keywords (BenBE) + * Fixed missed shorthand arg references in Bash (BenBE) + * Fixed first line not getting highlighted in diff language (BenBE) + * Added some keywords for csharp (RC) +Version 1.0.8.5 + - Added language files + * AutoHotkey (Naveen Garg) + * Awk (George Pollard) + * GADV 4CS (Jason Curl) + * jQuery (Rob Loach) + * PowerBuilder (Doug Porter) + * PureBasic (Gustavo Julio Fiorenza) + * R / S+ (Ron Fredericks, Benilton Carvalho) + - Fixed legitimate numbers sometimes missing from highlighting (BenBE) + - Fixed a problem with URLs allowing to break highlighting (BenBE) + - Allowed for String and Number Styles to be set by the API (BenBE) + - Produce valid CSS when languages start with underscore (BenBE) + - Duplicate newlines with PRE_TABLE-Header but w/o linenumbers (SF#2838958, BenBE) + - Improvements to language files (BenBE) + * Fixed case-insensitively duplicate keywords (BenBE) + * DCS language file contained HARDQUOTE section but no hardquotes (BenBE) + * Some additional headers for Email\mbox highlighting (BenBE) + * Added some more Keywords for robots.txt highlighting (BenBE) + * Added Git commands for bash, ifup/ifdown (BenBE) + * Added support for C# and VB.net delegates (SF#2832253, BenBE) + * Added support for line numbers, file handles and hex\octal numbers for QBasic (BenBE) +Version 1.0.8.4 + - Added language files + * BibTeX (Quinn Taylor) + * CMake (Daniel Nelson) + * Erlang (Benny Baumann, Dan Forest-Barbier, Uwe Dauernheim) + * FO (abas-ERP) (Tan-Vinh Nguyen) + * Property Files (Edy Hinzen) + * Whois (RPSL format) entries (Benny Baumann) + - Changed INT_BASIC number format to allow numbers followed . at EOL (BenBE) + - Higher prority for keywords over regexps (BenBE) + - Added missing set_script_style API function (BenBE) + - Fixed missing check for comment_regexp preference in HardQuotes (BenBE) + - Fixed a problem with Strict Block Detection if the Strict Block Regexp + requires matching groups for itself (BenBE) + - Improvements to language files (BenBE) + * Added PCRE regexp support for Action script (SF#2655644, BenBE) + * Removed some superfluous keywords from ABAP (BenBE) + * Removed duplicate keywords for Progress (BenBE) + * Removed duplicate keywords for T-SQL (BenBE) + * Linking for PowerShell special variables revised (BenBE) + * Fixed linking in ColdFusion (BenBE) + * Fixed linking in LaTeX (BenBE) + * Fixed linking in mIRC Scripting language (BenBE) + * Fixed escape char regexp for C-style languages (BenBE) + * Fixed @""-string handling for C# (SF#2789371, BenBE) + * Fixed Strict Block Detection for PHP blocks (BenBE) + * Changed allowed chars around Powershell operators (SF#2688863, BenBE) + * Minor reordering inside of PHP language file (BenBE) + * Added missing keywords for ActionScript3 language file (SF#2795005, BenBE) + * Added .xrc file extension for XML highlighting (BenBE) +Version 1.0.8.3 + - Added language files + * DCS (Stelio Passaris) + * Locomotive Basic (Nacho Cabanes) + * LSL2 (Linden Scripting Language) (William Fry) + * Modula-3 (Martin Bishop) + * Oberon-2 (Mike Mol) + * Rebol (Lecanu Guillaume) + - Fixed a problem where HardEscapes weren't working when no escape char was given (BenBE) + - Added a PARSER_CONTROL setting to treat whitespace inside of keywords in + the language file as "any whitespace" in the source (i.e. "CREATE TABLE" + in SQL will match "CREATE\s+TABLE" instead of literally matching) (BenBE) + - Added a possibility to allow setting the style for escape characters (BenBE) + - Improvements to language files (BenBE) + * Added some missing Perl keywords and obscure default variables (BenBE) + * Allow for escaped colons to appear in CSS names (BenBE, simon) + * Added multiline continuation suppoert of preprocessor defines for + C, C for Mac, C++ and CC++ with Qt support (BenBE) + * keywords for C-based languages are case-sensitive (BenBE) + * Broken AutoIt highlighting (BenBE) + * Problem with escaped backslash in PHP and D (BenBE) + * Added some more functions for PHP (BenBE) + * Some changes for AppleScript (Stefan Klieme) + * Forbid highlighting keywords followed by / in bash (BenBE) + * Updated the LaTeX file to link some keywords (BenBE) + * Additional text rendered when matching special variables for PowerShell (BenBE) + * Added some more keywords for ABAP (BenBE, Sandra Rossi, Jacob Laursen) +Version 1.0.8.2 + - Added language files + * Brainfuck \ Brainfork (Benny Baumann) + * HQ9+ (Benny Baumann) + * INTERCAL (Benny Baumann) + * LOLcode (Benny Baumann) + * LScript (Beau McGuigan) + * Pixel Bender (Richard Olsson) + * ProvideX (Jeff Wilder) + * VIM Script (Swaroop C H) + * Visual Prolog (Thomas Linder Puls) + * Whitespace (Benny Baumann) + - Changed priority for COMMENT_REGEXP compared to String highlighting (BenBE) + - Fixed correct escaping of spaces inside of URLs (BenBE) + - Updated the list of common file extensions (BenBE) + - Updated the language file check script in contrib/ (BenBE) + - Fixed a problem with link targets resulting in unclickable links (SF#2379120, BenBE) + - Fixed an undefined variable issue in langcheck.php (BenBE) + - Improvements to language files (BenBE) + * eMail Header highlighting now uses the correct delimiters for keywords (BenBE) + * eMail (RFC822\mbox) highlighting now highlights IPs, MIME types and + subfield assignments correctly (BenBE) + * Minor style changes in COBOL to improve loading performance (BenBE) + * Added some missing keywords for D (BenBE) + * Removed duplicate keywords from Progres, SAS and TSQL (BenBE) + * Fixed Heredoc Syntax for Bash (SF#2185319, BenBE) + * Moved symbol-lookalike sequences from keyword groups to separate symbol group + for languages asp, klonec, klonecpp, php, php-brief (BenBE) + * Fixed a lot of duplicate keyword warnings (BenBE) + * Added missing keywords to the Python language file, + introducing support for Python 3.0. (SF#2441839, milian) + * Updated documentation links for TypoScript (SF#2014276, BenBE) + * Fixed a problem with tag and attribute names in XML highlighting (SF#2276119, BenBE) + * Improved MySQL language file (BenBE, JavaWoman) + * Some commentss accidentially mistaken for DocComments (SF#2454897, BenBE) + * Added improved Escape Char handling for c, c_mac, cpp and cpp_qt (SF#2458743, BenBE) +Version 1.0.8.1 + - Added language files + * AviSynth (Ryan Jones) + * eMail \ mbox (Benny Baumann) + * GNU Make (Neil Bird) + * Oracle 11i support (Simon Redhead) + * Prolog (Benny Baumann) + * SciLab (Christophe David) + * TeraTerm macro language (Boris Maisuradze) + - Added support for Escape Regular Expressions (BenBE) + * Implemented C-style Escapes in PHP (BenBE) + * Introduced support for \xAB and \007 style Char Escapes in PHP (BenBE) + * Implemented Variable Highlighting in PHP (BenBE) + * Implemented Variable Highlighting in Bash (milian) + - Fixed a problem with PCRE patterns for Keyword matching sometimes producing + very large strings, that could not be handled by some versions of PCRE lib, + causing broken highlighting an Regexp Compile errors (BenBE, milian) + - Fixed broken highlighting of bash commands like `dbus-send --dest=org.....`, + i.e. the dest was highlighted as variable declaration (milian) + - Fixed broken highlighting of some symbols in their escaped form (BenBE) + (<SEMI> and <PIPE> were accidentially filtered even though they are valid) + - Fixed a "memory leak" in the *_regexp_caches (milian) + - Fixed broken Escape chars if classes were disabled + - start_line_numbers_at() was ignored when GESHI_HEADER_PRE_TABLE was set (revulo) + - Fixed a problem allowing Remote Code Inclusion under certain circumstances (BenBE) + - Changes to default CSS in order to make the GESHI_HEADER_PRE_TABLE align properly, + even on Windows / Mac systems with strange fonts (milian, revulo, ^RT) + - Minor style changes to the following languages: + * cpp-qt (milian) + * MySQL (BenBE) + * PHP (BenBE) + - Improvements to language files (BenBE, milian) + * Added MinSpareThread\MaxSpareThreads to Apache highlighter (BenBE) + * Added new Keyword group for APT sources.list highlighter (BenBE) + * Fixed highlighting in LaTeX for \begin{} and \end{}, i.e. the stuff inside + the curly braces. (milian, thanks for the report go to Matthias Pospiech) + * Improved String support for D (BenBE) + * MySQL was seriously broken (BenBE) + * Reworked Keyword groups for MySQL to allow for more configuration (BenBE) + * Improved Mirc script language file (milian) + * Improved C++ Qt language file (milian) + * Minor bug with Transpose Operator in Matlab (BenBE, Daniele de Rigo) + * Highlighting of Batch Files for Windows (BenBE) + * Updated AutoIt to include latest changes for AutoIt v3.2.12.1 (BenBE, Thierry) + * Fixed duplicate keyword warnings for Perl, Tcl and Typoscript (BenBE) + * Fixed Doc-URL getting reparsed by highlighted keywords of other groups (BenBE, Jordi Boggiano) +Version 1.0.8 + - Added language files + * APT sources.list (milian) + * Boo (Marcus Griep) + * CIL (Common Intermediate Language, .NET Assembly) (Marcus Griep) + * COBOL (Benny Baumann) + * Gnuplot (milian) + * KLoneC (Mickael Auger) + * KLoneC++ (Mickael Auger) + * PIC16xxx assembler (Phil Mattison) + * POV-Ray (Carl Fürstenberg) + * PowerShell (Frode Aarebrot) + * Progress (Marco Aurelio de Pasqual) + * TypoScript (Jan-Philipp Halle) + * Xorg configuration (milian) + - Make GeSHi's constructor arguments optional, so something like `$foo = new GeSHi;` is possible. (milian) + - Added an optimizer for lists to regular expressions. Using these cached lists results in a speedup of approx. 50%. + The slightly increased memory consumption (~150KB for PHP language file) is more than worth it! (milian) + - Some more memory & speed optimizations all over GeSHi (milian) + * Reduced memory overhead when highlighting keywords (BenBE) + * Keyword Linking now uses considerably less strtolower calls (milian) + * Cache Symbol Search Regexp and make Symbol Highlighting faster (milian) + * Use more native functions like substr_replace and strcasecmp to speed things up (milian) + * Use considerably less strlen() calls on various points by caching the results (milian) + * Properly set comments to be case insensitive where appropriate to increase performance (milian) + * Improve the performance of the strict mode tokenizer, making highlighting of languages like + HTML, ColdFusion or XML faster (milian) + * Setup caches for parsing on demand to make stylesheet generators fast (milian) + - Various improvements to Strict Block Handling (BenBE, milian) + * Added support for RegExp-based Strict Blocks (BenBE) + * Fixed highlighting incorrectly stopping at ?> in PHP (SF#1330968, BenBE) + * Languages with STRICT_MODE_APPLIES = GESHI_MAYBE default to strict mode now. When no highlightable + code is found in this mode, we fallback to the same setting as if GESHI_NEVER was set. That way it + should not be needed to call enable_strictmode() manually. (milian) + - Added new GESHI_HEADER_PRE_VALID type which uses the following markup: (milian) + * With line numbers: <div>header<ol><li><pre>...</pre></li>...</ol></div> + * Without line numbers: <pre>header...CODE...</pre> + => valid HTML and no need for indentation + - Added new GESHI_HEADER_PRE_TABLE type which can be used to prevent linenumber-selection in Firefox + on copy'n'paste. (milian) + - set_language will not reset any language settings by default anymore. + * Added $force_reset param for to force full reload of a language. (milian) + * Make sure strict_mode is set properly when doing repeated set_language calls (milian) + - Fixed some problems with old PHP versions (SF#1975625, milian, BenBE) + - Fixed broken use with Suhosin Patch when /e modifier was disabled (SF#2021800, BenBE) + - Added support for external style information files to override language defaults without modifying language files (BenBE) + - The overall_class is now up to the user, and the language-code is _always_ added as a class (milian) + - Fixed Economy Mode for GeSHi::get_stylesheet() - now it just makes so much more sense! (milian) + - Fixed Economy Mode when COMMENT_REGEXP are used (BenBE) + - Changed the default encoding to use UTF-8, due to SF#2037598, BenBE) + - Improved overall string support: + * Added support for multichar string delimiters (SF#1932083, BenBE) + * Fixed problems of unfinished strings and comments producing invalid XHTML (SF#1996353, BenBE) + * Multichar Quotemarks sometimes had inconsistent behaviour (BenBE) + * Support for multiple styles of strings depending on the starter (BenBE) + * Properly handle escapes in strings, i.e. '\\' was not working properly before (milian) + * Fixed escape char support when an escape char is followed by multi-byte chars (SF#2037598, BenBE) + - Improved flexibility in language files (BenBE, milian) + * Added PARSER_CONTROL for OOLANG method highlighting (SF#1923060, BenBE) + * Added possibility to define strict blocks using an Regexp (BenBE) + * Removed explicit escaping of / in Regular Expressions (BenBE) + * Ignoring empty keyword groups when highlighting (milian) + * Make language_permissions configurable in language files via ['PARSER_CONTROL']['ENABLE_FLAGS'] + this makes is_a calls unneeded and thus prevents PHP notices in PHP 5.x (milian) + * Extended support for number formats now covering the most common formats (SF#1923058, BenBE) + * Lifted a limitation that keywords had to have at least 2 subsequent letters (BenBE) + * Changed behaviour of PARSER_CONTROL now allowing to provide the full Lookahead and Lookbehind + expressions used as delimiters inside keywords instead of a simple char group (BenBE) + * Fixed improper handling of newlines in REGEXPS so this does not produce invalid html anylonger (milian) + - Some typos and mistakes in the documentation (BenBE) + - Added a script to contrib/ to verify language files are correct (BenBE) + - Fixed loads of compliancy warnings detected with that automated compliance testing script (BenBE) + - Many other improvements to various language files (BenBE, milian) + * Reduce strict errors & notices for language files (milian) + * Fixed symbol highlighting with C++ sometimes missing keywords after ; and comments (BenBE) + * Improved comment handling with TCL (Lars Hellström, BenBE) + * Fixed broken handling with XML comments (BenBE, SF#1849233) + * Fixed HTML comments spawning multiple lines producing invalid XHTML output (SF#1738173, BenBE) + * Added support for parameters beginning with dash in BASH language (BenBE) + * Support Apache's configuration sections, see http://httpd.apache.org/docs/2.2/sections.html (milian) + * Minor issue with PHP Heredoc and Nowdoc syntax sometimes not getting highlighted (BenBE) + * Updated Objective-C language file (SF#2013961, Quinn Taylor, BenBE) + * Added some keywords for VHDL (beshig, BenBE) + * Fixed severly broken ColdFusion language file (milian) + * Fixed some incorrectly highlighted things with the CSS language file (milian, BenBE) + * Improved Smarty language file (milian) + * Improved CSS language file (milian) + * Improved Pascal language file (milian) + * Improved LaTeX language file (Андрей Парамонов, BenBE) + * Fixed a regular expression in mIRC language file that caused a warning message to be issued (BenBE) + * Removed <, > and / from HTML names, now only containing the real tag names (BenBE) + * Use spaces instead of tabs for indendation in language files to have a consistent + coding standard accross geshi files (milian) + * Added some comment styles, keywords and added index highlighting (Chusslove Illich, Часлав Илић) + - Removed some private methods which were only called at exactly one place (milian) + * format_header_content + * format_footer_content + * get_attributes + - Second part of default style changes. Affected in this release: + * C++ + * C++ (Qt) + * CSS + * VHDL +Version 1.0.7.22 + - Added language files + * glSlang (BenBE) + * KiXtart (Riley McArdle) + * Lotus Notes @Formulas (Richard Civil) + * LotusScript (Richard Civil) + * MXML (David Spurr) + * Scala (Franco Lombardo) + * ActionScript 3 (Jordi Boggiano) + * GNU Gettext .po/.pot (Milian Wolff) + * Verilog (Günter Dannoritzer) + - Fixed a problem not yet addressed in 1.0.7.21 regarding highlighting of + symbols that caused some extra characters to be added in the output or + broke highlighting and standard compliance due to missing escaping of + internally used characters (SF#192320 and SF#1926259, BenBE) + - Fixed missing style information for ocaml language file (The_PHP_Jedi) + - Fixed a bug causing masses of warnings in rendered output if language file + miss style information (The_PHP_Jedi, BenBE) + - Missing tab width information could lead to warnings (BenBE) + - Missing symbol information for ASP (SF#1952038, nfsupport, BenBE) + - Empty delimiter message with OOoBasic (BenBE, Ccornell) + - Escaping of comments in LaTeX ignored (SF#1749806, BenBE) + - Modified Math environment $$ in LaTeX to be non-greedy (BenBE) + - Added possibility to match a regexp as comment (SF#1914640, SF#1945301, SF#1934832, BenBE) + - Introduced C-Style multiline continuation comments (SF#1914640, SF#1945301, BenBE) + - Introduced Fortran Comments (SF#1914640, SF#1934832, BenBE) + - Implemented Heredoc and Nowdoc Syntax for PHP and Perl (SF#1914640, BenBE) + - Implemented Compiler Directives for Delphi (SF#1914640, BenBE) + - Implemented minimalistic support for JavaScript \ Perl Regular Expressions (SF#1786665, SF#1754333, SF#1956631, BenBE) + - Fixed Strings in Matlab to be handled as comments instead of regexps, to prevent keywords being linked (BenBE) + - Applied PARSER_CONTROL fix of C++ for C++-Qt-Derivative (BenBE) + - Fixed incorrect treatment of unequally long multiline comment separators (related to SF #1891630, BenBE) + - Added PARSER_CONTROL settings for keywords in ASM language file (SF#1835148, BenBE) + - Fixed missing CASSE_SENSITIVE entry for DOS language file (SF#1956314, BenBE) + - Fixed accidential highlighting of keywords in argument names (SF#1956456, Milian Wolff, BenBE) + - Fixed yet again some #-related bash problem (SF#1956459, Milian Wolff, BenBE) + - Added backticks as symbols (Milian Wolff) + - Example script remembers selections and source submitted (Milian Wolff) + - Example script allows remembered source and preselected language to be cleared (Milian Wolff) + - Example script now properly includes geshi and doesn't suppress error messages anylonger. (Milian Wolff) + - Code cleanup by using direct string indexing instead of substr with length 1 (Milian Wolff) + - Optimized generation of code parts in strict mode (Milian Wolff) + - Optimized COMMENT_REGEXP by using an incremental regexp cache (Milian Wolff, BenBE) + - Fixed a problem that rarely skipped highlighting of escaped chars which usually should have gotten highlighted (BenBE) + - Optimized generation of highlighted strings to use fast skip forward while highlighting them (Milian Wolff, BenBE) + - Optimization using basic rework of indent function improving tab expansion performance (BenBE) + - Lots of other minor optimizations based on coding style improvements (Milian Wolff) + - Implemented setting to force spans to be closed before newlines, see SF#1727398 (Milian Wolff) + - Added missing credits for D language file to THANKS file (SF#1720899, BenBE) + - Optimization to prevent loading the current language file twice (Milian Wolff) + - Optimization: Use file_get_contents() to load sourcecode from files. + Even if GeSHi worked with PHP 4.1 before, it doesn't now. (Milian Wolff) + - Added description of extra language features (SF#1970248, BenBE) + - Added support for highlighting the C# using and namespace directives (SF #1395677, BenBE) + - Added support for highlighting the Java import and package directives (SF #1395677, BenBE) + - Fixed minor problem in Haskell cuasing accidential start of comment (SF#1987221, BenBE) + - Fixed minor issue causing loads of warnings if a language files defines no symbols (BenBE) + - Updated some aspects of the documentation and included further hints (BenBE) + - First of series of color scheme changes. Affected languages (sofar): + * Assembler (x86) + * Bash + * C + * C# + * Delphi + * Fortran77 + * glSlang + * Java & Java 5 + * JavaScript + * OCaml + * OpenOffice.org Basic + * Pascal + * Perl + * PHP and PHP-Brief +Version 1.0.7.21 + - Added language files + * Basic4GL (Matthew Webb) + - Fixed problem with mIRC language highlighting spaces only (BenBE) + - Language files can now specify a function to be called to decide the + colour of a regular expression match + - Added single quote to Lua (Darrin Roenfanz) + - Compare comments case insensitively (fixes AutoIT comments somewhat) + (Daniel Gordon) + - Fixed symbols not being highlighted at all (SF #1767953, BenBE) + - Fixed brackets not correctly managed (SF #1767954, BenBE) + - Changed default languages for some extensions + - Included color and character information for symbol highlighting in some languages (BenBE) + - Fixed a problem with extension detection if default was used (BenBE) + - Fixed a highlighting problem with the LaTeX language (SF #1776182, BenBE) + - Added a new parameter for enable_highlighting to reduce source duplication (SF #1786104, BenBE) + - Updated doxygen documentation to include since tags and some missing parameters + - Disabled symbol highlighting by default (doesn't affect brackets, cf. documentation) (BenBE) + - Added a check for set_case_keywords for the given param to be supported (BenBE) + - Minor rework of the HTML documentation layout \ W3C compliance (BenBE) + - Fixed highlighting error in bash language avoiding keywords in comments (SF #1786314, SF #1564839, BenBE) + - Fixed template params for C++ and C# not being highlighted (SF #1772919, BenBE) + - Fixed more reported problems about mirc highlighting + - Added some missing keywords for VB.NET + - Fixed some warnings in DOS language file (Florian Angehrn) + - Add possibility to handle more than one extra line style (SF #1698255, German Rumm, BenBE) + - Fixed handling of URLs when output case differs from URL case (SF #1815504, Tom Samstag, BenBE) + - Fixed POD (Plain Old Documentation) format problems breaking highlighting of Perl (SF #1891630, Shannon Wynter, BenBE) + - Fixed a problem with mIRC when & was used for identifiers (SF #1875552, BenBE) +Version 1.0.7.20 + - Added language files + * Genero (logic) and Per (forms) (FOURJ's Genero 4GL) (Lars Gersmann) + * Haskell (Dagit) + * ABAP (Andres Picazo) + * Motorola 68k Assembler (for MC68HC908GP32 Microcontroller) (BenBE) + * Dot (Adrien Friggeri) + - Fixed java documentation search for keywords to actually go to the + documentation (spaze) + - Applied fix for bug 1688864 (bad regexes) (Tim Starling) + - Fixed comment CSS rule in visualfoxpro + - ThinBASIC language update (Eros Olmi) + - mIRC language update (BenBE) + - Fixed outdated documentation URL of Perl language file (RuralMoon by BenBE) + - Fixed tab replacement code not generating the correct number of spaces in + some cases (Guillermo Calvo) + - Fixed two typos in Z80 language file + - Applied fix for bug 1730168 (Daniel Naber) + - Applied fix for bug 1705482 (Jason Frame) + * Configurable line endings (Replace \n by custom string) + * per-language tab-widths (Adjustable for width>=1) + * Included defaults for ASM (x86, m68k, z80), C, C (Mac), C++, C++ (Qt), C#, + Delphi, CSS,, HTML, PHP, PHP (Brief), QBasic, Ruby, XML + - Added a possibility to force generation of a surrounding tag around + the highlighted source + - Applied fix for additional keywords for the bash language + (cf. http://bash.thefreebizhost.com/bash_geshi.php, BenBE / Jan G) + - Fix bad colour definition in GML language (Andreas Gohr) + - Fixed phpdoc comments not being indented one space if they should be (Andy + Hassall) +Version 1.0.7.19 + - Added language files + * X++ (Simon Butcher) + * Rails (Moises Deniz) + - Fixed invalid HTML being generated and doctypes not being highlighted over + multiple lines properly when line numbers are on (Validome) + - Improved the ruby syntax highlighting by basing it off the Rails file + - Changed some regular expressions to possibly help with badly performing + regex support in PHP (Tim Starling) + - Allow {TIME}, {LANGUAGE} and {VERSION} to be used in the header as well as + the normal <TIME>/<LANGUAGE>/<VERSION> (AthanD) + - Changed comment regex in bash to prevent malformed XHTML (rv1971) +Version 1.0.7.18 + - Added language files + * ZiLOG Z80 Assembly (BenBE) + - Fixed incorrect highlighting when the starter of a multiline comment is + longer than the ender (Robert Anthony). + - Fixed "</span" generated if a multiline comment is the last thing in the + source (related to the above). + - Added #cs => #ce comment markers to AutoIT (Robert Anthony) + - Fixed spelling mistake for keyword in Python (wd3) + - Added a method to enable/disable keyword linking (Ian McKellar) + - Improved empty line detection for HTML output (BenBE) + - Changed code style of geshi.php, and removed tabs +Version 1.0.7.17 + - Fixed up ends of files having too many newlines (binarygroop) + - Removed background colour on keyword group in eiffel (Julian Tschannen) + - Removed GESHI_DIR_SEPARATOR constant usage, it's unnecessary (Aleksey Zapparov) + - Added /* ... */ comments to coldfusion (Jeff Howden) +Version 1.0.7.16 + - Added language files + * ActionScript (Steffen Krause) + * C++/Qt (Iulian M) + * PL/SQL (Victor Engmark) + - Fixed up my e-mail address everywhere + - Fixed notice with "error" property (IZIU Zielona Góra) + - Added some entries to the get_language_name_from_extension table + (Stebastian Schuberth) +Version 1.0.7.15 + - Added language files + * BNF (Rowan Rodrik van der Molen) + * IO (me, thanks to Johnathan Wright) + * mIRC (Alberto de Areba Sánchez) + - Fixed use of colon in XML (Grigory Rubtsov) + - Fixed notices in text.php, reg.php and latex.php when $this is not + available (Clemens Weiß) + - Made third parameter of geshi_highlight optional (Gaetano Giunta) + - Fix incorrect highlighting of the $# variable in bash (Michael Knight) + - Fixed single line comment mistake in thinbasic.php (Eros Olmi) +Version 1.0.7.14 + - Added language files + * thinBasic (Eros Olmi) + * LaTeX (Matthais Pospiech) + - Removed extra newlines at the end of some files + - Fixed SF bug 1556404 - check before using $this in language files + (Clemens Weiß) +Version 1.0.7.13 + - Added language files + * Uno IDL (Cedric Bosdonnat) + - Fixed add_ids causing odd XHTML (RyanJ) + - Fixed extra newline being added to end of result (Andreas Gohr) +Version 1.0.7.12 + - Fixed lines being collapsed when they contain just a space (artlover) + - Allowed matching for regexes using start/end matchers at the start/end + of the code (Sheri) + - Added (dubious) fix for google "I'm feeling lucky" search for java keywords + (dubious in that it doesn't work for me) + - mysql - Made the symbols into their own keyword group as the symbol group + isn't used. Added a style for multiline comments. + - Added a couple of php5 keywords to the php language files. + - Allow XML tags to have dashes. + - Changed LANG_NAME for many languages to be more sensible/correct case + (Matthias Mohr) + - Added case-sensitivity indices to python +Version 1.0.7.11 + - Added language files + * Smalltalk (Bananeweizen) + - Minor style improvements to matlab + - Moved a couple of functions to the correct group in smarty (arwan) +Version 1.0.7.10 + - Added language files + * TCL (Reid van Melle) + * Winbatch (Craig Storey) + * Groovy (Ivan F. Villanueva B.) + * Text (SmokingRope) + * Reg (SmokingRope) + - Removed \ as an escape character in T-SQL (Dave Jackson) + - Reset extra lines to highlight if source is changed (Diogo Resende) + - Allow setting of lexic permissions in language files (SmokingRope) + - Allow regexes to set a CSS class name (SmokingRope) + - Added URL support to DOS language (mastrboy) +Version 1.0.7.9 + - Added language files + * Fortran (Cedric Arrabie) + * SAS (Galen Johnson) + * CFDG (John Horigan) + - Fixed & in URL in java5 (Clemens Weiß) + - Added MD5 and SHA1 to mysql keywords (polarina) + - Fixes for highlight_lines_extra with line numbers (ithcy) + - Fixed backslash characters being removed (ArTourter) +Version 1.0.7.8 + - Fixed blank at start of MySQL file (W. Tasin) + - Fixed smarty functions being broken (ultrabob) + - Changed keyword and regexp detection and parsing + slightly to allow more "meta characters" (like #) in + keywords + - Minor fixes for XML and GML +Version 1.0.7.7 + - Added language files + * T-SQL (Duncan Lock) + * Robots.txt (Christian Lescuyer) + * AutoIT (mastrboy) + * Java 5 (Clemens Bruckmann) + * ColdFusion (Diego) + - A few keyword changes in java, removed :: object splitter (amphi) + - Now using a simpler regular expression for numbers (Brice Bernard) + - Fixed ah, bh etc. regs being highlighted as numbers (Unknown) +Version 1.0.7.6 + - Fix backtick-string highlighting in ruby (Juan J. Martínez) + - Add =begin multiline comments in ruby (Juan J. Martínez) + - Added support for :keywords and ::access in lisp (Denis Mashkevich) + - Prevented number highlighting if they are just after underscores (Joce) + - Removed escape characters for strings in XML and HTML (floele) + - Added instanceof keyword to java (jgottschling) + - Fixed comments in ASP (SBD) + - Removed unnecessary keyword style index from ini + - Added support for " strings in ini + - Removed unnecessary regex style index from blitzbasic + - Keyword case of URL-ed keywords should be defined by language file (Benny Baumann) + - Added "Hardquote" feature, provides more accurate string highlighting (Cliff Stanford) + - Used hardquote support for @"..." strings in C# (Cliff Stanford) + - Used hardquote support for ' strings in perl (Cliff Stanford) + - Fixed setting of language path (Cliff Stanford) + - Display source correctly formatted with line numbers (if requested) if an error + has occured (several people) + - Having no source to highlight is not an error condition anymore + - Delphi language updated to include more keywords and types (BenBE) + - Updated NSIS to version 2.11 (deguix) +Version 1.0.7.5 + - Fix for using escape characters to escape newlines breaking XHTML compliance (Yves Goergen) + - Fixed method highlighting in VB (Matt Beale) + - Fixed multiline comment highlighting in SQL (MrBaseball34) + - Fixed two ">" symbols being outputted when using a footer but not CSS classes (MrBaseball34) + - Marked important block stuff as deprecated + - Some documentation tidyup + - Updated GML language file (Jos? Jorge Enr?quez Rodr?guez) + - THANKS file tidied up + - Fixed double </a> for elements in HTML (Yves Goergen) + - Added some keywords for ASM (Dreuzzo) +Version 1.0.7.4 + - Added language files + * MySQL (Carl Fürstenberg) + * BlitzBasic (Pàdraig O`Connel) + - Fixed up geshi_highlight function: it now correctly uses <code> instead of <div> (Remi Faure) + - When using GESHI_HEADER_NONE, remove the <ol> if line numbering is not enabled + - Commented example.php so people can use it as a guide better + - Fixed extra newline being generated if a comment is at the end + of the source (many people, including Yves Goergen) + - Fixed up some documentation issues + - Some minor language file fixes (C++, Lua) (Lua fixes by chromix) + - Fixed up no </span> in XML and other strict languages (regression from 1.0.7.3 fix: removed + unnecessary </span> when using strict mode) (Daniel Ecer, drskrud), +Version 1.0.7.3 + - Added language files + * Scheme (Jon Raphaelson) + * Ocaml and Ocaml-brief (Flaie) + * Ruby (Amit Gupta) + - Make urls generated for java highlighting XHTML compliant (Tim Van Wassenhove) + - Removed unnecessary </span> when using strict mode (Tim Van Wassenhove) + - Fixed warning in dos.php about undefined constant (Tim Van Wassenhove) + - Fixed security hole in contrib/example.php - able to view any file if source + not set and language is set to wierd value (Maksymilian Arciemowicz) +Version 1.0.7.2 + - Added language files + * Inno (Thomas Klinger) + * Ini (Deguix) + * DOS (Batchfile) (Alessandro Staltali) + * Applescript (Stephan Klimek) + * Freebasic (Roberto Rossi) + * SDLBasic (Roberto Rossi) + * ActionScript (links to French documentation) (NikO) + - NSIS language file updated (deguix) + - Lua language file updated (Roberto Rossi) + - Bugfix: Styles incorrectly overriding default styles instead of being merged + in set_*_styles methods (Stebastian Werner) + - Added GESHI_HEADER_NONE as valid header type. This still allows header content. +Version 1.0.7.1 + - Added language files: + * Div (Gabriel Lorenzo) + * GML (José Jorge Enríquez Rodríguez) + * Eiffel (Zoran Simic) + - Minor change to rules regarding when keywords can appear - now dots (.) are + allowed before keywords. (NikO) + - Bugfix: the line style for non-fancy lines when fancy highlighting is enabled + is now applied (Amit Gupta) +Version 1.0.7 + - Added language files: + * Diff (Conny Brunnkvist) + * VHDL (Alexander Krause) + * D (Thomas Kuehne) + * Matlab (Florian Knorn) + - Python highlighting improved (thither, Federico Quagliata) + - Changed file comments to use phpdoc syntax, and changed code style to be more + like PEAR + - Fixed bug in set_code_style: Second parameter is now optional + - The $_GESHI_ERRORS array is gone, error messages are internal to the GeSHi class + - Changed name of XML language to XML from HTML + - Removed min and max tab width checks + - Backported GeSHi 1.1.X's automatic language file path detection so you no longer + need to use the third parameter of the constructor or set_language_path except for + special circumstances. + - Source is checked to make sure it is not empty else an error occurs + - Removed excess characters after ?> in ada.php, apache.php and cpp.php that caused + http headers to be sent (psichron) + - Removed second "foreach" keyword for smarty language file that was causing + duplication (Iss) + - Added underscore to allowed characters in match for XML tags (anonymous) + - Added some missing java keywords like "abstract" and "transient" + - Added "list" and "continue" PHP keywords + - set_language resets error status and strict mode (Andrew Black) + - Removed margin:0 declaration from cssgen.php (Andrzej Kubaszek) + - Fixed multiline comment selector in cssgen.php (Andrzej Kubaszek) +Version 1.0.6 + - Added support for smart tabs - tabs that behave just like normal tabs when in + GESHI_HEADER_DIV mode. + - Partial patch for UTF-8 encoding applied (doesn't quite work however...) +Version 1.0.5 + - Added language files: + * MPASM (Bakalex) + * Oracle 8 (Guy Wicks) + - Fixed bug where not using an encoding type would sometime result in warnings (although + there still seems to be issues with encoding in general that I'm trying to gather more + data on) (Alexander Spennemann) + - Removed "margin: 0" from <ol> in an attempt to make line numbers visible in IE again + by default (untested, but I don't really care if it works... get firefox! ;)) + - Added note on php5 support (Karim Scheik) + - Added two new methods: load_from_file and get_language_name_from_extension, that can + help automate file highlighting (though the extension array at this time is quite bare) + (David Gartner, Brian Cheesman) +Version 1.0.4 + - Fixed many version-reporting bugs (Jack Lloyd) + - Fixed bug where methods were not having the correct CSS generated for them + by get_stylesheet() (Jack Lloyd) + - Added new keywords to C and C++ files (Jack Lloyd) + - Added section on case sensitivity to documentation that wasn't in the other versions +Version 1.0.3 + - Added language files: + * Smarty (Alan Juden) + * C# (Alan Juden) + * VB.NET (Alan Juden) + * C for Macs (M. Uli Kusterer) + * Objective C (M. Uli Kusterer) + - Links can have a target attribute (Andreas Gohr) + - Fixed multiline string bug if not using classes + - Added method set_encoding that allows you to set the character + set used by calls to htmlentities() in GeSHi + - You can now specify an array of object splitters, and each + type of method separated by each object splitter can be highlighted + differently + - If a language uses a case sensitive keyword group and that group + has a URL associated with it, the keyword will not be lowercased + in the URL (M. Uli Kusterer) +Version 1.0.2 + - Added language files: + * Actionscript (Steffen Krause) + * ASP (Amit Gupta) + * Bash (Andreas Gohr) + * CADDCL (Roberto Rossi) + * CadLisp (Roberto Rossi) + * C++ (Dennis Bayer) + * Delphi (Járja Norbert) + * Javascript (Ben Keen) + * Lisp (Roberto Rossi) + * OpenOffice.org BASIC (Roberto Rossi) + * Perl (Andreas Gohr and Ben Keen) + * Python (Roberto Rossi) + * VisualFoxPro (Roberto Armellin) + * XML (Nigel McNie, from an idea/file by Christian Weiske) + - Added contrib/ directory with script to create one external stylesheet + from many languages(base script by Andreas Gohr, modified by Nigel McNie), + and an example script (needs lotsa work...) + - Code lines can have their own unique ID (for use with javascript) + (suggested by Andreas von Oettingen) + - Certain rows can be specified to be highlighted differently (suggested by + Andreas von Oettingen) + - Getter available for human-readable language name (suggested by Simon Patterson) + - Line numbers aren't highlighted when a user selects the code + - Contextual highlighting with <BEGIN GeSHi> ... <END GeSHi> in the code (which + can be disabled) + - Functions can be made into URLs to appropriate documentation (suggested + by cybot_tm). Also thanks to Marcin Gryszkalis for the links for C, Java + and Perl. + - Code can have a header and footer + - Time taken to parse the code is recorded and made available with the get_time() + method + - error() now returns a human-readable error message + - Function geshi_highlight added to make it even easier to highlight on the fly + - Advanced regular expression handling + - Bug fixes to lexic_permission handling +Version 1.0.1 + - Added methods set_symbols_style() and set_symbols_highlighting(). These should be used + instead of set_brackets_style and set_brackets_highlighting respectively. + - Added a new field - language_path - that can be set either when the constructor is + called, or by the new method set_language_path(), that specifies a path to the directory + containing the language files (bug reported by bbspliff) + - Added a new method set_case_keywords(), that allows the auto-casing feature to be + changed on the fly instead of simply being specified in the language file + - If there is an error the source that is outputted is now handled much better + - Lines are broken in the source only by \n now, not by \r\n (to save on output source) + - Indentation moved into its own method + - Method header() modified to allow the user to choose whether the code is surrounded in + a <div> or a <pre> (see documentation for benefits of both). Method footer() likewise + modified. + - Method get_stylesheet() modified so that a smaller comment is outputted in economy mode, + and bugs with when line number classes are outputted in economy mode have been fixed + - Bug where spans had two quotes at the end of the attributes fixed (ie. <span style=".."">) + - Added language files: + * Ada (Tux) + * Apache log file (Tux) + * ASM (Tux) + * NSIS (Tux) + * Pascal (Tux) +Version 1.0.0 + - Initial Release
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/COPYING b/extensions/SyntaxHighlight_GeSHi/geshi/docs/COPYING new file mode 100644 index 00000000..5b6e7c66 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/README b/extensions/SyntaxHighlight_GeSHi/geshi/docs/README new file mode 100644 index 00000000..34191bd5 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/README @@ -0,0 +1,33 @@ + + GeSHi - GEneric Syntax HIghlighter + ---------------------------------- + Version 1.0.8 + +Author: Benny Baumann, Nigel McNie +Email: BenBE@geshi.org, nigel@geshi.org +GeSHi Website: http://qbnz.com/highlighter + +GeSHi is a generic syntax highlighter, written in PHP. You simply +input the source code you wish to highlight with the language you +wish to use, and the output will be a file syntax highlighted to +XHTML standards. + +For more information on how to use GeSHi, please consult the +documentation. If you got this readme from a GeSHi package, then +the documentation is available in the docs/ directory. Documentation +is also available at http://qbnz.com/highlighter/documentation.php + +If you think you've found a bug in GeSHi, contact me with a bug +report at BenBE@omorphia.de, or submit it to the bug tracker at +http://sourceforge.net/tracker/?group_id=114997&atid=670231. Be +aware that minor highlighting errors may well just be incorrect +language files, but if you do find something major please contact me. + +And if you're using GeSHi as a plugin/mod for some other software, +please tell me about it! It's worth a link to you, and I can give +you specialist help if you need it. + +GeSHi is free software, released under the GNU GPL. Please see the +COPYING file for more information. If you do modify this program, +please tell me about it! Perhaps you've made a good improvement that +I can learn from :)
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/THANKS b/extensions/SyntaxHighlight_GeSHi/geshi/docs/THANKS new file mode 100644 index 00000000..be3325e9 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/THANKS @@ -0,0 +1,249 @@ + + THANKS - List of credits for GeSHi + +I owe these people/groups my thanks for help with GeSHi. Thanks, guys! + +- Amit Gupta - Thanks for all that constructive criticism - it's + a great help for making GeSHi even better. And + thanks for the Wordpress plugin! (Anyone who is + interested in the plugin can visit: + http://blog.igeek.info/still-fresh/category/wp-plugins/igsyntax-hiliter/) +- Andreas Gohr - Thanks for language files and for using GeSHi for DokuWiki + (http://www.splitbrain.org/dokuwiki/wiki:dokuwiki). And thanks + for all your criticisms and for that stylesheet-maker code :). + Also, thanks for the UTF-8 patch. +- Andreas von Oettingen - Thanks for those great ideas! :) +- bbspliff - Thanks for pointing out that bug (pity I already + found it though ;)) +- Benny Baumann - Thanks for your innumerable suggestions for improvements, and your + work on Delphi support :) +- Ben Keen - Thanks for the language files and pointing out some + ideas for future releases. Lookin' forward to seeing that + software soon! ;) +- Brian Cheesman - Thanks for using GeSHi in phpCvsView, and for the suggestion about + extension => language lookup +- Christian Weiske - Thanks for the inspiration for creating advanced regexp + highlighting :D +- Cliff Stanford - Thanks for the hardquote support for C# and Perl (can be used elsewhere + I'm sure) +- David Gartner - Thanks for using GeSHi in net2ftp, and for the idea about a load_from_file + method +- forum.qbasicnews.com - Thanks for putting up with the crappy versions + that I "forced" on you guys before ;) +- Gizmore - Providing some patch to query supported languages +- Jack Lloyd - Thanks for pointing out the versioning and method CSS bugs, and giving + me the extra C/C++ keywords +- Karim Scheik - Thanks for the php5 support report +- Marcin Gryszkalis - Thanks for those links for C, Java, Perl +- M. Uli Kusterer - Thanks for the idea about URL case conversion +- Milian Wolff - Thanks for the loads of optimizations + - Thanks for helping with implementation of various features +- Roberto Armellin - Thanks for pointing out some flaws in GeSHi (that will be solved + in 1.2 guaranteed) +- Sterling Christensen - Thanks for those links to language specs +- Tux - Thanks for making all those language files :D +- zbw - Thanks for proving a phpBB port was possible + +PEOPE WHO MADE LANGUAGE FILES + +- ABAP Andres Picazo +- Actionscript Steffen Krause (french translation by NikO) +- ActionScript 3 Jordi Boggiano (version for ActionScript3 and MXML) +- Ada Tux +- Algol68 Neville Dempsey +- Apache Tux +- Applescript Stephan Klimek +- Apt sources.list Milian Wolff +- ARM Marat Dukhan +- ASM Tux, Dennis Yurichev, Marat Dukhan +- ASP Amit Gupta +- Asymptote Manuel Yguel +- Autoconf Mihai Vasilian +- AutoHotkey Naveen Garg +- AutoIt mastrboy +- AviSynth Ryan Jones +- Awk George Pollard +- BASCOM AVR Michal Goralczyk +- Bash Andreas Gohr +- Basic4GL Matthew Webb +- BibTeX Quinn Taylor +- BlitzBasic P�draig O`Connel +- BNF Rowan Rodrik van der Molen +- Boo Marcus Griep +- Brainfuck \ Brainfork Benny Baumann +- C for Loadrunner Stuart Moncrieff +- C for Macs M. Uli Kusterer +- C# Alan Juden +- C++ Dennis Bayer, M. Uli Kusterer +- C++/Qt Iulian M +- CADDCL Roberto Rossi +- CadLisp Roberto Rossi +- CDFG John Horigan +- ChaiScript Jason Turner, Jonathan Turner +- CIL Marcus Griep +- Clojure Jess Johnson +- CMake Daniel Nelson +- COBOL Benny Baumann +- CoffeeScript Trevor Burnham +- ColdFusion Diego +- Cuesheet Benny Baumann +- D Thomas Kuehne +- DCL Petr Hendl +- DCPU-16 Benny Baumann +- DCS Stelio Passaris +- Delphi Járja Norbert, Benny Baumann +- Div Gabriel Lorenzo +- DOS Alessandro Staltari +- E Kevin Reid +- ECMAScript Michel Mariani +- Eiffel Zoran Simic +- eMail \ mbox Benny Baumann +- EPC Thorsten Muehlfelder +- Erlang Benny Baumann, Dan Forest-Barbier, Uwe Dauernheim +- Euphoria Nicholas Koceja +- F# Julien Ortin +- Falcon billykater +- FO (abas-ERP) Tan-Vinh Nguyen +- FormulaOne Juro Bystricky +- Fortran Cedric Arrabie +- FreeBasic Roberto Rossi +- FreeSWITCH James Rose +- GADV 4CS Jason Curl +- GAMBAS Jesus Guardon +- Genie Nicolas Joseph +- Gettext Milian Wolff +- glSlang Benny Baumann +- GML José Jorge Enríquez Rodríguez +- GNU make Neil Bird +- Gnuplot Milian Wolff +- Go Markus Jarderot +- Groovy Ivan F. Villanueva B. +- GwBasic José Gabriel Moya Yangüela +- Haskell Dagit +- Haxe Andy Li, John Liao +- HicEst Georg Petrich +- HQ9+ Benny Baumann +- HTML5 Robert Lidberg +- Icon Matt Oates +- Ini Deguix +- Inno Thomas Klinger +- INTERCAL Benny Baumann +- J Ric Sherlock +- Java 5 Clemens Bruckmann +- Javascript Ben Keen +- jQuery Rob Loach +- KiXtart Riley McArdle +- KLone C Mickael Auger +- KLone C++ Mickael Auger +- LaTeX Matthais Pospiech +- LDIF Bruno Harbulot +- Liberty BASIC Chris Iverson +- Lisp Roberto Rossi +- LLVM Azriel Fasten +- Locomotive Basic Nacho Cabanes +- Logtalk Paulo Moura +- LOLcode Benny Baumann +- LScript Beau McGuigan +- LSL2 William Fry +- Lua Roberto Rossi +- m86k Benny Baumann +- MagikSF Sjoerd van Leent +- MapBasic Tomasz Berus +- mIRC Alberto de Areba Sánchez +- Modula 2 Benjamin Kowarsch +- Modula-3 Martin Bishop +- Motorola 6502 ASM Warren Willmey +- Motorola 68k ASM Warren Willmey +- MPASM Bakalex +- MXML David Spurr +- MySQL Carl Fürstenberg, Marjolein Katsma +- Nagios Albéric de Pertat +- NewLisp cormullion +- NSIS Tux, Deguix +- Oberon-2 Mike Mol +- Objeck Progr. Lang. Randy Hollines +- Objective C M. Uli Kusterer +- Ocaml Flaie +- Ocaml-brief Flaie +- Octave Carnë Draug, Juan Pablo Carbajal +- OpenBSD Packet Filter David Berard +- OpenOffice.org BASIC Roberto Rossi +- Oracle 8 Guy Wicks +- Oracle 11i Simon Redhead +- Oxygene (Delphi Prism) Carlo Kok +- Oz Wolfgang Meyer +- ParaSail sttaft +- PARI/GP Charles R Greathouse IV +- Pascal Tux +- PCRE Benny Baumann +- Perl Andreas Gohr, Ben Keen +- Perl6 Kodi Arfer +- PIC16xxx assembler Phil Mattison +- Pike Rick E. +- Pixel Bender Richard Olsson +- PL/I Robert Prins +- PL/SQL Victor Engmark +- PostgreSQL Christophe Chauvet +- POV-Ray Carl Fürstenberg +- PowerBuilder Doug Porter +- PowerShell Frode Aarebrot +- ProFTPd Benny Baumann +- Progress Marco Aurelio de Pasqual +- Prolog Benny Baumann +- Property Files Edy Hinzen +- ProvideX Jeff Wilder +- PureBasic Gustavo Julio Fiorenza +- Python Roberto Rossi +- Python for S60 Sohan Basak +- PyCon Benny Baumann +- q/kdb+ Ian Roddis +- R / S+ Ron Fredericks, Fernando H.F.P. da Rosa +- Rails Moises Deniz +- Rebol Lecanu Guillaume +- Reg SmokingRope +- Rexx Jon Wolfers +- Robots Christian Lescuyer +- RPM Specification File Paul Grinberg +- Ruby Amit Gupta, Moises Deniz +- SAS Galen Johnson +- Scheme Jon Raphaelson +- SciLab Christophe David +- SDLBasic Roberto Rossi +- Smalltalk Bananeweizen +- Smarty Alan Juden +- SPARK Phil Thornley +- SPARQL Karima Rafes +- StoneScript Archimmersion +- SystemVerilog Sean O'Boyle +- TCL Reid van Melle +- TeraTerm Boris Maisuradze +- Text SmokingRope +- thinBasic Eros Olmi +- T-SQL Duncan Lock +- TypoScript Jan-Philipp Halle +- Unicon Matt Oates +- Uno IDL Cedric Bosdonnat +- UnrealScript pospi +- UPC Viraj Sinha +- Urbi Alexandre Morgand +- Vala Nicolas Joseph +- VB Roberto Rossi +- VB.NET Alan Juden +- Vedit Pauli Lindgren +- Verilog Günter Dannoritzer +- VHDL Alexander 'E-Razor' Krause, Kevin Thibedeau +- VIM Script Swaroop C H +- Visual FoxPro Roberto Armellin +- Visual Prolog Thomas Linder Puls +- Whitespace Benny Baumann +- Whois \ RPSL format Benny Baumann +- Winbatch Craig Storey +- X++ Simon Butcher +- XBasic José Gabriel Moya Yangüela +- Xorg config Milian Wolff +- YAML Josh Ventura +- Z80 Assembler Benny Baumann +- ZXBasic Jose Rodriguez + +Do you want your name in here? Help me out! Make a language file, or suggest a new +feature, or make a plugin for GeSHi for some other software, then tell me about it!
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/TODO b/extensions/SyntaxHighlight_GeSHi/geshi/docs/TODO new file mode 100644 index 00000000..d849261c --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/TODO @@ -0,0 +1,71 @@ + TODO - List of things to do as of 2005/01/29 + +Suggestions for things to add are welcome, if you have a feature request you +can either post it to the forums: + +http://qbnz.com/highlighter/forum.php + +Or to the feature request tracker: + +http://sourceforge.net/tracker/?group_id=114997&atid=670234 + + + TODO for version 1.0.8.x + +- Rework the load_from_file method and the one for getting a file extension, + as documented in the source. +- use analogous vars to $next_comment_regexp_pos for more GeSHi structures, + should reduce number of functions called and hence improve performance +- make a set of default colours which can be used in the language files. + this way we can give languages a uniform look and maybe even add "themes" +- Get better coverage in our coderepo +- README / INSTALL / ... file for phpdoc integration => take geshi-doc.*? +- rework HARDQUOTE + styles, currently this is a bit of a mess imo (milian) +- Allow per-keywordgroup AutoCaps/NoCaps +- Complete API to support latest features + set_number_style ($key missing) + set_string_style ($key missing) + set_case_keywords (support for per_keywordgroup AutoCaps) + + + TODO for version 1.2.0 + +- Rewrite engine to use remove/replace method (will hopefully almost + eliminate the need for regular expressions except for numbers/methods + etc). This will also assist for making different output formats [DONE] +- "Intelligent" output format - eg if the user doesn't want lines to + wrap and wants line numbers don't use <ol>, use the <table> method + instead. (This saves on output) +- Clear split between "public" and "private" methods [DONE] +- PHP5 version +- "Themes" for styles - basically pre-made stylesheets that can be used + to highlight code of any language in a similar manner [DONE] +- "Dialects" for languages - eg php4, php5. One master language definition + file, and a bunch of "specialised" dialect files for each language + Ability to specify a "specialised" dialect as default? [DONE] +- Look at load/memory usage and try to reduce +- Make tabs into tab-stops like a normal editor [DONE] +- Ability to add more than one multiline comment or string [DONE] +- Ability to specify that strings cannot be multiline [DONE] +- Create a "wrapper" class for ultra-easy use +- Code written in a style that conforms to a phpdoc utility [DONE, PEAR] +- Dig functions/methods out of code and where they are called make an internal + link back to their definition + + + TODO for version 2.0.0 + +- Support for multiple output formats (XHTML, XML, PDF, RTF etc) [DONE IN 1.2] +- Support for auto-indent/code "beautifing" +- Option for "Lite" highlighting - aims for speed and low server load +- "Intelligent" highlighting inside comments, and ability to highlight + source in multiple languages at once (eg PHP+HTML) [DONE IN 1.2] +- Perhaps a script on the GeSHi site that would map urls to appropriate + definitions and relocate the user? (eg, java documentation is + structured in such a way that urls are not able to be used with GeSHi. + Instead the URL could become: + http://qbnz.com/highlighter/redirect.php?lang=java&kw=KeyWord + and that script would redirect to the correct location. + [BETTER FIX IN 1.2] + + $Id: TODO 1725 2008-08-08 11:56:36Z benbe $ diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/__filesource/fsource_geshi_core_geshi.php.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/__filesource/fsource_geshi_core_geshi.php.html new file mode 100644 index 00000000..3d799821 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/__filesource/fsource_geshi_core_geshi.php.html @@ -0,0 +1,4616 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title>File Source for geshi.php</title> + <link rel="stylesheet" href="../media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <h1>Source for file geshi.php</h1> +<p>Documentation is available at <a href="../geshi/core/_geshi.php.html">geshi.php</a></p> +<div class="src-code"> +<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li> +<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a3"></a><span class="src-doc"> * GeSHi - Generic Syntax Highlighter</span></div></li> +<li><div class="src-line"><a name="a4"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a5"></a><span class="src-doc"> * The GeSHi class for Generic Syntax Highlighting. Please refer to the</span></div></li> +<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * documentation at http://qbnz.com/highlighter/documentation.php for more</span></div></li> +<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * information about how to use this class.</span></div></li> +<li><div class="src-line"><a name="a8"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * For changes, release notes, TODOs etc, see the relevant files in the docs/</span></div></li> +<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * directory.</span></div></li> +<li><div class="src-line"><a name="a11"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * This file is part of GeSHi.</span></div></li> +<li><div class="src-line"><a name="a13"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a14"></a><span class="src-doc"> * GeSHi is free software; you can redistribute it and/or modify</span></div></li> +<li><div class="src-line"><a name="a15"></a><span class="src-doc"> * it under the terms of the GNU General Public License as published by</span></div></li> +<li><div class="src-line"><a name="a16"></a><span class="src-doc"> * the Free Software Foundation; either version 2 of the License, or</span></div></li> +<li><div class="src-line"><a name="a17"></a><span class="src-doc"> * (at your option) any later version.</span></div></li> +<li><div class="src-line"><a name="a18"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a19"></a><span class="src-doc"> * GeSHi is distributed in the hope that it will be useful,</span></div></li> +<li><div class="src-line"><a name="a20"></a><span class="src-doc"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div></li> +<li><div class="src-line"><a name="a21"></a><span class="src-doc"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div></li> +<li><div class="src-line"><a name="a22"></a><span class="src-doc"> * GNU General Public License for more details.</span></div></li> +<li><div class="src-line"><a name="a23"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * You should have received a copy of the GNU General Public License</span></div></li> +<li><div class="src-line"><a name="a25"></a><span class="src-doc"> * along with GeSHi; if not, write to the Free Software</span></div></li> +<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div></li> +<li><div class="src-line"><a name="a27"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> geshi</span></div></li> +<li><div class="src-line"><a name="a29"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@subpackage</span><span class="src-doc"> core</span></div></li> +<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Nigel McNie <nigel@geshi.org>, Benny Baumann <BenBE@omorphia.de></span></div></li> +<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> (C) 2004 - 2007 Nigel McNie, (C) 2007 - 2008 Benny Baumann</span></div></li> +<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://gnu.org/copyleft/gpl.html GNU GPL</span></div></li> +<li><div class="src-line"><a name="a33"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a34"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a35"></a> </div></li> +<li><div class="src-line"><a name="a36"></a><span class="src-comm">//</span></div></li> +<li><div class="src-line"><a name="a37"></a><span class="src-comm">// GeSHi Constants</span></div></li> +<li><div class="src-line"><a name="a38"></a><span class="src-comm">// You should use these constant names in your programs instead of</span></div></li> +<li><div class="src-line"><a name="a39"></a><span class="src-comm">// their values - you never know when a value may change in a future</span></div></li> +<li><div class="src-line"><a name="a40"></a><span class="src-comm">// version</span></div></li> +<li><div class="src-line"><a name="a41"></a><span class="src-comm">//</span></div></li> +<li><div class="src-line"><a name="a42"></a> </div></li> +<li><div class="src-line"><a name="a43"></a><span class="src-doc">/** The version of this GeSHi file */</span></div></li> +<li><div class="src-line"><a name="a44"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_VERSION'</span><span class="src-sym">, </span><span class="src-str">'1.0.8.2'</span><span class="src-sym">,</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a45"></a> </div></li> +<li><div class="src-line"><a name="a46"></a><span class="src-comm">// Define the root directory for the GeSHi code tree</span></div></li> +<li><div class="src-line"><a name="a47"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'GESHI_ROOT'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/** The root directory for GeSHi */</span></div></li> +<li><div class="src-line"><a name="a49"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ROOT'</span><span class="src-sym">, </span><span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">) </span>. <span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a50"></a><span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a51"></a><span class="src-doc">/** The language file directory for GeSHi</span></div></li> +<li><div class="src-line"><a name="a52"></a><span class="src-doc"> @access private */</span></div></li> +<li><div class="src-line"><a name="a53"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_LANG_ROOT'</span><span class="src-sym">, </span><span class="src-id">GESHI_ROOT </span>. <span class="src-str">'geshi' </span>. <span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a54"></a> </div></li> +<li><div class="src-line"><a name="a55"></a><span class="src-comm">// Define if GeSHi should be paranoid about security</span></div></li> +<li><div class="src-line"><a name="a56"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'GESHI_SECURITY_PARANOID'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a57"></a> <span class="src-doc">/** Tells GeSHi to be paranoid about security settings */</span></div></li> +<li><div class="src-line"><a name="a58"></a> <a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_SECURITY_PARANOID'</span><span class="src-sym">, </span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a59"></a><span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a60"></a> </div></li> +<li><div class="src-line"><a name="a61"></a><span class="src-comm">// Line numbers - use with enable_line_numbers()</span></div></li> +<li><div class="src-line"><a name="a62"></a><span class="src-doc">/** Use no line numbers when building the result */</span></div></li> +<li><div class="src-line"><a name="a63"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NO_LINE_NUMBERS'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a64"></a><span class="src-doc">/** Use normal line numbers when building the result */</span></div></li> +<li><div class="src-line"><a name="a65"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NORMAL_LINE_NUMBERS'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a66"></a><span class="src-doc">/** Use fancy line numbers when building the result */</span></div></li> +<li><div class="src-line"><a name="a67"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_FANCY_LINE_NUMBERS'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a68"></a> </div></li> +<li><div class="src-line"><a name="a69"></a><span class="src-comm">// Container HTML type</span></div></li> +<li><div class="src-line"><a name="a70"></a><span class="src-doc">/** Use nothing to surround the source */</span></div></li> +<li><div class="src-line"><a name="a71"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HEADER_NONE'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a72"></a><span class="src-doc">/** Use a "div" to surround the source */</span></div></li> +<li><div class="src-line"><a name="a73"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HEADER_DIV'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a74"></a><span class="src-doc">/** Use a "pre" to surround the source */</span></div></li> +<li><div class="src-line"><a name="a75"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HEADER_PRE'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a76"></a><span class="src-doc">/** Use a pre to wrap lines when line numbers are enabled or to wrap the whole code. */</span></div></li> +<li><div class="src-line"><a name="a77"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HEADER_PRE_VALID'</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a78"></a><span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a79"></a><span class="src-doc"> * Use a "table" to surround the source:</span></div></li> +<li><div class="src-line"><a name="a80"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a81"></a><span class="src-doc"> * <table></span></div></li> +<li><div class="src-line"><a name="a82"></a><span class="src-doc"> * <thead><tr><td colspan="2">$header</td></tr></thead></span></div></li> +<li><div class="src-line"><a name="a83"></a><span class="src-doc"> * <tbody><tr><td><pre>$linenumbers</pre></td><td><pre>$code></pre></td></tr></tbody></span></div></li> +<li><div class="src-line"><a name="a84"></a><span class="src-doc"> * <tfooter><tr><td colspan="2">$footer</td></tr></tfoot></span></div></li> +<li><div class="src-line"><a name="a85"></a><span class="src-doc"> * </table></span></div></li> +<li><div class="src-line"><a name="a86"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a87"></a><span class="src-doc"> * this is essentially only a workaround for Firefox, see sf#1651996 or take a look at</span></div></li> +<li><div class="src-line"><a name="a88"></a><span class="src-doc"> * https://bugzilla.mozilla.org/show_bug.cgi?id=365805</span></div></li> +<li><div class="src-line"><a name="a89"></a><span class="src-doc"> * </span><span class="src-doc-tag">@note</span><span class="src-doc"> when linenumbers are disabled this is essentially the same as GESHI_HEADER_PRE</span></div></li> +<li><div class="src-line"><a name="a90"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a91"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HEADER_PRE_TABLE'</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a92"></a> </div></li> +<li><div class="src-line"><a name="a93"></a><span class="src-comm">// Capatalisation constants</span></div></li> +<li><div class="src-line"><a name="a94"></a><span class="src-doc">/** Lowercase keywords found */</span></div></li> +<li><div class="src-line"><a name="a95"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_CAPS_NO_CHANGE'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a96"></a><span class="src-doc">/** Uppercase keywords found */</span></div></li> +<li><div class="src-line"><a name="a97"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_CAPS_UPPER'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a98"></a><span class="src-doc">/** Leave keywords found as the case that they are */</span></div></li> +<li><div class="src-line"><a name="a99"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_CAPS_LOWER'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a100"></a> </div></li> +<li><div class="src-line"><a name="a101"></a><span class="src-comm">// Link style constants</span></div></li> +<li><div class="src-line"><a name="a102"></a><span class="src-doc">/** Links in the source in the :link state */</span></div></li> +<li><div class="src-line"><a name="a103"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_LINK'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a104"></a><span class="src-doc">/** Links in the source in the :hover state */</span></div></li> +<li><div class="src-line"><a name="a105"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_HOVER'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a106"></a><span class="src-doc">/** Links in the source in the :active state */</span></div></li> +<li><div class="src-line"><a name="a107"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ACTIVE'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a108"></a><span class="src-doc">/** Links in the source in the :visited state */</span></div></li> +<li><div class="src-line"><a name="a109"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_VISITED'</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a110"></a> </div></li> +<li><div class="src-line"><a name="a111"></a><span class="src-comm">// Important string starter/finisher</span></div></li> +<li><div class="src-line"><a name="a112"></a><span class="src-comm">// Note that if you change these, they should be as-is: i.e., don't</span></div></li> +<li><div class="src-line"><a name="a113"></a><span class="src-comm">// write them as if they had been run through htmlentities()</span></div></li> +<li><div class="src-line"><a name="a114"></a><span class="src-doc">/** The starter for important parts of the source */</span></div></li> +<li><div class="src-line"><a name="a115"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_START_IMPORTANT'</span><span class="src-sym">, </span><span class="src-str">'<BEGIN GeSHi>'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a116"></a><span class="src-doc">/** The ender for important parts of the source */</span></div></li> +<li><div class="src-line"><a name="a117"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_END_IMPORTANT'</span><span class="src-sym">, </span><span class="src-str">'<END GeSHi>'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a118"></a> </div></li> +<li><div class="src-line"><a name="a119"></a><span class="src-comm">/**#@+</span></div></li> +<li><div class="src-line"><a name="a120"></a><span class="src-comm"> * @access private</span></div></li> +<li><div class="src-line"><a name="a121"></a><span class="src-comm"> */</span></div></li> +<li><div class="src-line"><a name="a122"></a><span class="src-comm">// When strict mode applies for a language</span></div></li> +<li><div class="src-line"><a name="a123"></a><span class="src-doc">/** Strict mode never applies (this is the most common) */</span></div></li> +<li><div class="src-line"><a name="a124"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NEVER'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a125"></a><span class="src-doc">/** Strict mode *might* apply, and can be enabled or</span></div></li> +<li><div class="src-line"><a name="a126"></a><span class="src-doc"> disabled by </span><span class="src-doc-inlinetag">{@link GeSHi->enable_strict_mode()}</span><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a127"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_MAYBE'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a128"></a><span class="src-doc">/** Strict mode always applies */</span></div></li> +<li><div class="src-line"><a name="a129"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ALWAYS'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a130"></a> </div></li> +<li><div class="src-line"><a name="a131"></a><span class="src-comm">// Advanced regexp handling constants, used in language files</span></div></li> +<li><div class="src-line"><a name="a132"></a><span class="src-doc">/** The key of the regex array defining what to search for */</span></div></li> +<li><div class="src-line"><a name="a133"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_SEARCH'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a134"></a><span class="src-doc">/** The key of the regex array defining what bracket group in a</span></div></li> +<li><div class="src-line"><a name="a135"></a><span class="src-doc"> matched search to use as a replacement */</span></div></li> +<li><div class="src-line"><a name="a136"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_REPLACE'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a137"></a><span class="src-doc">/** The key of the regex array defining any modifiers to the regular expression */</span></div></li> +<li><div class="src-line"><a name="a138"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_MODIFIERS'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a139"></a><span class="src-doc">/** The key of the regex array defining what bracket group in a</span></div></li> +<li><div class="src-line"><a name="a140"></a><span class="src-doc"> matched search to put before the replacement */</span></div></li> +<li><div class="src-line"><a name="a141"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_BEFORE'</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a142"></a><span class="src-doc">/** The key of the regex array defining what bracket group in a</span></div></li> +<li><div class="src-line"><a name="a143"></a><span class="src-doc"> matched search to put after the replacement */</span></div></li> +<li><div class="src-line"><a name="a144"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_AFTER'</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a145"></a><span class="src-doc">/** The key of the regex array defining a custom keyword to use</span></div></li> +<li><div class="src-line"><a name="a146"></a><span class="src-doc"> for this regexp's html tag class */</span></div></li> +<li><div class="src-line"><a name="a147"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_CLASS'</span><span class="src-sym">, </span><span class="src-num">5</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a148"></a> </div></li> +<li><div class="src-line"><a name="a149"></a><span class="src-doc">/** Used in language files to mark comments */</span></div></li> +<li><div class="src-line"><a name="a150"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_COMMENTS'</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a151"></a> </div></li> +<li><div class="src-line"><a name="a152"></a><span class="src-doc">/** Used to work around missing PHP features **/</span></div></li> +<li><div class="src-line"><a name="a153"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_PHP_PRE_433'</span><span class="src-sym">, </span><span class="src-sym">!</span><span class="src-sym">(</span><span class="src-id">version_compare</span><span class="src-sym">(</span><span class="src-id">PHP_VERSION</span><span class="src-sym">, </span><span class="src-str">'4.3.3'</span><span class="src-sym">) </span>=== <span class="src-num">1</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a154"></a> </div></li> +<li><div class="src-line"><a name="a155"></a><span class="src-doc">/** make sure we can call stripos **/</span></div></li> +<li><div class="src-line"><a name="a156"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'stripos'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a157"></a> <span class="src-comm">// the offset param of preg_match is not supported below PHP 4.3.3</span></div></li> +<li><div class="src-line"><a name="a158"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">GESHI_PHP_PRE_433</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a159"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a160"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@ignore</span></div></li> +<li><div class="src-line"><a name="a161"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a162"></a> <span class="src-key">function </span><a href="http://www.php.net/stripos">stripos</a><span class="src-sym">(</span><span class="src-var">$haystack</span><span class="src-sym">, </span><span class="src-var">$needle</span><span class="src-sym">, </span><span class="src-var">$offset </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a163"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$offset</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a164"></a> <span class="src-var">$haystack </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$haystack</span><span class="src-sym">, </span><span class="src-var">$offset</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a165"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a166"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'/'</span>. <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$needle</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">) </span>. <span class="src-str">'/'</span><span class="src-sym">, </span><span class="src-var">$haystack</span><span class="src-sym">, </span><span class="src-var">$match</span><span class="src-sym">, </span><span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a167"></a> <span class="src-key">return </span><span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a168"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a169"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a170"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a171"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a172"></a> <span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a173"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a174"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@ignore</span></div></li> +<li><div class="src-line"><a name="a175"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a176"></a> <span class="src-key">function </span><a href="http://www.php.net/stripos">stripos</a><span class="src-sym">(</span><span class="src-var">$haystack</span><span class="src-sym">, </span><span class="src-var">$needle</span><span class="src-sym">, </span><span class="src-var">$offset </span>= <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a177"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'/'</span>. <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$needle</span><span class="src-sym">, </span><span class="src-str">'/'</span><span class="src-sym">) </span>. <span class="src-str">'/'</span><span class="src-sym">, </span><span class="src-var">$haystack</span><span class="src-sym">, </span><span class="src-var">$match</span><span class="src-sym">, </span><span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">, </span><span class="src-var">$offset</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a178"></a> <span class="src-key">return </span><span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a179"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a180"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a181"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a182"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a183"></a><span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a184"></a> </div></li> +<li><div class="src-line"><a name="a185"></a><span class="src-doc">/** some old PHP / PCRE subpatterns only support up to xxx subpatterns in</span></div></li> +<li><div class="src-line"><a name="a186"></a><span class="src-doc"> regular expressions. Set this to false if your PCRE lib is up to date</span></div></li> +<li><div class="src-line"><a name="a187"></a><span class="src-doc"> @see GeSHi->optimize_regexp_list()</span></div></li> +<li><div class="src-line"><a name="a188"></a><span class="src-doc"> **/</span></div></li> +<li><div class="src-line"><a name="a188"></a> </div></li> +<li><div class="src-line"><a name="a189"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_MAX_PCRE_SUBPATTERNS'</span><span class="src-sym">, </span><span class="src-num">500</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a190"></a><span class="src-doc">/** it's also important not to generate too long regular expressions</span></div></li> +<li><div class="src-line"><a name="a191"></a><span class="src-doc"> be generous here... but keep in mind, that when reaching this limit we</span></div></li> +<li><div class="src-line"><a name="a192"></a><span class="src-doc"> still have to close open patterns. 12k should do just fine on a 16k limit.</span></div></li> +<li><div class="src-line"><a name="a193"></a><span class="src-doc"> @see GeSHi->optimize_regexp_list()</span></div></li> +<li><div class="src-line"><a name="a194"></a><span class="src-doc"> **/</span></div></li> +<li><div class="src-line"><a name="a194"></a> </div></li> +<li><div class="src-line"><a name="a195"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_MAX_PCRE_LENGTH'</span><span class="src-sym">, </span><span class="src-num">12288</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a196"></a> </div></li> +<li><div class="src-line"><a name="a197"></a><span class="src-comm">//Number format specification</span></div></li> +<li><div class="src-line"><a name="a198"></a><span class="src-doc">/** Basic number format for integers */</span></div></li> +<li><div class="src-line"><a name="a199"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_INT_BASIC'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//Default integers \d+</span></div></li> +<li><div class="src-line"><a name="a200"></a><span class="src-doc">/** Enhanced number format for integers like seen in C */</span></div></li> +<li><div class="src-line"><a name="a201"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_INT_CSTYLE'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//Default C-Style \d+[lL]?</span></div></li> +<li><div class="src-line"><a name="a202"></a><span class="src-doc">/** Number format to highlight binary numbers with a suffix "b" */</span></div></li> +<li><div class="src-line"><a name="a203"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_BIN_SUFFIX'</span><span class="src-sym">, </span><span class="src-num">16</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//[01]+[bB]</span></div></li> +<li><div class="src-line"><a name="a204"></a><span class="src-doc">/** Number format to highlight binary numbers with a prefix % */</span></div></li> +<li><div class="src-line"><a name="a205"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_BIN_PREFIX_PERCENT'</span><span class="src-sym">, </span><span class="src-num">32</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//%[01]+</span></div></li> +<li><div class="src-line"><a name="a206"></a><span class="src-doc">/** Number format to highlight binary numbers with a prefix 0b (C) */</span></div></li> +<li><div class="src-line"><a name="a207"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_BIN_PREFIX_0B'</span><span class="src-sym">, </span><span class="src-num">64</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//0b[01]+</span></div></li> +<li><div class="src-line"><a name="a208"></a><span class="src-doc">/** Number format to highlight octal numbers with a leading zero */</span></div></li> +<li><div class="src-line"><a name="a209"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_OCT_PREFIX'</span><span class="src-sym">, </span><span class="src-num">256</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//0[0-7]+</span></div></li> +<li><div class="src-line"><a name="a210"></a><span class="src-doc">/** Number format to highlight octal numbers with a suffix of o */</span></div></li> +<li><div class="src-line"><a name="a211"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_OCT_SUFFIX'</span><span class="src-sym">, </span><span class="src-num">512</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//[0-7]+[oO]</span></div></li> +<li><div class="src-line"><a name="a212"></a><span class="src-doc">/** Number format to highlight hex numbers with a prefix 0x */</span></div></li> +<li><div class="src-line"><a name="a213"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_HEX_PREFIX'</span><span class="src-sym">, </span><span class="src-num">4096</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//0x[0-9a-fA-F]+</span></div></li> +<li><div class="src-line"><a name="a214"></a><span class="src-doc">/** Number format to highlight hex numbers with a suffix of h */</span></div></li> +<li><div class="src-line"><a name="a215"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_HEX_SUFFIX'</span><span class="src-sym">, </span><span class="src-num">8192</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//[0-9][0-9a-fA-F]*h</span></div></li> +<li><div class="src-line"><a name="a216"></a><span class="src-doc">/** Number format to highlight floating-point numbers without support for scientific notation */</span></div></li> +<li><div class="src-line"><a name="a217"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_FLT_NONSCI'</span><span class="src-sym">, </span><span class="src-num">65536</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//\d+\.\d+</span></div></li> +<li><div class="src-line"><a name="a218"></a><span class="src-doc">/** Number format to highlight floating-point numbers without support for scientific notation */</span></div></li> +<li><div class="src-line"><a name="a219"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_FLT_NONSCI_F'</span><span class="src-sym">, </span><span class="src-num">131072</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//\d+(\.\d+)?f</span></div></li> +<li><div class="src-line"><a name="a220"></a><span class="src-doc">/** Number format to highlight floating-point numbers with support for scientific notation (E) and optional leading zero */</span></div></li> +<li><div class="src-line"><a name="a221"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_FLT_SCI_SHORT'</span><span class="src-sym">, </span><span class="src-num">262144</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//\.\d+e\d+</span></div></li> +<li><div class="src-line"><a name="a222"></a><span class="src-doc">/** Number format to highlight floating-point numbers with support for scientific notation (E) and required leading digit */</span></div></li> +<li><div class="src-line"><a name="a223"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_NUMBER_FLT_SCI_ZERO'</span><span class="src-sym">, </span><span class="src-num">524288</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-comm">//\d+(\.\d+)?e\d+</span></div></li> +<li><div class="src-line"><a name="a224"></a><span class="src-comm">//Custom formats are passed by RX array</span></div></li> +<li><div class="src-line"><a name="a225"></a> </div></li> +<li><div class="src-line"><a name="a226"></a><span class="src-comm">// Error detection - use these to analyse faults</span></div></li> +<li><div class="src-line"><a name="a227"></a><span class="src-doc">/** No sourcecode to highlight was specified</span></div></li> +<li><div class="src-line"><a name="a228"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span></div></li> +<li><div class="src-line"><a name="a229"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a230"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ERROR_NO_INPUT'</span><span class="src-sym">, </span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a231"></a><span class="src-doc">/** The language specified does not exist */</span></div></li> +<li><div class="src-line"><a name="a232"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ERROR_NO_SUCH_LANG'</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a233"></a><span class="src-doc">/** GeSHi could not open a file for reading (generally a language file) */</span></div></li> +<li><div class="src-line"><a name="a234"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ERROR_FILE_NOT_READABLE'</span><span class="src-sym">, </span><span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a235"></a><span class="src-doc">/** The header type passed to </span><span class="src-doc-inlinetag">{@link GeSHi->set_header_type()}</span><span class="src-doc"> was invalid */</span></div></li> +<li><div class="src-line"><a name="a236"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ERROR_INVALID_HEADER_TYPE'</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a237"></a><span class="src-doc">/** The line number type passed to </span><span class="src-doc-inlinetag">{@link GeSHi->enable_line_numbers()}</span><span class="src-doc"> was invalid */</span></div></li> +<li><div class="src-line"><a name="a238"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'GESHI_ERROR_INVALID_LINE_NUMBER_TYPE'</span><span class="src-sym">, </span><span class="src-num">5</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a239"></a><span class="src-comm">/**#@-*/</span></div></li> +<li><div class="src-line"><a name="a240"></a> </div></li> +<li><div class="src-line"><a name="a241"></a> </div></li> +<li><div class="src-line"><a name="a242"></a><span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a243"></a><span class="src-doc"> * The GeSHi Class.</span></div></li> +<li><div class="src-line"><a name="a244"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a245"></a><span class="src-doc"> * Please refer to the documentation for GeSHi 1.0.X that is available</span></div></li> +<li><div class="src-line"><a name="a246"></a><span class="src-doc"> * at http://qbnz.com/highlighter/documentation.php for more information</span></div></li> +<li><div class="src-line"><a name="a247"></a><span class="src-doc"> * about how to use this class.</span></div></li> +<li><div class="src-line"><a name="a248"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a249"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> geshi</span></div></li> +<li><div class="src-line"><a name="a250"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Nigel McNie <nigel@geshi.org>, Benny Baumann <BenBE@omorphia.de></span></div></li> +<li><div class="src-line"><a name="a251"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> (C) 2004 - 2007 Nigel McNie, (C) 2007 - 2008 Benny Baumann</span></div></li> +<li><div class="src-line"><a name="a252"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a253"></a><span class="src-key">class </span><a href="../geshi/core/GeSHi.html">GeSHi</a> <span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a254"></a> <span class="src-comm">/**#@+</span></div></li> +<li><div class="src-line"><a name="a255"></a><span class="src-comm"> * @access private</span></div></li> +<li><div class="src-line"><a name="a256"></a><span class="src-comm"> */</span></div></li> +<li><div class="src-line"><a name="a257"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a258"></a><span class="src-doc"> * The source code to highlight</span></div></li> +<li><div class="src-line"><a name="a259"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a260"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a261"></a> <span class="src-key">var </span><span class="src-var">$source </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a262"></a> </div></li> +<li><div class="src-line"><a name="a263"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a264"></a><span class="src-doc"> * The language to use when highlighting</span></div></li> +<li><div class="src-line"><a name="a265"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a266"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a267"></a> <span class="src-key">var </span><span class="src-var">$language </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a268"></a> </div></li> +<li><div class="src-line"><a name="a269"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a270"></a><span class="src-doc"> * The data for the language used</span></div></li> +<li><div class="src-line"><a name="a271"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a272"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a273"></a> <span class="src-key">var </span><span class="src-var">$language_data </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a274"></a> </div></li> +<li><div class="src-line"><a name="a275"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a276"></a><span class="src-doc"> * The path to the language files</span></div></li> +<li><div class="src-line"><a name="a277"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a278"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a279"></a> <span class="src-key">var </span><span class="src-var">$language_path </span>= <span class="src-id">GESHI_LANG_ROOT</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a280"></a> </div></li> +<li><div class="src-line"><a name="a281"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a282"></a><span class="src-doc"> * The error message associated with an error</span></div></li> +<li><div class="src-line"><a name="a283"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a284"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> check err reporting works</span></div></li> +<li><div class="src-line"><a name="a285"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a286"></a> <span class="src-key">var </span><span class="src-var">$error </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a287"></a> </div></li> +<li><div class="src-line"><a name="a288"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a289"></a><span class="src-doc"> * Possible error messages</span></div></li> +<li><div class="src-line"><a name="a290"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a291"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a292"></a> <span class="src-key">var </span><span class="src-var">$error_messages </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> +<li><div class="src-line"><a name="a293"></a> <span class="src-id">GESHI_ERROR_NO_SUCH_LANG </span>=> <span class="src-str">'GeSHi could not find the language {LANGUAGE} (using path {PATH})'</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a294"></a> <span class="src-id">GESHI_ERROR_FILE_NOT_READABLE </span>=> <span class="src-str">'The file specified for load_from_file was not readable'</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a295"></a> <span class="src-id">GESHI_ERROR_INVALID_HEADER_TYPE </span>=> <span class="src-str">'The header type specified is invalid'</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a296"></a> <span class="src-id">GESHI_ERROR_INVALID_LINE_NUMBER_TYPE </span>=> <span class="src-str">'The line number type specified is invalid'</span></div></li> +<li><div class="src-line"><a name="a297"></a> <span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a298"></a> </div></li> +<li><div class="src-line"><a name="a299"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a300"></a><span class="src-doc"> * Whether highlighting is strict or not</span></div></li> +<li><div class="src-line"><a name="a301"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a302"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a303"></a> <span class="src-key">var </span><span class="src-var">$strict_mode </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a304"></a> </div></li> +<li><div class="src-line"><a name="a305"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a306"></a><span class="src-doc"> * Whether to use CSS classes in output</span></div></li> +<li><div class="src-line"><a name="a307"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a308"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a309"></a> <span class="src-key">var </span><span class="src-var">$use_classes </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a310"></a> </div></li> +<li><div class="src-line"><a name="a311"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a312"></a><span class="src-doc"> * The type of header to use. Can be one of the following</span></div></li> +<li><div class="src-line"><a name="a313"></a><span class="src-doc"> * values:</span></div></li> +<li><div class="src-line"><a name="a314"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a315"></a><span class="src-doc"> * - GESHI_HEADER_PRE: Source is outputted in a "pre" HTML element.</span></div></li> +<li><div class="src-line"><a name="a316"></a><span class="src-doc"> * - GESHI_HEADER_DIV: Source is outputted in a "div" HTML element.</span></div></li> +<li><div class="src-line"><a name="a317"></a><span class="src-doc"> * - GESHI_HEADER_NONE: No header is outputted.</span></div></li> +<li><div class="src-line"><a name="a318"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a319"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">int </span></div></li> +<li><div class="src-line"><a name="a320"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a321"></a> <span class="src-key">var </span><span class="src-var">$header_type </span>= <span class="src-id">GESHI_HEADER_PRE</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a322"></a> </div></li> +<li><div class="src-line"><a name="a323"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a324"></a><span class="src-doc"> * Array of permissions for which lexics should be highlighted</span></div></li> +<li><div class="src-line"><a name="a325"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a326"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a327"></a> <span class="src-key">var </span><span class="src-var">$lexic_permissions </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> +<li><div class="src-line"><a name="a328"></a> <span class="src-str">'KEYWORDS' </span>=> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a329"></a> <span class="src-str">'COMMENTS' </span>=> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'MULTI' </span>=> <span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a330"></a> <span class="src-str">'REGEXPS' </span>=> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a331"></a> <span class="src-str">'ESCAPE_CHAR' </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a332"></a> <span class="src-str">'BRACKETS' </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a333"></a> <span class="src-str">'SYMBOLS' </span>=> <span class="src-id">false</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a334"></a> <span class="src-str">'STRINGS' </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a335"></a> <span class="src-str">'NUMBERS' </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a336"></a> <span class="src-str">'METHODS' </span>=> <span class="src-id">true</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a337"></a> <span class="src-str">'SCRIPT' </span>=> <span class="src-id">true</span></div></li> +<li><div class="src-line"><a name="a338"></a> <span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a339"></a> </div></li> +<li><div class="src-line"><a name="a340"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a341"></a><span class="src-doc"> * The time it took to parse the code</span></div></li> +<li><div class="src-line"><a name="a342"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">double </span></div></li> +<li><div class="src-line"><a name="a343"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a344"></a> <span class="src-key">var </span><span class="src-var">$time </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a345"></a> </div></li> +<li><div class="src-line"><a name="a346"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a347"></a><span class="src-doc"> * The content of the header block</span></div></li> +<li><div class="src-line"><a name="a348"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a349"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a350"></a> <span class="src-key">var </span><span class="src-var">$header_content </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a351"></a> </div></li> +<li><div class="src-line"><a name="a352"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a353"></a><span class="src-doc"> * The content of the footer block</span></div></li> +<li><div class="src-line"><a name="a354"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a355"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a356"></a> <span class="src-key">var </span><span class="src-var">$footer_content </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a357"></a> </div></li> +<li><div class="src-line"><a name="a358"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a359"></a><span class="src-doc"> * The style of the header block</span></div></li> +<li><div class="src-line"><a name="a360"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a361"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a362"></a> <span class="src-key">var </span><span class="src-var">$header_content_style </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a363"></a> </div></li> +<li><div class="src-line"><a name="a364"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a365"></a><span class="src-doc"> * The style of the footer block</span></div></li> +<li><div class="src-line"><a name="a366"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a367"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a368"></a> <span class="src-key">var </span><span class="src-var">$footer_content_style </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a369"></a> </div></li> +<li><div class="src-line"><a name="a370"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a371"></a><span class="src-doc"> * Tells if a block around the highlighted source should be forced</span></div></li> +<li><div class="src-line"><a name="a372"></a><span class="src-doc"> * if not using line numbering</span></div></li> +<li><div class="src-line"><a name="a373"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a374"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a375"></a> <span class="src-key">var </span><span class="src-var">$force_code_block </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a376"></a> </div></li> +<li><div class="src-line"><a name="a377"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a378"></a><span class="src-doc"> * The styles for hyperlinks in the code</span></div></li> +<li><div class="src-line"><a name="a379"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a380"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a381"></a> <span class="src-key">var </span><span class="src-var">$link_styles </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a382"></a> </div></li> +<li><div class="src-line"><a name="a383"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a384"></a><span class="src-doc"> * Whether important blocks should be recognised or not</span></div></li> +<li><div class="src-line"><a name="a385"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a386"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span></div></li> +<li><div class="src-line"><a name="a387"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> REMOVE THIS FUNCTIONALITY!</span></div></li> +<li><div class="src-line"><a name="a388"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a389"></a> <span class="src-key">var </span><span class="src-var">$enable_important_blocks </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a390"></a> </div></li> +<li><div class="src-line"><a name="a391"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a392"></a><span class="src-doc"> * Styles for important parts of the code</span></div></li> +<li><div class="src-line"><a name="a393"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a394"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span></div></li> +<li><div class="src-line"><a name="a395"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> As above - rethink the whole idea of important blocks as it is buggy and</span></div></li> +<li><div class="src-line"><a name="a396"></a><span class="src-doc"> * will be hard to implement in 1.2</span></div></li> +<li><div class="src-line"><a name="a397"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a398"></a> <span class="src-key">var </span><span class="src-var">$important_styles </span>= <span class="src-str">'font-weight: bold; color: red;'</span><span class="src-sym">; </span><span class="src-comm">// Styles for important parts of the code</span></div></li> +<li><div class="src-line"><a name="a399"></a> </div></li> +<li><div class="src-line"><a name="a400"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a401"></a><span class="src-doc"> * Whether CSS IDs should be added to the code</span></div></li> +<li><div class="src-line"><a name="a402"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a403"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a404"></a> <span class="src-key">var </span><span class="src-var">$add_ids </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a405"></a> </div></li> +<li><div class="src-line"><a name="a406"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a407"></a><span class="src-doc"> * Lines that should be highlighted extra</span></div></li> +<li><div class="src-line"><a name="a408"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a409"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a410"></a> <span class="src-key">var </span><span class="src-var">$highlight_extra_lines </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a411"></a> </div></li> +<li><div class="src-line"><a name="a412"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a413"></a><span class="src-doc"> * Styles of lines that should be highlighted extra</span></div></li> +<li><div class="src-line"><a name="a414"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a415"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a416"></a> <span class="src-key">var </span><span class="src-var">$highlight_extra_lines_styles </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a417"></a> </div></li> +<li><div class="src-line"><a name="a418"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a419"></a><span class="src-doc"> * Styles of extra-highlighted lines</span></div></li> +<li><div class="src-line"><a name="a420"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a421"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a422"></a> <span class="src-key">var </span><span class="src-var">$highlight_extra_lines_style </span>= <span class="src-str">'background-color: #ffc;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a423"></a> </div></li> +<li><div class="src-line"><a name="a424"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a425"></a><span class="src-doc"> * The line ending</span></div></li> +<li><div class="src-line"><a name="a426"></a><span class="src-doc"> * If null, nl2br() will be used on the result string.</span></div></li> +<li><div class="src-line"><a name="a427"></a><span class="src-doc"> * Otherwise, all instances of \n will be replaced with $line_ending</span></div></li> +<li><div class="src-line"><a name="a428"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a429"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a430"></a> <span class="src-key">var </span><span class="src-var">$line_ending </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a431"></a> </div></li> +<li><div class="src-line"><a name="a432"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a433"></a><span class="src-doc"> * Number at which line numbers should start at</span></div></li> +<li><div class="src-line"><a name="a434"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">int </span></div></li> +<li><div class="src-line"><a name="a435"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a436"></a> <span class="src-key">var </span><span class="src-var">$line_numbers_start </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a437"></a> </div></li> +<li><div class="src-line"><a name="a438"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a439"></a><span class="src-doc"> * The overall style for this code block</span></div></li> +<li><div class="src-line"><a name="a440"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a441"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a442"></a> <span class="src-key">var </span><span class="src-var">$overall_style </span>= <span class="src-str">'font-family:monospace;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a443"></a> </div></li> +<li><div class="src-line"><a name="a444"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a445"></a><span class="src-doc"> * The style for the actual code</span></div></li> +<li><div class="src-line"><a name="a446"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a447"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a448"></a> <span class="src-key">var </span><span class="src-var">$code_style </span>= <span class="src-str">'font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a449"></a> </div></li> +<li><div class="src-line"><a name="a450"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a451"></a><span class="src-doc"> * The overall class for this code block</span></div></li> +<li><div class="src-line"><a name="a452"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a453"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a454"></a> <span class="src-key">var </span><span class="src-var">$overall_class </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a455"></a> </div></li> +<li><div class="src-line"><a name="a456"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a457"></a><span class="src-doc"> * The overall ID for this code block</span></div></li> +<li><div class="src-line"><a name="a458"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a459"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a460"></a> <span class="src-key">var </span><span class="src-var">$overall_id </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a461"></a> </div></li> +<li><div class="src-line"><a name="a462"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a463"></a><span class="src-doc"> * Line number styles</span></div></li> +<li><div class="src-line"><a name="a464"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a465"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a466"></a> <span class="src-key">var </span><span class="src-var">$line_style1 </span>= <span class="src-str">'font-weight: normal; vertical-align:top;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a467"></a> </div></li> +<li><div class="src-line"><a name="a468"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a469"></a><span class="src-doc"> * Line number styles for fancy lines</span></div></li> +<li><div class="src-line"><a name="a470"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a471"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a472"></a> <span class="src-key">var </span><span class="src-var">$line_style2 </span>= <span class="src-str">'font-weight: bold; vertical-align:top;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a473"></a> </div></li> +<li><div class="src-line"><a name="a474"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a475"></a><span class="src-doc"> * Style for line numbers when GESHI_HEADER_PRE_TABLE is chosen</span></div></li> +<li><div class="src-line"><a name="a476"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a477"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a478"></a> <span class="src-key">var </span><span class="src-var">$table_linenumber_style </span>= <span class="src-str">'width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a479"></a> </div></li> +<li><div class="src-line"><a name="a480"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a481"></a><span class="src-doc"> * Flag for how line numbers are displayed</span></div></li> +<li><div class="src-line"><a name="a482"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a483"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a484"></a> <span class="src-key">var </span><span class="src-var">$line_numbers </span>= <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a485"></a> </div></li> +<li><div class="src-line"><a name="a486"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a487"></a><span class="src-doc"> * Flag to decide if multi line spans are allowed. Set it to false to make sure</span></div></li> +<li><div class="src-line"><a name="a488"></a><span class="src-doc"> * each tag is closed before and reopened after each linefeed.</span></div></li> +<li><div class="src-line"><a name="a489"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a490"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a491"></a> <span class="src-key">var </span><span class="src-var">$allow_multiline_span </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a492"></a> </div></li> +<li><div class="src-line"><a name="a493"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a494"></a><span class="src-doc"> * The "nth" value for fancy line highlighting</span></div></li> +<li><div class="src-line"><a name="a495"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">int </span></div></li> +<li><div class="src-line"><a name="a496"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a497"></a> <span class="src-key">var </span><span class="src-var">$line_nth_row </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a498"></a> </div></li> +<li><div class="src-line"><a name="a499"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a500"></a><span class="src-doc"> * The size of tab stops</span></div></li> +<li><div class="src-line"><a name="a501"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">int </span></div></li> +<li><div class="src-line"><a name="a502"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a503"></a> <span class="src-key">var </span><span class="src-var">$tab_width </span>= <span class="src-num">8</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a504"></a> </div></li> +<li><div class="src-line"><a name="a505"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a506"></a><span class="src-doc"> * Should we use language-defined tab stop widths?</span></div></li> +<li><div class="src-line"><a name="a507"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">int </span></div></li> +<li><div class="src-line"><a name="a508"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a509"></a> <span class="src-key">var </span><span class="src-var">$use_language_tab_width </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a510"></a> </div></li> +<li><div class="src-line"><a name="a511"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a512"></a><span class="src-doc"> * Default target for keyword links</span></div></li> +<li><div class="src-line"><a name="a513"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a514"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a515"></a> <span class="src-key">var </span><span class="src-var">$link_target </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a516"></a> </div></li> +<li><div class="src-line"><a name="a517"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a518"></a><span class="src-doc"> * The encoding to use for entity encoding</span></div></li> +<li><div class="src-line"><a name="a519"></a><span class="src-doc"> * NOTE: Used with Escape Char Sequences to fix UTF-8 handling (cf. SF#2037598)</span></div></li> +<li><div class="src-line"><a name="a520"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a521"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a522"></a> <span class="src-key">var </span><span class="src-var">$encoding </span>= <span class="src-str">'utf-8'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a523"></a> </div></li> +<li><div class="src-line"><a name="a524"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a525"></a><span class="src-doc"> * Should keywords be linked?</span></div></li> +<li><div class="src-line"><a name="a526"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span></div></li> +<li><div class="src-line"><a name="a527"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a528"></a> <span class="src-key">var </span><span class="src-var">$keyword_links </span>= <span class="src-id">true</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a529"></a> </div></li> +<li><div class="src-line"><a name="a530"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a531"></a><span class="src-doc"> * Currently loaded language file</span></div></li> +<li><div class="src-line"><a name="a532"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a533"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.7.22</span></div></li> +<li><div class="src-line"><a name="a534"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a535"></a> <span class="src-key">var </span><span class="src-var">$loaded_language </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a536"></a> </div></li> +<li><div class="src-line"><a name="a537"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a538"></a><span class="src-doc"> * Wether the caches needed for parsing are built or not</span></div></li> +<li><div class="src-line"><a name="a539"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a540"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">bool </span></div></li> +<li><div class="src-line"><a name="a541"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a542"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a543"></a> <span class="src-key">var </span><span class="src-var">$parse_cache_built </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a544"></a> </div></li> +<li><div class="src-line"><a name="a545"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a546"></a><span class="src-doc"> * Work around for Suhosin Patch with disabled /e modifier</span></div></li> +<li><div class="src-line"><a name="a547"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a548"></a><span class="src-doc"> * Note from suhosins author in config file:</span></div></li> +<li><div class="src-line"><a name="a549"></a><span class="src-doc"> * <blockquote></span></div></li> +<li><div class="src-line"><a name="a550"></a><span class="src-doc"> * The /e modifier inside <code>preg_replace()</code> allows code execution.</span></div></li> +<li><div class="src-line"><a name="a551"></a><span class="src-doc"> * Often it is the cause for remote code execution exploits. It is wise to</span></div></li> +<li><div class="src-line"><a name="a552"></a><span class="src-doc"> * deactivate this feature and test where in the application it is used.</span></div></li> +<li><div class="src-line"><a name="a553"></a><span class="src-doc"> * The developer using the /e modifier should be made aware that he should</span></div></li> +<li><div class="src-line"><a name="a554"></a><span class="src-doc"> * use <code>preg_replace_callback()</code> instead</span></div></li> +<li><div class="src-line"><a name="a555"></a><span class="src-doc"> * </blockquote></span></div></li> +<li><div class="src-line"><a name="a556"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a557"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">array </span></div></li> +<li><div class="src-line"><a name="a558"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a559"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a560"></a> <span class="src-key">var </span><span class="src-var">$_kw_replace_group </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a561"></a> <span class="src-key">var </span><span class="src-var">$_rx_key </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a562"></a> </div></li> +<li><div class="src-line"><a name="a563"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a564"></a><span class="src-doc"> * some "callback parameters" for handle_multiline_regexps</span></div></li> +<li><div class="src-line"><a name="a565"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a566"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a567"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a568"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a569"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a570"></a> <span class="src-key">var </span><span class="src-var">$_hmr_before </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a571"></a> <span class="src-key">var </span><span class="src-var">$_hmr_replace </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a572"></a> <span class="src-key">var </span><span class="src-var">$_hmr_after </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a573"></a> <span class="src-key">var </span><span class="src-var">$_hmr_key </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a574"></a> </div></li> +<li><div class="src-line"><a name="a575"></a> <span class="src-comm">/**#@-*/</span></div></li> +<li><div class="src-line"><a name="a576"></a> </div></li> +<li><div class="src-line"><a name="a577"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a578"></a><span class="src-doc"> * Creates a new GeSHi object, with source and language</span></div></li> +<li><div class="src-line"><a name="a579"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a580"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The source code to highlight</span></div></li> +<li><div class="src-line"><a name="a581"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The language to highlight the source with</span></div></li> +<li><div class="src-line"><a name="a582"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The path to the language file directory. <b>This</span></div></li> +<li><div class="src-line"><a name="a583"></a><span class="src-doc"> * is deprecated!</b> I've backported the auto path</span></div></li> +<li><div class="src-line"><a name="a584"></a><span class="src-doc"> * detection from the 1.1.X dev branch, so now it</span></div></li> +<li><div class="src-line"><a name="a585"></a><span class="src-doc"> * should be automatically set correctly. If you have</span></div></li> +<li><div class="src-line"><a name="a586"></a><span class="src-doc"> * renamed the language directory however, you will</span></div></li> +<li><div class="src-line"><a name="a587"></a><span class="src-doc"> * still need to set the path using this parameter or</span></div></li> +<li><div class="src-line"><a name="a588"></a><span class="src-doc"> * </span><span class="src-doc-inlinetag">{@link GeSHi->set_language_path()}</span></div></li> +<li><div class="src-line"><a name="a589"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a590"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a591"></a> <span class="src-key">function </span><a href="../geshi/core/GeSHi.html#methodGeSHi">GeSHi</a><span class="src-sym">(</span><span class="src-var">$source </span>= <span class="src-str">''</span><span class="src-sym">, </span><span class="src-var">$language </span>= <span class="src-str">''</span><span class="src-sym">, </span><span class="src-var">$path </span>= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a592"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$source</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a593"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_source">set_source</a><span class="src-sym">(</span><span class="src-var">$source</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a594"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a595"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$language</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a596"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_language">set_language</a><span class="src-sym">(</span><span class="src-var">$language</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a597"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a598"></a> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_language_path">set_language_path</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a599"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a600"></a> </div></li> +<li><div class="src-line"><a name="a601"></a> <span class="src-doc">/**</span></div></li> +<li><div class="src-line"><a name="a602"></a><span class="src-doc"> * Returns an error message associated with the last GeSHi operation,</span></div></li> +<li><div class="src-line"><a name="a603"></a><span class="src-doc"> * or false if no error has occured</span></div></li> +<li><div class="src-line"><a name="a604"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a605"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">false</span><span class="src-doc">An error message if there has been an error, else false</span></div></li> +<li><div class="src-line"><a name="a606"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a607"></a><span class="src-doc"> */</span></div></li> +<li><div class="src-line"><a name="a608"></a> <span class="src-key">function </span><a href="../geshi/core/GeSHi.html#methoderror">error</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a609"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a610"></a> <span class="src-comm">//Put some template variables for debugging here ...</span></div></li> +<li><div class="src-line"><a name="a611"></a> <span class="src-var">$debug_tpl_vars </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li> +<li><div class="src-line"><a name="a612"></a> <span class="src-str">'{LANGUAGE}' </span>=> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a613"></a> <span class="src-str">'{PATH}' </span>=> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_path</span></div></li> +<li><div class="src-line"><a name="a614"></a> <span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a615"></a> <span class="src-var">$msg </span>= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span></div></li> +<li><div class="src-line"><a name="a616"></a> <a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$debug_tpl_vars</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a617"></a> <a href="http://www.php.net/array_values">array_values</a><span class="src-sym">(</span><span class="src-var">$debug_tpl_vars</span><span class="src-sym">)</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a618"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error_messages</span><span class="src-sym">[</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a619"></a> </div></li> +<li><div class="src-line"><a name="a620"></a> <span class="src-key">return </span><span class="src-str">"</span><span class="src-str"><br /><strong>GeSHi Error:</strong> <span class="src-var">$msg</span> (code {<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-var">error</span><span class="src-sym">}</span>)<br /></span><span class="src-str"><span class="src-str">"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a621"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a622"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a623"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a624"></a> </div></li> +<li><div class="src-line"><a name="a625"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a626"></a></span><span class="src-str"> * Gets a human-readable language name (thanks to Simon Patterson</span></div></li> +<li><div class="src-line"><a name="a627"></a></span><span class="src-str"> * for the idea :))</span></div></li> +<li><div class="src-line"><a name="a628"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a629"></a></span><span class="src-str"> * @return string The name for the current language</span></div></li> +<li><div class="src-line"><a name="a630"></a></span><span class="src-str"> * @since 1.0.2</span></div></li> +<li><div class="src-line"><a name="a631"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a632"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">get_language_name</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a633"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_ERROR_NO_SUCH_LANG</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a634"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'LANG_NAME'</span><span class="src-sym">]</span> . <span class="src-str">' (Unknown Language)'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a635"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a636"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'LANG_NAME'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a637"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a638"></a> </div></li> +<li><div class="src-line"><a name="a639"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a640"></a><span class="src-doc"> * Sets the source code for this object</span></div></li> +<li><div class="src-line"><a name="a641"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a642"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The source code to highlight</span></div></li> +<li><div class="src-line"><a name="a643"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a644"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a645"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_source">set_source</a><span class="src-sym">(</span><span class="src-var">$source</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a646"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">source</span> = <span class="src-var">$source</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a647"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a648"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a649"></a> </div></li> +<li><div class="src-line"><a name="a650"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a651"></a><span class="src-doc"> * Sets the language for this object</span></div></li> +<li><div class="src-line"><a name="a652"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a653"></a><span class="src-doc"> * </span><span class="src-doc-tag">@note</span><span class="src-doc"> since 1.0.8 this function won't reset language-settings by default anymore!</span></div></li> +<li><div class="src-line"><a name="a654"></a><span class="src-doc"> * if you need this set $force_reset = true</span></div></li> +<li><div class="src-line"><a name="a655"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a656"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The name of the language to use</span></div></li> +<li><div class="src-line"><a name="a657"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a658"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a659"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_language">set_language</a><span class="src-sym">(</span><span class="src-var">$language</span><span class="src-sym">,</span> <span class="src-var">$force_reset</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a660"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$force_reset</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a661"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">loaded_language</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a662"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a663"></a> </div></li> +<li><div class="src-line"><a name="a664"></a></span><span class="src-str"> <span class="src-comm">//Clean up the language name to prevent malicious code injection</span></span></div></li> +<li><div class="src-line"><a name="a665"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$language</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'#[^a-zA-Z0-9\-_]#'</span><span class="src-sym">,</span> <span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$language</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a666"></a> </div></li> +<li><div class="src-line"><a name="a667"></a></span><span class="src-str"> <span class="src-var">$language</span> = <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$language</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a668"></a> </div></li> +<li><div class="src-line"><a name="a669"></a></span><span class="src-str"> <span class="src-comm">//Retreive the full filename</span></span></div></li> +<li><div class="src-line"><a name="a670"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$file_name</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_path</span> . <span class="src-var">$language</span> . <span class="src-str">'.php'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a671"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$file_name</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">loaded_language</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a672"></a></span><span class="src-str"> <span class="src-comm">// this language is already loaded!</span></span></div></li> +<li><div class="src-line"><a name="a673"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a674"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a675"></a> </div></li> +<li><div class="src-line"><a name="a676"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language</span> = <span class="src-var">$language</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a677"></a> </div></li> +<li><div class="src-line"><a name="a678"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a679"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">strict_mode</span> = <span class="src-id">GESHI_NEVER</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a680"></a> </div></li> +<li><div class="src-line"><a name="a681"></a></span><span class="src-str"> <span class="src-comm">//Check if we can read the desired file</span></span></div></li> +<li><div class="src-line"><a name="a682"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_readable">is_readable</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a683"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span> = <span class="src-id">GESHI_ERROR_NO_SUCH_LANG</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a684"></a></span><span class="src-str"> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a685"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a686"></a> </div></li> +<li><div class="src-line"><a name="a687"></a></span><span class="src-str"> <span class="src-comm">// Load the language for parsing</span></span></div></li> +<li><div class="src-line"><a name="a688"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">load_language</span><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a689"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a690"></a> </div></li> +<li><div class="src-line"><a name="a691"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a692"></a><span class="src-doc"> * Sets the path to the directory containing the language files. Note</span></div></li> +<li><div class="src-line"><a name="a693"></a><span class="src-doc"> * that this path is relative to the directory of the script that included</span></div></li> +<li><div class="src-line"><a name="a694"></a><span class="src-doc"> * geshi.php, NOT geshi.php itself.</span></div></li> +<li><div class="src-line"><a name="a695"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a696"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The path to the language directory</span></div></li> +<li><div class="src-line"><a name="a697"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a698"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span><span class="src-doc"> The path to the language files should now be automatically</span></div></li> +<li><div class="src-line"><a name="a699"></a><span class="src-doc"> * detected, so this method should no longer be needed. The</span></div></li> +<li><div class="src-line"><a name="a700"></a><span class="src-doc"> * 1.1.X branch handles manual setting of the path differently</span></div></li> +<li><div class="src-line"><a name="a701"></a><span class="src-doc"> * so this method will disappear in 1.2.0.</span></div></li> +<li><div class="src-line"><a name="a702"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a703"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_language_path">set_language_path</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a704"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">,</span><span class="src-str">':'</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a705"></a></span><span class="src-str"> <span class="src-comm">//Security Fix to prevent external directories using fopen wrappers.</span></span></div></li> +<li><div class="src-line"><a name="a706"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">DIRECTORY_SEPARATOR</span> == <span class="src-str">"\\"</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a707"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'#^[a-zA-Z]:#'</span><span class="src-sym">,</span> <span class="src-var">$path</span><span class="src-sym">)</span> || <span class="src-id">false</span> !== <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">,</span> <span class="src-str">':'</span><span class="src-sym">,</span> <span class="src-num">2</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a708"></a></span><span class="src-str"> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a709"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a710"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a711"></a></span><span class="src-str"> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a712"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a713"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a714"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'#[^/a-zA-Z0-9_\.\-\\\s:]#'</span><span class="src-sym">,</span> <span class="src-var">$path</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a715"></a></span><span class="src-str"> <span class="src-comm">//Security Fix to prevent external directories using fopen wrappers.</span></span></div></li> +<li><div class="src-line"><a name="a716"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a717"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a718"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_SECURITY_PARANOID">GESHI_SECURITY_PARANOID</a></span> && <span class="src-id">false</span> !== <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">,</span> <span class="src-str">'/.'</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a719"></a></span><span class="src-str"> <span class="src-comm">//Security Fix to prevent external directories using fopen wrappers.</span></span></div></li> +<li><div class="src-line"><a name="a720"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a721"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a722"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_SECURITY_PARANOID">GESHI_SECURITY_PARANOID</a></span> && <span class="src-id">false</span> !== <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">,</span> <span class="src-str">'..'</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a723"></a></span><span class="src-str"> <span class="src-comm">//Security Fix to prevent external directories using fopen wrappers.</span></span></div></li> +<li><div class="src-line"><a name="a724"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a725"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a726"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a727"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_path</span> = <span class="src-sym">(</span><span class="src-str">'/'</span> == <span class="src-var">$path</span><span class="src-sym">[</span><a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$path</span><span class="src-sym">)</span> - <span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span> ? <span class="src-var">$path</span> : <span class="src-var">$path</span> . <span class="src-str">'/'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a728"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_language">set_language</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-comm">// otherwise set_language_path has no effect</span></span></div></li> +<li><div class="src-line"><a name="a729"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a730"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a731"></a> </div></li> +<li><div class="src-line"><a name="a732"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a733"></a><span class="src-doc"> * Sets the type of header to be used.</span></div></li> +<li><div class="src-line"><a name="a734"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a735"></a><span class="src-doc"> * If GESHI_HEADER_DIV is used, the code is surrounded in a "div".This</span></div></li> +<li><div class="src-line"><a name="a736"></a><span class="src-doc"> * means more source code but more control over tab width and line-wrapping.</span></div></li> +<li><div class="src-line"><a name="a737"></a><span class="src-doc"> * GESHI_HEADER_PRE means that a "pre" is used - less source, but less</span></div></li> +<li><div class="src-line"><a name="a738"></a><span class="src-doc"> * control. Default is GESHI_HEADER_PRE.</span></div></li> +<li><div class="src-line"><a name="a739"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a740"></a><span class="src-doc"> * From 1.0.7.2, you can use GESHI_HEADER_NONE to specify that no header code</span></div></li> +<li><div class="src-line"><a name="a741"></a><span class="src-doc"> * should be outputted.</span></div></li> +<li><div class="src-line"><a name="a742"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a743"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">The type of header to be used</span></div></li> +<li><div class="src-line"><a name="a744"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a745"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a746"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_header_type">set_header_type</a><span class="src-sym">(</span><span class="src-var">$type</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a747"></a></span><span class="src-str"> <span class="src-comm">//Check if we got a valid header type</span></span></div></li> +<li><div class="src-line"><a name="a748"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$type</span><span class="src-sym">,</span> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_NONE">GESHI_HEADER_NONE</a></span><span class="src-sym">,</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_DIV">GESHI_HEADER_DIV</a></span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a749"></a></span><span class="src-str"> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span><span class="src-sym">,</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">,</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a></span><span class="src-sym">)))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a750"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span> = <span class="src-id">GESHI_ERROR_INVALID_HEADER_TYPE</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a751"></a></span><span class="src-str"> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a752"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a753"></a> </div></li> +<li><div class="src-line"><a name="a754"></a></span><span class="src-str"> <span class="src-comm">//Set that new header type</span></span></div></li> +<li><div class="src-line"><a name="a755"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">header_type</span> = <span class="src-var">$type</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a756"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a757"></a> </div></li> +<li><div class="src-line"><a name="a758"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a759"></a><span class="src-doc"> * Sets the styles for the code that will be outputted</span></div></li> +<li><div class="src-line"><a name="a760"></a><span class="src-doc"> * when this object is parsed. The style should be a</span></div></li> +<li><div class="src-line"><a name="a761"></a><span class="src-doc"> * string of valid stylesheet declarations</span></div></li> +<li><div class="src-line"><a name="a762"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a763"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The overall style for the outputted code block</span></div></li> +<li><div class="src-line"><a name="a764"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the styles with the current styles or not</span></div></li> +<li><div class="src-line"><a name="a765"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a766"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a767"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_overall_style">set_overall_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a768"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a769"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">overall_style</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a770"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a771"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">overall_style</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a772"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a773"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a774"></a> </div></li> +<li><div class="src-line"><a name="a775"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a776"></a><span class="src-doc"> * Sets the overall classname for this block of code. This</span></div></li> +<li><div class="src-line"><a name="a777"></a><span class="src-doc"> * class can then be used in a stylesheet to style this object's</span></div></li> +<li><div class="src-line"><a name="a778"></a><span class="src-doc"> * output</span></div></li> +<li><div class="src-line"><a name="a779"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a780"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The class name to use for this block of code</span></div></li> +<li><div class="src-line"><a name="a781"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a782"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a783"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_overall_class">set_overall_class</a><span class="src-sym">(</span><span class="src-var">$class</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a784"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">overall_class</span> = <span class="src-var">$class</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a785"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a786"></a> </div></li> +<li><div class="src-line"><a name="a787"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a788"></a><span class="src-doc"> * Sets the overall id for this block of code. This id can then</span></div></li> +<li><div class="src-line"><a name="a789"></a><span class="src-doc"> * be used in a stylesheet to style this object's output</span></div></li> +<li><div class="src-line"><a name="a790"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a791"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The ID to use for this block of code</span></div></li> +<li><div class="src-line"><a name="a792"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a793"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a794"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_overall_id">set_overall_id</a><span class="src-sym">(</span><span class="src-var">$id</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a795"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">overall_id</span> = <span class="src-var">$id</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a796"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a797"></a> </div></li> +<li><div class="src-line"><a name="a798"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a799"></a><span class="src-doc"> * Sets whether CSS classes should be used to highlight the source. Default</span></div></li> +<li><div class="src-line"><a name="a800"></a><span class="src-doc"> * is off, calling this method with no arguments will turn it on</span></div></li> +<li><div class="src-line"><a name="a801"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a802"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn classes on or not</span></div></li> +<li><div class="src-line"><a name="a803"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a804"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a805"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_classes">enable_classes</a><span class="src-sym">(</span><span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a806"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">use_classes</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a807"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a808"></a> </div></li> +<li><div class="src-line"><a name="a809"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a810"></a><span class="src-doc"> * Sets the style for the actual code. This should be a string</span></div></li> +<li><div class="src-line"><a name="a811"></a><span class="src-doc"> * containing valid stylesheet declarations. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a812"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a813"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a814"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a815"></a><span class="src-doc"> * Note: Use this method to override any style changes you made to</span></div></li> +<li><div class="src-line"><a name="a816"></a><span class="src-doc"> * the line numbers if you are using line numbers, else the line of</span></div></li> +<li><div class="src-line"><a name="a817"></a><span class="src-doc"> * code will have the same style as the line number! Consult the</span></div></li> +<li><div class="src-line"><a name="a818"></a><span class="src-doc"> * GeSHi documentation for more information about this.</span></div></li> +<li><div class="src-line"><a name="a819"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a820"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to use for actual code</span></div></li> +<li><div class="src-line"><a name="a821"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the current styles with the new styles</span></div></li> +<li><div class="src-line"><a name="a822"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a823"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a824"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_code_style">set_code_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a825"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a826"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">code_style</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a827"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a828"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">code_style</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a829"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a830"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a831"></a> </div></li> +<li><div class="src-line"><a name="a832"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a833"></a><span class="src-doc"> * Sets the styles for the line numbers.</span></div></li> +<li><div class="src-line"><a name="a834"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a835"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The style for the line numbers that are "normal"</span></div></li> +<li><div class="src-line"><a name="a836"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string</span><span class="src-doc">|</span><span class="src-doc-type">boolean</span><span class="src-doc">If a string, this is the style of the line</span></div></li> +<li><div class="src-line"><a name="a837"></a><span class="src-doc"> * numbers that are "fancy", otherwise if boolean then this</span></div></li> +<li><div class="src-line"><a name="a838"></a><span class="src-doc"> * defines whether the normal styles should be merged with the</span></div></li> +<li><div class="src-line"><a name="a839"></a><span class="src-doc"> * new normal styles or not</span></div></li> +<li><div class="src-line"><a name="a840"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">If set, is the flag for whether to merge the "fancy"</span></div></li> +<li><div class="src-line"><a name="a841"></a><span class="src-doc"> * styles with the current styles or not</span></div></li> +<li><div class="src-line"><a name="a842"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a843"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a844"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_line_style">set_line_style</a><span class="src-sym">(</span><span class="src-var">$style1</span><span class="src-sym">,</span> <span class="src-var">$style2</span> = <span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a845"></a></span><span class="src-str"> <span class="src-comm">//Check if we got 2 or three parameters</span></span></div></li> +<li><div class="src-line"><a name="a846"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_bool">is_bool</a><span class="src-sym">(</span><span class="src-var">$style2</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a847"></a></span><span class="src-str"> <span class="src-var">$preserve_defaults</span> = <span class="src-var">$style2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a848"></a></span><span class="src-str"> <span class="src-var">$style2</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a849"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a850"></a> </div></li> +<li><div class="src-line"><a name="a851"></a></span><span class="src-str"> <span class="src-comm">//Actually set the new styles</span></span></div></li> +<li><div class="src-line"><a name="a852"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a853"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_style1</span> = <span class="src-var">$style1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a854"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_style2</span> = <span class="src-var">$style2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a855"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a856"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_style1</span> .= <span class="src-var">$style1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a857"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_style2</span> .= <span class="src-var">$style2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a858"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a859"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a860"></a> </div></li> +<li><div class="src-line"><a name="a861"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a862"></a><span class="src-doc"> * Sets whether line numbers should be displayed.</span></div></li> +<li><div class="src-line"><a name="a863"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a864"></a><span class="src-doc"> * Valid values for the first parameter are:</span></div></li> +<li><div class="src-line"><a name="a865"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a866"></a><span class="src-doc"> * - GESHI_NO_LINE_NUMBERS: Line numbers will not be displayed</span></div></li> +<li><div class="src-line"><a name="a867"></a><span class="src-doc"> * - GESHI_NORMAL_LINE_NUMBERS: Line numbers will be displayed</span></div></li> +<li><div class="src-line"><a name="a868"></a><span class="src-doc"> * - GESHI_FANCY_LINE_NUMBERS: Fancy line numbers will be displayed</span></div></li> +<li><div class="src-line"><a name="a869"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a870"></a><span class="src-doc"> * For fancy line numbers, the second parameter is used to signal which lines</span></div></li> +<li><div class="src-line"><a name="a871"></a><span class="src-doc"> * are to be fancy. For example, if the value of this parameter is 5 then every</span></div></li> +<li><div class="src-line"><a name="a872"></a><span class="src-doc"> * 5th line will be fancy.</span></div></li> +<li><div class="src-line"><a name="a873"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a874"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">How line numbers should be displayed</span></div></li> +<li><div class="src-line"><a name="a875"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">Defines which lines are fancy</span></div></li> +<li><div class="src-line"><a name="a876"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a877"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a878"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_line_numbers">enable_line_numbers</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">,</span> <span class="src-var">$nth_row</span> = <span class="src-num">5</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a879"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span> != <span class="src-var">$flag</span> && <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NORMAL_LINE_NUMBERS">GESHI_NORMAL_LINE_NUMBERS</a></span> != <span class="src-var">$flag</span></span></div></li> +<li><div class="src-line"><a name="a880"></a></span><span class="src-str"> && <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a></span> != <span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a881"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span> = <span class="src-id">GESHI_ERROR_INVALID_LINE_NUMBER_TYPE</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a882"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a883"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_numbers</span> = <span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a884"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_nth_row</span> = <span class="src-var">$nth_row</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a885"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a886"></a> </div></li> +<li><div class="src-line"><a name="a887"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a888"></a><span class="src-doc"> * Sets wether spans and other HTML markup generated by GeSHi can</span></div></li> +<li><div class="src-line"><a name="a889"></a><span class="src-doc"> * span over multiple lines or not. Defaults to true to reduce overhead.</span></div></li> +<li><div class="src-line"><a name="a890"></a><span class="src-doc"> * Set it to false if you want to manipulate the output or manually display</span></div></li> +<li><div class="src-line"><a name="a891"></a><span class="src-doc"> * the code in an ordered list.</span></div></li> +<li><div class="src-line"><a name="a892"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a893"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Wether multiline spans are allowed or not</span></div></li> +<li><div class="src-line"><a name="a894"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.7.22</span></div></li> +<li><div class="src-line"><a name="a895"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a896"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_multiline_span">enable_multiline_span</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a897"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">allow_multiline_span</span> = (bool) <span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a898"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a899"></a> </div></li> +<li><div class="src-line"><a name="a900"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a901"></a><span class="src-doc"> * Get current setting for multiline spans, see GeSHi->enable_multiline_span().</span></div></li> +<li><div class="src-line"><a name="a902"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a903"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> enable_multiline_span</span></div></li> +<li><div class="src-line"><a name="a904"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">bool </span></div></li> +<li><div class="src-line"><a name="a905"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a906"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodget_multiline_span">get_multiline_span</a><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a907"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">allow_multiline_span</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a908"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a909"></a> </div></li> +<li><div class="src-line"><a name="a910"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a911"></a><span class="src-doc"> * Sets the style for a keyword group. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a912"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a913"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a914"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a915"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to change the styles of</span></div></li> +<li><div class="src-line"><a name="a916"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the keywords</span></div></li> +<li><div class="src-line"><a name="a917"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a918"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a919"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a920"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a921"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_keyword_group_style">set_keyword_group_style</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a922"></a></span><span class="src-str"> <span class="src-comm">//Set the style for this keyword group</span></span></div></li> +<li><div class="src-line"><a name="a923"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a924"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a925"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a926"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a927"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a928"></a> </div></li> +<li><div class="src-line"><a name="a929"></a></span><span class="src-str"> <span class="src-comm">//Update the lexic permissions</span></span></div></li> +<li><div class="src-line"><a name="a930"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a931"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a932"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a933"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a934"></a> </div></li> +<li><div class="src-line"><a name="a935"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a936"></a><span class="src-doc"> * Turns highlighting on/off for a keyword group</span></div></li> +<li><div class="src-line"><a name="a937"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a938"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to turn on or off</span></div></li> +<li><div class="src-line"><a name="a939"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for that group on or off</span></div></li> +<li><div class="src-line"><a name="a940"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a941"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a942"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_keyword_group_highlighting">set_keyword_group_highlighting</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a943"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a944"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a945"></a> </div></li> +<li><div class="src-line"><a name="a946"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a947"></a><span class="src-doc"> * Sets the styles for comment groups. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a948"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a949"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a950"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a951"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the comment group to change the styles of</span></div></li> +<li><div class="src-line"><a name="a952"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the comments</span></div></li> +<li><div class="src-line"><a name="a953"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a954"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a955"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a956"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a957"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_comments_style">set_comments_style</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a958"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a959"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a960"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a961"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a962"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a963"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a964"></a> </div></li> +<li><div class="src-line"><a name="a965"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a966"></a><span class="src-doc"> * Turns highlighting on/off for comment groups</span></div></li> +<li><div class="src-line"><a name="a967"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a968"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the comment group to turn on or off</span></div></li> +<li><div class="src-line"><a name="a969"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for that group on or off</span></div></li> +<li><div class="src-line"><a name="a970"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a971"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a972"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_comments_highlighting">set_comments_highlighting</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a973"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a974"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a975"></a> </div></li> +<li><div class="src-line"><a name="a976"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a977"></a><span class="src-doc"> * Sets the styles for escaped characters. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a978"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a979"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a980"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a981"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the escape characters</span></div></li> +<li><div class="src-line"><a name="a982"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a983"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a984"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a985"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a986"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_escape_characters_style">set_escape_characters_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a987"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a988"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a989"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a990"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a991"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a992"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a993"></a> </div></li> +<li><div class="src-line"><a name="a994"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a995"></a><span class="src-doc"> * Turns highlighting on/off for escaped characters</span></div></li> +<li><div class="src-line"><a name="a996"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a997"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for escape characters on or off</span></div></li> +<li><div class="src-line"><a name="a998"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a999"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1000"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_escape_characters_highlighting">set_escape_characters_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1001"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1002"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1003"></a> </div></li> +<li><div class="src-line"><a name="a1004"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1005"></a><span class="src-doc"> * Sets the styles for brackets. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1006"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1007"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1008"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1009"></a><span class="src-doc"> * This method is DEPRECATED: use set_symbols_style instead.</span></div></li> +<li><div class="src-line"><a name="a1010"></a><span class="src-doc"> * This method will be removed in 1.2.X</span></div></li> +<li><div class="src-line"><a name="a1011"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1012"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the brackets</span></div></li> +<li><div class="src-line"><a name="a1013"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1014"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1015"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1016"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span><span class="src-doc"> In favour of set_symbols_style</span></div></li> +<li><div class="src-line"><a name="a1017"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1018"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_brackets_style">set_brackets_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1019"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1020"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1021"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1022"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1023"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1024"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1025"></a> </div></li> +<li><div class="src-line"><a name="a1026"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1027"></a><span class="src-doc"> * Turns highlighting on/off for brackets</span></div></li> +<li><div class="src-line"><a name="a1028"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1029"></a><span class="src-doc"> * This method is DEPRECATED: use set_symbols_highlighting instead.</span></div></li> +<li><div class="src-line"><a name="a1030"></a><span class="src-doc"> * This method will be remove in 1.2.X</span></div></li> +<li><div class="src-line"><a name="a1031"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1032"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for brackets on or off</span></div></li> +<li><div class="src-line"><a name="a1033"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1034"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span><span class="src-doc"> In favour of set_symbols_highlighting</span></div></li> +<li><div class="src-line"><a name="a1035"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1036"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_brackets_highlighting">set_brackets_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1037"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1038"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1039"></a> </div></li> +<li><div class="src-line"><a name="a1040"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1041"></a><span class="src-doc"> * Sets the styles for symbols. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1042"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1043"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1044"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1045"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the symbols</span></div></li> +<li><div class="src-line"><a name="a1046"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1047"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1048"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> Tells the group of symbols for which style should be set.</span></div></li> +<li><div class="src-line"><a name="a1049"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.1</span></div></li> +<li><div class="src-line"><a name="a1050"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1051"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_symbols_style">set_symbols_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">,</span> <span class="src-var">$group</span> = <span class="src-num">0</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1052"></a></span><span class="src-str"> <span class="src-comm">// Update the style of symbols</span></span></div></li> +<li><div class="src-line"><a name="a1053"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1054"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1055"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1056"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1057"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1058"></a> </div></li> +<li><div class="src-line"><a name="a1059"></a></span><span class="src-str"> <span class="src-comm">// For backward compatibility</span></span></div></li> +<li><div class="src-line"><a name="a1060"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-num">0</span> == <span class="src-var">$group</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1061"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_brackets_style">set_brackets_style</a> <span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1062"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1063"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1064"></a> </div></li> +<li><div class="src-line"><a name="a1065"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1066"></a><span class="src-doc"> * Turns highlighting on/off for symbols</span></div></li> +<li><div class="src-line"><a name="a1067"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1068"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for symbols on or off</span></div></li> +<li><div class="src-line"><a name="a1069"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1070"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1071"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_symbols_highlighting">set_symbols_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1072"></a></span><span class="src-str"> <span class="src-comm">// Update lexic permissions for this symbol group</span></span></div></li> +<li><div class="src-line"><a name="a1073"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1074"></a> </div></li> +<li><div class="src-line"><a name="a1075"></a></span><span class="src-str"> <span class="src-comm">// For backward compatibility</span></span></div></li> +<li><div class="src-line"><a name="a1076"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_brackets_highlighting">set_brackets_highlighting</a> <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1077"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1078"></a> </div></li> +<li><div class="src-line"><a name="a1079"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1080"></a><span class="src-doc"> * Sets the styles for strings. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1081"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1082"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1083"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1084"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the escape characters</span></div></li> +<li><div class="src-line"><a name="a1085"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1086"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1087"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1088"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1089"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_strings_style">set_strings_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1090"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1091"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1092"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1093"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1094"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1095"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1096"></a> </div></li> +<li><div class="src-line"><a name="a1097"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1098"></a><span class="src-doc"> * Turns highlighting on/off for strings</span></div></li> +<li><div class="src-line"><a name="a1099"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1100"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for strings on or off</span></div></li> +<li><div class="src-line"><a name="a1101"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1102"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1103"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_strings_highlighting">set_strings_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1104"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1105"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1106"></a> </div></li> +<li><div class="src-line"><a name="a1107"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1108"></a><span class="src-doc"> * Sets the styles for numbers. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1109"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1110"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1111"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1112"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the numbers</span></div></li> +<li><div class="src-line"><a name="a1113"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1114"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1115"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1116"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1117"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_numbers_style">set_numbers_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1118"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1119"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1120"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1121"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1122"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1123"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1124"></a> </div></li> +<li><div class="src-line"><a name="a1125"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1126"></a><span class="src-doc"> * Turns highlighting on/off for numbers</span></div></li> +<li><div class="src-line"><a name="a1127"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1128"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for numbers on or off</span></div></li> +<li><div class="src-line"><a name="a1129"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1130"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1131"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_numbers_highlighting">set_numbers_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1132"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1133"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1134"></a> </div></li> +<li><div class="src-line"><a name="a1135"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1136"></a><span class="src-doc"> * Sets the styles for methods. $key is a number that references the</span></div></li> +<li><div class="src-line"><a name="a1137"></a><span class="src-doc"> * appropriate "object splitter" - see the language file for the language</span></div></li> +<li><div class="src-line"><a name="a1138"></a><span class="src-doc"> * you are highlighting to get this number. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1139"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1140"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1141"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1142"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the object splitter to change the styles of</span></div></li> +<li><div class="src-line"><a name="a1143"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the methods</span></div></li> +<li><div class="src-line"><a name="a1144"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1145"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1146"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1147"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1148"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_methods_style">set_methods_style</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1149"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1150"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1151"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1152"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1153"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1154"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1155"></a> </div></li> +<li><div class="src-line"><a name="a1156"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1157"></a><span class="src-doc"> * Turns highlighting on/off for methods</span></div></li> +<li><div class="src-line"><a name="a1158"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1159"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for methods on or off</span></div></li> +<li><div class="src-line"><a name="a1160"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1161"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1162"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_methods_highlighting">set_methods_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1163"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1164"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1165"></a> </div></li> +<li><div class="src-line"><a name="a1166"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1167"></a><span class="src-doc"> * Sets the styles for regexps. If $preserve_defaults is</span></div></li> +<li><div class="src-line"><a name="a1168"></a><span class="src-doc"> * true, then styles are merged with the default styles, with the</span></div></li> +<li><div class="src-line"><a name="a1169"></a><span class="src-doc"> * user defined styles having priority</span></div></li> +<li><div class="src-line"><a name="a1170"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1171"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc"> The style to make the regular expression matches</span></div></li> +<li><div class="src-line"><a name="a1172"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to merge the new styles with the old or just</span></div></li> +<li><div class="src-line"><a name="a1173"></a><span class="src-doc"> * to overwrite them</span></div></li> +<li><div class="src-line"><a name="a1174"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1175"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1176"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_regexps_style">set_regexps_style</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$style</span><span class="src-sym">,</span> <span class="src-var">$preserve_defaults</span> = <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1177"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$preserve_defaults</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1178"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1179"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1180"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1181"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1182"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1183"></a> </div></li> +<li><div class="src-line"><a name="a1184"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1185"></a><span class="src-doc"> * Turns highlighting on/off for regexps</span></div></li> +<li><div class="src-line"><a name="a1186"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1187"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the regular expression group to turn on or off</span></div></li> +<li><div class="src-line"><a name="a1188"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to turn highlighting for the regular expression group on or off</span></div></li> +<li><div class="src-line"><a name="a1189"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1190"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1191"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_regexps_highlighting">set_regexps_highlighting</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1192"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1193"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1194"></a> </div></li> +<li><div class="src-line"><a name="a1195"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1196"></a><span class="src-doc"> * Sets whether a set of keywords are checked for in a case sensitive manner</span></div></li> +<li><div class="src-line"><a name="a1197"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1198"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">The key of the keyword group to change the case sensitivity of</span></div></li> +<li><div class="src-line"><a name="a1199"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to check in a case sensitive manner or not</span></div></li> +<li><div class="src-line"><a name="a1200"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1201"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1202"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_case_sensitivity">set_case_sensitivity</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$case</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1203"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-sym">(</span><span class="src-var">$case</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1204"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1205"></a> </div></li> +<li><div class="src-line"><a name="a1206"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1207"></a><span class="src-doc"> * Sets the case that keywords should use when found. Use the constants:</span></div></li> +<li><div class="src-line"><a name="a1208"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1209"></a><span class="src-doc"> * - GESHI_CAPS_NO_CHANGE: leave keywords as-is</span></div></li> +<li><div class="src-line"><a name="a1210"></a><span class="src-doc"> * - GESHI_CAPS_UPPER: convert all keywords to uppercase where found</span></div></li> +<li><div class="src-line"><a name="a1211"></a><span class="src-doc"> * - GESHI_CAPS_LOWER: convert all keywords to lowercase where found</span></div></li> +<li><div class="src-line"><a name="a1212"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1213"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">A constant specifying what to do with matched keywords</span></div></li> +<li><div class="src-line"><a name="a1214"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.1</span></div></li> +<li><div class="src-line"><a name="a1215"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1216"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_case_keywords">set_case_keywords</a><span class="src-sym">(</span><span class="src-var">$case</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1217"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$case</span><span class="src-sym">,</span> <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a1218"></a></span><span class="src-str"> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_CAPS_NO_CHANGE">GESHI_CAPS_NO_CHANGE</a></span><span class="src-sym">,</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_CAPS_UPPER">GESHI_CAPS_UPPER</a></span><span class="src-sym">,</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_CAPS_LOWER">GESHI_CAPS_LOWER</a></span><span class="src-sym">)))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1219"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_KEYWORDS'</span><span class="src-sym">]</span> = <span class="src-var">$case</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1220"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1221"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1222"></a> </div></li> +<li><div class="src-line"><a name="a1223"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1224"></a><span class="src-doc"> * Sets how many spaces a tab is substituted for</span></div></li> +<li><div class="src-line"><a name="a1225"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1226"></a><span class="src-doc"> * Widths below zero are ignored</span></div></li> +<li><div class="src-line"><a name="a1227"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1228"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">The tab width</span></div></li> +<li><div class="src-line"><a name="a1229"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1230"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1231"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_tab_width">set_tab_width</a><span class="src-sym">(</span><span class="src-var">$width</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1232"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">tab_width</span> = <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$width</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1233"></a> </div></li> +<li><div class="src-line"><a name="a1234"></a></span><span class="src-str"> <span class="src-comm">//Check if it fit's the constraints:</span></span></div></li> +<li><div class="src-line"><a name="a1235"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">tab_width</span> < <span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1236"></a></span><span class="src-str"> <span class="src-comm">//Return it to the default</span></span></div></li> +<li><div class="src-line"><a name="a1237"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">tab_width</span> = <span class="src-num">8</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1238"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1239"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1240"></a> </div></li> +<li><div class="src-line"><a name="a1241"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1242"></a><span class="src-doc"> * Sets whether or not to use tab-stop width specifed by language</span></div></li> +<li><div class="src-line"><a name="a1243"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1244"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to use language-specific tab-stop widths</span></div></li> +<li><div class="src-line"><a name="a1245"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.7.20</span></div></li> +<li><div class="src-line"><a name="a1246"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1247"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_use_language_tab_width">set_use_language_tab_width</a><span class="src-sym">(</span><span class="src-var">$use</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1248"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">use_language_tab_width</span> = (bool) <span class="src-var">$use</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1249"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1250"></a> </div></li> +<li><div class="src-line"><a name="a1251"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1252"></a><span class="src-doc"> * Returns the tab width to use, based on the current language and user</span></div></li> +<li><div class="src-line"><a name="a1253"></a><span class="src-doc"> * preference</span></div></li> +<li><div class="src-line"><a name="a1254"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1255"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">int </span><span class="src-doc">Tab width</span></div></li> +<li><div class="src-line"><a name="a1256"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.7.20</span></div></li> +<li><div class="src-line"><a name="a1257"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1258"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodget_real_tab_width">get_real_tab_width</a><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1259"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">use_language_tab_width</span> ||</span></div></li> +<li><div class="src-line"><a name="a1260"></a></span><span class="src-str"> <span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'TAB_WIDTH'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1261"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">tab_width</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1262"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1263"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'TAB_WIDTH'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1264"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1265"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1266"></a> </div></li> +<li><div class="src-line"><a name="a1267"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1268"></a><span class="src-doc"> * Enables/disables strict highlighting. Default is off, calling this</span></div></li> +<li><div class="src-line"><a name="a1269"></a><span class="src-doc"> * method without parameters will turn it on. See documentation</span></div></li> +<li><div class="src-line"><a name="a1270"></a><span class="src-doc"> * for more details on strict mode and where to use it.</span></div></li> +<li><div class="src-line"><a name="a1271"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1272"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether to enable strict mode or not</span></div></li> +<li><div class="src-line"><a name="a1273"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1274"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1275"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_strict_mode">enable_strict_mode</a><span class="src-sym">(</span><span class="src-var">$mode</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1276"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_MAYBE</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STRICT_MODE_APPLIES'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1277"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">strict_mode</span> = <span class="src-sym">(</span><span class="src-var">$mode</span><span class="src-sym">)</span> ? <span class="src-id">GESHI_ALWAYS</span> : <span class="src-id">GESHI_NEVER</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1278"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1279"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1280"></a> </div></li> +<li><div class="src-line"><a name="a1281"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1282"></a><span class="src-doc"> * Disables all highlighting</span></div></li> +<li><div class="src-line"><a name="a1283"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1284"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1285"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Rewrite with array traversal</span></div></li> +<li><div class="src-line"><a name="a1286"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span><span class="src-doc"> In favour of enable_highlighting</span></div></li> +<li><div class="src-line"><a name="a1287"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1288"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methoddisable_highlighting">disable_highlighting</a><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1289"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodenable_highlighting">enable_highlighting</a><span class="src-sym">(</span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1290"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1291"></a> </div></li> +<li><div class="src-line"><a name="a1292"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1293"></a><span class="src-doc"> * Enables all highlighting</span></div></li> +<li><div class="src-line"><a name="a1294"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1295"></a><span class="src-doc"> * The optional flag parameter was added in version 1.0.7.21 and can be used</span></div></li> +<li><div class="src-line"><a name="a1296"></a><span class="src-doc"> * to enable (true) or disable (false) all highlighting.</span></div></li> +<li><div class="src-line"><a name="a1297"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1298"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1299"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">A flag specifying whether to enable or disable all highlighting</span></div></li> +<li><div class="src-line"><a name="a1300"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Rewrite with array traversal</span></div></li> +<li><div class="src-line"><a name="a1301"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1302"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_highlighting">enable_highlighting</a><span class="src-sym">(</span><span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1303"></a></span><span class="src-str"> <span class="src-var">$flag</span> = <span class="src-var">$flag</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1304"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$value</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1305"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1306"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$value</span> <span class="src-key">as</span> <span class="src-var">$k</span> => <span class="src-var">$v</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1307"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> = <span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1308"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1309"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1310"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1311"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1312"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1313"></a> </div></li> +<li><div class="src-line"><a name="a1314"></a></span><span class="src-str"> <span class="src-comm">// Context blocks</span></span></div></li> +<li><div class="src-line"><a name="a1315"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">enable_important_blocks</span> = <span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1316"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1317"></a> </div></li> +<li><div class="src-line"><a name="a1318"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1319"></a><span class="src-doc"> * Given a file extension, this method returns either a valid geshi language</span></div></li> +<li><div class="src-line"><a name="a1320"></a><span class="src-doc"> * name, or the empty string if it couldn't be found</span></div></li> +<li><div class="src-line"><a name="a1321"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1322"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The extension to get a language name for</span></div></li> +<li><div class="src-line"><a name="a1323"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc"> A lookup array to use instead of the default one</span></div></li> +<li><div class="src-line"><a name="a1324"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.5</span></div></li> +<li><div class="src-line"><a name="a1325"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Re-think about how this method works (maybe make it private and/or make it</span></div></li> +<li><div class="src-line"><a name="a1326"></a><span class="src-doc"> * a extension->lang lookup?)</span></div></li> +<li><div class="src-line"><a name="a1327"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> static?</span></div></li> +<li><div class="src-line"><a name="a1328"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1329"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodget_language_name_from_extension">get_language_name_from_extension</a><span class="src-sym">(</span> <span class="src-var">$extension</span><span class="src-sym">,</span> <span class="src-var">$lookup</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1330"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span> <span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$lookup</span><span class="src-sym">)</span> || <span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$lookup</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1331"></a></span><span class="src-str"> <span class="src-var">$lookup</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a1332"></a></span><span class="src-str"> <span class="src-str">'actionscript'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'as'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1333"></a></span><span class="src-str"> <span class="src-str">'ada'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'a'</span><span class="src-sym">,</span> <span class="src-str">'ada'</span><span class="src-sym">,</span> <span class="src-str">'adb'</span><span class="src-sym">,</span> <span class="src-str">'ads'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1334"></a></span><span class="src-str"> <span class="src-str">'apache'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'conf'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1335"></a></span><span class="src-str"> <span class="src-str">'asm'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'ash'</span><span class="src-sym">,</span> <span class="src-str">'asm'</span><span class="src-sym">,</span> <span class="src-str">'inc'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1336"></a></span><span class="src-str"> <span class="src-str">'asp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'asp'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1337"></a></span><span class="src-str"> <span class="src-str">'bash'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'sh'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1338"></a></span><span class="src-str"> <span class="src-str">'bf'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'bf'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1339"></a></span><span class="src-str"> <span class="src-str">'c'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'c'</span><span class="src-sym">,</span> <span class="src-str">'h'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1340"></a></span><span class="src-str"> <span class="src-str">'c_mac'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'c'</span><span class="src-sym">,</span> <span class="src-str">'h'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1341"></a></span><span class="src-str"> <span class="src-str">'caddcl'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1342"></a></span><span class="src-str"> <span class="src-str">'cadlisp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1343"></a></span><span class="src-str"> <span class="src-str">'cdfg'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'cdfg'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1344"></a></span><span class="src-str"> <span class="src-str">'cobol'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'cbl'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1345"></a></span><span class="src-str"> <span class="src-str">'cpp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'cpp'</span><span class="src-sym">,</span> <span class="src-str">'hpp'</span><span class="src-sym">,</span> <span class="src-str">'C'</span><span class="src-sym">,</span> <span class="src-str">'H'</span><span class="src-sym">,</span> <span class="src-str">'CPP'</span><span class="src-sym">,</span> <span class="src-str">'HPP'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1346"></a></span><span class="src-str"> <span class="src-str">'csharp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'cs'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1347"></a></span><span class="src-str"> <span class="src-str">'css'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'css'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1348"></a></span><span class="src-str"> <span class="src-str">'d'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'d'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1349"></a></span><span class="src-str"> <span class="src-str">'delphi'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'dpk'</span><span class="src-sym">,</span> <span class="src-str">'dpr'</span><span class="src-sym">,</span> <span class="src-str">'pp'</span><span class="src-sym">,</span> <span class="src-str">'pas'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1350"></a></span><span class="src-str"> <span class="src-str">'diff'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'diff'</span><span class="src-sym">,</span> <span class="src-str">'patch'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1351"></a></span><span class="src-str"> <span class="src-str">'dos'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'bat'</span><span class="src-sym">,</span> <span class="src-str">'cmd'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1352"></a></span><span class="src-str"> <span class="src-str">'gettext'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'po'</span><span class="src-sym">,</span> <span class="src-str">'pot'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1353"></a></span><span class="src-str"> <span class="src-str">'gml'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'gml'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1354"></a></span><span class="src-str"> <span class="src-str">'gnuplot'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'plt'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1355"></a></span><span class="src-str"> <span class="src-str">'groovy'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'groovy'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1356"></a></span><span class="src-str"> <span class="src-str">'haskell'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'hs'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1357"></a></span><span class="src-str"> <span class="src-str">'html4strict'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'html'</span><span class="src-sym">,</span> <span class="src-str">'htm'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1358"></a></span><span class="src-str"> <span class="src-str">'ini'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'ini'</span><span class="src-sym">,</span> <span class="src-str">'desktop'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1359"></a></span><span class="src-str"> <span class="src-str">'java'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'java'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1360"></a></span><span class="src-str"> <span class="src-str">'javascript'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'js'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1361"></a></span><span class="src-str"> <span class="src-str">'klonec'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'kl1'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1362"></a></span><span class="src-str"> <span class="src-str">'klonecpp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'klx'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1363"></a></span><span class="src-str"> <span class="src-str">'latex'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'tex'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1364"></a></span><span class="src-str"> <span class="src-str">'lisp'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'lisp'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1365"></a></span><span class="src-str"> <span class="src-str">'lua'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'lua'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1366"></a></span><span class="src-str"> <span class="src-str">'matlab'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'m'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1367"></a></span><span class="src-str"> <span class="src-str">'mpasm'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1368"></a></span><span class="src-str"> <span class="src-str">'mysql'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'sql'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1369"></a></span><span class="src-str"> <span class="src-str">'nsis'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1370"></a></span><span class="src-str"> <span class="src-str">'objc'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1371"></a></span><span class="src-str"> <span class="src-str">'oobas'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1372"></a></span><span class="src-str"> <span class="src-str">'oracle8'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1373"></a></span><span class="src-str"> <span class="src-str">'oracle10'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1374"></a></span><span class="src-str"> <span class="src-str">'pascal'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'pas'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1375"></a></span><span class="src-str"> <span class="src-str">'perl'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'pl'</span><span class="src-sym">,</span> <span class="src-str">'pm'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1376"></a></span><span class="src-str"> <span class="src-str">'php'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'php'</span><span class="src-sym">,</span> <span class="src-str">'php5'</span><span class="src-sym">,</span> <span class="src-str">'phtml'</span><span class="src-sym">,</span> <span class="src-str">'phps'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1377"></a></span><span class="src-str"> <span class="src-str">'povray'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'pov'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1378"></a></span><span class="src-str"> <span class="src-str">'providex'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'pvc'</span><span class="src-sym">,</span> <span class="src-str">'pvx'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1379"></a></span><span class="src-str"> <span class="src-str">'prolog'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'pl'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1380"></a></span><span class="src-str"> <span class="src-str">'python'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'py'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1381"></a></span><span class="src-str"> <span class="src-str">'qbasic'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'bi'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1382"></a></span><span class="src-str"> <span class="src-str">'reg'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'reg'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1383"></a></span><span class="src-str"> <span class="src-str">'ruby'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'rb'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1384"></a></span><span class="src-str"> <span class="src-str">'sas'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'sas'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1385"></a></span><span class="src-str"> <span class="src-str">'scala'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'scala'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1386"></a></span><span class="src-str"> <span class="src-str">'scheme'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'scm'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1387"></a></span><span class="src-str"> <span class="src-str">'scilab'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'sci'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1388"></a></span><span class="src-str"> <span class="src-str">'smalltalk'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'st'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1389"></a></span><span class="src-str"> <span class="src-str">'smarty'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1390"></a></span><span class="src-str"> <span class="src-str">'tcl'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'tcl'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1391"></a></span><span class="src-str"> <span class="src-str">'vb'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'bas'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1392"></a></span><span class="src-str"> <span class="src-str">'vbnet'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1393"></a></span><span class="src-str"> <span class="src-str">'visualfoxpro'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1394"></a></span><span class="src-str"> <span class="src-str">'whitespace'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'ws'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1395"></a></span><span class="src-str"> <span class="src-str">'xml'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'xml'</span><span class="src-sym">,</span> <span class="src-str">'svg'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1396"></a></span><span class="src-str"> <span class="src-str">'z80'</span> => <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'z80'</span><span class="src-sym">,</span> <span class="src-str">'asm'</span><span class="src-sym">,</span> <span class="src-str">'inc'</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a1397"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1398"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1399"></a> </div></li> +<li><div class="src-line"><a name="a1400"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$lookup</span> <span class="src-key">as</span> <span class="src-var">$lang</span> => <span class="src-var">$extensions</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1401"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$extension</span><span class="src-sym">,</span> <span class="src-var">$extensions</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1402"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$lang</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1403"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1404"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1405"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1406"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1407"></a> </div></li> +<li><div class="src-line"><a name="a1408"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1409"></a><span class="src-doc"> * Given a file name, this method loads its contents in, and attempts</span></div></li> +<li><div class="src-line"><a name="a1410"></a><span class="src-doc"> * to set the language automatically. An optional lookup table can be</span></div></li> +<li><div class="src-line"><a name="a1411"></a><span class="src-doc"> * passed for looking up the language name. If not specified a default</span></div></li> +<li><div class="src-line"><a name="a1412"></a><span class="src-doc"> * table is used</span></div></li> +<li><div class="src-line"><a name="a1413"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1414"></a><span class="src-doc"> * The language table is in the form</span></div></li> +<li><div class="src-line"><a name="a1415"></a><span class="src-doc"> * <pre>array(</span></div></li> +<li><div class="src-line"><a name="a1416"></a><span class="src-doc"> * 'lang_name' => array('extension', 'extension', ...),</span></div></li> +<li><div class="src-line"><a name="a1417"></a><span class="src-doc"> * 'lang_name' ...</span></div></li> +<li><div class="src-line"><a name="a1418"></a><span class="src-doc"> * );</pre></span></div></li> +<li><div class="src-line"><a name="a1419"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1420"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The filename to load the source from</span></div></li> +<li><div class="src-line"><a name="a1421"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc"> A lookup array to use instead of the default one</span></div></li> +<li><div class="src-line"><a name="a1422"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Complete rethink of this and above method</span></div></li> +<li><div class="src-line"><a name="a1423"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.5</span></div></li> +<li><div class="src-line"><a name="a1424"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1425"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodload_from_file">load_from_file</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">,</span> <span class="src-var">$lookup</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1426"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_readable">is_readable</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1427"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_source">set_source</a><span class="src-sym">(</span><a href="http://www.php.net/file_get_contents">file_get_contents</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1428"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_language">set_language</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodget_language_name_from_extension">get_language_name_from_extension</a><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><a href="http://www.php.net/strrchr">strrchr</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">,</span> <span class="src-str">'.'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$lookup</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1429"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1430"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span> = <span class="src-id">GESHI_ERROR_FILE_NOT_READABLE</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1431"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1432"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1433"></a> </div></li> +<li><div class="src-line"><a name="a1434"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1435"></a><span class="src-doc"> * Adds a keyword to a keyword group for highlighting</span></div></li> +<li><div class="src-line"><a name="a1436"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1437"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to add the keyword to</span></div></li> +<li><div class="src-line"><a name="a1438"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The word to add to the keyword group</span></div></li> +<li><div class="src-line"><a name="a1439"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1440"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1441"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodadd_keyword">add_keyword</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$word</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1442"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1443"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$word</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1444"></a> </div></li> +<li><div class="src-line"><a name="a1445"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8 don't recompile the whole optimized regexp, simply append it</span></span></div></li> +<li><div class="src-line"><a name="a1446"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">parse_cache_built</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1447"></a></span><span class="src-str"> <span class="src-var">$subkey</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> - <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1448"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$subkey</span><span class="src-sym">]</span> .= <span class="src-str">'|'</span> . <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1449"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1450"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1451"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1452"></a> </div></li> +<li><div class="src-line"><a name="a1453"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1454"></a><span class="src-doc"> * Removes a keyword from a keyword group</span></div></li> +<li><div class="src-line"><a name="a1455"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1456"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to remove the keyword from</span></div></li> +<li><div class="src-line"><a name="a1457"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The word to remove from the keyword group</span></div></li> +<li><div class="src-line"><a name="a1458"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">bool </span><span class="src-doc"> Wether to automatically recompile the optimized regexp list or not.</span></div></li> +<li><div class="src-line"><a name="a1459"></a><span class="src-doc"> * Note: if you set this to false and @see GeSHi->parse_code() was already called once,</span></div></li> +<li><div class="src-line"><a name="a1460"></a><span class="src-doc"> * for the current language, you have to manually call @see GeSHi->optimize_keyword_group()</span></div></li> +<li><div class="src-line"><a name="a1461"></a><span class="src-doc"> * or the removed keyword will stay in cache and still be highlighted! On the other hand</span></div></li> +<li><div class="src-line"><a name="a1462"></a><span class="src-doc"> * it might be too expensive to recompile the regexp list for every removal if you want to</span></div></li> +<li><div class="src-line"><a name="a1463"></a><span class="src-doc"> * remove a lot of keywords.</span></div></li> +<li><div class="src-line"><a name="a1464"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1465"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1466"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodremove_keyword">remove_keyword</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$word</span><span class="src-sym">,</span> <span class="src-var">$recompile</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1467"></a></span><span class="src-str"> <span class="src-var">$key_to_remove</span> = <a href="http://www.php.net/array_search">array_search</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1468"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$key_to_remove</span> !== <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1469"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key_to_remove</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1470"></a> </div></li> +<li><div class="src-line"><a name="a1471"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8, optionally recompile keyword group</span></span></div></li> +<li><div class="src-line"><a name="a1472"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$recompile</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">parse_cache_built</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1473"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodoptimize_keyword_group">optimize_keyword_group</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1474"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1475"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1476"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1477"></a> </div></li> +<li><div class="src-line"><a name="a1478"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1479"></a><span class="src-doc"> * Creates a new keyword group</span></div></li> +<li><div class="src-line"><a name="a1480"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1481"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to create</span></div></li> +<li><div class="src-line"><a name="a1482"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The styles for the keyword group</span></div></li> +<li><div class="src-line"><a name="a1483"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Whether the keyword group is case sensitive ornot</span></div></li> +<li><div class="src-line"><a name="a1484"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc"> The words to use for the keyword group</span></div></li> +<li><div class="src-line"><a name="a1485"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1486"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1487"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodadd_keyword_group">add_keyword_group</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">,</span> <span class="src-var">$styles</span><span class="src-sym">,</span> <span class="src-var">$case_sensitive</span> = <span class="src-id">true</span><span class="src-sym">,</span> <span class="src-var">$words</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1488"></a></span><span class="src-str"> <span class="src-var">$words</span> = (array) <span class="src-var">$words</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1489"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$words</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1490"></a></span><span class="src-str"> <span class="src-comm">// empty word lists mess up highlighting</span></span></div></li> +<li><div class="src-line"><a name="a1491"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span> <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1492"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1493"></a> </div></li> +<li><div class="src-line"><a name="a1494"></a></span><span class="src-str"> <span class="src-comm">//Add the new keyword group internally</span></span></div></li> +<li><div class="src-line"><a name="a1495"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$words</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1496"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1497"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$case_sensitive</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1498"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$styles</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1499"></a> </div></li> +<li><div class="src-line"><a name="a1500"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8, cache keyword regexp</span></span></div></li> +<li><div class="src-line"><a name="a1501"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">parse_cache_built</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1502"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodoptimize_keyword_group">optimize_keyword_group</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1503"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1504"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1505"></a> </div></li> +<li><div class="src-line"><a name="a1506"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1507"></a><span class="src-doc"> * Removes a keyword group</span></div></li> +<li><div class="src-line"><a name="a1508"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1509"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to remove</span></div></li> +<li><div class="src-line"><a name="a1510"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1511"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1512"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodremove_keyword_group">remove_keyword_group</a> <span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1513"></a></span><span class="src-str"> <span class="src-comm">//Remove the keyword group internally</span></span></div></li> +<li><div class="src-line"><a name="a1514"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1515"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1516"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1517"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1518"></a> </div></li> +<li><div class="src-line"><a name="a1519"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8</span></span></div></li> +<li><div class="src-line"><a name="a1520"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1521"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1522"></a> </div></li> +<li><div class="src-line"><a name="a1523"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1524"></a><span class="src-doc"> * compile optimized regexp list for keyword group</span></div></li> +<li><div class="src-line"><a name="a1525"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1526"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc"> The key of the keyword group to compile & optimize</span></div></li> +<li><div class="src-line"><a name="a1527"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a1528"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1529"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodoptimize_keyword_group">optimize_keyword_group</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1530"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a1531"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">optimize_regexp_list</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1532"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1533"></a> </div></li> +<li><div class="src-line"><a name="a1534"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1535"></a><span class="src-doc"> * Sets the content of the header block</span></div></li> +<li><div class="src-line"><a name="a1536"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1537"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The content of the header block</span></div></li> +<li><div class="src-line"><a name="a1538"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1539"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1540"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_header_content">set_header_content</a><span class="src-sym">(</span><span class="src-var">$content</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1541"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">header_content</span> = <span class="src-var">$content</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1542"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1543"></a> </div></li> +<li><div class="src-line"><a name="a1544"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1545"></a><span class="src-doc"> * Sets the content of the footer block</span></div></li> +<li><div class="src-line"><a name="a1546"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1547"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The content of the footer block</span></div></li> +<li><div class="src-line"><a name="a1548"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1549"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1550"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_footer_content">set_footer_content</a><span class="src-sym">(</span><span class="src-var">$content</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1551"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">footer_content</span> = <span class="src-var">$content</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1552"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1553"></a> </div></li> +<li><div class="src-line"><a name="a1554"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1555"></a><span class="src-doc"> * Sets the style for the header content</span></div></li> +<li><div class="src-line"><a name="a1556"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1557"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The style for the header content</span></div></li> +<li><div class="src-line"><a name="a1558"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1559"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1560"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_header_content_style">set_header_content_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1561"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">header_content_style</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1562"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1563"></a> </div></li> +<li><div class="src-line"><a name="a1564"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1565"></a><span class="src-doc"> * Sets the style for the footer content</span></div></li> +<li><div class="src-line"><a name="a1566"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1567"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The style for the footer content</span></div></li> +<li><div class="src-line"><a name="a1568"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1569"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1570"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_footer_content_style">set_footer_content_style</a><span class="src-sym">(</span><span class="src-var">$style</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1571"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">footer_content_style</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1572"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1573"></a> </div></li> +<li><div class="src-line"><a name="a1574"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1575"></a><span class="src-doc"> * Sets whether to force a surrounding block around</span></div></li> +<li><div class="src-line"><a name="a1576"></a><span class="src-doc"> * the highlighted code or not</span></div></li> +<li><div class="src-line"><a name="a1577"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1578"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Tells whether to enable or disable this feature</span></div></li> +<li><div class="src-line"><a name="a1579"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.7.20</span></div></li> +<li><div class="src-line"><a name="a1580"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1581"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_inner_code_block">enable_inner_code_block</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1582"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">force_code_block</span> = (bool)<span class="src-var">$flag</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1583"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1584"></a> </div></li> +<li><div class="src-line"><a name="a1585"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1586"></a><span class="src-doc"> * Sets the base URL to be used for keywords</span></div></li> +<li><div class="src-line"><a name="a1587"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1588"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">The key of the keyword group to set the URL for</span></div></li> +<li><div class="src-line"><a name="a1589"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The URL to set for the group. If {FNAME} is in</span></div></li> +<li><div class="src-line"><a name="a1590"></a><span class="src-doc"> * the url somewhere, it is replaced by the keyword</span></div></li> +<li><div class="src-line"><a name="a1591"></a><span class="src-doc"> * that the URL is being made for</span></div></li> +<li><div class="src-line"><a name="a1592"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1593"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1594"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_url_for_keyword_group">set_url_for_keyword_group</a><span class="src-sym">(</span><span class="src-var">$group</span><span class="src-sym">,</span> <span class="src-var">$url</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1595"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'URLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span> = <span class="src-var">$url</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1596"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1597"></a> </div></li> +<li><div class="src-line"><a name="a1598"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1599"></a><span class="src-doc"> * Sets styles for links in code</span></div></li> +<li><div class="src-line"><a name="a1600"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1601"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">A constant that specifies what state the style is being</span></div></li> +<li><div class="src-line"><a name="a1602"></a><span class="src-doc"> * set for - e.g. :hover or :visited</span></div></li> +<li><div class="src-line"><a name="a1603"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The styles to use for that state</span></div></li> +<li><div class="src-line"><a name="a1604"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1605"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1606"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_link_styles">set_link_styles</a><span class="src-sym">(</span><span class="src-var">$type</span><span class="src-sym">,</span> <span class="src-var">$styles</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1607"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">link_styles</span><span class="src-sym">[</span><span class="src-var">$type</span><span class="src-sym">]</span> = <span class="src-var">$styles</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1608"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1609"></a> </div></li> +<li><div class="src-line"><a name="a1610"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1611"></a><span class="src-doc"> * Sets the target for links in code</span></div></li> +<li><div class="src-line"><a name="a1612"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1613"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The target for links in the code, e.g. _blank</span></div></li> +<li><div class="src-line"><a name="a1614"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.3</span></div></li> +<li><div class="src-line"><a name="a1615"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1616"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_link_target">set_link_target</a><span class="src-sym">(</span><span class="src-var">$target</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1617"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$target</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1618"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">link_target</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1619"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1620"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">link_target</span> = <span class="src-str">' target="'</span> . <span class="src-var">$target</span> . <span class="src-str">'" '</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1621"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1622"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1623"></a> </div></li> +<li><div class="src-line"><a name="a1624"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1625"></a><span class="src-doc"> * Sets styles for important parts of the code</span></div></li> +<li><div class="src-line"><a name="a1626"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1627"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The styles to use on important parts of the code</span></div></li> +<li><div class="src-line"><a name="a1628"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1629"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1630"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_important_styles">set_important_styles</a><span class="src-sym">(</span><span class="src-var">$styles</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1631"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">important_styles</span> = <span class="src-var">$styles</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1632"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1633"></a> </div></li> +<li><div class="src-line"><a name="a1634"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1635"></a><span class="src-doc"> * Sets whether context-important blocks are highlighted</span></div></li> +<li><div class="src-line"><a name="a1636"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1637"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">Tells whether to enable or disable highlighting of important blocks</span></div></li> +<li><div class="src-line"><a name="a1638"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> REMOVE THIS SHIZ FROM GESHI!</span></div></li> +<li><div class="src-line"><a name="a1639"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@deprecated</span></div></li> +<li><div class="src-line"><a name="a1640"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1641"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1642"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_important_blocks">enable_important_blocks</a><span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1643"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">enable_important_blocks</span> = <span class="src-sym">(</span> <span class="src-var">$flag</span> <span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1644"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1645"></a> </div></li> +<li><div class="src-line"><a name="a1646"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1647"></a><span class="src-doc"> * Whether CSS IDs should be added to each line</span></div></li> +<li><div class="src-line"><a name="a1648"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1649"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">If true, IDs will be added to each line.</span></div></li> +<li><div class="src-line"><a name="a1650"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1651"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1652"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_ids">enable_ids</a><span class="src-sym">(</span><span class="src-var">$flag</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1653"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">add_ids</span> = <span class="src-sym">(</span><span class="src-var">$flag</span><span class="src-sym">)</span> ? <span class="src-id">true</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1654"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1655"></a> </div></li> +<li><div class="src-line"><a name="a1656"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1657"></a><span class="src-doc"> * Specifies which lines to highlight extra</span></div></li> +<li><div class="src-line"><a name="a1658"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1659"></a><span class="src-doc"> * The extra style parameter was added in 1.0.7.21.</span></div></li> +<li><div class="src-line"><a name="a1660"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1661"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc">An array of line numbers to highlight, or just a line</span></div></li> +<li><div class="src-line"><a name="a1662"></a><span class="src-doc"> * number on its own.</span></div></li> +<li><div class="src-line"><a name="a1663"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">A string specifying the style to use for this line.</span></div></li> +<li><div class="src-line"><a name="a1664"></a><span class="src-doc"> * If null is specified, the default style is used.</span></div></li> +<li><div class="src-line"><a name="a1665"></a><span class="src-doc"> * If false is specified, the line will be removed from</span></div></li> +<li><div class="src-line"><a name="a1666"></a><span class="src-doc"> * special highlighting</span></div></li> +<li><div class="src-line"><a name="a1667"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1668"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Some data replication here that could be cut down on</span></div></li> +<li><div class="src-line"><a name="a1669"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1670"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodhighlight_lines_extra">highlight_lines_extra</a><span class="src-sym">(</span><span class="src-var">$lines</span><span class="src-sym">,</span> <span class="src-var">$style</span> = <span class="src-id">null</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1671"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$lines</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1672"></a></span><span class="src-str"> <span class="src-comm">//Split up the job using single lines at a time</span></span></div></li> +<li><div class="src-line"><a name="a1673"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$lines</span> <span class="src-key">as</span> <span class="src-var">$line</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1674"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodhighlight_lines_extra">highlight_lines_extra</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">,</span> <span class="src-var">$style</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1675"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1676"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1677"></a></span><span class="src-str"> <span class="src-comm">//Mark the line as being highlighted specially</span></span></div></li> +<li><div class="src-line"><a name="a1678"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$lines</span> = <a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$lines</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1679"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines</span><span class="src-sym">[</span><span class="src-var">$lines</span><span class="src-sym">]</span> = <span class="src-var">$lines</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1680"></a> </div></li> +<li><div class="src-line"><a name="a1681"></a></span><span class="src-str"> <span class="src-comm">//Decide on which style to use</span></span></div></li> +<li><div class="src-line"><a name="a1682"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$style</span> === <span class="src-id">null</span><span class="src-sym">)</span> <span class="src-sym">{</span> <span class="src-comm">//Check if we should use default style</span></span></div></li> +<li><div class="src-line"><a name="a1683"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$lines</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1684"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$style</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span> <span class="src-comm">//Check if to remove this line</span></span></div></li> +<li><div class="src-line"><a name="a1685"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines</span><span class="src-sym">[</span><span class="src-var">$lines</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1686"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$lines</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1687"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1688"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$lines</span><span class="src-sym">]</span> = <span class="src-var">$style</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1689"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1690"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1691"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1692"></a> </div></li> +<li><div class="src-line"><a name="a1693"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1694"></a><span class="src-doc"> * Sets the style for extra-highlighted lines</span></div></li> +<li><div class="src-line"><a name="a1695"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1696"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The style for extra-highlighted lines</span></div></li> +<li><div class="src-line"><a name="a1697"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1698"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1699"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_highlight_lines_extra_style">set_highlight_lines_extra_style</a><span class="src-sym">(</span><span class="src-var">$styles</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1700"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">highlight_extra_lines_style</span> = <span class="src-var">$styles</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1701"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1702"></a> </div></li> +<li><div class="src-line"><a name="a1703"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1704"></a><span class="src-doc"> * Sets the line-ending</span></div></li> +<li><div class="src-line"><a name="a1705"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1706"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The new line-ending</span></div></li> +<li><div class="src-line"><a name="a1707"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1708"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1709"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_line_ending">set_line_ending</a><span class="src-sym">(</span><span class="src-var">$line_ending</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1710"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_ending</span> = (string)<span class="src-var">$line_ending</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1711"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1712"></a> </div></li> +<li><div class="src-line"><a name="a1713"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1714"></a><span class="src-doc"> * Sets what number line numbers should start at. Should</span></div></li> +<li><div class="src-line"><a name="a1715"></a><span class="src-doc"> * be a positive integer, and will be converted to one.</span></div></li> +<li><div class="src-line"><a name="a1716"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1717"></a><span class="src-doc"> * <b>Warning:</b> Using this method will add the "start"</span></div></li> +<li><div class="src-line"><a name="a1718"></a><span class="src-doc"> * attribute to the &lt;ol&gt; that is used for line numbering.</span></div></li> +<li><div class="src-line"><a name="a1719"></a><span class="src-doc"> * This is <b>not</b> valid XHTML strict, so if that's what you</span></div></li> +<li><div class="src-line"><a name="a1720"></a><span class="src-doc"> * care about then don't use this method. Firefox is getting</span></div></li> +<li><div class="src-line"><a name="a1721"></a><span class="src-doc"> * support for the CSS method of doing this in 1.1 and Opera</span></div></li> +<li><div class="src-line"><a name="a1722"></a><span class="src-doc"> * has support for the CSS method, but (of course) IE doesn't</span></div></li> +<li><div class="src-line"><a name="a1723"></a><span class="src-doc"> * so it's not worth doing it the CSS way yet.</span></div></li> +<li><div class="src-line"><a name="a1724"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1725"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">int </span><span class="src-doc">The number to start line numbers at</span></div></li> +<li><div class="src-line"><a name="a1726"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1727"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1728"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodstart_line_numbers_at">start_line_numbers_at</a><span class="src-sym">(</span><span class="src-var">$number</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1729"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">line_numbers_start</span> = <a href="http://www.php.net/abs">abs</a><span class="src-sym">(</span><a href="http://www.php.net/intval">intval</a><span class="src-sym">(</span><span class="src-var">$number</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1730"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1731"></a> </div></li> +<li><div class="src-line"><a name="a1732"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1733"></a><span class="src-doc"> * Sets the encoding used for htmlspecialchars(), for international</span></div></li> +<li><div class="src-line"><a name="a1734"></a><span class="src-doc"> * support.</span></div></li> +<li><div class="src-line"><a name="a1735"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1736"></a><span class="src-doc"> * NOTE: This is not needed for now because htmlspecialchars() is not</span></div></li> +<li><div class="src-line"><a name="a1737"></a><span class="src-doc"> * being used (it has a security hole in PHP4 that has not been patched).</span></div></li> +<li><div class="src-line"><a name="a1738"></a><span class="src-doc"> * Maybe in a future version it may make a return for speed reasons, but</span></div></li> +<li><div class="src-line"><a name="a1739"></a><span class="src-doc"> * I doubt it.</span></div></li> +<li><div class="src-line"><a name="a1740"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1741"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The encoding to use for the source</span></div></li> +<li><div class="src-line"><a name="a1742"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.3</span></div></li> +<li><div class="src-line"><a name="a1743"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1744"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodset_encoding">set_encoding</a><span class="src-sym">(</span><span class="src-var">$encoding</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1745"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$encoding</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1746"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">encoding</span> = <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$encoding</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1747"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1748"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1749"></a> </div></li> +<li><div class="src-line"><a name="a1750"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1751"></a><span class="src-doc"> * Turns linking of keywords on or off.</span></div></li> +<li><div class="src-line"><a name="a1752"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1753"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc">If true, links will be added to keywords</span></div></li> +<li><div class="src-line"><a name="a1754"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.2</span></div></li> +<li><div class="src-line"><a name="a1755"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1756"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodenable_keyword_links">enable_keyword_links</a><span class="src-sym">(</span><span class="src-var">$enable</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1757"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">keyword_links</span> = (bool) <span class="src-var">$enable</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1758"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1759"></a> </div></li> +<li><div class="src-line"><a name="a1760"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1761"></a><span class="src-doc"> * Setup caches needed for styling. This is automatically called in</span></div></li> +<li><div class="src-line"><a name="a1762"></a><span class="src-doc"> * parse_code() and get_stylesheet() when appropriate. This function helps</span></div></li> +<li><div class="src-line"><a name="a1763"></a><span class="src-doc"> * stylesheet generators as they rely on some style information being</span></div></li> +<li><div class="src-line"><a name="a1764"></a><span class="src-doc"> * preprocessed</span></div></li> +<li><div class="src-line"><a name="a1765"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1766"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a1767"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a1768"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1769"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">build_style_cache</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1770"></a></span><span class="src-str"> <span class="src-comm">//Build the style cache needed to highlight numbers appropriate</span></span></div></li> +<li><div class="src-line"><a name="a1771"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1772"></a></span><span class="src-str"> <span class="src-comm">//First check what way highlighting information for numbers are given</span></span></div></li> +<li><div class="src-line"><a name="a1773"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1774"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1775"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1776"></a> </div></li> +<li><div class="src-line"><a name="a1777"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1778"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1779"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1780"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1781"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1782"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a1783"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_INT_BASIC</span> |</span></div></li> +<li><div class="src-line"><a name="a1784"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_FLT_NONSCI</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1785"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1786"></a> </div></li> +<li><div class="src-line"><a name="a1787"></a></span><span class="src-str"> <span class="src-key">for</span><span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-var">$j</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">;</span> <span class="src-var">$j</span> > <span class="src-num">0</span><span class="src-sym">;</span> ++<span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$j</span>>>=<span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1788"></a></span><span class="src-str"> <span class="src-comm">//Rearrange style indices if required ...</span></span></div></li> +<li><div class="src-line"><a name="a1789"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><<<span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1790"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a1791"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><<<span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1792"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><<<span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1793"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1794"></a> </div></li> +<li><div class="src-line"><a name="a1795"></a></span><span class="src-str"> <span class="src-comm">//Check if this bit is set for highlighting</span></span></div></li> +<li><div class="src-line"><a name="a1796"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$j</span><span class="src-sym">&</span><span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1797"></a></span><span class="src-str"> <span class="src-comm">//So this bit is set ...</span></span></div></li> +<li><div class="src-line"><a name="a1798"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Check if it belongs to group 0 or the actual stylegroup</span></span></div></li> +<li><div class="src-line"><a name="a1799"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1800"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> = <span class="src-num">1</span> << <span class="src-var">$i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1801"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1802"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1803"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1804"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1805"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> |= <span class="src-num">1</span> << <span class="src-var">$i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1806"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1807"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1808"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1809"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1810"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1811"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1812"></a> </div></li> +<li><div class="src-line"><a name="a1813"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a1814"></a><span class="src-doc"> * Setup caches needed for parsing. This is automatically called in parse_code() when appropriate.</span></div></li> +<li><div class="src-line"><a name="a1815"></a><span class="src-doc"> * This function makes stylesheet generators much faster as they do not need these caches.</span></div></li> +<li><div class="src-line"><a name="a1816"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a1817"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a1818"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a1819"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a1820"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">build_parse_cache</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1821"></a></span><span class="src-str"> <span class="src-comm">// cache symbol regexp</span></span></div></li> +<li><div class="src-line"><a name="a1822"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//As this is a costy operation, we avoid doing it for multiple groups ...</span></span></div></li> +<li><div class="src-line"><a name="a1823"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Instead we perform it for all symbols at once.</span></span></div></li> +<li><div class="src-line"><a name="a1824"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a1825"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//For this to work, we need to reorganize the data arrays.</span></span></div></li> +<li><div class="src-line"><a name="a1826"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span> && <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1827"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'MULTIPLE_SYMBOL_GROUPS'</span><span class="src-sym">]</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">)</span> > <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1828"></a> </div></li> +<li><div class="src-line"><a name="a1829"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1830"></a></span><span class="src-str"> <span class="src-var">$symbol_preg_multi</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-comm">// multi char symbols</span></span></div></li> +<li><div class="src-line"><a name="a1831"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_single</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-comm">// single char symbols</span></span></div></li> +<li><div class="src-line"><a name="a1832"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$symbols</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1833"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$symbols</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1834"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$symbols</span> <span class="src-key">as</span> <span class="src-var">$sym</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1835"></a></span><span class="src-str"> <span class="src-var">$sym</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$sym</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1836"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$sym</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1837"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$sym</span><span class="src-sym">]</span> = <span class="src-var">$key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1838"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$sym</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span> <span class="src-comm">// multiple chars</span></span></div></li> +<li><div class="src-line"><a name="a1839"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_multi</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$sym</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1840"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span> <span class="src-comm">// single char</span></span></div></li> +<li><div class="src-line"><a name="a1841"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$sym</span> == <span class="src-str">'-'</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1842"></a></span><span class="src-str"> <span class="src-comm">// don't trigger range out of order error</span></span></div></li> +<li><div class="src-line"><a name="a1843"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_single</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'\-'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1844"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1845"></a></span><span class="src-str"> <span class="src-var">$symbol_preg_single</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$sym</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1846"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1847"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1848"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1849"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1850"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1851"></a></span><span class="src-str"> <span class="src-var">$symbols</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$symbols</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1852"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$symbols</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1853"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$symbols</span><span class="src-sym">]</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1854"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$symbols</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span> <span class="src-comm">// multiple chars</span></span></div></li> +<li><div class="src-line"><a name="a1855"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_multi</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$symbols</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1856"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$symbols</span> == <span class="src-str">'-'</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1857"></a></span><span class="src-str"> <span class="src-comm">// don't trigger range out of order error</span></span></div></li> +<li><div class="src-line"><a name="a1858"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_single</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'\-'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1859"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span> <span class="src-comm">// single char</span></span></div></li> +<li><div class="src-line"><a name="a1860"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg_single</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><span class="src-var">$symbols</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1861"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1862"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1863"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1864"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1865"></a> </div></li> +<li><div class="src-line"><a name="a1866"></a></span><span class="src-str"> <span class="src-comm">//Now we have an array with each possible symbol as the key and the style as the actual data.</span></span></div></li> +<li><div class="src-line"><a name="a1867"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//This way we can set the correct style just the moment we highlight ...</span></span></div></li> +<li><div class="src-line"><a name="a1868"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a1869"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Now we need to rewrite our array to get a search string that</span></span></div></li> +<li><div class="src-line"><a name="a1870"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$symbol_preg</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1871"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$symbol_preg_multi</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1872"></a></span><span class="src-str"> <a href="http://www.php.net/rsort">rsort</a><span class="src-sym">(</span><span class="src-var">$symbol_preg_multi</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1873"></a></span><span class="src-str"> <span class="src-var">$symbol_preg</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">'|'</span><span class="src-sym">,</span> <span class="src-var">$symbol_preg_multi</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1874"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1875"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$symbol_preg_single</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1876"></a></span><span class="src-str"> <a href="http://www.php.net/rsort">rsort</a><span class="src-sym">(</span><span class="src-var">$symbol_preg_single</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1877"></a></span><span class="src-str"> <span class="src-var">$symbol_preg</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'['</span> . <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$symbol_preg_single</span><span class="src-sym">)</span> . <span class="src-str">']'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1878"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1879"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_SEARCH'</span><span class="src-sym">]</span> = <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">"|"</span><span class="src-sym">,</span> <span class="src-var">$symbol_preg</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1880"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1881"></a> </div></li> +<li><div class="src-line"><a name="a1882"></a></span><span class="src-str"> <span class="src-comm">// cache optimized regexp for keyword matching</span></span></div></li> +<li><div class="src-line"><a name="a1883"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// remove old cache</span></span></div></li> +<li><div class="src-line"><a name="a1884"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1885"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1886"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a1887"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1888"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodoptimize_keyword_group">optimize_keyword_group</a><span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1889"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1890"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1891"></a> </div></li> +<li><div class="src-line"><a name="a1892"></a></span><span class="src-str"> <span class="src-comm">// brackets</span></span></div></li> +<li><div class="src-line"><a name="a1893"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1894"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHE_BRACKET_MATCH'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'['</span><span class="src-sym">,</span> <span class="src-str">']'</span><span class="src-sym">,</span> <span class="src-str">'('</span><span class="src-sym">,</span> <span class="src-str">')'</span><span class="src-sym">,</span> <span class="src-str">'{'</span><span class="src-sym">,</span> <span class="src-str">'}'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1895"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">use_classes</span> && isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1896"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHE_BRACKET_REPLACE'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a1897"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#91;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1898"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#93;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1899"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#40;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1900"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#41;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1901"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#123;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1902"></a></span><span class="src-str"> <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">&#125;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1903"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1904"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1905"></a></span><span class="src-str"> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1906"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHE_BRACKET_REPLACE'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a1907"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#91;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1908"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#93;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1909"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#40;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1910"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#41;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1911"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#123;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1912"></a></span><span class="src-str"> <span class="src-str">'<| class="br0">&#125;|>'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1913"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1914"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1915"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1916"></a> </div></li> +<li><div class="src-line"><a name="a1917"></a></span><span class="src-str"> <span class="src-comm">//Build the parse cache needed to highlight numbers appropriate</span></span></div></li> +<li><div class="src-line"><a name="a1918"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1919"></a></span><span class="src-str"> <span class="src-comm">//Check if the style rearrangements have been processed ...</span></span></div></li> +<li><div class="src-line"><a name="a1920"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//This also does some preprocessing to check which style groups are useable ...</span></span></div></li> +<li><div class="src-line"><a name="a1921"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1922"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">build_style_cache</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1923"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1924"></a> </div></li> +<li><div class="src-line"><a name="a1925"></a></span><span class="src-str"> <span class="src-comm">//Number format specification</span></span></div></li> +<li><div class="src-line"><a name="a1926"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//All this formats are matched case-insensitively!</span></span></div></li> +<li><div class="src-line"><a name="a1927"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">static</span> <span class="src-var">$numbers_format</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a1928"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_INT_BASIC</span> =></span></div></li> +<li><div class="src-line"><a name="a1929"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.%])(?<![\d\.]e[+\-])([1-9]\d*?|0)(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1930"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_INT_CSTYLE</span> =></span></div></li> +<li><div class="src-line"><a name="a1931"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.%])(?<![\d\.]e[+\-])([1-9]\d*?|0)l(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1932"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_BIN_SUFFIX</span> =></span></div></li> +<li><div class="src-line"><a name="a1933"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])[01]+?b(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1934"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_BIN_PREFIX_PERCENT</span> =></span></div></li> +<li><div class="src-line"><a name="a1935"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.%])(?<![\d\.]e[+\-])%[01]+?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1936"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_BIN_PREFIX_0B</span> =></span></div></li> +<li><div class="src-line"><a name="a1937"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.%])(?<![\d\.]e[+\-])0b[01]+?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1938"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_OCT_PREFIX</span> =></span></div></li> +<li><div class="src-line"><a name="a1939"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])0[0-7]+?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1940"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_OCT_SUFFIX</span> =></span></div></li> +<li><div class="src-line"><a name="a1941"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])[0-7]+?o(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1942"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_HEX_PREFIX</span> =></span></div></li> +<li><div class="src-line"><a name="a1943"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])0x[0-9a-f]+?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1944"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_HEX_SUFFIX</span> =></span></div></li> +<li><div class="src-line"><a name="a1945"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])\d[0-9a-f]*?h(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1946"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_FLT_NONSCI</span> =></span></div></li> +<li><div class="src-line"><a name="a1947"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])\d+?\.\d+?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1948"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_FLT_NONSCI_F</span> =></span></div></li> +<li><div class="src-line"><a name="a1949"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])(?:\d+?(?:\.\d*?)?|\.\d+?)f(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1950"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_FLT_SCI_SHORT</span> =></span></div></li> +<li><div class="src-line"><a name="a1951"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])\.\d+?(?:e[+\-]?\d+?)?(?![0-9a-z\.])'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a1952"></a></span><span class="src-str"> <span class="src-id">GESHI_NUMBER_FLT_SCI_ZERO</span> =></span></div></li> +<li><div class="src-line"><a name="a1953"></a></span><span class="src-str"> <span class="src-str">'(?<![0-9a-z_\.])(?<![\d\.]e[+\-])(?:\d+?(?:\.\d*?)?|\.\d+?)(?:e[+\-]?\d+?)?(?![0-9a-z\.])'</span></span></div></li> +<li><div class="src-line"><a name="a1954"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1955"></a> </div></li> +<li><div class="src-line"><a name="a1956"></a></span><span class="src-str"> <span class="src-comm">//At this step we have an associative array with flag groups for a</span></span></div></li> +<li><div class="src-line"><a name="a1957"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//specific style or an string denoting a regexp given its index.</span></span></div></li> +<li><div class="src-line"><a name="a1958"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_RXCACHE'</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1959"></a></span><span class="src-str"> <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$rxdata</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1960"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">is_string</span><span class="src-sym">(</span><span class="src-var">$rxdata</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1961"></a></span><span class="src-str"> <span class="src-var">$regexp</span> = <span class="src-var">$rxdata</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1962"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1963"></a></span><span class="src-str"> <span class="src-comm">//This is a bitfield of number flags to highlight:</span></span></div></li> +<li><div class="src-line"><a name="a1964"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Build an array, implode them together and make this the actual RX</span></span></div></li> +<li><div class="src-line"><a name="a1965"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$rxuse</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1966"></a></span><span class="src-str"> <span class="src-key">for</span><span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">1</span><span class="src-sym">;</span> <span class="src-var">$i</span> <= <span class="src-var">$rxdata</span><span class="src-sym">;</span> <span class="src-var">$i</span><<=<span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1967"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$rxdata</span> <span class="src-sym">&</span> <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1968"></a></span><span class="src-str"> <span class="src-var">$rxuse</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$numbers_format</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1969"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1970"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1971"></a></span><span class="src-str"> <span class="src-var">$regexp</span> = <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">"|"</span><span class="src-sym">,</span> <span class="src-var">$rxuse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1972"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1973"></a> </div></li> +<li><div class="src-line"><a name="a1974"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_RXCACHE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a1975"></a></span><span class="src-str"> <span class="src-str">"</span></span>/(?<!<\|\/NUM!)(?<!\d\/>)(<span class="src-var">$regexp</span>)(?!\|>)/i<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1976"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1977"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1978"></a> </div></li> +<li><div class="src-line"><a name="a1979"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">parse_cache_built</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1980"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a1981"></a> </div></li> +<li><div class="src-line"><a name="a1982"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a1983"></a></span><span class="src-str"> * Returns the code in $this->source, highlighted and surrounded by the</span></div></li> +<li><div class="src-line"><a name="a1984"></a></span><span class="src-str"> * nessecary HTML.</span></div></li> +<li><div class="src-line"><a name="a1985"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a1986"></a></span><span class="src-str"> * This should only be called ONCE, cos it's SLOW! If you want to highlight</span></div></li> +<li><div class="src-line"><a name="a1987"></a></span><span class="src-str"> * the same source multiple times, you're better off doing a whole lot of</span></div></li> +<li><div class="src-line"><a name="a1988"></a></span><span class="src-str"> * str_replaces to replace the &lt;span&gt;s</span></div></li> +<li><div class="src-line"><a name="a1989"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a1990"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a1991"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a1992"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">parse_code</span> <span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1993"></a></span><span class="src-str"> <span class="src-comm">// Start the timer</span></span></div></li> +<li><div class="src-line"><a name="a1994"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$start_time</span> = <span class="src-id">microtime</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a1995"></a> </div></li> +<li><div class="src-line"><a name="a1996"></a></span><span class="src-str"> <span class="src-comm">// Firstly, if there is an error, we won't highlight</span></span></div></li> +<li><div class="src-line"><a name="a1997"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">error</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a1998"></a></span><span class="src-str"> <span class="src-comm">//Escape the source for output</span></span></div></li> +<li><div class="src-line"><a name="a1999"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-var">source</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2000"></a> </div></li> +<li><div class="src-line"><a name="a2001"></a></span><span class="src-str"> <span class="src-comm">//This fix is related to SF#1923020, but has to be applied regardless of</span></span></div></li> +<li><div class="src-line"><a name="a2002"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//actually highlighting symbols.</span></span></div></li> +<li><div class="src-line"><a name="a2003"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> = <span class="src-id">str_replace</span><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'<SEMI>'</span><span class="src-sym">,</span> <span class="src-str">'<PIPE>'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">';'</span><span class="src-sym">,</span> <span class="src-str">'|'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2004"></a> </div></li> +<li><div class="src-line"><a name="a2005"></a></span><span class="src-str"> <span class="src-comm">// Timing is irrelevant</span></span></div></li> +<li><div class="src-line"><a name="a2006"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">set_time</span><span class="src-sym">(</span><span class="src-var">$start_time</span><span class="src-sym">,</span> <span class="src-var">$start_time</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2007"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">finalise</span><span class="src-sym">(</span><span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2008"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$result</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2009"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2010"></a> </div></li> +<li><div class="src-line"><a name="a2011"></a></span><span class="src-str"> <span class="src-comm">// make sure the parse cache is up2date</span></span></div></li> +<li><div class="src-line"><a name="a2012"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_cache_built</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2013"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">build_parse_cache</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2014"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2015"></a> </div></li> +<li><div class="src-line"><a name="a2016"></a></span><span class="src-str"> <span class="src-comm">// Replace all newlines to a common form.</span></span></div></li> +<li><div class="src-line"><a name="a2017"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$code</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\r\n"</span><span class="src-sym">,</span> <span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">source</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2018"></a></span><span class="src-str"> <span class="src-var">$code</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\r"</span><span class="src-sym">,</span> <span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2019"></a> </div></li> +<li><div class="src-line"><a name="a2020"></a></span><span class="src-str"> <span class="src-comm">// Add spaces for regular expression matching and line numbers</span></span></div></li> +<li><div class="src-line"><a name="a2021"></a></span><span class="src-str"><span class="src-comm">// $code = "\n" . $code . "\n";</span></span></div></li> +<li><div class="src-line"><a name="a2022"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2023"></a></span><span class="src-str"> <span class="src-comm">// Initialise various stuff</span></span></div></li> +<li><div class="src-line"><a name="a2024"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$length</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2025"></a></span><span class="src-str"> <span class="src-var">$COMMENT_MATCHED</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2026"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2027"></a></span><span class="src-str"> <span class="src-var">$endresult</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2028"></a> </div></li> +<li><div class="src-line"><a name="a2029"></a></span><span class="src-str"> <span class="src-comm">// "Important" selections are handled like multiline comments</span></span></div></li> +<li><div class="src-line"><a name="a2030"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// @todo GET RID OF THIS SHIZ</span></span></div></li> +<li><div class="src-line"><a name="a2031"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodenable_important_blocks">enable_important_blocks</a><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2032"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_MULTI'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">]</span> = <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_END_IMPORTANT">GESHI_END_IMPORTANT</a></span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2033"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2034"></a> </div></li> +<li><div class="src-line"><a name="a2035"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">strict_mode</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2036"></a></span><span class="src-str"> <span class="src-comm">// Break the source into bits. Each bit will be a portion of the code</span></span></div></li> +<li><div class="src-line"><a name="a2037"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// within script delimiters - for example, HTML between < and ></span></span></div></li> +<li><div class="src-line"><a name="a2038"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$k</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2039"></a></span><span class="src-str"> <span class="src-var">$parts</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2040"></a></span><span class="src-str"> <span class="src-var">$matches</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2041"></a></span><span class="src-str"> <span class="src-var">$next_match_pointer</span> = <span class="src-id">null</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2042"></a></span><span class="src-str"> <span class="src-comm">// we use a copy to unset delimiters on demand (when they are not found)</span></span></div></li> +<li><div class="src-line"><a name="a2043"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$delim_copy</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SCRIPT_DELIMITERS'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2044"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2045"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span><span class="src-var">$i</span> < <span class="src-var">$length</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2046"></a></span><span class="src-str"> <span class="src-var">$next_match_pos</span> = <span class="src-var">$length</span> + <span class="src-num">1</span><span class="src-sym">;</span> <span class="src-comm">// never true</span></span></div></li> +<li><div class="src-line"><a name="a2047"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$delim_copy</span> <span class="src-key">as</span> <span class="src-var">$dk</span> => <span class="src-var">$delimiters</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2048"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$delimiters</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2049"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$delimiters</span> <span class="src-key">as</span> <span class="src-var">$open</span> => <span class="src-var">$close</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2050"></a></span><span class="src-str"> <span class="src-comm">// make sure the cache is setup properly</span></span></div></li> +<li><div class="src-line"><a name="a2051"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2052"></a></span><span class="src-str"> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2053"></a></span><span class="src-str"> <span class="src-str">'next_match'</span> => -<span class="src-num">1</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2054"></a></span><span class="src-str"> <span class="src-str">'dk'</span> => <span class="src-var">$dk</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2055"></a> </div></li> +<li><div class="src-line"><a name="a2056"></a></span><span class="src-str"> <span class="src-str">'open'</span> => <span class="src-var">$open</span><span class="src-sym">,</span> <span class="src-comm">// needed for grouping of adjacent code blocks (see below)</span></span></div></li> +<li><div class="src-line"><a name="a2057"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-str">'open_strlen'</span> => <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$open</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2058"></a> </div></li> +<li><div class="src-line"><a name="a2059"></a></span><span class="src-str"> <span class="src-str">'close'</span> => <span class="src-var">$close</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2060"></a></span><span class="src-str"> <span class="src-str">'close_strlen'</span> => <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$close</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2061"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2062"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2063"></a></span><span class="src-str"> <span class="src-comm">// Get the next little bit for this opening string</span></span></div></li> +<li><div class="src-line"><a name="a2064"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span> < <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2065"></a></span><span class="src-str"> <span class="src-comm">// only find the next pos if it was not already cached</span></span></div></li> +<li><div class="src-line"><a name="a2066"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$open_pos</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$open</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2067"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$open_pos</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2068"></a></span><span class="src-str"> <span class="src-comm">// no match for this delimiter ever</span></span></div></li> +<li><div class="src-line"><a name="a2069"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$delim_copy</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2070"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2071"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2072"></a></span><span class="src-str"> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span> = <span class="src-var">$open_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2073"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2074"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span> < <span class="src-var">$next_match_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2075"></a></span><span class="src-str"> <span class="src-comm">//So we got a new match, update the close_pos</span></span></div></li> +<li><div class="src-line"><a name="a2076"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'close_pos'</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a2077"></a></span><span class="src-str"> <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$close</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span>+<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2078"></a> </div></li> +<li><div class="src-line"><a name="a2079"></a></span><span class="src-str"> <span class="src-var">$next_match_pointer</span> =<span class="src-sym">&</span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2080"></a></span><span class="src-str"> <span class="src-var">$next_match_pos</span> = <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2081"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2082"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2083"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2084"></a></span><span class="src-str"> <span class="src-comm">//So we should match an RegExp as Strict Block ...</span></span></div></li> +<li><div class="src-line"><a name="a2085"></a><span class="src-doc">/**</span><span class="src-str"><span class="src-comm"></span> </span></span></div></li> +<li><div class="src-line"><a name="a2086"></a><span class="src-doc"> * The value in $delimiters is expected to be an RegExp</span></div></li> +<li><div class="src-line"><a name="a2087"></a><span class="src-doc"> * containing exactly 2 matching groups:</span></div></li> +<li><div class="src-line"><a name="a2088"></a><span class="src-doc"> * - Group 1 is the opener</span></div></li> +<li><div class="src-line"><a name="a2089"></a><span class="src-doc"> * - Group 2 is the closer</span></div></li> +<li><div class="src-line"><a name="a2090"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a2091"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">GESHI_PHP_PRE_433</span> && <span class="src-comm">//Needs proper rewrite to work with PHP >=4.3.0; 4.3.3 is guaranteed to work.</span></span></div></li> +<li><div class="src-line"><a name="a2092"></a></span><span class="src-str"><span class="src-comm"></span> <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$delimiters</span><span class="src-sym">,</span> <span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$matches_rx</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2093"></a></span><span class="src-str"> <span class="src-comm">//We got a match ...</span></span></div></li> +<li><div class="src-line"><a name="a2094"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2095"></a></span><span class="src-str"> <span class="src-str">'next_match'</span> => <span class="src-var">$matches_rx</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2096"></a></span><span class="src-str"> <span class="src-str">'dk'</span> => <span class="src-var">$dk</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2097"></a> </div></li> +<li><div class="src-line"><a name="a2098"></a></span><span class="src-str"> <span class="src-str">'close_strlen'</span> => <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$matches_rx</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2099"></a></span><span class="src-str"> <span class="src-str">'close_pos'</span> => <span class="src-var">$matches_rx</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2100"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2101"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2102"></a></span><span class="src-str"> <span class="src-comm">// no match for this delimiter ever</span></span></div></li> +<li><div class="src-line"><a name="a2103"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$delim_copy</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2104"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2105"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2106"></a> </div></li> +<li><div class="src-line"><a name="a2107"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span> <= <span class="src-var">$next_match_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2108"></a></span><span class="src-str"> <span class="src-var">$next_match_pointer</span> =<span class="src-sym">&</span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2109"></a></span><span class="src-str"> <span class="src-var">$next_match_pos</span> = <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-var">$dk</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2110"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2111"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2112"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2113"></a></span><span class="src-str"> <span class="src-comm">// non-highlightable text</span></span></div></li> +<li><div class="src-line"><a name="a2114"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2115"></a></span><span class="src-str"> <span class="src-num">1</span> => <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$next_match_pos</span> - <span class="src-var">$i</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2116"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2117"></a></span><span class="src-str"> ++<span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2118"></a> </div></li> +<li><div class="src-line"><a name="a2119"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$next_match_pos</span> > <span class="src-var">$length</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2120"></a></span><span class="src-str"> <span class="src-comm">// out of bounds means no next match was found</span></span></div></li> +<li><div class="src-line"><a name="a2121"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2122"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2123"></a> </div></li> +<li><div class="src-line"><a name="a2124"></a></span><span class="src-str"> <span class="src-comm">// highlightable code</span></span></div></li> +<li><div class="src-line"><a name="a2125"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> = <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'dk'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2126"></a> </div></li> +<li><div class="src-line"><a name="a2127"></a></span><span class="src-str"> <span class="src-comm">//Only combine for non-rx script blocks</span></span></div></li> +<li><div class="src-line"><a name="a2128"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$delim_copy</span><span class="src-sym">[</span><span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'dk'</span><span class="src-sym">]]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2129"></a></span><span class="src-str"> <span class="src-comm">// group adjacent script blocks, e.g. <foobar><asdf> should be one block, not three!</span></span></div></li> +<li><div class="src-line"><a name="a2130"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$i</span> = <span class="src-var">$next_match_pos</span> + <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'open_strlen'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2131"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span><span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2132"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'close'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2133"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close_pos</span> == <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2134"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2135"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2136"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$close_pos</span> + <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'close_strlen'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2137"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$i</span> == <span class="src-var">$length</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2138"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2139"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2140"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> == <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'open'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> && <span class="src-sym">(</span><span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'open_strlen'</span><span class="src-sym">]</span> == <span class="src-num">1</span> ||</span></div></li> +<li><div class="src-line"><a name="a2141"></a></span><span class="src-str"> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'open_strlen'</span><span class="src-sym">]</span><span class="src-sym">)</span> == <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'open'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2142"></a></span><span class="src-str"> <span class="src-comm">// merge adjacent but make sure we don't merge things like <tag><!-- comment --></span></span></div></li> +<li><div class="src-line"><a name="a2143"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$matches</span> <span class="src-key">as</span> <span class="src-var">$submatches</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2144"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$submatches</span> <span class="src-key">as</span> <span class="src-var">$match</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2145"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match</span><span class="src-sym">[</span><span class="src-str">'next_match'</span><span class="src-sym">]</span> == <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2146"></a></span><span class="src-str"> <span class="src-comm">// a different block already matches here!</span></span></div></li> +<li><div class="src-line"><a name="a2147"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">break</span> <span class="src-num">3</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2148"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2149"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2150"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2151"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2152"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2153"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2154"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2155"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2156"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'close_pos'</span><span class="src-sym">]</span> + <span class="src-var">$next_match_pointer</span><span class="src-sym">[</span><span class="src-str">'close_strlen'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2157"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$close_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2158"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2159"></a> </div></li> +<li><div class="src-line"><a name="a2160"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close_pos</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2161"></a></span><span class="src-str"> <span class="src-comm">// no closing delimiter found!</span></span></div></li> +<li><div class="src-line"><a name="a2162"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$next_match_pos</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2163"></a></span><span class="src-str"> ++<span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2164"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2165"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2166"></a></span><span class="src-str"> <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">,</span> <span class="src-var">$next_match_pos</span><span class="src-sym">,</span> <span class="src-var">$i</span> - <span class="src-var">$next_match_pos</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2167"></a></span><span class="src-str"> ++<span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2168"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2169"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2170"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$delim_copy</span><span class="src-sym">,</span> <span class="src-var">$next_match_pointer</span><span class="src-sym">,</span> <span class="src-var">$next_match_pos</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2171"></a></span><span class="src-str"> <span class="src-var">$num_parts</span> = <span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2172"></a> </div></li> +<li><div class="src-line"><a name="a2173"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$num_parts</span> == <span class="src-num">1</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">strict_mode</span> == <span class="src-id">GESHI_MAYBE</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2174"></a></span><span class="src-str"> <span class="src-comm">// when we have only one part, we don't have anything to highlight at all.</span></span></div></li> +<li><div class="src-line"><a name="a2175"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// if we have a "maybe" strict language, this should be handled as highlightable code</span></span></div></li> +<li><div class="src-line"><a name="a2176"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parts</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2177"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2178"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-str">''</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2179"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-str">''</span></span></div></li> +<li><div class="src-line"><a name="a2180"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2181"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2182"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-id">null</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2183"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span></span></div></li> +<li><div class="src-line"><a name="a2184"></a></span><span class="src-str"> <span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2185"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2186"></a></span><span class="src-str"> <span class="src-var">$num_parts</span> = <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2187"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2188"></a> </div></li> +<li><div class="src-line"><a name="a2189"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2190"></a></span><span class="src-str"> <span class="src-comm">// Not strict mode - simply dump the source into</span></span></div></li> +<li><div class="src-line"><a name="a2191"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// the array at index 1 (the first highlightable block)</span></span></div></li> +<li><div class="src-line"><a name="a2192"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parts</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2193"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2194"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-str">''</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2195"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-str">''</span></span></div></li> +<li><div class="src-line"><a name="a2196"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2197"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2198"></a></span><span class="src-str"> <span class="src-num">0</span> => <span class="src-id">null</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2199"></a></span><span class="src-str"> <span class="src-num">1</span> => <span class="src-var">$code</span></span></div></li> +<li><div class="src-line"><a name="a2200"></a></span><span class="src-str"> <span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2201"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2202"></a></span><span class="src-str"> <span class="src-var">$num_parts</span> = <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2203"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2204"></a> </div></li> +<li><div class="src-line"><a name="a2205"></a></span><span class="src-str"> <span class="src-comm">//Unset variables we won't need any longer</span></span></div></li> +<li><div class="src-line"><a name="a2206"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2207"></a> </div></li> +<li><div class="src-line"><a name="a2208"></a></span><span class="src-str"> <span class="src-comm">//Preload some repeatedly used values regarding hardquotes ...</span></span></div></li> +<li><div class="src-line"><a name="a2209"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$hq</span> = isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HARDQUOTE'</span><span class="src-sym">]</span><span class="src-sym">)</span> ? <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HARDQUOTE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> : <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2210"></a></span><span class="src-str"> <span class="src-var">$hq_strlen</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$hq</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2211"></a> </div></li> +<li><div class="src-line"><a name="a2212"></a></span><span class="src-str"> <span class="src-comm">//Preload if line numbers are to be generated afterwards</span></span></div></li> +<li><div class="src-line"><a name="a2213"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Added a check if line breaks should be forced even without line numbers, fixes SF#1727398</span></span></div></li> +<li><div class="src-line"><a name="a2214"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$check_linenumbers</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span> ||</span></div></li> +<li><div class="src-line"><a name="a2215"></a></span><span class="src-str"> <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines</span><span class="src-sym">)</span> || <span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">allow_multiline_span</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2216"></a> </div></li> +<li><div class="src-line"><a name="a2217"></a></span><span class="src-str"> <span class="src-comm">//preload the escape char for faster checking ...</span></span></div></li> +<li><div class="src-line"><a name="a2218"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$escaped_escape_char</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2219"></a> </div></li> +<li><div class="src-line"><a name="a2220"></a></span><span class="src-str"> <span class="src-comm">// this is used for single-line comments</span></span></div></li> +<li><div class="src-line"><a name="a2221"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$sc_disallowed_before</span> = <span class="src-str">""</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2222"></a></span><span class="src-str"> <span class="src-var">$sc_disallowed_after</span> = <span class="src-str">""</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2223"></a> </div></li> +<li><div class="src-line"><a name="a2224"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2225"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2226"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2227"></a></span><span class="src-str"> <span class="src-var">$sc_disallowed_before</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2228"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2229"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2230"></a></span><span class="src-str"> <span class="src-var">$sc_disallowed_after</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2231"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2232"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2233"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2234"></a> </div></li> +<li><div class="src-line"><a name="a2235"></a></span><span class="src-str"> <span class="src-comm">//Fix for SF#1932083: Multichar Quotemarks unsupported</span></span></div></li> +<li><div class="src-line"><a name="a2236"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$is_string_starter</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2237"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2238"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'QUOTEMARKS'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$quotemark</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2239"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2240"></a></span><span class="src-str"> <span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span> = (string)<span class="src-var">$quotemark</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2241"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2242"></a></span><span class="src-str"> <span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2243"></a></span><span class="src-str"> <span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2244"></a></span><span class="src-str"> <span class="src-var">$quotemark</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2245"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2246"></a></span><span class="src-str"> <span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$quotemark</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$quotemark</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2247"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2248"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2249"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2250"></a> </div></li> +<li><div class="src-line"><a name="a2251"></a></span><span class="src-str"> <span class="src-comm">// Now we go through each part. We know that even-indexed parts are</span></span></div></li> +<li><div class="src-line"><a name="a2252"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// code that shouldn't be highlighted, and odd-indexed parts should</span></span></div></li> +<li><div class="src-line"><a name="a2253"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// be highlighted</span></span></div></li> +<li><div class="src-line"><a name="a2254"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$key</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$key</span> < <span class="src-var">$num_parts</span><span class="src-sym">;</span> ++<span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2255"></a></span><span class="src-str"> <span class="src-var">$STRICTATTRS</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2256"></a> </div></li> +<li><div class="src-line"><a name="a2257"></a></span><span class="src-str"> <span class="src-comm">// If this block should be highlighted...</span></span></div></li> +<li><div class="src-line"><a name="a2258"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-sym">(</span><span class="src-var">$key</span> <span class="src-sym">&</span> <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2259"></a></span><span class="src-str"> <span class="src-comm">// Else not a block to highlight</span></span></div></li> +<li><div class="src-line"><a name="a2260"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$endresult</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2261"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2262"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2263"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2264"></a> </div></li> +<li><div class="src-line"><a name="a2265"></a></span><span class="src-str"> <span class="src-var">$result</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2266"></a></span><span class="src-str"> <span class="src-var">$part</span> = <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2267"></a> </div></li> +<li><div class="src-line"><a name="a2268"></a></span><span class="src-str"> <span class="src-var">$highlight_part</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2269"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">strict_mode</span> && <span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2270"></a></span><span class="src-str"> <span class="src-comm">// get the class key for this block of code</span></span></div></li> +<li><div class="src-line"><a name="a2271"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$script_key</span> = <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2272"></a></span><span class="src-str"> <span class="src-var">$highlight_part</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HIGHLIGHT_STRICT_BLOCK'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$script_key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2273"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SCRIPT'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$script_key</span><span class="src-sym">]</span> != <span class="src-str">''</span> &&</span></div></li> +<li><div class="src-line"><a name="a2274"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'SCRIPT'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2275"></a></span><span class="src-str"> <span class="src-comm">// Add a span element around the source to</span></span></div></li> +<li><div class="src-line"><a name="a2276"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// highlight the overall source block</span></span></div></li> +<li><div class="src-line"><a name="a2277"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span> &&</span></div></li> +<li><div class="src-line"><a name="a2278"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SCRIPT'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$script_key</span><span class="src-sym">]</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2279"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SCRIPT'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$script_key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2280"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2281"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="sc'</span> . <span class="src-var">$script_key</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2282"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2283"></a></span><span class="src-str"> <span class="src-var">$result</span> .= <span class="src-str">"</span></span><span<span class="src-var">$attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2284"></a></span><span class="src-str"> <span class="src-var">$STRICTATTRS</span> = <span class="src-var">$attributes</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2285"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2286"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2287"></a> </div></li> +<li><div class="src-line"><a name="a2288"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$highlight_part</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2289"></a></span><span class="src-str"> <span class="src-comm">// Now, highlight the code in this block. This code</span></span></div></li> +<li><div class="src-line"><a name="a2290"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// is really the engine of GeSHi (along with the method</span></span></div></li> +<li><div class="src-line"><a name="a2291"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// parse_non_string_part).</span></span></div></li> +<li><div class="src-line"><a name="a2292"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2293"></a></span><span class="src-str"> <span class="src-comm">// cache comment regexps incrementally</span></span></div></li> +<li><div class="src-line"><a name="a2294"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$next_comment_regexp_key</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2295"></a></span><span class="src-str"> <span class="src-var">$next_comment_regexp_pos</span> = -<span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2296"></a></span><span class="src-str"> <span class="src-var">$next_comment_multi_pos</span> = -<span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2297"></a></span><span class="src-str"> <span class="src-var">$next_comment_single_pos</span> = -<span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2298"></a></span><span class="src-str"> <span class="src-var">$comment_regexp_cache_per_key</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2299"></a></span><span class="src-str"> <span class="src-var">$comment_multi_cache_per_key</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2300"></a></span><span class="src-str"> <span class="src-var">$comment_single_cache_per_key</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2301"></a></span><span class="src-str"> <span class="src-var">$next_open_comment_multi</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2302"></a></span><span class="src-str"> <span class="src-var">$next_comment_single_key</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2303"></a></span><span class="src-str"> <span class="src-var">$escape_regexp_cache_per_key</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2304"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_key</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2305"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> = -<span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2306"></a> </div></li> +<li><div class="src-line"><a name="a2307"></a></span><span class="src-str"> <span class="src-var">$length</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2308"></a></span><span class="src-str"> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$length</span><span class="src-sym">;</span> ++<span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2309"></a></span><span class="src-str"> <span class="src-comm">// Get the next char</span></span></div></li> +<li><div class="src-line"><a name="a2310"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$char</span> = <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2311"></a></span><span class="src-str"> <span class="src-var">$char_len</span> = <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2312"></a> </div></li> +<li><div class="src-line"><a name="a2313"></a></span><span class="src-str"> <span class="src-comm">// update regexp comment cache if needed</span></span></div></li> +<li><div class="src-line"><a name="a2314"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_REGEXP'</span><span class="src-sym">]</span><span class="src-sym">)</span> && <span class="src-var">$next_comment_regexp_pos</span> < <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2315"></a></span><span class="src-str"> <span class="src-var">$next_comment_regexp_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2316"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_REGEXP'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$comment_key</span> => <span class="src-var">$regexp</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2317"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2318"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a2319"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> >= <span class="src-var">$i</span> ||</span></div></li> +<li><div class="src-line"><a name="a2320"></a></span><span class="src-str"> <span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2321"></a></span><span class="src-str"> <span class="src-comm">// we have already matched something</span></span></div></li> +<li><div class="src-line"><a name="a2322"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2323"></a></span><span class="src-str"> <span class="src-comm">// this comment is never matched</span></span></div></li> +<li><div class="src-line"><a name="a2324"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2325"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2326"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2327"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2328"></a></span><span class="src-str"> <span class="src-comm">//This is to allow use of the offset parameter in preg_match and stay as compatible with older PHP versions as possible</span></span></div></li> +<li><div class="src-line"><a name="a2329"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">(</span><span class="src-id">GESHI_PHP_PRE_433</span> && <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">,</span> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$match</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">))</span> ||</span></div></li> +<li><div class="src-line"><a name="a2330"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">GESHI_PHP_PRE_433</span> && <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">,</span> <span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$match</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">))</span></span></div></li> +<li><div class="src-line"><a name="a2331"></a></span><span class="src-str"> <span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2332"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2333"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_PHP_PRE_433</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2334"></a></span><span class="src-str"> <span class="src-var">$match_i</span> += <span class="src-var">$i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2335"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2336"></a> </div></li> +<li><div class="src-line"><a name="a2337"></a></span><span class="src-str"> <span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2338"></a></span><span class="src-str"> <span class="src-str">'key'</span> => <span class="src-var">$comment_key</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2339"></a></span><span class="src-str"> <span class="src-str">'length'</span> => <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2340"></a></span><span class="src-str"> <span class="src-str">'pos'</span> => <span class="src-var">$match_i</span></span></div></li> +<li><div class="src-line"><a name="a2341"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2342"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2343"></a></span><span class="src-str"> <span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2344"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2345"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2346"></a> </div></li> +<li><div class="src-line"><a name="a2347"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> !== <span class="src-id">false</span> && <span class="src-var">$match_i</span> < <span class="src-var">$next_comment_regexp_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2348"></a></span><span class="src-str"> <span class="src-var">$next_comment_regexp_pos</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2349"></a></span><span class="src-str"> <span class="src-var">$next_comment_regexp_key</span> = <span class="src-var">$comment_key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2350"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> === <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2351"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2352"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2353"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2354"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2355"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2356"></a> </div></li> +<li><div class="src-line"><a name="a2357"></a></span><span class="src-str"> <span class="src-var">$string_started</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2358"></a> </div></li> +<li><div class="src-line"><a name="a2359"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2360"></a></span><span class="src-str"> <span class="src-comm">// Possibly the start of a new string ...</span></span></div></li> +<li><div class="src-line"><a name="a2361"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2362"></a></span><span class="src-str"> <span class="src-comm">//Check which starter it was ...</span></span></div></li> +<li><div class="src-line"><a name="a2363"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Fix for SF#1932083: Multichar Quotemarks unsupported</span></span></div></li> +<li><div class="src-line"><a name="a2364"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2365"></a></span><span class="src-str"> <span class="src-var">$char_new</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2366"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$testchar</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2367"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$testchar</span> === <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$testchar</span><span class="src-sym">))</span> &&</span></div></li> +<li><div class="src-line"><a name="a2368"></a></span><span class="src-str"> <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$testchar</span><span class="src-sym">)</span> > <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$char_new</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2369"></a></span><span class="src-str"> <span class="src-var">$char_new</span> = <span class="src-var">$testchar</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2370"></a></span><span class="src-str"> <span class="src-var">$string_started</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2371"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2372"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2373"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$string_started</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2374"></a></span><span class="src-str"> <span class="src-var">$char</span> = <span class="src-var">$char_new</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2375"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2376"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2377"></a></span><span class="src-str"> <span class="src-var">$testchar</span> = <span class="src-var">$is_string_starter</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2378"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$testchar</span> === <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$testchar</span><span class="src-sym">)))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2379"></a></span><span class="src-str"> <span class="src-var">$char</span> = <span class="src-var">$testchar</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2380"></a></span><span class="src-str"> <span class="src-var">$string_started</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2381"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2382"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2383"></a></span><span class="src-str"> <span class="src-var">$char_len</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$char</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2384"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2385"></a> </div></li> +<li><div class="src-line"><a name="a2386"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$string_started</span> && <span class="src-var">$i</span> != <span class="src-var">$next_comment_regexp_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2387"></a></span><span class="src-str"> <span class="src-comm">// Hand out the correct style information for this string</span></span></div></li> +<li><div class="src-line"><a name="a2388"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string_key</span> = <a href="http://www.php.net/array_search">array_search</a><span class="src-sym">(</span><span class="src-var">$char</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'QUOTEMARKS'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2389"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$string_key</span><span class="src-sym">]</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a2390"></a></span><span class="src-str"> <span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$string_key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2391"></a></span><span class="src-str"> <span class="src-var">$string_key</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2392"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2393"></a> </div></li> +<li><div class="src-line"><a name="a2394"></a></span><span class="src-str"> <span class="src-comm">// parse the stuff before this</span></span></div></li> +<li><div class="src-line"><a name="a2395"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2396"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2397"></a> </div></li> +<li><div class="src-line"><a name="a2398"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2399"></a></span><span class="src-str"> <span class="src-var">$string_attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$string_key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2400"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2401"></a></span><span class="src-str"> <span class="src-var">$string_attributes</span> = <span class="src-str">' class="st'</span>.<span class="src-var">$string_key</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2402"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2403"></a> </div></li> +<li><div class="src-line"><a name="a2404"></a></span><span class="src-str"> <span class="src-comm">// now handle the string</span></span></div></li> +<li><div class="src-line"><a name="a2405"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> = <span class="src-str">"</span></span><span<span class="src-var">$string_attributes</span>><span class="src-str">" </span><span class="src-str">. <span class="src-id">GeSHi</span><span class="src-sym">::</span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$char</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2406"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$i</span> + <span class="src-var">$char_len</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2407"></a></span><span class="src-str"> <span class="src-var">$string_open</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2408"></a> </div></li> +<li><div class="src-line"><a name="a2409"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_REGEXP'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2410"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2411"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2412"></a> </div></li> +<li><div class="src-line"><a name="a2413"></a></span><span class="src-str"> do <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2414"></a></span><span class="src-str"> <span class="src-comm">//Get the regular ending pos ...</span></span></div></li> +<li><div class="src-line"><a name="a2415"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$close_pos</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$char</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2416"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">false</span> === <span class="src-var">$close_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2417"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2418"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2419"></a> </div></li> +<li><div class="src-line"><a name="a2420"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2421"></a></span><span class="src-str"> <span class="src-comm">// update escape regexp cache if needed</span></span></div></li> +<li><div class="src-line"><a name="a2422"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_REGEXP'</span><span class="src-sym">]</span><span class="src-sym">)</span> && <span class="src-var">$next_escape_regexp_pos</span> < <span class="src-var">$start</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2423"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2424"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_REGEXP'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$escape_key</span> => <span class="src-var">$regexp</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2425"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2426"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a2427"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> >= <span class="src-var">$start</span> ||</span></div></li> +<li><div class="src-line"><a name="a2428"></a></span><span class="src-str"> <span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2429"></a></span><span class="src-str"> <span class="src-comm">// we have already matched something</span></span></div></li> +<li><div class="src-line"><a name="a2430"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2431"></a></span><span class="src-str"> <span class="src-comm">// this comment is never matched</span></span></div></li> +<li><div class="src-line"><a name="a2432"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2433"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2434"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2435"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2436"></a></span><span class="src-str"> <span class="src-comm">//This is to allow use of the offset parameter in preg_match and stay as compatible with older PHP versions as possible</span></span></div></li> +<li><div class="src-line"><a name="a2437"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">(</span><span class="src-id">GESHI_PHP_PRE_433</span> && <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">,</span> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$match</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">))</span> ||</span></div></li> +<li><div class="src-line"><a name="a2438"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">GESHI_PHP_PRE_433</span> && <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">,</span> <span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$match</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">))</span></span></div></li> +<li><div class="src-line"><a name="a2439"></a></span><span class="src-str"> <span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2440"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2441"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_PHP_PRE_433</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2442"></a></span><span class="src-str"> <span class="src-var">$match_i</span> += <span class="src-var">$start</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2443"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2444"></a> </div></li> +<li><div class="src-line"><a name="a2445"></a></span><span class="src-str"> <span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2446"></a></span><span class="src-str"> <span class="src-str">'key'</span> => <span class="src-var">$escape_key</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2447"></a></span><span class="src-str"> <span class="src-str">'length'</span> => <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2448"></a></span><span class="src-str"> <span class="src-str">'pos'</span> => <span class="src-var">$match_i</span></span></div></li> +<li><div class="src-line"><a name="a2449"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2450"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2451"></a></span><span class="src-str"> <span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'pos'</span><span class="src-sym">]</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2452"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2453"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2454"></a> </div></li> +<li><div class="src-line"><a name="a2455"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> !== <span class="src-id">false</span> && <span class="src-var">$match_i</span> < <span class="src-var">$next_escape_regexp_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2456"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2457"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_key</span> = <span class="src-var">$escape_key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2458"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> === <span class="src-var">$start</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2459"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2460"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2461"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2462"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2463"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2464"></a> </div></li> +<li><div class="src-line"><a name="a2465"></a></span><span class="src-str"> <span class="src-comm">//Find the next simple escape position</span></span></div></li> +<li><div class="src-line"><a name="a2466"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-str">''</span> != <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2467"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2468"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-id">false</span> === <span class="src-var">$simple_escape</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2469"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2470"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2471"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2472"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2473"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2474"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2475"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2476"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2477"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2478"></a> </div></li> +<li><div class="src-line"><a name="a2479"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$simple_escape</span> < <span class="src-var">$next_escape_regexp_pos</span> &&</span></div></li> +<li><div class="src-line"><a name="a2480"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> < <span class="src-var">$length</span> &&</span></div></li> +<li><div class="src-line"><a name="a2481"></a></span><span class="src-str"> <span class="src-var">$simple_escape</span> < <span class="src-var">$close_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2482"></a></span><span class="src-str"> <span class="src-comm">//The nexxt escape sequence is a simple one ...</span></span></div></li> +<li><div class="src-line"><a name="a2483"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$es_pos</span> = <span class="src-var">$simple_escape</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2484"></a> </div></li> +<li><div class="src-line"><a name="a2485"></a></span><span class="src-str"> <span class="src-comm">//Add the stuff not in the string yet ...</span></span></div></li> +<li><div class="src-line"><a name="a2486"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span> - <span class="src-var">$start</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2487"></a> </div></li> +<li><div class="src-line"><a name="a2488"></a></span><span class="src-str"> <span class="src-comm">//Get the style for this escaped char ...</span></span></div></li> +<li><div class="src-line"><a name="a2489"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2490"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2491"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2492"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' class="es0"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2493"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2494"></a> </div></li> +<li><div class="src-line"><a name="a2495"></a></span><span class="src-str"> <span class="src-comm">//Add the style for the escape char ...</span></span></div></li> +<li><div class="src-line"><a name="a2496"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-str">"</span></span><span<span class="src-var">$escape_char_attributes</span>><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a2497"></a></span><span class="src-str"> <span class="src-id">GeSHi</span><span class="src-sym">::</span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2498"></a> </div></li> +<li><div class="src-line"><a name="a2499"></a></span><span class="src-str"> <span class="src-comm">//Get the byte AFTER the ESCAPE_CHAR we just found</span></span></div></li> +<li><div class="src-line"><a name="a2500"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$es_char</span> = <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$es_pos</span> + <span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2501"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$es_char</span> == <span class="src-str">"\n"</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2502"></a></span><span class="src-str"> <span class="src-comm">// don't put a newline around newlines</span></span></div></li> +<li><div class="src-line"><a name="a2503"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-str">"</span>\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2504"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2505"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/ord">ord</a><span class="src-sym">(</span><span class="src-var">$es_char</span><span class="src-sym">)</span> >= <span class="src-num">128</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2506"></a></span><span class="src-str"> <span class="src-comm">//This is an non-ASCII char (UTF8 or single byte)</span></span></div></li> +<li><div class="src-line"><a name="a2507"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//This code tries to work around SF#2037598 ...</span></span></div></li> +<li><div class="src-line"><a name="a2508"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'mb_substr'</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2509"></a></span><span class="src-str"> <span class="src-var">$es_char_m</span> = <a href="http://www.php.net/mb_substr">mb_substr</a><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span>+<span class="src-num">1</span><span class="src-sym">,</span> <span class="src-num">16</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-num">1</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">encoding</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2510"></a></span><span class="src-str"> <span class="src-var">$string</span> .= <span class="src-var">$es_char_m</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2511"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-id">GESHI_PHP_PRE_433</span> && <span class="src-str">'utf-8'</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">encoding</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2512"></a></span><span class="src-str"> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">"/[\xC2-\xDF][\x80-\xBF]"</span>.</span></div></li> +<li><div class="src-line"><a name="a2513"></a></span><span class="src-str"> <span class="src-str">"|\xE0[\xA0-\xBF][\x80-\xBF]"</span>.</span></div></li> +<li><div class="src-line"><a name="a2514"></a></span><span class="src-str"> <span class="src-str">"|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}"</span>.</span></div></li> +<li><div class="src-line"><a name="a2515"></a></span><span class="src-str"> <span class="src-str">"|\xED[\x80-\x9F][\x80-\xBF]"</span>.</span></div></li> +<li><div class="src-line"><a name="a2516"></a></span><span class="src-str"> <span class="src-str">"|\xF0[\x90-\xBF][\x80-\xBF]{2}"</span>.</span></div></li> +<li><div class="src-line"><a name="a2517"></a></span><span class="src-str"> <span class="src-str">"|[\xF1-\xF3][\x80-\xBF]{3}"</span>.</span></div></li> +<li><div class="src-line"><a name="a2518"></a></span><span class="src-str"> <span class="src-str">"|\xF4[\x80-\x8F][\x80-\xBF]{2}/s"</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2519"></a></span><span class="src-str"> <span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$es_char_m</span><span class="src-sym">,</span> <span class="src-id">null</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span> + <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2520"></a></span><span class="src-str"> <span class="src-var">$es_char_m</span> = <span class="src-var">$es_char_m</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2521"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2522"></a></span><span class="src-str"> <span class="src-var">$es_char_m</span> = <span class="src-var">$es_char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2523"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2524"></a></span><span class="src-str"> <span class="src-var">$string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$es_char_m</span><span class="src-sym">)</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2525"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2526"></a></span><span class="src-str"> <span class="src-var">$es_char_m</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$es_char</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2527"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2528"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$es_char_m</span><span class="src-sym">)</span> + <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2529"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2530"></a></span><span class="src-str"> <span class="src-var">$string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$es_char</span><span class="src-sym">)</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2531"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2532"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2533"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$next_escape_regexp_pos</span> < <span class="src-var">$length</span> &&</span></div></li> +<li><div class="src-line"><a name="a2534"></a></span><span class="src-str"> <span class="src-var">$next_escape_regexp_pos</span> < <span class="src-var">$close_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2535"></a></span><span class="src-str"> <span class="src-var">$es_pos</span> = <span class="src-var">$next_escape_regexp_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2536"></a></span><span class="src-str"> <span class="src-comm">//Add the stuff not in the string yet ...</span></span></div></li> +<li><div class="src-line"><a name="a2537"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span> - <span class="src-var">$start</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2538"></a> </div></li> +<li><div class="src-line"><a name="a2539"></a></span><span class="src-str"> <span class="src-comm">//Get the key and length of this match ...</span></span></div></li> +<li><div class="src-line"><a name="a2540"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$escape</span> = <span class="src-var">$escape_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$next_escape_regexp_key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2541"></a></span><span class="src-str"> <span class="src-var">$escape_str</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span><span class="src-sym">,</span> <span class="src-var">$escape</span><span class="src-sym">[</span><span class="src-str">'length'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2542"></a></span><span class="src-str"> <span class="src-var">$escape_key</span> = <span class="src-var">$escape</span><span class="src-sym">[</span><span class="src-str">'key'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2543"></a> </div></li> +<li><div class="src-line"><a name="a2544"></a></span><span class="src-str"> <span class="src-comm">//Get the style for this escaped char ...</span></span></div></li> +<li><div class="src-line"><a name="a2545"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2546"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$escape_key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2547"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2548"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' class="es'</span> . <span class="src-var">$escape_key</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2549"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2550"></a> </div></li> +<li><div class="src-line"><a name="a2551"></a></span><span class="src-str"> <span class="src-comm">//Add the style for the escape char ...</span></span></div></li> +<li><div class="src-line"><a name="a2552"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-str">"</span></span><span<span class="src-var">$escape_char_attributes</span>><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a2553"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$escape_str</span><span class="src-sym">)</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2554"></a> </div></li> +<li><div class="src-line"><a name="a2555"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <span class="src-var">$escape</span><span class="src-sym">[</span><span class="src-str">'length'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2556"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2557"></a></span><span class="src-str"> <span class="src-comm">//Copy the remainder of the string ...</span></span></div></li> +<li><div class="src-line"><a name="a2558"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">,</span> <span class="src-var">$close_pos</span> - <span class="src-var">$start</span> + <span class="src-var">$char_len</span><span class="src-sym">))</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2559"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$close_pos</span> + <span class="src-var">$char_len</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2560"></a></span><span class="src-str"> <span class="src-var">$string_open</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2561"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2562"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">while</span><span class="src-sym">(</span><span class="src-var">$string_open</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2563"></a> </div></li> +<li><div class="src-line"><a name="a2564"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$check_linenumbers</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2565"></a></span><span class="src-str"> <span class="src-comm">// Are line numbers used? If, we should end the string before</span></span></div></li> +<li><div class="src-line"><a name="a2566"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// the newline and begin it again (so when <li>s are put in the source</span></span></div></li> +<li><div class="src-line"><a name="a2567"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// remains XHTML compliant)</span></span></div></li> +<li><div class="src-line"><a name="a2568"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// note to self: This opens up possibility of config files specifying</span></span></div></li> +<li><div class="src-line"><a name="a2569"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// that languages can/cannot have multiline strings???</span></span></div></li> +<li><div class="src-line"><a name="a2570"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"</span></span></span>\n<span<span class="src-var">$string_attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$string</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2571"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2572"></a> </div></li> +<li><div class="src-line"><a name="a2573"></a></span><span class="src-str"> <span class="src-var">$result</span> .= <span class="src-var">$string</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2574"></a></span><span class="src-str"> <span class="src-var">$string</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2575"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$start</span> - <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2576"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2577"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span> && <span class="src-var">$hq</span> && <span class="src-var">$hq</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> == <span class="src-var">$char</span> &&</span></div></li> +<li><div class="src-line"><a name="a2578"></a></span><span class="src-str"> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$hq_strlen</span><span class="src-sym">)</span> == <span class="src-var">$hq</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2579"></a></span><span class="src-str"> <span class="src-comm">// The start of a hard quoted string</span></span></div></li> +<li><div class="src-line"><a name="a2580"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2581"></a></span><span class="src-str"> <span class="src-var">$string_attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'HARD'</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2582"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'HARD'</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2583"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2584"></a></span><span class="src-str"> <span class="src-var">$string_attributes</span> = <span class="src-str">' class="st_h"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2585"></a></span><span class="src-str"> <span class="src-var">$escape_char_attributes</span> = <span class="src-str">' class="es_h"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2586"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2587"></a></span><span class="src-str"> <span class="src-comm">// parse the stuff before this</span></span></div></li> +<li><div class="src-line"><a name="a2588"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2589"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2590"></a> </div></li> +<li><div class="src-line"><a name="a2591"></a></span><span class="src-str"> <span class="src-comm">// now handle the string</span></span></div></li> +<li><div class="src-line"><a name="a2592"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2593"></a> </div></li> +<li><div class="src-line"><a name="a2594"></a></span><span class="src-str"> <span class="src-comm">// look for closing quote</span></span></div></li> +<li><div class="src-line"><a name="a2595"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$start</span> = <span class="src-var">$i</span> + <span class="src-var">$hq_strlen</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2596"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span><span class="src-var">$close_pos</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HARDQUOTE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2597"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$close_pos</span> + <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2598"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span> && <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$close_pos</span> - <span class="src-num">1</span><span class="src-sym">]</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2599"></a></span><span class="src-str"> <span class="src-comm">// make sure this quote is not escaped</span></span></div></li> +<li><div class="src-line"><a name="a2600"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HARDESCAPE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$hardescape</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2601"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$close_pos</span> - <span class="src-num">1</span><span class="src-sym">,</span> <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$hardescape</span><span class="src-sym">))</span> == <span class="src-var">$hardescape</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2602"></a></span><span class="src-str"> <span class="src-comm">// check wether this quote is escaped or if it is something like '\\'</span></span></div></li> +<li><div class="src-line"><a name="a2603"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$escape_char_pos</span> = <span class="src-var">$close_pos</span> - <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2604"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span><span class="src-var">$escape_char_pos</span> > <span class="src-num">0</span></span></div></li> +<li><div class="src-line"><a name="a2605"></a></span><span class="src-str"> && <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$escape_char_pos</span> - <span class="src-num">1</span><span class="src-sym">]</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2606"></a></span><span class="src-str"> --<span class="src-var">$escape_char_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2607"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2608"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">((</span><span class="src-var">$close_pos</span> - <span class="src-var">$escape_char_pos</span><span class="src-sym">)</span> <span class="src-sym">&</span> <span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2609"></a></span><span class="src-str"> <span class="src-comm">// uneven number of escape chars => this quote is escaped</span></span></div></li> +<li><div class="src-line"><a name="a2610"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span> <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2611"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2612"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2613"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2614"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2615"></a> </div></li> +<li><div class="src-line"><a name="a2616"></a></span><span class="src-str"> <span class="src-comm">// found closing quote</span></span></div></li> +<li><div class="src-line"><a name="a2617"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2618"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2619"></a> </div></li> +<li><div class="src-line"><a name="a2620"></a></span><span class="src-str"> <span class="src-comm">//Found the closing delimiter?</span></span></div></li> +<li><div class="src-line"><a name="a2621"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$close_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2622"></a></span><span class="src-str"> <span class="src-comm">// span till the end of this $part when no closing delimiter is found</span></span></div></li> +<li><div class="src-line"><a name="a2623"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$close_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2624"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2625"></a> </div></li> +<li><div class="src-line"><a name="a2626"></a></span><span class="src-str"> <span class="src-comm">//Get the actual string</span></span></div></li> +<li><div class="src-line"><a name="a2627"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$close_pos</span> - <span class="src-var">$i</span> + <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2628"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$close_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2629"></a> </div></li> +<li><div class="src-line"><a name="a2630"></a></span><span class="src-str"> <span class="src-comm">// handle escape chars and encode html chars</span></span></div></li> +<li><div class="src-line"><a name="a2631"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// (special because when we have escape chars within our string they may not be escaped)</span></span></div></li> +<li><div class="src-line"><a name="a2632"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2633"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2634"></a></span><span class="src-str"> <span class="src-var">$new_string</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2635"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span><span class="src-var">$es_pos</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2636"></a></span><span class="src-str"> <span class="src-comm">// hmtl escape stuff before</span></span></div></li> +<li><div class="src-line"><a name="a2637"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$new_string</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span> - <span class="src-var">$start</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2638"></a></span><span class="src-str"> <span class="src-comm">// check if this is a hard escape</span></span></div></li> +<li><div class="src-line"><a name="a2639"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'HARDESCAPE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$hardescape</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2640"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$es_pos</span><span class="src-sym">,</span> <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$hardescape</span><span class="src-sym">))</span> == <span class="src-var">$hardescape</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2641"></a></span><span class="src-str"> <span class="src-comm">// indeed, this is a hardescape</span></span></div></li> +<li><div class="src-line"><a name="a2642"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$new_string</span> .= <span class="src-str">"</span></span><span<span class="src-var">$escape_char_attributes</span>><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a2643"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$hardescape</span><span class="src-sym">)</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2644"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$hardescape</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2645"></a></span><span class="src-str"> <span class="src-key">continue</span> <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2646"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2647"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2648"></a></span><span class="src-str"> <span class="src-comm">// not a hard escape, but a normal escape</span></span></div></li> +<li><div class="src-line"><a name="a2649"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// they come in pairs of two</span></span></div></li> +<li><div class="src-line"><a name="a2650"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$c</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2651"></a></span><span class="src-str"> <span class="src-key">while</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">[</span><span class="src-var">$es_pos</span> + <span class="src-var">$c</span><span class="src-sym">]</span><span class="src-sym">)</span> && isset<span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">[</span><span class="src-var">$es_pos</span> + <span class="src-var">$c</span> + <span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2652"></a></span><span class="src-str"> && <span class="src-var">$string</span><span class="src-sym">[</span><span class="src-var">$es_pos</span> + <span class="src-var">$c</span><span class="src-sym">]</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span></span></div></li> +<li><div class="src-line"><a name="a2653"></a></span><span class="src-str"> && <span class="src-var">$string</span><span class="src-sym">[</span><span class="src-var">$es_pos</span> + <span class="src-var">$c</span> + <span class="src-num">1</span><span class="src-sym">]</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2654"></a></span><span class="src-str"> <span class="src-var">$c</span> += <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2655"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2656"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$c</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2657"></a></span><span class="src-str"> <span class="src-var">$new_string</span> .= <span class="src-str">"</span></span><span<span class="src-var">$escape_char_attributes</span>><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a2658"></a></span><span class="src-str"> <span class="src-id">str_repeat</span><span class="src-sym">(</span><span class="src-var">$escaped_escape_char</span><span class="src-sym">,</span> <span class="src-var">$c</span><span class="src-sym">)</span> .</span></div></li> +<li><div class="src-line"><a name="a2659"></a></span><span class="src-str"> <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2660"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <span class="src-var">$c</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2661"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2662"></a></span><span class="src-str"> <span class="src-comm">// this is just a single lonely escape char...</span></span></div></li> +<li><div class="src-line"><a name="a2663"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$new_string</span> .= <span class="src-var">$escaped_escape_char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2664"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-var">$es_pos</span> + <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2665"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2666"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2667"></a></span><span class="src-str"> <span class="src-var">$string</span> = <span class="src-var">$new_string</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$start</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2668"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2669"></a></span><span class="src-str"> <span class="src-var">$string</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2670"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2671"></a> </div></li> +<li><div class="src-line"><a name="a2672"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$check_linenumbers</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2673"></a></span><span class="src-str"> <span class="src-comm">// Are line numbers used? If, we should end the string before</span></span></div></li> +<li><div class="src-line"><a name="a2674"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// the newline and begin it again (so when <li>s are put in the source</span></span></div></li> +<li><div class="src-line"><a name="a2675"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// remains XHTML compliant)</span></span></div></li> +<li><div class="src-line"><a name="a2676"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// note to self: This opens up possibility of config files specifying</span></span></div></li> +<li><div class="src-line"><a name="a2677"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// that languages can/cannot have multiline strings???</span></span></div></li> +<li><div class="src-line"><a name="a2678"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$string</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"</span></span></span>\n<span<span class="src-var">$string_attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$string</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2679"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2680"></a> </div></li> +<li><div class="src-line"><a name="a2681"></a></span><span class="src-str"> <span class="src-var">$result</span> .= </span><span class="src-str">"</span><span<span class="src-var">$string_attributes</span>><span class="src-str">" </span><span class="src-str">. <span class="src-var">$string</span> . <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2682"></a></span><span class="src-str"> <span class="src-var">$string</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2683"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2684"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2685"></a></span><span class="src-str"> <span class="src-comm">//Have a look for regexp comments</span></span></div></li> +<li><div class="src-line"><a name="a2686"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$i</span> == <span class="src-var">$next_comment_regexp_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2687"></a></span><span class="src-str"> <span class="src-var">$COMMENT_MATCHED</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2688"></a></span><span class="src-str"> <span class="src-var">$comment</span> = <span class="src-var">$comment_regexp_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$next_comment_regexp_key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2689"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$comment</span><span class="src-sym">[</span><span class="src-str">'length'</span><span class="src-sym">]</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2690"></a> </div></li> +<li><div class="src-line"><a name="a2691"></a></span><span class="src-str"> <span class="src-comm">//@todo If remove important do remove here</span></span></div></li> +<li><div class="src-line"><a name="a2692"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MULTI'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2693"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2694"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$comment</span><span class="src-sym">[</span><span class="src-str">'key'</span><span class="src-sym">]]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2695"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2696"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="co'</span> . <span class="src-var">$comment</span><span class="src-sym">[</span><span class="src-str">'key'</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2697"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2698"></a> </div></li> +<li><div class="src-line"><a name="a2699"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-str">"</span></span><span<span class="src-var">$attributes</span>><span class="src-str">" </span><span class="src-str">. <span class="src-var">$test_str</span> . <span class="src-str">"</span>"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2700"></a> </div></li> +<li><div class="src-line"><a name="a2701"></a></span><span class="src-str"> <span class="src-comm">// Short-cut through all the multiline code</span></span></div></li> +<li><div class="src-line"><a name="a2702"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$check_linenumbers</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2703"></a></span><span class="src-str"> <span class="src-comm">// strreplace to put close span and open span around multiline newlines</span></span></div></li> +<li><div class="src-line"><a name="a2704"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$test_str</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2705"></a></span><span class="src-str"> <span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"</span></span></span>\n<span<span class="src-var">$attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2706"></a></span><span class="src-str"> <span class="src-id">str_replace</span><span class="src-sym">(</span><span class="src-str">"\n "</span><span class="src-sym">,</span> <span class="src-str">"\n&nbsp;"</span><span class="src-sym">,</span> <span class="src-var">$test_str</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2707"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2708"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2709"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2710"></a> </div></li> +<li><div class="src-line"><a name="a2711"></a></span><span class="src-str"> <span class="src-var">$i</span> += <span class="src-var">$comment</span><span class="src-sym">[</span><span class="src-str">'length'</span><span class="src-sym">]</span> - <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2712"></a> </div></li> +<li><div class="src-line"><a name="a2713"></a></span><span class="src-str"> <span class="src-comm">// parse the rest</span></span></div></li> +<li><div class="src-line"><a name="a2714"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2715"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2716"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2717"></a> </div></li> +<li><div class="src-line"><a name="a2718"></a></span><span class="src-str"> <span class="src-comm">// If we haven't matched a regexp comment, try multi-line comments</span></span></div></li> +<li><div class="src-line"><a name="a2719"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$COMMENT_MATCHED</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2720"></a></span><span class="src-str"> <span class="src-comm">// Is this a multiline comment?</span></span></div></li> +<li><div class="src-line"><a name="a2721"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_MULTI'</span><span class="src-sym">]</span><span class="src-sym">)</span> && <span class="src-var">$next_comment_multi_pos</span> < <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2722"></a></span><span class="src-str"> <span class="src-var">$next_comment_multi_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2723"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_MULTI'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$open</span> => <span class="src-var">$close</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2724"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2725"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a2726"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> >= <span class="src-var">$i</span> ||</span></div></li> +<li><div class="src-line"><a name="a2727"></a></span><span class="src-str"> <span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2728"></a></span><span class="src-str"> <span class="src-comm">// we have already matched something</span></span></div></li> +<li><div class="src-line"><a name="a2729"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2730"></a></span><span class="src-str"> <span class="src-comm">// this comment is never matched</span></span></div></li> +<li><div class="src-line"><a name="a2731"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2732"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2733"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2734"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">((</span><span class="src-var">$match_i</span> = <a href="http://www.php.net/stripos">stripos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$open</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">))</span> !== <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2735"></a></span><span class="src-str"> <span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2736"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2737"></a></span><span class="src-str"> <span class="src-var">$comment_multi_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2738"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2739"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2740"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> !== <span class="src-id">false</span> && <span class="src-var">$match_i</span> < <span class="src-var">$next_comment_multi_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2741"></a></span><span class="src-str"> <span class="src-var">$next_comment_multi_pos</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2742"></a></span><span class="src-str"> <span class="src-var">$next_open_comment_multi</span> = <span class="src-var">$open</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2743"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> === <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2744"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2745"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2746"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2747"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2748"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2749"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$i</span> == <span class="src-var">$next_comment_multi_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2750"></a></span><span class="src-str"> <span class="src-var">$open</span> = <span class="src-var">$next_open_comment_multi</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2751"></a></span><span class="src-str"> <span class="src-var">$close</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_MULTI'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$open</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2752"></a></span><span class="src-str"> <span class="src-var">$open_strlen</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$open</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2753"></a></span><span class="src-str"> <span class="src-var">$close_strlen</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$close</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2754"></a></span><span class="src-str"> <span class="src-var">$COMMENT_MATCHED</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2755"></a></span><span class="src-str"> <span class="src-var">$test_str_match</span> = <span class="src-var">$open</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2756"></a></span><span class="src-str"> <span class="src-comm">//@todo If remove important do remove here</span></span></div></li> +<li><div class="src-line"><a name="a2757"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MULTI'</span><span class="src-sym">]</span> ||</span></div></li> +<li><div class="src-line"><a name="a2758"></a></span><span class="src-str"> <span class="src-var">$open</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2759"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$open</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2760"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2761"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MULTI'</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2762"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2763"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="coMULTI"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2764"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2765"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-str">"</span></span><span<span class="src-var">$attributes</span>><span class="src-str">" </span><span class="src-str">. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$open</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2766"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2767"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2768"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">important_styles</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2769"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2770"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="imp"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2771"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2772"></a> </div></li> +<li><div class="src-line"><a name="a2773"></a></span><span class="src-str"> <span class="src-comm">// We don't include the start of the comment if it's an</span></span></div></li> +<li><div class="src-line"><a name="a2774"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// "important" part</span></span></div></li> +<li><div class="src-line"><a name="a2775"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$test_str</span> = <span class="src-str">"</span></span><span<span class="src-var">$attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2776"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2777"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2778"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$open</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2779"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2780"></a> </div></li> +<li><div class="src-line"><a name="a2781"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <span class="src-id">strpos</span><span class="src-sym">(</span> <span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$close</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-var">$open_strlen</span> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2782"></a> </div></li> +<li><div class="src-line"><a name="a2783"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close_pos</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2784"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2785"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2786"></a> </div></li> +<li><div class="src-line"><a name="a2787"></a></span><span class="src-str"> <span class="src-comm">// Short-cut through all the multiline code</span></span></div></li> +<li><div class="src-line"><a name="a2788"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$rest_of_comment</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-id">substr</span><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-var">$open_strlen</span><span class="src-sym">,</span> <span class="src-var">$close_pos</span> - <span class="src-var">$i</span> - <span class="src-var">$open_strlen</span> + <span class="src-var">$close_strlen</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2789"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">((</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MULTI'</span><span class="src-sym">]</span> ||</span></div></li> +<li><div class="src-line"><a name="a2790"></a></span><span class="src-str"> <span class="src-var">$test_str_match</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a2791"></a></span><span class="src-str"> <span class="src-var">$check_linenumbers</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2792"></a> </div></li> +<li><div class="src-line"><a name="a2793"></a></span><span class="src-str"> <span class="src-comm">// strreplace to put close span and open span around multiline newlines</span></span></div></li> +<li><div class="src-line"><a name="a2794"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$test_str</span> .= <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2795"></a></span><span class="src-str"> <span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"</span></span></span>\n<span<span class="src-var">$attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a2796"></a></span><span class="src-str"> <span class="src-id">str_replace</span><span class="src-sym">(</span><span class="src-str">"\n "</span><span class="src-sym">,</span> <span class="src-str">"\n&nbsp;"</span><span class="src-sym">,</span> <span class="src-var">$rest_of_comment</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a2797"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2798"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2799"></a></span><span class="src-str"> <span class="src-var">$test_str</span> .= <span class="src-var">$rest_of_comment</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2800"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2801"></a> </div></li> +<li><div class="src-line"><a name="a2802"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MULTI'</span><span class="src-sym">]</span> ||</span></div></li> +<li><div class="src-line"><a name="a2803"></a></span><span class="src-str"> <span class="src-var">$test_str_match</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2804"></a></span><span class="src-str"> <span class="src-var">$test_str</span> .= <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2805"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2806"></a> </div></li> +<li><div class="src-line"><a name="a2807"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$close_pos</span> + <span class="src-var">$close_strlen</span> - <span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2808"></a> </div></li> +<li><div class="src-line"><a name="a2809"></a></span><span class="src-str"> <span class="src-comm">// parse the rest</span></span></div></li> +<li><div class="src-line"><a name="a2810"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2811"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2812"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2813"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2814"></a> </div></li> +<li><div class="src-line"><a name="a2815"></a></span><span class="src-str"> <span class="src-comm">// If we haven't matched a multiline comment, try single-line comments</span></span></div></li> +<li><div class="src-line"><a name="a2816"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$COMMENT_MATCHED</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2817"></a></span><span class="src-str"> <span class="src-comm">// cache potential single line comment occurances</span></span></div></li> +<li><div class="src-line"><a name="a2818"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_SINGLE'</span><span class="src-sym">]</span><span class="src-sym">)</span> && <span class="src-var">$next_comment_single_pos</span> < <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2819"></a></span><span class="src-str"> <span class="src-var">$next_comment_single_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2820"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_SINGLE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$comment_key</span> => <span class="src-var">$comment_mark</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2821"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2822"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a2823"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> >= <span class="src-var">$i</span> ||</span></div></li> +<li><div class="src-line"><a name="a2824"></a></span><span class="src-str"> <span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2825"></a></span><span class="src-str"> <span class="src-comm">// we have already matched something</span></span></div></li> +<li><div class="src-line"><a name="a2826"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2827"></a></span><span class="src-str"> <span class="src-comm">// this comment is never matched</span></span></div></li> +<li><div class="src-line"><a name="a2828"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2829"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2830"></a></span><span class="src-str"> <span class="src-var">$match_i</span> = <span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2831"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a2832"></a></span><span class="src-str"> <span class="src-comm">// case sensitive comments</span></span></div></li> +<li><div class="src-line"><a name="a2833"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id">GESHI_COMMENTS</span><span class="src-sym">]</span> &&</span></div></li> +<li><div class="src-line"><a name="a2834"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$match_i</span> = <a href="http://www.php.net/stripos">stripos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$comment_mark</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">))</span> !== <span class="src-id">false</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a2835"></a></span><span class="src-str"> <span class="src-comm">// non case sensitive</span></span></div></li> +<li><div class="src-line"><a name="a2836"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id">GESHI_COMMENTS</span><span class="src-sym">]</span> &&</span></div></li> +<li><div class="src-line"><a name="a2837"></a></span><span class="src-str"> <span class="src-sym">((</span><span class="src-var">$match_i</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$comment_mark</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">))</span> !== <span class="src-id">false</span><span class="src-sym">)))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2838"></a></span><span class="src-str"> <span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2839"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2840"></a></span><span class="src-str"> <span class="src-var">$comment_single_cache_per_key</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2841"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2842"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2843"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> !== <span class="src-id">false</span> && <span class="src-var">$match_i</span> < <span class="src-var">$next_comment_single_pos</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2844"></a></span><span class="src-str"> <span class="src-var">$next_comment_single_pos</span> = <span class="src-var">$match_i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2845"></a></span><span class="src-str"> <span class="src-var">$next_comment_single_key</span> = <span class="src-var">$comment_key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2846"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$match_i</span> === <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2847"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2848"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2849"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2850"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2851"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2852"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$next_comment_single_pos</span> == <span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2853"></a></span><span class="src-str"> <span class="src-var">$comment_key</span> = <span class="src-var">$next_comment_single_key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2854"></a></span><span class="src-str"> <span class="src-var">$comment_mark</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_SINGLE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2855"></a></span><span class="src-str"> <span class="src-var">$com_len</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$comment_mark</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2856"></a> </div></li> +<li><div class="src-line"><a name="a2857"></a></span><span class="src-str"> <span class="src-comm">// This check will find special variables like $# in bash</span></span></div></li> +<li><div class="src-line"><a name="a2858"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// or compiler directives of Delphi beginning {$</span></span></div></li> +<li><div class="src-line"><a name="a2859"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">((</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$sc_disallowed_before</span><span class="src-sym">)</span> || <span class="src-sym">(</span><span class="src-var">$i</span> == <span class="src-num">0</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a2860"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-id">false</span> === <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$sc_disallowed_before</span><span class="src-sym">,</span> <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$i</span>-<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)))</span> &&</span></div></li> +<li><div class="src-line"><a name="a2861"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$sc_disallowed_after</span><span class="src-sym">)</span> || <span class="src-sym">(</span><span class="src-var">$length</span> <= <span class="src-var">$i</span> + <span class="src-var">$com_len</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a2862"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-id">false</span> === <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$sc_disallowed_after</span><span class="src-sym">,</span> <span class="src-var">$part</span><span class="src-sym">[</span><span class="src-var">$i</span> + <span class="src-var">$com_len</span><span class="src-sym">]</span><span class="src-sym">))))</span></span></div></li> +<li><div class="src-line"><a name="a2863"></a></span><span class="src-str"> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2864"></a></span><span class="src-str"> <span class="src-comm">// this is a valid comment</span></span></div></li> +<li><div class="src-line"><a name="a2865"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$COMMENT_MATCHED</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2866"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2867"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2868"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2869"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2870"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="co'</span> . <span class="src-var">$comment_key</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2871"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2872"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-str">"</span></span><span<span class="src-var">$attributes</span>><span class="src-str">" </span><span class="src-str">. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">change_case</span><span class="src-sym">(</span><span class="src-var">$comment_mark</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2873"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2874"></a></span><span class="src-str"> <span class="src-var">$test_str</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$comment_mark</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2875"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2876"></a> </div></li> +<li><div class="src-line"><a name="a2877"></a></span><span class="src-str"> <span class="src-comm">//Check if this comment is the last in the source</span></span></div></li> +<li><div class="src-line"><a name="a2878"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$close_pos</span> = <span class="src-id">strpos</span><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$i</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2879"></a></span><span class="src-str"> <span class="src-var">$oops</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2880"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close_pos</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2881"></a></span><span class="src-str"> <span class="src-var">$close_pos</span> = <span class="src-var">$length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2882"></a></span><span class="src-str"> <span class="src-var">$oops</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2883"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2884"></a></span><span class="src-str"> <span class="src-var">$test_str</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-var">$com_len</span><span class="src-sym">,</span> <span class="src-var">$close_pos</span> - <span class="src-var">$i</span> - <span class="src-var">$com_len</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2885"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$comment_key</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2886"></a></span><span class="src-str"> <span class="src-var">$test_str</span> .= <span class="src-str">"</span>"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2887"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2888"></a> </div></li> +<li><div class="src-line"><a name="a2889"></a></span><span class="src-str"> <span class="src-comm">// Take into account that the comment might be the last in the source</span></span></div></li> +<li><div class="src-line"><a name="a2890"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$oops</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2891"></a></span><span class="src-str"> <span class="src-var">$test_str</span> .= <span class="src-str">"\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2892"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2893"></a> </div></li> +<li><div class="src-line"><a name="a2894"></a></span><span class="src-str"> <span class="src-var">$i</span> = <span class="src-var">$close_pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2895"></a> </div></li> +<li><div class="src-line"><a name="a2896"></a></span><span class="src-str"> <span class="src-comm">// parse the rest</span></span></div></li> +<li><div class="src-line"><a name="a2897"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2898"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2899"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2900"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2901"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2902"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2903"></a> </div></li> +<li><div class="src-line"><a name="a2904"></a></span><span class="src-str"> <span class="src-comm">// Where are we adding this char?</span></span></div></li> +<li><div class="src-line"><a name="a2905"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$COMMENT_MATCHED</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2906"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> .= <span class="src-var">$char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2907"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2908"></a></span><span class="src-str"> <span class="src-var">$result</span> .= <span class="src-var">$test_str</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2909"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$test_str</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2910"></a></span><span class="src-str"> <span class="src-var">$COMMENT_MATCHED</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2911"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2912"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2913"></a></span><span class="src-str"> <span class="src-comm">// Parse the last bit</span></span></div></li> +<li><div class="src-line"><a name="a2914"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2915"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2916"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2917"></a></span><span class="src-str"> <span class="src-var">$result</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2918"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2919"></a></span><span class="src-str"> <span class="src-comm">// Close the <span> that surrounds the block</span></span></div></li> +<li><div class="src-line"><a name="a2920"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$STRICTATTRS</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2921"></a></span><span class="src-str"> <span class="src-var">$result</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"</span></span></span>\n<span<span class="src-var">$STRICTATTRS</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2922"></a></span><span class="src-str"> <span class="src-var">$result</span> .= <span class="src-str">'</span>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2923"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2924"></a> </div></li> +<li><div class="src-line"><a name="a2925"></a></span><span class="src-str"> <span class="src-var">$endresult</span> .= <span class="src-var">$result</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2926"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$part</span><span class="src-sym">,</span> <span class="src-var">$parts</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2927"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2928"></a> </div></li> +<li><div class="src-line"><a name="a2929"></a></span><span class="src-str"> <span class="src-comm">//This fix is related to SF#1923020, but has to be applied regardless of</span></span></div></li> +<li><div class="src-line"><a name="a2930"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//actually highlighting symbols.</span></span></div></li> +<li><div class="src-line"><a name="a2931"></a><span class="src-doc">/** NOTE: memorypeak #3 */</span><span class="src-str"><span class="src-comm"></span> </span></span></div></li> +<li><div class="src-line"><a name="a2932"></a></span><span class="src-str"> <span class="src-var">$endresult</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'<SEMI>'</span><span class="src-sym">,</span> <span class="src-str">'<PIPE>'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">';'</span><span class="src-sym">,</span> <span class="src-str">'|'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$endresult</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2933"></a> </div></li> +<li><div class="src-line"><a name="a2934"></a></span><span class="src-str"><span class="src-comm">// // Parse the last stuff (redundant?)</span></span></div></li> +<li><div class="src-line"><a name="a2935"></a></span><span class="src-str"><span class="src-comm">// $result .= $this->parse_non_string_part($stuff_to_parse);</span></span></div></li> +<li><div class="src-line"><a name="a2936"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2937"></a></span><span class="src-str"> <span class="src-comm">// Lop off the very first and last spaces</span></span></div></li> +<li><div class="src-line"><a name="a2938"></a></span><span class="src-str"><span class="src-comm">// $result = substr($result, 1, -1);</span></span></div></li> +<li><div class="src-line"><a name="a2939"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2940"></a></span><span class="src-str"> <span class="src-comm">// We're finished: stop timing</span></span></div></li> +<li><div class="src-line"><a name="a2941"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">set_time</span><span class="src-sym">(</span><span class="src-var">$start_time</span><span class="src-sym">,</span> <a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2942"></a> </div></li> +<li><div class="src-line"><a name="a2943"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">finalise</span><span class="src-sym">(</span><span class="src-var">$endresult</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2944"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$endresult</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2945"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2946"></a> </div></li> +<li><div class="src-line"><a name="a2947"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a2948"></a><span class="src-doc"> * Swaps out spaces and tabs for HTML indentation. Not needed if</span></div></li> +<li><div class="src-line"><a name="a2949"></a><span class="src-doc"> * the code is in a pre block...</span></div></li> +<li><div class="src-line"><a name="a2950"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a2951"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc">The source to indent (reference!)</span></div></li> +<li><div class="src-line"><a name="a2952"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a2953"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a2954"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a2955"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">indent</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$result</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2956"></a></span><span class="src-str"> <span class="src-comm">/// Replace tabs with the correct number of spaces</span></span></div></li> +<li><div class="src-line"><a name="a2957"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">false</span> !== <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$result</span><span class="src-sym">,</span> <span class="src-str">"\t"</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2958"></a></span><span class="src-str"> <span class="src-var">$lines</span> = <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2959"></a></span><span class="src-str"> <span class="src-var">$result</span> = <span class="src-id">null</span><span class="src-sym">;</span><span class="src-comm">//Save memory while we process the lines individually</span></span></div></li> +<li><div class="src-line"><a name="a2960"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$tab_width</span> = <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodget_real_tab_width">get_real_tab_width</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2961"></a></span><span class="src-str"> <span class="src-var">$tab_string</span> = <span class="src-str">'&nbsp;'</span> . <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span> <span class="src-var">$tab_width</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2962"></a> </div></li> +<li><div class="src-line"><a name="a2963"></a></span><span class="src-str"> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$key</span> = <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-var">$n</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$lines</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-var">$key</span> < <span class="src-var">$n</span><span class="src-sym">;</span> <span class="src-var">$key</span>++<span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2964"></a></span><span class="src-str"> <span class="src-var">$line</span> = <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2965"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">false</span> === <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">,</span> <span class="src-str">"\t"</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2966"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2967"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2968"></a> </div></li> +<li><div class="src-line"><a name="a2969"></a></span><span class="src-str"> <span class="src-var">$pos</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2970"></a></span><span class="src-str"> <span class="src-var">$length</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2971"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-str">''</span><span class="src-sym">;</span> <span class="src-comm">// reduce memory</span></span></div></li> +<li><div class="src-line"><a name="a2972"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a2973"></a></span><span class="src-str"> <span class="src-var">$IN_TAG</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2974"></a></span><span class="src-str"> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$length</span><span class="src-sym">;</span> ++<span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2975"></a></span><span class="src-str"> <span class="src-var">$char</span> = <span class="src-var">$line</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2976"></a></span><span class="src-str"> <span class="src-comm">// Simple engine to work out whether we're in a tag.</span></span></div></li> +<li><div class="src-line"><a name="a2977"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// If we are we modify $pos. This is so we ignore HTML</span></span></div></li> +<li><div class="src-line"><a name="a2978"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// in the line and only workout the tab replacement</span></span></div></li> +<li><div class="src-line"><a name="a2979"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// via the actual content of the string</span></span></div></li> +<li><div class="src-line"><a name="a2980"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// This test could be improved to include strings in the</span></span></div></li> +<li><div class="src-line"><a name="a2981"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// html so that < or > would be allowed in user's styles</span></span></div></li> +<li><div class="src-line"><a name="a2982"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// (e.g. quotes: '<' '>'; or similar)</span></span></div></li> +<li><div class="src-line"><a name="a2983"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$IN_TAG</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2984"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">'>'</span> == <span class="src-var">$char</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2985"></a></span><span class="src-str"> <span class="src-var">$IN_TAG</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2986"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2987"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2988"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">'<'</span> == <span class="src-var">$char</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2989"></a></span><span class="src-str"> <span class="src-var">$IN_TAG</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2990"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-str">'<'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2991"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">'&'</span> == <span class="src-var">$char</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2992"></a></span><span class="src-str"> <span class="src-var">$substr</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-num">3</span><span class="src-sym">,</span> <span class="src-num">5</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2993"></a></span><span class="src-str"> <span class="src-var">$posi</span> = <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$substr</span><span class="src-sym">,</span> <span class="src-str">';'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2994"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">false</span> === <span class="src-var">$posi</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2995"></a></span><span class="src-str"> ++<span class="src-var">$pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2996"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a2997"></a></span><span class="src-str"> <span class="src-var">$pos</span> -= <span class="src-var">$posi</span>+<span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a2998"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a2999"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3000"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">"\t"</span> == <span class="src-var">$char</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3001"></a></span><span class="src-str"> <span class="src-var">$str</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3002"></a></span><span class="src-str"> <span class="src-comm">// OPTIMISE - move $strs out. Make an array:</span></span></div></li> +<li><div class="src-line"><a name="a3003"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// $tabs = array(</span></span></div></li> +<li><div class="src-line"><a name="a3004"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// 1 => '&nbsp;',</span></span></div></li> +<li><div class="src-line"><a name="a3005"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// 2 => '&nbsp; ',</span></span></div></li> +<li><div class="src-line"><a name="a3006"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// 3 => '&nbsp; &nbsp;' etc etc</span></span></div></li> +<li><div class="src-line"><a name="a3007"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// to use instead of building a string every time</span></span></div></li> +<li><div class="src-line"><a name="a3008"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$tab_end_width</span> = <span class="src-var">$tab_width</span> - <span class="src-sym">(</span><span class="src-var">$pos</span> % <span class="src-var">$tab_width</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-comm">//Moved out of the look as it doesn't change within the loop</span></span></div></li> +<li><div class="src-line"><a name="a3009"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">((</span><span class="src-var">$pos</span> <span class="src-sym">&</span> <span class="src-num">1</span><span class="src-sym">)</span> || <span class="src-num">1</span> == <span class="src-var">$tab_end_width</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3010"></a></span><span class="src-str"> <span class="src-var">$str</span> .= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$tab_string</span><span class="src-sym">,</span> <span class="src-num">6</span><span class="src-sym">,</span> <span class="src-var">$tab_end_width</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3011"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3012"></a></span><span class="src-str"> <span class="src-var">$str</span> .= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$tab_string</span><span class="src-sym">,</span> <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-var">$tab_end_width</span>+<span class="src-num">5</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3013"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3014"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$str</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3015"></a></span><span class="src-str"> <span class="src-var">$pos</span> += <span class="src-var">$tab_end_width</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3016"></a> </div></li> +<li><div class="src-line"><a name="a3017"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">false</span> === <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">,</span> <span class="src-str">"\t"</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3018"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">,</span> <span class="src-var">$i</span> + <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3019"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3020"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3021"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-num">0</span> == <span class="src-var">$pos</span> && <span class="src-str">' '</span> == <span class="src-var">$char</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3022"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-str">'&nbsp;'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3023"></a></span><span class="src-str"> ++<span class="src-var">$pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3024"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3025"></a></span><span class="src-str"> <span class="src-var">$lines</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> .= <span class="src-var">$char</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3026"></a></span><span class="src-str"> ++<span class="src-var">$pos</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3027"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3028"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3029"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3030"></a></span><span class="src-str"> <span class="src-var">$result</span> = <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$lines</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3031"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$lines</span><span class="src-sym">)</span><span class="src-sym">;</span><span class="src-comm">//We don't need the lines separated beyond this --- free them!</span></span></div></li> +<li><div class="src-line"><a name="a3032"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3033"></a></span><span class="src-str"> <span class="src-comm">// Other whitespace</span></span></div></li> +<li><div class="src-line"><a name="a3034"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// BenBE: Fix to reduce the number of replacements to be done</span></span></div></li> +<li><div class="src-line"><a name="a3035"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$result</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'/^ /m'</span><span class="src-sym">,</span> <span class="src-str">'&nbsp;'</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3036"></a></span><span class="src-str"> <span class="src-var">$result</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span> <span class="src-str">' &nbsp;'</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3037"></a> </div></li> +<li><div class="src-line"><a name="a3038"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3039"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_ending</span> === <span class="src-id">null</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3040"></a></span><span class="src-str"> <span class="src-var">$result</span> = <a href="http://www.php.net/nl2br">nl2br</a><span class="src-sym">(</span><span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3041"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3042"></a></span><span class="src-str"> <span class="src-var">$result</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_ending</span><span class="src-sym">,</span> <span class="src-var">$result</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3043"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3044"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3045"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3046"></a> </div></li> +<li><div class="src-line"><a name="a3047"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a3048"></a><span class="src-doc"> * Changes the case of a keyword for those languages where a change is asked for</span></div></li> +<li><div class="src-line"><a name="a3049"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3050"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc">The keyword to change the case of</span></div></li> +<li><div class="src-line"><a name="a3051"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">The keyword with its case changed</span></div></li> +<li><div class="src-line"><a name="a3052"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3053"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a3054"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a3055"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">change_case</span><span class="src-sym">(</span><span class="src-var">$instr</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3056"></a></span><span class="src-str"> <span class="src-key">switch</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3057"></a></span><span class="src-str"> <span class="src-key">case</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_CAPS_UPPER">GESHI_CAPS_UPPER</a></span>:</span></div></li> +<li><div class="src-line"><a name="a3058"></a></span><span class="src-str"> <span class="src-key">return</span> <a href="http://www.php.net/strtoupper">strtoupper</a><span class="src-sym">(</span><span class="src-var">$instr</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3059"></a></span><span class="src-str"> <span class="src-key">case</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_CAPS_LOWER">GESHI_CAPS_LOWER</a></span>:</span></div></li> +<li><div class="src-line"><a name="a3060"></a></span><span class="src-str"> <span class="src-key">return</span> <a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$instr</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3061"></a></span><span class="src-str"> <span class="src-key">default</span>:</span></div></li> +<li><div class="src-line"><a name="a3062"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$instr</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3063"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3064"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3065"></a> </div></li> +<li><div class="src-line"><a name="a3066"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a3067"></a><span class="src-doc"> * Handles replacements of keywords to include markup and links if requested</span></div></li> +<li><div class="src-line"><a name="a3068"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3069"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc"> </span><span class="src-doc-type">string </span><span class="src-doc">The keyword to add the Markup to</span></div></li> +<li><div class="src-line"><a name="a3070"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">The </span><span class="src-doc">HTML for the match found</span></div></li> +<li><div class="src-line"><a name="a3071"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a3072"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a3073"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3074"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> Get rid of ender in keyword links</span></div></li> +<li><div class="src-line"><a name="a3075"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a3076"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">handle_keyword_replace</span><span class="src-sym">(</span><span class="src-var">$match</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3077"></a></span><span class="src-str"> <span class="src-var">$k</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_kw_replace_group</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3078"></a></span><span class="src-str"> <span class="src-var">$keyword</span> = <span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3079"></a> </div></li> +<li><div class="src-line"><a name="a3080"></a></span><span class="src-str"> <span class="src-var">$before</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3081"></a></span><span class="src-str"> <span class="src-var">$after</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3082"></a> </div></li> +<li><div class="src-line"><a name="a3083"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">keyword_links</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3084"></a></span><span class="src-str"> <span class="src-comm">// Keyword links have been ebabled</span></span></div></li> +<li><div class="src-line"><a name="a3085"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3086"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'URLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a3087"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'URLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3088"></a></span><span class="src-str"> <span class="src-comm">// There is a base group for this keyword</span></span></div></li> +<li><div class="src-line"><a name="a3089"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3090"></a></span><span class="src-str"> <span class="src-comm">// Old system: strtolower</span></span></div></li> +<li><div class="src-line"><a name="a3091"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//$keyword = ( $this->language_data['CASE_SENSITIVE'][$group] ) ? $keyword : strtolower($keyword);</span></span></div></li> +<li><div class="src-line"><a name="a3092"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// New system: get keyword from language file to get correct case</span></span></div></li> +<li><div class="src-line"><a name="a3093"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> &&</span></div></li> +<li><div class="src-line"><a name="a3094"></a></span><span class="src-str"> <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'URLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-str">'{FNAME}'</span><span class="src-sym">)</span> !== <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3095"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$word</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3096"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/strcasecmp">strcasecmp</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">,</span> <span class="src-var">$keyword</span><span class="src-sym">)</span> == <span class="src-num">0</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3097"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3098"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3099"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3100"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3101"></a></span><span class="src-str"> <span class="src-var">$word</span> = <span class="src-var">$keyword</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3102"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3103"></a> </div></li> +<li><div class="src-line"><a name="a3104"></a></span><span class="src-str"> <span class="src-var">$before</span> = <span class="src-str">'<|UR1|"'</span> .</span></div></li> +<li><div class="src-line"><a name="a3105"></a></span><span class="src-str"> <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3106"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3107"></a></span><span class="src-str"> <span class="src-str">'{FNAME}'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3108"></a></span><span class="src-str"> <span class="src-str">'{FNAMEL}'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3109"></a></span><span class="src-str"> <span class="src-str">'{FNAMEU}'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3110"></a></span><span class="src-str"> <span class="src-str">'.'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3111"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3112"></a></span><span class="src-str"> <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'+'</span><span class="src-sym">,</span> <span class="src-str">'%20'</span><span class="src-sym">,</span> <a href="http://www.php.net/urlencode">urlencode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">)))</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3113"></a></span><span class="src-str"> <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'+'</span><span class="src-sym">,</span> <span class="src-str">'%20'</span><span class="src-sym">,</span> <a href="http://www.php.net/urlencode">urlencode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">))))</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3114"></a></span><span class="src-str"> <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'+'</span><span class="src-sym">,</span> <span class="src-str">'%20'</span><span class="src-sym">,</span> <a href="http://www.php.net/urlencode">urlencode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><a href="http://www.php.net/strtoupper">strtoupper</a><span class="src-sym">(</span><span class="src-var">$word</span><span class="src-sym">))))</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3115"></a></span><span class="src-str"> <span class="src-str">'<DOT>'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3116"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'URLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span></span></div></li> +<li><div class="src-line"><a name="a3117"></a></span><span class="src-str"> <span class="src-sym">)</span> . <span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3118"></a></span><span class="src-str"> <span class="src-var">$after</span> = <span class="src-str">'</a>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3119"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3120"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3121"></a> </div></li> +<li><div class="src-line"><a name="a3122"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$before</span> . <span class="src-str">'<|/'</span>. <span class="src-var">$k</span> .<span class="src-str">'/>'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">change_case</span><span class="src-sym">(</span><span class="src-var">$keyword</span><span class="src-sym">)</span> . <span class="src-str">'|>'</span> . <span class="src-var">$after</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3123"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3124"></a> </div></li> +<li><div class="src-line"><a name="a3125"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a3126"></a><span class="src-doc"> * handles regular expressions highlighting-definitions with callback functions</span></div></li> +<li><div class="src-line"><a name="a3127"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3128"></a><span class="src-doc"> * </span><span class="src-doc-tag">@note</span><span class="src-doc"> this is a callback, don't use it directly</span></div></li> +<li><div class="src-line"><a name="a3129"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3130"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc">the matches array</span></div></li> +<li><div class="src-line"><a name="a3131"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">The </span><span class="src-doc">highlighted string</span></div></li> +<li><div class="src-line"><a name="a3132"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a3133"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a3134"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a3135"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">handle_regexps_callback</span><span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3136"></a></span><span class="src-str"> <span class="src-comm">// before: "' style=\"' . call_user_func(\"$func\", '\\1') . '\"\\1|>'",</span></span></div></li> +<li><div class="src-line"><a name="a3137"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span> <span class="src-str">' style="'</span> . <a href="http://www.php.net/call_user_func">call_user_func</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_rx_key</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span> . <span class="src-str">'"'</span>. <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span> . <span class="src-str">'|>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3138"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3139"></a> </div></li> +<li><div class="src-line"><a name="a3140"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a3141"></a><span class="src-doc"> * handles newlines in REGEXPS matches. Set the _hmr_* vars before calling this</span></div></li> +<li><div class="src-line"><a name="a3142"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3143"></a><span class="src-doc"> * </span><span class="src-doc-tag">@note</span><span class="src-doc"> this is a callback, don't use it directly</span></div></li> +<li><div class="src-line"><a name="a3144"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3145"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc">the matches array</span></div></li> +<li><div class="src-line"><a name="a3146"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li> +<li><div class="src-line"><a name="a3147"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.8</span></div></li> +<li><div class="src-line"><a name="a3148"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a3149"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a3150"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">handle_multiline_regexps</span><span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3151"></a></span><span class="src-str"> <span class="src-var">$before</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_before</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3152"></a></span><span class="src-str"> <span class="src-var">$after</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_after</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3153"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_replace</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3154"></a></span><span class="src-str"> <span class="src-var">$replace</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_replace</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3155"></a></span><span class="src-str"> <span class="src-var">$search</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3156"></a> </div></li> +<li><div class="src-line"><a name="a3157"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$matches</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$k</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3158"></a></span><span class="src-str"> <span class="src-var">$search</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'\\'</span> . <span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3159"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3160"></a> </div></li> +<li><div class="src-line"><a name="a3161"></a></span><span class="src-str"> <span class="src-var">$before</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$search</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">,</span> <span class="src-var">$before</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3162"></a></span><span class="src-str"> <span class="src-var">$after</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$search</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">,</span> <span class="src-var">$after</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3163"></a></span><span class="src-str"> <span class="src-var">$replace</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$search</span><span class="src-sym">,</span> <span class="src-var">$matches</span><span class="src-sym">,</span> <span class="src-var">$replace</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3164"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3165"></a></span><span class="src-str"> <span class="src-var">$replace</span> = <span class="src-var">$matches</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3166"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3167"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$before</span></span></div></li> +<li><div class="src-line"><a name="a3168"></a></span><span class="src-str"> . <span class="src-str">'<|!REG3XP'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_key</span> .<span class="src-str">'!>'</span></span></div></li> +<li><div class="src-line"><a name="a3169"></a></span><span class="src-str"> . <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">"|>\n<|!REG3XP"</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_key</span> . <span class="src-str">'!>'</span><span class="src-sym">,</span> <span class="src-var">$replace</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a3170"></a></span><span class="src-str"> . <span class="src-str">'|>'</span></span></div></li> +<li><div class="src-line"><a name="a3171"></a></span><span class="src-str"> . <span class="src-var">$after</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3172"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3173"></a> </div></li> +<li><div class="src-line"><a name="a3174"></a><span class="src-doc">/**</span><span class="src-str"> </span></span></div></li> +<li><div class="src-line"><a name="a3175"></a><span class="src-doc"> * Takes a string that has no strings or comments in it, and highlights</span></div></li> +<li><div class="src-line"><a name="a3176"></a><span class="src-doc"> * stuff like keywords, numbers and methods.</span></div></li> +<li><div class="src-line"><a name="a3177"></a><span class="src-doc"> *</span></div></li> +<li><div class="src-line"><a name="a3178"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc">The string to parse for keyword, numbers etc.</span></div></li> +<li><div class="src-line"><a name="a3179"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3180"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@access</span><span class="src-doc"> private</span></div></li> +<li><div class="src-line"><a name="a3181"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@todo</span><span class="src-doc"> BUGGY! Why? Why not build string and return?</span></div></li> +<li><div class="src-line"><a name="a3182"></a><span class="src-doc"> */</span><span class="src-str"></span></span></div></li> +<li><div class="src-line"><a name="a3183"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">parse_non_string_part</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3184"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <span class="src-str">' '</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3185"></a> </div></li> +<li><div class="src-line"><a name="a3186"></a></span><span class="src-str"> <span class="src-comm">// Regular expressions</span></span></div></li> +<li><div class="src-line"><a name="a3187"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$regexp</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3188"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3189"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3190"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3191"></a></span><span class="src-str"> <span class="src-comm">// produce valid HTML when we match multiple lines</span></span></div></li> +<li><div class="src-line"><a name="a3192"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_replace</span> = <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_REPLACE</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3193"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_before</span> = <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_BEFORE</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3194"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_key</span> = <span class="src-var">$key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3195"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_after</span> = <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_AFTER</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3196"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace_callback">preg_replace_callback</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3197"></a></span><span class="src-str"> <span class="src-str">"/"</span> . <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_SEARCH</span><span class="src-sym">]</span> . <span class="src-str">"</span></span>/{<span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_MODIFIERS</span><span class="src-sym">]</span><span class="src-sym">}</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3198"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">,</span> <span class="src-str">'handle_multiline_regexps'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3199"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3200"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_replace</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3201"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_before</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3202"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_after</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3203"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3204"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3205"></a></span><span class="src-str"> <span class="src-str">'/'</span> . <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_SEARCH</span><span class="src-sym">]</span> . <span class="src-str">'/'</span> . <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_MODIFIERS</span><span class="src-sym">]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3206"></a></span><span class="src-str"> <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_BEFORE</span><span class="src-sym">]</span> . <span class="src-str">'<|!REG3XP'</span>. <span class="src-var">$key</span> .<span class="src-str">'!>'</span> . <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_REPLACE</span><span class="src-sym">]</span> . <span class="src-str">'|>'</span> . <span class="src-var">$regexp</span><span class="src-sym">[</span><span class="src-id">GESHI_AFTER</span><span class="src-sym">]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3207"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3208"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3209"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3210"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3211"></a></span><span class="src-str"> <span class="src-comm">// produce valid HTML when we match multiple lines</span></span></div></li> +<li><div class="src-line"><a name="a3212"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_key</span> = <span class="src-var">$key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3213"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace_callback">preg_replace_callback</a><span class="src-sym">(</span> <span class="src-str">"/("</span> . <span class="src-var">$regexp</span> . <span class="src-str">")/"</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3214"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">,</span> <span class="src-str">'handle_multiline_regexps'</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3215"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_hmr_key</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3216"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3217"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span> <span class="src-str">"/("</span> . <span class="src-var">$regexp</span> . <span class="src-str">")/"</span><span class="src-sym">,</span> <span class="src-str">"</span></span><|!REG3XP<span class="src-var">$key</span>!>\\1|><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3218"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3219"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3220"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3221"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3222"></a> </div></li> +<li><div class="src-line"><a name="a3223"></a></span><span class="src-str"> <span class="src-comm">// Highlight numbers. As of 1.0.8 we support diffent types of numbers</span></span></div></li> +<li><div class="src-line"><a name="a3224"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$numbers_found</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3225"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span> && <a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'#\d#'</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span> <span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3226"></a></span><span class="src-str"> <span class="src-var">$numbers_found</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3227"></a> </div></li> +<li><div class="src-line"><a name="a3228"></a></span><span class="src-str"> <span class="src-comm">//For each of the formats ...</span></span></div></li> +<li><div class="src-line"><a name="a3229"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_RXCACHE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$id</span> => <span class="src-var">$regexp</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3230"></a></span><span class="src-str"> <span class="src-comm">//Check if it should be highlighted ...</span></span></div></li> +<li><div class="src-line"><a name="a3231"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-var">$regexp</span><span class="src-sym">,</span> <span class="src-str">"</span></span><|/NUM!<span class="src-var">$id</span>/>\\1|><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3232"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3233"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3234"></a> </div></li> +<li><div class="src-line"><a name="a3235"></a></span><span class="src-str"> <span class="src-comm">// Highlight keywords</span></span></div></li> +<li><div class="src-line"><a name="a3236"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$disallowed_before</span> = <span class="src-str">"(?<![a-zA-Z0-9\$_\|\#;>|^&"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3237"></a></span><span class="src-str"> <span class="src-var">$disallowed_after</span> = <span class="src-str">"(?![a-zA-Z0-9_\|%\\-&;"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3238"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3239"></a></span><span class="src-str"> <span class="src-var">$quotemarks</span> = <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span><a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'QUOTEMARKS'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3240"></a></span><span class="src-str"> <span class="src-var">$disallowed_before</span> .= <span class="src-var">$quotemarks</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3241"></a></span><span class="src-str"> <span class="src-var">$disallowed_after</span> .= <span class="src-var">$quotemarks</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3242"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3243"></a></span><span class="src-str"> <span class="src-var">$disallowed_before</span> .= <span class="src-str">"])"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3244"></a></span><span class="src-str"> <span class="src-var">$disallowed_after</span> .= <span class="src-str">"])"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3245"></a> </div></li> +<li><div class="src-line"><a name="a3246"></a></span><span class="src-str"> <span class="src-var">$parser_control_pergroup</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3247"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3248"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3249"></a></span><span class="src-str"> <span class="src-var">$x</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-comm">// check wether per-keyword-group parser_control is enabled</span></span></div></li> +<li><div class="src-line"><a name="a3250"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3251"></a></span><span class="src-str"> <span class="src-var">$disallowed_before</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3252"></a></span><span class="src-str"> ++<span class="src-var">$x</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3253"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3254"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3255"></a></span><span class="src-str"> <span class="src-var">$disallowed_after</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3256"></a></span><span class="src-str"> ++<span class="src-var">$x</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3257"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3258"></a></span><span class="src-str"> <span class="src-var">$parser_control_pergroup</span> = <span class="src-sym">(</span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> - <span class="src-var">$x</span><span class="src-sym">)</span> > <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3259"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3260"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3261"></a> </div></li> +<li><div class="src-line"><a name="a3262"></a></span><span class="src-str"> <span class="src-comm">// if this is changed, don't forget to change it below</span></span></div></li> +<li><div class="src-line"><a name="a3263"></a></span><span class="src-str"><span class="src-comm">// if (!empty($disallowed_before)) {</span></span></div></li> +<li><div class="src-line"><a name="a3264"></a></span><span class="src-str"><span class="src-comm">// $disallowed_before = "(?<![$disallowed_before])";</span></span></div></li> +<li><div class="src-line"><a name="a3265"></a></span><span class="src-str"><span class="src-comm">// }</span></span></div></li> +<li><div class="src-line"><a name="a3266"></a></span><span class="src-str"><span class="src-comm">// if (!empty($disallowed_after)) {</span></span></div></li> +<li><div class="src-line"><a name="a3267"></a></span><span class="src-str"><span class="src-comm">// $disallowed_after = "(?![$disallowed_after])";</span></span></div></li> +<li><div class="src-line"><a name="a3268"></a></span><span class="src-str"><span class="src-comm">// }</span></span></div></li> +<li><div class="src-line"><a name="a3269"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3270"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$k</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3271"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">)</span> ||</span></div></li> +<li><div class="src-line"><a name="a3272"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3273"></a> </div></li> +<li><div class="src-line"><a name="a3274"></a></span><span class="src-str"> <span class="src-var">$case_sensitive</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CASE_SENSITIVE'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3275"></a></span><span class="src-str"> <span class="src-var">$modifiers</span> = <span class="src-var">$case_sensitive</span> ? <span class="src-str">''</span> : <span class="src-str">'i'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3276"></a> </div></li> +<li><div class="src-line"><a name="a3277"></a></span><span class="src-str"> <span class="src-comm">// NEW in 1.0.8 - per-keyword-group parser control</span></span></div></li> +<li><div class="src-line"><a name="a3278"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$disallowed_before_local</span> = <span class="src-var">$disallowed_before</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3279"></a></span><span class="src-str"> <span class="src-var">$disallowed_after_local</span> = <span class="src-var">$disallowed_after</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3280"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$parser_control_pergroup</span> && isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3281"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3282"></a></span><span class="src-str"> <span class="src-var">$disallowed_before_local</span> =</span></div></li> +<li><div class="src-line"><a name="a3283"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3284"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3285"></a> </div></li> +<li><div class="src-line"><a name="a3286"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3287"></a></span><span class="src-str"> <span class="src-var">$disallowed_after_local</span> =</span></div></li> +<li><div class="src-line"><a name="a3288"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'DISALLOWED_AFTER'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3289"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3290"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3291"></a> </div></li> +<li><div class="src-line"><a name="a3292"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_kw_replace_group</span> = <span class="src-var">$k</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3293"></a> </div></li> +<li><div class="src-line"><a name="a3294"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8, the cached regexp list</span></span></div></li> +<li><div class="src-line"><a name="a3295"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// since we don't want PHP / PCRE to crash due to too large patterns we split them into smaller chunks</span></span></div></li> +<li><div class="src-line"><a name="a3296"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$set</span> = <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-var">$set_length</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-var">$set</span> < <span class="src-var">$set_length</span><span class="src-sym">;</span> ++<span class="src-var">$set</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3297"></a></span><span class="src-str"> <span class="src-var">$keywordset</span> =<span class="src-sym">&</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHED_KEYWORD_LISTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$set</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3298"></a></span><span class="src-str"> <span class="src-comm">// Might make a more unique string for putting the number in soon</span></span></div></li> +<li><div class="src-line"><a name="a3299"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// Basically, we don't put the styles in yet because then the styles themselves will</span></span></div></li> +<li><div class="src-line"><a name="a3300"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// get highlighted if the language has a CSS keyword in it (like CSS, for example ;))</span></span></div></li> +<li><div class="src-line"><a name="a3301"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace_callback">preg_replace_callback</a><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a3302"></a></span><span class="src-str"> <span class="src-str">"</span></span>/<span class="src-var">$disallowed_before_local</span>({<span class="src-var">$keywordset</span><span class="src-sym">}</span>)(?!\<DOT\>(?:htm|php))<span class="src-var">$disallowed_after_local</span>/<span class="src-var">$modifiers</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3303"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">,</span> <span class="src-str">'handle_keyword_replace'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3304"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span></span></div></li> +<li><div class="src-line"><a name="a3305"></a></span><span class="src-str"> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3306"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3307"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3308"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3309"></a> </div></li> +<li><div class="src-line"><a name="a3310"></a></span><span class="src-str"> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3311"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// Now that's all done, replace /[number]/ with the correct styles</span></span></div></li> +<li><div class="src-line"><a name="a3312"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3313"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$k</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3314"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3315"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> .</span></div></li> +<li><div class="src-line"><a name="a3316"></a></span><span class="src-str"> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span><span class="src-sym">)</span> ?</span></div></li> +<li><div class="src-line"><a name="a3317"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$k</span><span class="src-sym">]</span> : <span class="src-str">""</span><span class="src-sym">)</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3318"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3319"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="kw'</span> . <span class="src-var">$k</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3320"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3321"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"</span></span><|/<span class="src-var">$k</span>/><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> </span><span class="src-str">"</span><|<span class="src-var">$attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3322"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3323"></a> </div></li> +<li><div class="src-line"><a name="a3324"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$numbers_found</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3325"></a></span><span class="src-str"> <span class="src-comm">// Put number styles in</span></span></div></li> +<li><div class="src-line"><a name="a3326"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_RXCACHE'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$id</span> => <span class="src-var">$regexp</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3327"></a></span><span class="src-str"><span class="src-comm">//Commented out for now, as this needs some review ...</span></span></div></li> +<li><div class="src-line"><a name="a3328"></a></span><span class="src-str"><span class="src-comm">// if ($numbers_permissions & $id) {</span></span></div></li> +<li><div class="src-line"><a name="a3329"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Get the appropriate style ...</span></span></div></li> +<li><div class="src-line"><a name="a3330"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Checking for unset styles is done by the style cache builder ...</span></span></div></li> +<li><div class="src-line"><a name="a3331"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3332"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$id</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3333"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3334"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="nu'</span>.<span class="src-var">$id</span>.<span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3335"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3336"></a> </div></li> +<li><div class="src-line"><a name="a3337"></a></span><span class="src-str"> <span class="src-comm">//Set in the correct styles ...</span></span></div></li> +<li><div class="src-line"><a name="a3338"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"</span></span>/NUM!<span class="src-var">$id</span>/<span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$attributes</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3339"></a></span><span class="src-str"><span class="src-comm">// }</span></span></div></li> +<li><div class="src-line"><a name="a3340"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3341"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3342"></a> </div></li> +<li><div class="src-line"><a name="a3343"></a></span><span class="src-str"> <span class="src-comm">// Highlight methods and fields in objects</span></span></div></li> +<li><div class="src-line"><a name="a3344"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3345"></a></span><span class="src-str"> <span class="src-var">$oolang_spaces</span> = <span class="src-str">"[\s]*"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3346"></a></span><span class="src-str"> <span class="src-var">$oolang_before</span> = <span class="src-str">""</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3347"></a></span><span class="src-str"> <span class="src-var">$oolang_after</span> = <span class="src-str">"[a-zA-Z][a-zA-Z0-9_]*"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3348"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3349"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3350"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3351"></a></span><span class="src-str"> <span class="src-var">$oolang_before</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_BEFORE'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3352"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3353"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_AFTER'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3354"></a></span><span class="src-str"> <span class="src-var">$oolang_after</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_AFTER'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3355"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3356"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_SPACES'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3357"></a></span><span class="src-str"> <span class="src-var">$oolang_spaces</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'OOLANG'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'MATCH_SPACES'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3358"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3359"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3360"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3361"></a> </div></li> +<li><div class="src-line"><a name="a3362"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'OBJECT_SPLITTERS'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$splitter</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3363"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">false</span> !== <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">,</span> <span class="src-var">$splitter</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3364"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3365"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3366"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3367"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="me'</span> . <span class="src-var">$key</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3368"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3369"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">"</span></span>/(<span class="src-var">$oolang_before</span>)(<span class="src-str">" </span><span class="src-str">. <span class="src-id">preg_quote</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'OBJECT_SPLITTERS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-str">'/'</span><span class="src-sym">)</span> . <span class="src-str">"</span></span>)(<span class="src-var">$oolang_spaces</span>)(<span class="src-var">$oolang_after</span>)/<span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> </span><span class="src-str">"</span>\\1\\2\\3<|<span class="src-var">$attributes</span>>\\4|><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3370"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3371"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3372"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3373"></a> </div></li> +<li><div class="src-line"><a name="a3374"></a></span><span class="src-str"> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3375"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// Highlight brackets. Yes, I've tried adding a semi-colon to this list.</span></span></div></li> +<li><div class="src-line"><a name="a3376"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// You try it, and see what happens ;)</span></span></div></li> +<li><div class="src-line"><a name="a3377"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// TODO: Fix lexic permissions not converting entities if shouldn't</span></span></div></li> +<li><div class="src-line"><a name="a3378"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// be highlighting regardless</span></span></div></li> +<li><div class="src-line"><a name="a3379"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3380"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3381"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHE_BRACKET_MATCH'</span><span class="src-sym">]</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3382"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'CACHE_BRACKET_REPLACE'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3383"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3384"></a> </div></li> +<li><div class="src-line"><a name="a3385"></a> </div></li> +<li><div class="src-line"><a name="a3386"></a></span><span class="src-str"> <span class="src-comm">//FIX for symbol highlighting ...</span></span></div></li> +<li><div class="src-line"><a name="a3387"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span> && <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3388"></a></span><span class="src-str"> <span class="src-comm">//Get all matches and throw away those witin a block that is already highlighted... (i.e. matched by a regexp)</span></span></div></li> +<li><div class="src-line"><a name="a3389"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$n_symbols</span> = <a href="http://www.php.net/preg_match_all">preg_match_all</a><span class="src-sym">(</span><span class="src-str">"/<\|(?:<DOT>|[^>])+>(?:(?!\|>).*?)\|>|<\/a>|(?:"</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_SEARCH'</span><span class="src-sym">]</span> . <span class="src-str">")+/"</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">,</span> <span class="src-var">$pot_symbols</span><span class="src-sym">,</span> <span class="src-id">PREG_OFFSET_CAPTURE</span> | <span class="src-id">PREG_SET_ORDER</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3390"></a></span><span class="src-str"> <span class="src-var">$global_offset</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3391"></a></span><span class="src-str"> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$s_id</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$s_id</span> < <span class="src-var">$n_symbols</span><span class="src-sym">;</span> ++<span class="src-var">$s_id</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3392"></a></span><span class="src-str"> <span class="src-var">$symbol_match</span> = <span class="src-var">$pot_symbols</span><span class="src-sym">[</span><span class="src-var">$s_id</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3393"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$symbol_match</span><span class="src-sym">,</span> <span class="src-str">'<'</span><span class="src-sym">)</span> !== <span class="src-id">false</span> || <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$symbol_match</span><span class="src-sym">,</span> <span class="src-str">'>'</span><span class="src-sym">)</span> !== <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3394"></a></span><span class="src-str"> <span class="src-comm">// already highlighted blocks _must_ include either < or ></span></span></div></li> +<li><div class="src-line"><a name="a3395"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// so if this conditional applies, we have to skip this match</span></span></div></li> +<li><div class="src-line"><a name="a3396"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// BenBE: UNLESS the block contains <SEMI> or <PIPE></span></span></div></li> +<li><div class="src-line"><a name="a3397"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$symbol_match</span><span class="src-sym">,</span> <span class="src-str">'<SEMI>'</span><span class="src-sym">)</span> === <span class="src-id">false</span> &&</span></div></li> +<li><div class="src-line"><a name="a3398"></a></span><span class="src-str"> <a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$symbol_match</span><span class="src-sym">,</span> <span class="src-str">'<PIPE>'</span><span class="src-sym">)</span> === <span class="src-id">false</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3399"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3400"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3401"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3402"></a> </div></li> +<li><div class="src-line"><a name="a3403"></a></span><span class="src-str"> <span class="src-comm">// if we reach this point, we have a valid match which needs to be highlighted</span></span></div></li> +<li><div class="src-line"><a name="a3404"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3405"></a></span><span class="src-str"> <span class="src-var">$symbol_length</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$symbol_match</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3406"></a></span><span class="src-str"> <span class="src-var">$symbol_offset</span> = <span class="src-var">$pot_symbols</span><span class="src-sym">[</span><span class="src-var">$s_id</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3407"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$pot_symbols</span><span class="src-sym">[</span><span class="src-var">$s_id</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3408"></a></span><span class="src-str"> <span class="src-var">$symbol_end</span> = <span class="src-var">$symbol_length</span> + <span class="src-var">$symbol_offset</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3409"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> = <span class="src-str">""</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3410"></a> </div></li> +<li><div class="src-line"><a name="a3411"></a></span><span class="src-str"> <span class="src-comm">// if we have multiple styles, we have to handle them properly</span></span></div></li> +<li><div class="src-line"><a name="a3412"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'MULTIPLE_SYMBOL_GROUPS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3413"></a></span><span class="src-str"> <span class="src-var">$old_sym</span> = -<span class="src-num">1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3414"></a></span><span class="src-str"> <span class="src-comm">// Split the current stuff to replace into its atomic symbols ...</span></span></div></li> +<li><div class="src-line"><a name="a3415"></a></span><span class="src-str"><span class="src-comm"></span> <a href="http://www.php.net/preg_match_all">preg_match_all</a><span class="src-sym">(</span><span class="src-str">"/"</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_SEARCH'</span><span class="src-sym">]</span> . <span class="src-str">"/"</span><span class="src-sym">,</span> <span class="src-var">$symbol_match</span><span class="src-sym">,</span> <span class="src-var">$sym_match_syms</span><span class="src-sym">,</span> <span class="src-id">PREG_PATTERN_ORDER</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3416"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$sym_match_syms</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$sym_ms</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3417"></a></span><span class="src-str"> <span class="src-comm">//Check if consequtive symbols belong to the same group to save output ...</span></span></div></li> +<li><div class="src-line"><a name="a3418"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$sym_ms</span><span class="src-sym">]</span><span class="src-sym">)</span></span></div></li> +<li><div class="src-line"><a name="a3419"></a></span><span class="src-str"> && <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$sym_ms</span><span class="src-sym">]</span> != <span class="src-var">$old_sym</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3420"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>-<span class="src-num">1</span> != <span class="src-var">$old_sym</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3421"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-str">"|>"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3422"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3423"></a></span><span class="src-str"> <span class="src-var">$old_sym</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'SYMBOL_DATA'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$sym_ms</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3424"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3425"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$old_sym</span><span class="src-sym">]</span> . <span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3426"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3427"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-str">'<| class="sy'</span> . <span class="src-var">$old_sym</span> . <span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3428"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3429"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3430"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-var">$sym_ms</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3431"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3432"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$sym_match_syms</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3433"></a> </div></li> +<li><div class="src-line"><a name="a3434"></a></span><span class="src-str"> <span class="src-comm">//Close remaining tags and insert the replacement at the right position ...</span></span></div></li> +<li><div class="src-line"><a name="a3435"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//Take caution if symbol_hl is empty to avoid doubled closing spans.</span></span></div></li> +<li><div class="src-line"><a name="a3436"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>-<span class="src-num">1</span> != <span class="src-var">$old_sym</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3437"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-str">"|>"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3438"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3439"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3440"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3441"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> = <span class="src-str">'<| style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> . <span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3442"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3443"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> = <span class="src-str">'<| class="sy0">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3444"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3445"></a></span><span class="src-str"> <span class="src-var">$symbol_hl</span> .= <span class="src-var">$symbol_match</span> . <span class="src-str">'|>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3446"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3447"></a> </div></li> +<li><div class="src-line"><a name="a3448"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/substr_replace">substr_replace</a><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">,</span> <span class="src-var">$symbol_hl</span><span class="src-sym">,</span> <span class="src-var">$symbol_offset</span> + <span class="src-var">$global_offset</span><span class="src-sym">,</span> <span class="src-var">$symbol_length</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3449"></a> </div></li> +<li><div class="src-line"><a name="a3450"></a></span><span class="src-str"> <span class="src-comm">// since we replace old text with something of different size,</span></span></div></li> +<li><div class="src-line"><a name="a3451"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// we'll have to keep track of the differences</span></span></div></li> +<li><div class="src-line"><a name="a3452"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$global_offset</span> += <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$symbol_hl</span><span class="src-sym">)</span> - <span class="src-var">$symbol_length</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3453"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3454"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3455"></a></span><span class="src-str"> <span class="src-comm">//FIX for symbol highlighting ...</span></span></div></li> +<li><div class="src-line"><a name="a3456"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3457"></a></span><span class="src-str"> <span class="src-comm">// Add class/style for regexps</span></span></div></li> +<li><div class="src-line"><a name="a3458"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3459"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3460"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_callable">is_callable</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3461"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_rx_key</span> = <span class="src-var">$key</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3462"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/preg_replace_callback">preg_replace_callback</a><span class="src-sym">(</span><span class="src-str">"</span></span>/!REG3XP<span class="src-var">$key</span>!(.*)\|>/U<span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3463"></a></span><span class="src-str"> <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">,</span> <span class="src-str">'handle_regexps_callback'</span><span class="src-sym">)</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a3464"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3465"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3466"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3467"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3468"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3469"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">)</span> &&</span></div></li> +<li><div class="src-line"><a name="a3470"></a></span><span class="src-str"> <a href="http://www.php.net/array_key_exists">array_key_exists</a><span class="src-sym">(</span><span class="src-id">GESHI_CLASS</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3471"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="'</span> .</span></div></li> +<li><div class="src-line"><a name="a3472"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id">GESHI_CLASS</span><span class="src-sym">]</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3473"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3474"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="re'</span> . <span class="src-var">$key</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3475"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3476"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3477"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"</span></span>!REG3XP<span class="src-var">$key</span>!<span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> </span><span class="src-str">"</span><span class="src-var">$attributes</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3478"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3479"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3480"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3481"></a> </div></li> +<li><div class="src-line"><a name="a3482"></a></span><span class="src-str"> <span class="src-comm">// Replace <DOT> with . for urls</span></span></div></li> +<li><div class="src-line"><a name="a3483"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$stuff_to_parse</span> = <span class="src-id">str_replace</span><span class="src-sym">(</span><span class="src-str">'<DOT>'</span><span class="src-sym">,</span> <span class="src-str">'.'</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3484"></a></span><span class="src-str"> <span class="src-comm">// Replace <|UR1| with <a href= for urls also</span></span></div></li> +<li><div class="src-line"><a name="a3485"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_styles</span><span class="src-sym">[</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_LINK">GESHI_LINK</a></span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3486"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3487"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<|UR1|'</span><span class="src-sym">,</span> <span class="src-str">'<a'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_target</span> . <span class="src-str">' href='</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3488"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3489"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<|UR1|'</span><span class="src-sym">,</span> <span class="src-str">'<a'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_target</span> . <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_styles</span><span class="src-sym">[</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_LINK">GESHI_LINK</a></span><span class="src-sym">]</span> . <span class="src-str">'" href='</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3490"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3491"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3492"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<|UR1|'</span><span class="src-sym">,</span> <span class="src-str">'<a'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_target</span> . <span class="src-str">' href='</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3493"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3494"></a> </div></li> +<li><div class="src-line"><a name="a3495"></a></span><span class="src-str"> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3496"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// NOW we add the span thingy ;)</span></span></div></li> +<li><div class="src-line"><a name="a3497"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//</span></span></div></li> +<li><div class="src-line"><a name="a3498"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a3499"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'<|'</span><span class="src-sym">,</span> <span class="src-str">'<span'</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3500"></a></span><span class="src-str"> <span class="src-var">$stuff_to_parse</span> = <a href="http://www.php.net/str_replace">str_replace</a> <span class="src-sym">(</span> <span class="src-str">'|>'</span><span class="src-sym">,</span> <span class="src-str">'</span>'</span><span class="src-sym">,</span> <span class="src-var">$stuff_to_parse</span> <span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3501"></a></span><span class="src-str"> <span class="src-key">return</span> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$stuff_to_parse</span><span class="src-sym">,</span> <span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3502"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3503"></a> </div></li> +<li><div class="src-line"><a name="a3504"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3505"></a></span><span class="src-str"> * Sets the time taken to parse the code</span></div></li> +<li><div class="src-line"><a name="a3506"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3507"></a></span><span class="src-str"> * @param microtime The time when parsing started</span></div></li> +<li><div class="src-line"><a name="a3508"></a></span><span class="src-str"> * @param microtime The time when parsing ended</span></div></li> +<li><div class="src-line"><a name="a3509"></a></span><span class="src-str"> * @since 1.0.2</span></div></li> +<li><div class="src-line"><a name="a3510"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3511"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3512"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">set_time</span><span class="src-sym">(</span><span class="src-var">$start_time</span><span class="src-sym">,</span> <span class="src-var">$end_time</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3513"></a></span><span class="src-str"> <span class="src-var">$start</span> = <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span> <span class="src-var">$start_time</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3514"></a></span><span class="src-str"> <span class="src-var">$end</span> = <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span> <span class="src-var">$end_time</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3515"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="http://www.php.net/time">time</a> = <span class="src-var">$end</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> + <span class="src-var">$end</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span> - <span class="src-var">$start</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span> - <span class="src-var">$start</span><span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3516"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3517"></a> </div></li> +<li><div class="src-line"><a name="a3518"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3519"></a></span><span class="src-str"> * Gets the time taken to parse the code</span></div></li> +<li><div class="src-line"><a name="a3520"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3521"></a></span><span class="src-str"> * @return double The time taken to parse the code</span></div></li> +<li><div class="src-line"><a name="a3522"></a></span><span class="src-str"> * @since 1.0.2</span></div></li> +<li><div class="src-line"><a name="a3523"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3524"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodget_time">get_time</a><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3525"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$this</span><span class="src-sym">-></span><a href="http://www.php.net/time">time</a><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3526"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3527"></a> </div></li> +<li><div class="src-line"><a name="a3528"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3529"></a></span><span class="src-str"> * Merges arrays recursively, overwriting values of the first array with values of later arrays</span></div></li> +<li><div class="src-line"><a name="a3530"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3531"></a></span><span class="src-str"> * @since 1.0.8</span></div></li> +<li><div class="src-line"><a name="a3532"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3533"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3534"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">merge_arrays</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3535"></a></span><span class="src-str"> <span class="src-var">$arrays</span> = <a href="http://www.php.net/func_get_args">func_get_args</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3536"></a></span><span class="src-str"> <span class="src-var">$narrays</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$arrays</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3537"></a> </div></li> +<li><div class="src-line"><a name="a3538"></a></span><span class="src-str"> <span class="src-comm">// check arguments</span></span></div></li> +<li><div class="src-line"><a name="a3539"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// comment out if more performance is necessary (in this case the foreach loop will trigger a warning if the argument is not an array)</span></span></div></li> +<li><div class="src-line"><a name="a3540"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$narrays</span><span class="src-sym">;</span> <span class="src-var">$i</span> ++<span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3541"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$arrays</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3542"></a></span><span class="src-str"> <span class="src-comm">// also array_merge_recursive returns nothing in this case</span></span></div></li> +<li><div class="src-line"><a name="a3543"></a></span><span class="src-str"><span class="src-comm"></span> <a href="http://www.php.net/trigger_error">trigger_error</a><span class="src-sym">(</span><span class="src-str">'Argument #'</span> . <span class="src-sym">(</span><span class="src-var">$i</span>+<span class="src-num">1</span><span class="src-sym">)</span> . <span class="src-str">' is not an array - trying to merge array with scalar! Returning false!'</span><span class="src-sym">,</span> <span class="src-id">E_USER_WARNING</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3544"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3545"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3546"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3547"></a> </div></li> +<li><div class="src-line"><a name="a3548"></a></span><span class="src-str"> <span class="src-comm">// the first array is in the output set in every case</span></span></div></li> +<li><div class="src-line"><a name="a3549"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$ret</span> = <span class="src-var">$arrays</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3550"></a> </div></li> +<li><div class="src-line"><a name="a3551"></a></span><span class="src-str"> <span class="src-comm">// merege $ret with the remaining arrays</span></span></div></li> +<li><div class="src-line"><a name="a3552"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">1</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$narrays</span><span class="src-sym">;</span> <span class="src-var">$i</span> ++<span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3553"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$arrays</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$value</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3554"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">)</span> && isset<span class="src-sym">(</span><span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3555"></a></span><span class="src-str"> <span class="src-comm">// if $ret[$key] is not an array you try to merge an scalar value with an array - the result is not defined (incompatible arrays)</span></span></div></li> +<li><div class="src-line"><a name="a3556"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// in this case the call will trigger an E_USER_WARNING and the $ret[$key] will be false.</span></span></div></li> +<li><div class="src-line"><a name="a3557"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">merge_arrays</span><span class="src-sym">(</span><span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$value</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3558"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3559"></a></span><span class="src-str"> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$value</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3560"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3561"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3562"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3563"></a> </div></li> +<li><div class="src-line"><a name="a3564"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$ret</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3565"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3566"></a> </div></li> +<li><div class="src-line"><a name="a3567"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3568"></a></span><span class="src-str"> * Gets language information and stores it for later use</span></div></li> +<li><div class="src-line"><a name="a3569"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3570"></a></span><span class="src-str"> * @param string The filename of the language file you want to load</span></div></li> +<li><div class="src-line"><a name="a3571"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3572"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3573"></a></span><span class="src-str"> * @todo Needs to load keys for lexic permissions for keywords, regexps etc</span></div></li> +<li><div class="src-line"><a name="a3574"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3575"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">load_language</span><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3576"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$file_name</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">loaded_language</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3577"></a></span><span class="src-str"> <span class="src-comm">// this file is already loaded!</span></span></div></li> +<li><div class="src-line"><a name="a3578"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3579"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3580"></a> </div></li> +<li><div class="src-line"><a name="a3581"></a></span><span class="src-str"> <span class="src-comm">//Prepare some stuff before actually loading the language file</span></span></div></li> +<li><div class="src-line"><a name="a3582"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">loaded_language</span> = <span class="src-var">$file_name</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3583"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">parse_cache_built</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3584"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodenable_highlighting">enable_highlighting</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3585"></a></span><span class="src-str"> <span class="src-var">$language_data</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3586"></a> </div></li> +<li><div class="src-line"><a name="a3587"></a></span><span class="src-str"> <span class="src-comm">//Load the language file</span></span></div></li> +<li><div class="src-line"><a name="a3588"></a></span><span class="src-str"><span class="src-comm"></span> require <span class="src-var">$file_name</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3589"></a> </div></li> +<li><div class="src-line"><a name="a3590"></a></span><span class="src-str"> <span class="src-comm">// Perhaps some checking might be added here later to check that</span></span></div></li> +<li><div class="src-line"><a name="a3591"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// $language data is a valid thing but maybe not</span></span></div></li> +<li><div class="src-line"><a name="a3592"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span> = <span class="src-var">$language_data</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3593"></a> </div></li> +<li><div class="src-line"><a name="a3594"></a></span><span class="src-str"> <span class="src-comm">// Set strict mode if should be set</span></span></div></li> +<li><div class="src-line"><a name="a3595"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">strict_mode</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STRICT_MODE_APPLIES'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3596"></a> </div></li> +<li><div class="src-line"><a name="a3597"></a></span><span class="src-str"> <span class="src-comm">// Set permissions for all lexics to true</span></span></div></li> +<li><div class="src-line"><a name="a3598"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// so they'll be highlighted by default</span></span></div></li> +<li><div class="src-line"><a name="a3599"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3600"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3601"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3602"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3603"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">false</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3604"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3605"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3606"></a> </div></li> +<li><div class="src-line"><a name="a3607"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_SINGLE'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3608"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3609"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3610"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">)</span> <span class="src-key">as</span> <span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3611"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-id">true</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3612"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3613"></a> </div></li> +<li><div class="src-line"><a name="a3614"></a></span><span class="src-str"> <span class="src-comm">// for BenBE and future code reviews:</span></span></div></li> +<li><div class="src-line"><a name="a3615"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// we can use empty here since we only check for existance and emptiness of an array</span></span></div></li> +<li><div class="src-line"><a name="a3616"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// if it is not an array at all but rather false or null this will work as intended as well</span></span></div></li> +<li><div class="src-line"><a name="a3617"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// even if $this->language_data['PARSER_CONTROL'] is undefined this won't trigger a notice</span></span></div></li> +<li><div class="src-line"><a name="a3618"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ENABLE_FLAGS'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3619"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ENABLE_FLAGS'</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$flag</span> => <span class="src-var">$value</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3620"></a></span><span class="src-str"> <span class="src-comm">// it's either true or false and maybe is true as well</span></span></div></li> +<li><div class="src-line"><a name="a3621"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$perm</span> = <span class="src-var">$value</span> !== <span class="src-id">GESHI_NEVER</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3622"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$flag</span> == <span class="src-str">'ALL'</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3623"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodenable_highlighting">enable_highlighting</a><span class="src-sym">(</span><span class="src-var">$perm</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3624"></a></span><span class="src-str"> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3625"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3626"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$flag</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3627"></a></span><span class="src-str"> <span class="src-comm">// unknown lexic permission</span></span></div></li> +<li><div class="src-line"><a name="a3628"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">continue</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3629"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3630"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$flag</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3631"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$flag</span><span class="src-sym">]</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$val</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3632"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$flag</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$key</span><span class="src-sym">]</span> = <span class="src-var">$perm</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3633"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3634"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3635"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-var">$flag</span><span class="src-sym">]</span> = <span class="src-var">$perm</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3636"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3637"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3638"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'PARSER_CONTROL'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ENABLE_FLAGS'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3639"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3640"></a> </div></li> +<li><div class="src-line"><a name="a3641"></a></span><span class="src-str"> <span class="src-comm">//NEW in 1.0.8: Allow styles to be loaded from a separate file to override defaults</span></span></div></li> +<li><div class="src-line"><a name="a3642"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$style_filename</span> = <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$file_name</span><span class="src-sym">,</span> <span class="src-num">0</span><span class="src-sym">,</span> -<span class="src-num">4</span><span class="src-sym">)</span> . <span class="src-str">'.style.php'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3643"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/is_readable">is_readable</a><span class="src-sym">(</span><span class="src-var">$style_filename</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3644"></a></span><span class="src-str"> <span class="src-comm">//Clear any style_data that could have been set before ...</span></span></div></li> +<li><div class="src-line"><a name="a3645"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$style_data</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3646"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$style_data</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3647"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3648"></a> </div></li> +<li><div class="src-line"><a name="a3649"></a></span><span class="src-str"> <span class="src-comm">//Read the Style Information from the style file</span></span></div></li> +<li><div class="src-line"><a name="a3650"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-inc">include</span> <span class="src-var">$style_filename</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3651"></a> </div></li> +<li><div class="src-line"><a name="a3652"></a></span><span class="src-str"> <span class="src-comm">//Apply the new styles to our current language styles</span></span></div></li> +<li><div class="src-line"><a name="a3653"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$style_data</span><span class="src-sym">)</span> && <a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$style_data</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3654"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span> =</span></div></li> +<li><div class="src-line"><a name="a3655"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">merge_arrays</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$style_data</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3656"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3657"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3658"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3659"></a> </div></li> +<li><div class="src-line"><a name="a3660"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3661"></a></span><span class="src-str"> * Takes the parsed code and various options, and creates the HTML</span></div></li> +<li><div class="src-line"><a name="a3662"></a></span><span class="src-str"> * surrounding it to make it look nice.</span></div></li> +<li><div class="src-line"><a name="a3663"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3664"></a></span><span class="src-str"> * @param string The code already parsed (reference!)</span></div></li> +<li><div class="src-line"><a name="a3665"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3666"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3667"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3668"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">finalise</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$parsed_code</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3669"></a></span><span class="src-str"> <span class="src-comm">// Remove end parts of important declarations</span></span></div></li> +<li><div class="src-line"><a name="a3670"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// This is BUGGY!! My fault for bad code: fix coming in 1.2</span></span></div></li> +<li><div class="src-line"><a name="a3671"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// @todo Remove this crap</span></span></div></li> +<li><div class="src-line"><a name="a3672"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodenable_important_blocks">enable_important_blocks</a> &&</span></div></li> +<li><div class="src-line"><a name="a3673"></a></span><span class="src-str"> <span class="src-sym">(</span><a href="http://www.php.net/strpos">strpos</a><span class="src-sym">(</span><span class="src-var">$parsed_code</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a></span><span class="src-sym">))</span> === <span class="src-id">false</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3674"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_END_IMPORTANT">GESHI_END_IMPORTANT</a></span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$parsed_code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3675"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3676"></a> </div></li> +<li><div class="src-line"><a name="a3677"></a></span><span class="src-str"> <span class="src-comm">// Add HTML whitespace stuff if we're using the <div> header</span></span></div></li> +<li><div class="src-line"><a name="a3678"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3679"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">indent</span><span class="src-sym">(</span><span class="src-var">$parsed_code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3680"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3681"></a> </div></li> +<li><div class="src-line"><a name="a3682"></a></span><span class="src-str"> <span class="src-comm">// purge some unnecessary stuff</span></span></div></li> +<li><div class="src-line"><a name="a3683"></a></span><span class="src-str"><span class="src-comm"></span> /** NOTE: memorypeak #1 */</span></div></li> +<li><div class="src-line"><a name="a3684"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> = <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'#<span[^>]+>(\s*)</span>#'</span><span class="src-sym">,</span> <span class="src-str">'\\1'</span><span class="src-sym">,</span> <span class="src-var">$parsed_code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3685"></a> </div></li> +<li><div class="src-line"><a name="a3686"></a></span><span class="src-str"> <span class="src-comm">// If we are using IDs for line numbers, there needs to be an overall</span></span></div></li> +<li><div class="src-line"><a name="a3687"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// ID set to prevent collisions.</span></span></div></li> +<li><div class="src-line"><a name="a3688"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">add_ids</span> && <span class="src-sym">!</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3689"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span> = <span class="src-str">'geshi-'</span> . <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><a href="http://www.php.net/md5">md5</a><span class="src-sym">(</span><a href="http://www.php.net/microtime">microtime</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">,</span> <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-num">4</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3690"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3691"></a> </div></li> +<li><div class="src-line"><a name="a3692"></a></span><span class="src-str"> <span class="src-comm">// Get code into lines</span></span></div></li> +<li><div class="src-line"><a name="a3693"></a></span><span class="src-str"><span class="src-comm"></span> /** NOTE: memorypeak #2 */</span></div></li> +<li><div class="src-line"><a name="a3694"></a></span><span class="src-str"> <span class="src-var">$code</span> = <a href="http://www.php.net/explode">explode</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-var">$parsed_code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3695"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> = <span class="src-var">$this</span><span class="src-sym">-></span><a href="http://www.php.net/header">header</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3696"></a> </div></li> +<li><div class="src-line"><a name="a3697"></a></span><span class="src-str"> <span class="src-comm">// If we're using line numbers, we insert <li>s and appropriate</span></span></div></li> +<li><div class="src-line"><a name="a3698"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// markup to style them (otherwise we don't need to do anything)</span></span></div></li> +<li><div class="src-line"><a name="a3699"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3700"></a></span><span class="src-str"> <span class="src-comm">// If we're using the <pre> header, we shouldn't add newlines because</span></span></div></li> +<li><div class="src-line"><a name="a3701"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// the <pre> will line-break them (and the <li>s already do this for us)</span></span></div></li> +<li><div class="src-line"><a name="a3702"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$ls</span> = <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> ? <span class="src-str">"\n"</span> : <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3703"></a> </div></li> +<li><div class="src-line"><a name="a3704"></a></span><span class="src-str"> <span class="src-comm">// Set vars to defaults for following loop</span></span></div></li> +<li><div class="src-line"><a name="a3705"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3706"></a> </div></li> +<li><div class="src-line"><a name="a3707"></a></span><span class="src-str"> <span class="src-comm">// Foreach line...</span></span></div></li> +<li><div class="src-line"><a name="a3708"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">,</span> <span class="src-var">$n</span> = <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$n</span><span class="src-sym">;</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3709"></a></span><span class="src-str"> <span class="src-comm">//Reset the attributes for a new line ...</span></span></div></li> +<li><div class="src-line"><a name="a3710"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attrs</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3711"></a> </div></li> +<li><div class="src-line"><a name="a3712"></a></span><span class="src-str"> <span class="src-comm">// Make lines have at least one space in them if they're empty</span></span></div></li> +<li><div class="src-line"><a name="a3713"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// BenBE: Checking emptiness using trim instead of relying on blanks</span></span></div></li> +<li><div class="src-line"><a name="a3714"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">''</span> == <a href="http://www.php.net/trim">trim</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3715"></a></span><span class="src-str"> <span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> = <span class="src-str">'&nbsp;'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3716"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3717"></a> </div></li> +<li><div class="src-line"><a name="a3718"></a></span><span class="src-str"> <span class="src-comm">// If this is a "special line"...</span></span></div></li> +<li><div class="src-line"><a name="a3719"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a></span> &&</span></div></li> +<li><div class="src-line"><a name="a3720"></a></span><span class="src-str"> <span class="src-var">$i</span> % <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> == <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> - <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3721"></a></span><span class="src-str"> <span class="src-comm">// Set the attributes to style the line</span></span></div></li> +<li><div class="src-line"><a name="a3722"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3723"></a></span><span class="src-str"> <span class="src-comm">//$attr = ' class="li2"';</span></span></div></li> +<li><div class="src-line"><a name="a3724"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'class'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'li2'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3725"></a></span><span class="src-str"> <span class="src-var">$def_attr</span> = <span class="src-str">' class="de2"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3726"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3727"></a></span><span class="src-str"> <span class="src-comm">//$attr = ' style="' . $this->line_style2 . '"';</span></span></div></li> +<li><div class="src-line"><a name="a3728"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'style'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3729"></a></span><span class="src-str"> <span class="src-comm">// This style "covers up" the special styles set for special lines</span></span></div></li> +<li><div class="src-line"><a name="a3730"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// so that styles applied to special lines don't apply to the actual</span></span></div></li> +<li><div class="src-line"><a name="a3731"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// code on that line</span></span></div></li> +<li><div class="src-line"><a name="a3732"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$def_attr</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3733"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3734"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3735"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3736"></a></span><span class="src-str"> <span class="src-comm">//$attr = ' class="li1"';</span></span></div></li> +<li><div class="src-line"><a name="a3737"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'class'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'li1'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3738"></a></span><span class="src-str"> <span class="src-var">$def_attr</span> = <span class="src-str">' class="de1"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3739"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3740"></a></span><span class="src-str"> <span class="src-comm">//$attr = ' style="' . $this->line_style1 . '"';</span></span></div></li> +<li><div class="src-line"><a name="a3741"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'style'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style1</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3742"></a></span><span class="src-str"> <span class="src-var">$def_attr</span> = <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3743"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3744"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3745"></a> </div></li> +<li><div class="src-line"><a name="a3746"></a></span><span class="src-str"> <span class="src-comm">//Check which type of tag to insert for this line</span></span></div></li> +<li><div class="src-line"><a name="a3747"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3748"></a></span><span class="src-str"> <span class="src-var">$start</span> = <span class="src-str">"</span></span><pre<span class="src-var">$def_attr</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3749"></a></span><span class="src-str"> <span class="src-var">$end</span> = <span class="src-str">'</pre>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3750"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3751"></a></span><span class="src-str"> <span class="src-comm">// Span or div?</span></span></div></li> +<li><div class="src-line"><a name="a3752"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$start</span> = <span class="src-str">"</span></span><div<span class="src-var">$def_attr</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3753"></a></span><span class="src-str"> <span class="src-var">$end</span> = <span class="src-str">'</div>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3754"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3755"></a> </div></li> +<li><div class="src-line"><a name="a3756"></a></span><span class="src-str"> ++<span class="src-var">$i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3757"></a> </div></li> +<li><div class="src-line"><a name="a3758"></a></span><span class="src-str"> <span class="src-comm">// Are we supposed to use ids? If so, add them</span></span></div></li> +<li><div class="src-line"><a name="a3759"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">add_ids</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3760"></a></span><span class="src-str"> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'id'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">"</span></span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span>-<span class="src-var">$i</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3761"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3762"></a> </div></li> +<li><div class="src-line"><a name="a3763"></a></span><span class="src-str"> <span class="src-comm">//Is this some line with extra styles???</span></span></div></li> +<li><div class="src-line"><a name="a3764"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">in_array</span><span class="src-sym">(</span><span class="src-var">$i</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3765"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3766"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3767"></a></span><span class="src-str"> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'class'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">"</span></span>lx<span class="src-var">$i</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3768"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3769"></a></span><span class="src-str"> <span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'class'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">"ln-xtra"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3770"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3771"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3772"></a></span><span class="src-str"> <a href="http://www.php.net/array_push">array_push</a><span class="src-sym">(</span><span class="src-var">$attrs</span><span class="src-sym">[</span><span class="src-str">'style'</span><span class="src-sym">]</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">get_line_style</span><span class="src-sym">(</span><span class="src-var">$i</span><span class="src-sym">))</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3773"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3774"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3775"></a> </div></li> +<li><div class="src-line"><a name="a3776"></a></span><span class="src-str"> <span class="src-comm">// Add in the line surrounded by appropriate list HTML</span></span></div></li> +<li><div class="src-line"><a name="a3777"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$attr_string</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3778"></a></span><span class="src-str"> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$attrs</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$attr</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3779"></a></span><span class="src-str"> <span class="src-var">$attr_string</span> .= <span class="src-str">' '</span> . <span class="src-var">$key</span> . <span class="src-str">'="'</span> . <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">' '</span><span class="src-sym">,</span> <span class="src-var">$attr</span><span class="src-sym">)</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3780"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3781"></a> </div></li> +<li><div class="src-line"><a name="a3782"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"</span></span><li<span class="src-var">$attr_string</span>><span class="src-var">$start</span>{<span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span>-<span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">}</span><span class="src-var">$end</span></li><span class="src-var">$ls</span><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3783"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span> - <span class="src-num">1</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3784"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3785"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3786"></a></span><span class="src-str"> <span class="src-var">$n</span> = <span class="src-id">count</span><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3787"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3788"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="de1"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3789"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3790"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' style="'</span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span> .<span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3791"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3792"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3793"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<pre'</span>. <span class="src-var">$attributes</span> .<span class="src-str">'>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3794"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">elseif</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3795"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3796"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3797"></a></span><span class="src-str"> <span class="src-var">$attrs</span> = <span class="src-str">' class="ln"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3798"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3799"></a></span><span class="src-str"> <span class="src-var">$attrs</span> = <span class="src-str">' style="'</span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">table_linenumber_style</span> .<span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3800"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3801"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<td'</span>.<span class="src-var">$attrs</span>.<span class="src-str">'><pre'</span>.<span class="src-var">$attributes</span>.<span class="src-str">'>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3802"></a></span><span class="src-str"> <span class="src-comm">// get linenumbers</span></span></div></li> +<li><div class="src-line"><a name="a3803"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// we don't merge it with the for below, since it should be better for</span></span></div></li> +<li><div class="src-line"><a name="a3804"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// memory consumption this way</span></span></div></li> +<li><div class="src-line"><a name="a3805"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// @todo: but... actually it would still be somewhat nice to merge the two loops</span></span></div></li> +<li><div class="src-line"><a name="a3806"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// the mem peaks are at different positions</span></span></div></li> +<li><div class="src-line"><a name="a3807"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$n</span><span class="src-sym">;</span> ++<span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3808"></a></span><span class="src-str"> <span class="src-var">$close</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3809"></a></span><span class="src-str"> <span class="src-comm">// fancy lines</span></span></div></li> +<li><div class="src-line"><a name="a3810"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a></span> &&</span></div></li> +<li><div class="src-line"><a name="a3811"></a></span><span class="src-str"> <span class="src-var">$i</span> % <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> == <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> - <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3812"></a></span><span class="src-str"> <span class="src-comm">// Set the attributes to style the line</span></span></div></li> +<li><div class="src-line"><a name="a3813"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3814"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<span class="xtra li2"><span class="de2">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3815"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3816"></a></span><span class="src-str"> <span class="src-comm">// This style "covers up" the special styles set for special lines</span></span></div></li> +<li><div class="src-line"><a name="a3817"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// so that styles applied to special lines don't apply to the actual</span></span></div></li> +<li><div class="src-line"><a name="a3818"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// code on that line</span></span></div></li> +<li><div class="src-line"><a name="a3819"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<span style="display:block;'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style2</span> . <span class="src-str">'">'</span></span></div></li> +<li><div class="src-line"><a name="a3820"></a></span><span class="src-str"> .<span class="src-str">'<span style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span> .<span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3821"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3822"></a></span><span class="src-str"> <span class="src-var">$close</span> += <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3823"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3824"></a></span><span class="src-str"> <span class="src-comm">//Is this some line with extra styles???</span></span></div></li> +<li><div class="src-line"><a name="a3825"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$i</span> + <span class="src-num">1</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3826"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3827"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3828"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"</span></span><span class=\"xtra lx<span class="src-var">$i</span>\"><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3829"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3830"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"<span class=\"xtra ln-xtra\">"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3831"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3832"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3833"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"<span style=\"display:block;"</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">get_line_style</span><span class="src-sym">(</span><span class="src-var">$i</span><span class="src-sym">)</span> . <span class="src-str">"\">"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3834"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3835"></a></span><span class="src-str"> ++<span class="src-var">$close</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3836"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3837"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers_start</span> + <span class="src-var">$i</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3838"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3839"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">'</span>'</span><span class="src-sym">,</span> <span class="src-var">$close</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3840"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$i</span> != <span class="src-var">$n</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3841"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3842"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3843"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3844"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'</pre></td><td'</span>.<span class="src-var">$attributes</span>.<span class="src-str">'>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3845"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3846"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<pre'</span>. <span class="src-var">$attributes</span> .<span class="src-str">'>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3847"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3848"></a></span><span class="src-str"> <span class="src-comm">// No line numbers, but still need to handle highlighting lines extra.</span></span></div></li> +<li><div class="src-line"><a name="a3849"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// Have to use divs so the full width of the code is highlighted</span></span></div></li> +<li><div class="src-line"><a name="a3850"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$close</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3851"></a></span><span class="src-str"> <span class="src-key">for</span> <span class="src-sym">(</span><span class="src-var">$i</span> = <span class="src-num">0</span><span class="src-sym">;</span> <span class="src-var">$i</span> < <span class="src-var">$n</span><span class="src-sym">;</span> ++<span class="src-var">$i</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3852"></a></span><span class="src-str"> <span class="src-comm">// Make lines have at least one space in them if they're empty</span></span></div></li> +<li><div class="src-line"><a name="a3853"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// BenBE: Checking emptiness using trim instead of relying on blanks</span></span></div></li> +<li><div class="src-line"><a name="a3854"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-str">''</span> == <a href="http://www.php.net/trim">trim</a><span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3855"></a></span><span class="src-str"> <span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span> = <span class="src-str">'&nbsp;'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3856"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3857"></a></span><span class="src-str"> <span class="src-comm">// fancy lines</span></span></div></li> +<li><div class="src-line"><a name="a3858"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a></span> &&</span></div></li> +<li><div class="src-line"><a name="a3859"></a></span><span class="src-str"> <span class="src-var">$i</span> % <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> == <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_nth_row</span> - <span class="src-num">1</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3860"></a></span><span class="src-str"> <span class="src-comm">// Set the attributes to style the line</span></span></div></li> +<li><div class="src-line"><a name="a3861"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3862"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<span class="xtra li2"><span class="de2">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3863"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3864"></a></span><span class="src-str"> <span class="src-comm">// This style "covers up" the special styles set for special lines</span></span></div></li> +<li><div class="src-line"><a name="a3865"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// so that styles applied to special lines don't apply to the actual</span></span></div></li> +<li><div class="src-line"><a name="a3866"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// code on that line</span></span></div></li> +<li><div class="src-line"><a name="a3867"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$parsed_code</span> .= <span class="src-str">'<span style="display:block;'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style2</span> . <span class="src-str">'">'</span></span></div></li> +<li><div class="src-line"><a name="a3868"></a></span><span class="src-str"> .<span class="src-str">'<span style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span> .<span class="src-str">'">'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3869"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3870"></a></span><span class="src-str"> <span class="src-var">$close</span> += <span class="src-num">2</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3871"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3872"></a></span><span class="src-str"> <span class="src-comm">//Is this some line with extra styles???</span></span></div></li> +<li><div class="src-line"><a name="a3873"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$i</span> + <span class="src-num">1</span><span class="src-sym">,</span> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3874"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3875"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3876"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"</span></span><span class=\"xtra lx<span class="src-var">$i</span>\"><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3877"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3878"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"<span class=\"xtra ln-xtra\">"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3879"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3880"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3881"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"<span style=\"display:block;"</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">get_line_style</span><span class="src-sym">(</span><span class="src-var">$i</span><span class="src-sym">)</span> . <span class="src-str">"\">"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3882"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3883"></a></span><span class="src-str"> ++<span class="src-var">$close</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3884"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3885"></a> </div></li> +<li><div class="src-line"><a name="a3886"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3887"></a> </div></li> +<li><div class="src-line"><a name="a3888"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$close</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3889"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <a href="http://www.php.net/str_repeat">str_repeat</a><span class="src-sym">(</span><span class="src-str">'</span>'</span><span class="src-sym">,</span> <span class="src-var">$close</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3890"></a></span><span class="src-str"> <span class="src-var">$close</span> = <span class="src-num">0</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3891"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3892"></a></span><span class="src-str"> <span class="src-key">elseif</span> <span class="src-sym">(</span><span class="src-var">$i</span> + <span class="src-num">1</span> < <span class="src-var">$n</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3893"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">"\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3894"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3895"></a></span><span class="src-str"> unset<span class="src-sym">(</span><span class="src-var">$code</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3896"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3897"></a> </div></li> +<li><div class="src-line"><a name="a3898"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span> || <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3899"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'</pre>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3900"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3901"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a></span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3902"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-str">'</td>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3903"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3904"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3905"></a> </div></li> +<li><div class="src-line"><a name="a3906"></a></span><span class="src-str"> <span class="src-var">$parsed_code</span> .= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">footer</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3907"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3908"></a> </div></li> +<li><div class="src-line"><a name="a3909"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3910"></a></span><span class="src-str"> * Creates the header for the code block (with correct attributes)</span></div></li> +<li><div class="src-line"><a name="a3911"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3912"></a></span><span class="src-str"> * @return string The header for the code block</span></div></li> +<li><div class="src-line"><a name="a3913"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3914"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3915"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3916"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="http://www.php.net/header">header</a><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3917"></a></span><span class="src-str"> <span class="src-comm">// Get attributes needed</span></span></div></li> +<li><div class="src-line"><a name="a3918"></a></span><span class="src-str"><span class="src-comm"></span> /**</span></div></li> +<li><div class="src-line"><a name="a3919"></a></span><span class="src-str"> * @todo Document behaviour change - class is outputted regardless of whether</span></div></li> +<li><div class="src-line"><a name="a3920"></a></span><span class="src-str"> * we're using classes or not. Same with style</span></div></li> +<li><div class="src-line"><a name="a3921"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3922"></a></span><span class="src-str"> <span class="src-var">$attributes</span> = <span class="src-str">' class="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3923"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_class</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3924"></a></span><span class="src-str"> <span class="src-var">$attributes</span> .= <span class="src-str">" "</span>.<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_class</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3925"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3926"></a></span><span class="src-str"> <span class="src-var">$attributes</span> .= <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3927"></a> </div></li> +<li><div class="src-line"><a name="a3928"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3929"></a></span><span class="src-str"> <span class="src-var">$attributes</span> .= <span class="src-str">"</span></span> id=\"{<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span><span class="src-sym">}</span>\"<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3930"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3931"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_style</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3932"></a></span><span class="src-str"> <span class="src-var">$attributes</span> .= <span class="src-str">' style="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_style</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3933"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3934"></a> </div></li> +<li><div class="src-line"><a name="a3935"></a></span><span class="src-str"> <span class="src-var">$ol_attributes</span> = <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3936"></a> </div></li> +<li><div class="src-line"><a name="a3937"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers_start</span> != <span class="src-num">1</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3938"></a></span><span class="src-str"> <span class="src-var">$ol_attributes</span> .= <span class="src-str">' start="'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers_start</span> . <span class="src-str">'"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3939"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3940"></a> </div></li> +<li><div class="src-line"><a name="a3941"></a></span><span class="src-str"> <span class="src-comm">// Get the header HTML</span></span></div></li> +<li><div class="src-line"><a name="a3942"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$header</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_content</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3943"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$header</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3944"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span> || <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3945"></a></span><span class="src-str"> <span class="src-var">$header</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$header</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3946"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3947"></a></span><span class="src-str"> <span class="src-var">$header</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">replace_keywords</span><span class="src-sym">(</span><span class="src-var">$header</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3948"></a> </div></li> +<li><div class="src-line"><a name="a3949"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3950"></a></span><span class="src-str"> <span class="src-var">$attr</span> = <span class="src-str">' class="head"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3951"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3952"></a></span><span class="src-str"> <span class="src-var">$attr</span> = <span class="src-str">"</span></span> style=\"{<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_content_style</span><span class="src-sym">}</span>\"<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3953"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3954"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE_TABLE</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3955"></a></span><span class="src-str"> <span class="src-var">$header</span> = </span><span class="src-str">"</span><thead><tr><td colspan=\"2\" <span class="src-var">$attr</span>><span class="src-var">$header</span></td></tr></thead><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3956"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3957"></a></span><span class="src-str"> <span class="src-var">$header</span> = </span><span class="src-str">"</span><div<span class="src-var">$attr</span>><span class="src-var">$header</span></div><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3958"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3959"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3960"></a> </div></li> +<li><div class="src-line"><a name="a3961"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_HEADER_NONE</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3962"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3963"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span><span class="src-var">$header</span><ol<span class="src-var">$attributes$ol_attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3964"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3965"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-var">$header</span> . <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'<div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3966"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3967"></a> </div></li> +<li><div class="src-line"><a name="a3968"></a></span><span class="src-str"> <span class="src-comm">// Work out what to return and do it</span></span></div></li> +<li><div class="src-line"><a name="a3969"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3970"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3971"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-str">"</span></span><pre<span class="src-var">$attributes</span>><span class="src-var">$header</span><ol<span class="src-var">$ol_attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3972"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_DIV</span> ||</span></div></li> +<li><div class="src-line"><a name="a3973"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE_VALID</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3974"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span><div<span class="src-var">$attributes</span>><span class="src-var">$header</span><ol<span class="src-var">$ol_attributes</span>><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3975"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE_TABLE</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3976"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span><table<span class="src-var">$attributes</span>><span class="src-var">$header</span><tbody><tr class=\"li1\"><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3977"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3978"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3979"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3980"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span><pre<span class="src-var">$attributes</span>><span class="src-var">$header</span><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a3981"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'<div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3982"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3983"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-str">"</span></span><div<span class="src-var">$attributes</span>><span class="src-var">$header</span><span class="src-str">" </span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a3984"></a></span><span class="src-str"> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'<div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3985"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3986"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3987"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a3988"></a> </div></li> +<li><div class="src-line"><a name="a3989"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a3990"></a></span><span class="src-str"> * Returns the footer for the code block.</span></div></li> +<li><div class="src-line"><a name="a3991"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a3992"></a></span><span class="src-str"> * @return string The footer for the code block</span></div></li> +<li><div class="src-line"><a name="a3993"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a3994"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a3995"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a3996"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">footer</span><span class="src-sym">(</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3997"></a></span><span class="src-str"> <span class="src-var">$footer</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">footer_content</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a3998"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$footer</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a3999"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4000"></a></span><span class="src-str"> <span class="src-var">$footer</span> = <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">,</span> <span class="src-str">''</span><span class="src-sym">,</span> <span class="src-var">$footer</span><span class="src-sym">)</span><span class="src-sym">;;</span></span></div></li> +<li><div class="src-line"><a name="a4001"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4002"></a></span><span class="src-str"> <span class="src-var">$footer</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">replace_keywords</span><span class="src-sym">(</span><span class="src-var">$footer</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4003"></a> </div></li> +<li><div class="src-line"><a name="a4004"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">use_classes</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4005"></a></span><span class="src-str"> <span class="src-var">$attr</span> = <span class="src-str">' class="foot"'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4006"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4007"></a></span><span class="src-str"> <span class="src-var">$attr</span> = <span class="src-str">"</span></span> style=\"{<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">footer_content_style</span><span class="src-sym">}</span>\"<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4008"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4009"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE_TABLE</span> && <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">linenumbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4010"></a></span><span class="src-str"> <span class="src-var">$footer</span> = </span><span class="src-str">"</span><tfoot><tr><td colspan=\"2\"><span class="src-var">$footer</span></td></tr></tfoot><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4011"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4012"></a></span><span class="src-str"> <span class="src-var">$footer</span> = </span><span class="src-str">"</span><div<span class="src-var">$attr</span>><span class="src-var">$footer</span></div><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4013"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4014"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4015"></a> </div></li> +<li><div class="src-line"><a name="a4016"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-id">GESHI_HEADER_NONE</span> == <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4017"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> ? <span class="src-str">'</ol>'</span> . <span class="src-var">$footer</span> : <span class="src-var">$footer</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4018"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4019"></a> </div></li> +<li><div class="src-line"><a name="a4020"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_DIV">GESHI_HEADER_DIV</a></span> || <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4021"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4022"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-str">"</span></span></ol><span class="src-var">$footer</span></div><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4023"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4024"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'</div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span> .</span></div></li> +<li><div class="src-line"><a name="a4025"></a></span><span class="src-str"> <span class="src-str">"</span></span><span class="src-var">$footer</span></div><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4026"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4027"></a></span><span class="src-str"> <span class="src-key">elseif</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_type</span> == <span class="src-id">GESHI_HEADER_PRE_TABLE</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4028"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4029"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span></tr></tbody><span class="src-var">$footer</span></table><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4030"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4031"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'</div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span> .</span></div></li> +<li><div class="src-line"><a name="a4032"></a></span><span class="src-str"> <span class="src-str">"</span></span><span class="src-var">$footer</span></div><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4033"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4034"></a></span><span class="src-str"> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4035"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id">GESHI_NO_LINE_NUMBERS</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4036"></a></span><span class="src-str"> <span class="src-key">return</span> </span><span class="src-str">"</span></ol><span class="src-var">$footer</span></pre><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4037"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4038"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">force_code_block</span> ? <span class="src-str">'</div>'</span> : <span class="src-str">''</span><span class="src-sym">)</span> .</span></div></li> +<li><div class="src-line"><a name="a4039"></a></span><span class="src-str"> <span class="src-str">"</span></span><span class="src-var">$footer</span></pre><span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4040"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4041"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4042"></a> </div></li> +<li><div class="src-line"><a name="a4043"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a4044"></a></span><span class="src-str"> * Replaces certain keywords in the header and footer with</span></div></li> +<li><div class="src-line"><a name="a4045"></a></span><span class="src-str"> * certain configuration values</span></div></li> +<li><div class="src-line"><a name="a4046"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4047"></a></span><span class="src-str"> * @param string The header or footer content to do replacement on</span></div></li> +<li><div class="src-line"><a name="a4048"></a></span><span class="src-str"> * @return string The header or footer with replaced keywords</span></div></li> +<li><div class="src-line"><a name="a4049"></a></span><span class="src-str"> * @since 1.0.2</span></div></li> +<li><div class="src-line"><a name="a4050"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a4051"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a4052"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">replace_keywords</span><span class="src-sym">(</span><span class="src-var">$instr</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4053"></a></span><span class="src-str"> <span class="src-var">$keywords</span> = <span class="src-var">$replacements</span> = <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4054"></a> </div></li> +<li><div class="src-line"><a name="a4055"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'<TIME>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4056"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'{TIME}'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4057"></a></span><span class="src-str"> <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <a href="http://www.php.net/number_format">number_format</a><span class="src-sym">(</span><span class="src-var">$time</span> = <span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodget_time">get_time</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,</span> <span class="src-num">3</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4058"></a> </div></li> +<li><div class="src-line"><a name="a4059"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'<LANGUAGE>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4060"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'{LANGUAGE}'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4061"></a></span><span class="src-str"> <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'LANG_NAME'</span><span class="src-sym">]</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4062"></a> </div></li> +<li><div class="src-line"><a name="a4063"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'<VERSION>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4064"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'{VERSION}'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4065"></a></span><span class="src-str"> <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_VERSION">GESHI_VERSION</a></span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4066"></a> </div></li> +<li><div class="src-line"><a name="a4067"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'<SPEED>'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4068"></a></span><span class="src-str"> <span class="src-var">$keywords</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-str">'{SPEED}'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4069"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$time</span> <= <span class="src-num">0</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4070"></a></span><span class="src-str"> <span class="src-var">$speed</span> = <span class="src-str">'N/A'</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4071"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4072"></a></span><span class="src-str"> <span class="src-var">$speed</span> = <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">source</span><span class="src-sym">)</span> / <span class="src-var">$time</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4073"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$speed</span> >= <span class="src-num">1024</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4074"></a></span><span class="src-str"> <span class="src-var">$speed</span> = <a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-str">"%.2f KB/s"</span><span class="src-sym">,</span> <span class="src-var">$speed</span> / <span class="src-num">1024.0</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4075"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4076"></a></span><span class="src-str"> <span class="src-var">$speed</span> = <a href="http://www.php.net/sprintf">sprintf</a><span class="src-sym">(</span><span class="src-str">"%.0f B/s"</span><span class="src-sym">,</span> <span class="src-var">$speed</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4077"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4078"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4079"></a></span><span class="src-str"> <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$replacements</span><span class="src-sym">[</span><span class="src-sym">]</span> = <span class="src-var">$speed</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4080"></a> </div></li> +<li><div class="src-line"><a name="a4081"></a></span><span class="src-str"> <span class="src-key">return</span> <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$keywords</span><span class="src-sym">,</span> <span class="src-var">$replacements</span><span class="src-sym">,</span> <span class="src-var">$instr</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4082"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4083"></a> </div></li> +<li><div class="src-line"><a name="a4084"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a4085"></a></span><span class="src-str"> * Secure replacement for PHP built-in function htmlspecialchars().</span></div></li> +<li><div class="src-line"><a name="a4086"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4087"></a></span><span class="src-str"> * See ticket #427 (http://wush.net/trac/wikka/ticket/427) for the rationale</span></div></li> +<li><div class="src-line"><a name="a4088"></a></span><span class="src-str"> * for this replacement function.</span></div></li> +<li><div class="src-line"><a name="a4089"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4090"></a></span><span class="src-str"> * The INTERFACE for this function is almost the same as that for</span></div></li> +<li><div class="src-line"><a name="a4091"></a></span><span class="src-str"> * htmlspecialchars(), with the same default for quote style; however, there</span></div></li> +<li><div class="src-line"><a name="a4092"></a></span><span class="src-str"> * is no 'charset' parameter. The reason for this is as follows:</span></div></li> +<li><div class="src-line"><a name="a4093"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4094"></a></span><span class="src-str"> * The PHP docs say:</span></div></li> +<li><div class="src-line"><a name="a4095"></a></span><span class="src-str"> * "The third argument charset defines character set used in conversion."</span></div></li> +<li><div class="src-line"><a name="a4096"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4097"></a></span><span class="src-str"> * I suspect PHP's htmlspecialchars() is working at the byte-value level and</span></div></li> +<li><div class="src-line"><a name="a4098"></a></span><span class="src-str"> * thus _needs_ to know (or asssume) a character set because the special</span></div></li> +<li><div class="src-line"><a name="a4099"></a></span><span class="src-str"> * characters to be replaced could exist at different code points in</span></div></li> +<li><div class="src-line"><a name="a4100"></a></span><span class="src-str"> * different character sets. (If indeed htmlspecialchars() works at</span></div></li> +<li><div class="src-line"><a name="a4101"></a></span><span class="src-str"> * byte-value level that goes some way towards explaining why the</span></div></li> +<li><div class="src-line"><a name="a4102"></a></span><span class="src-str"> * vulnerability would exist in this function, too, and not only in</span></div></li> +<li><div class="src-line"><a name="a4103"></a></span><span class="src-str"> * htmlentities() which certainly is working at byte-value level.)</span></div></li> +<li><div class="src-line"><a name="a4104"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4105"></a></span><span class="src-str"> * This replacement function however works at character level and should</span></div></li> +<li><div class="src-line"><a name="a4106"></a></span><span class="src-str"> * therefore be "immune" to character set differences - so no charset</span></div></li> +<li><div class="src-line"><a name="a4107"></a></span><span class="src-str"> * parameter is needed or provided. If a third parameter is passed, it will</span></div></li> +<li><div class="src-line"><a name="a4108"></a></span><span class="src-str"> * be silently ignored.</span></div></li> +<li><div class="src-line"><a name="a4109"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4110"></a></span><span class="src-str"> * In the OUTPUT there is a minor difference in that we use '&#39;' instead</span></div></li> +<li><div class="src-line"><a name="a4111"></a></span><span class="src-str"> * of PHP's '&#039;' for a single quote: this provides compatibility with</span></div></li> +<li><div class="src-line"><a name="a4112"></a></span><span class="src-str"> * get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES)</span></div></li> +<li><div class="src-line"><a name="a4113"></a></span><span class="src-str"> * (see comment by mikiwoz at yahoo dot co dot uk on</span></div></li> +<li><div class="src-line"><a name="a4114"></a></span><span class="src-str"> * http://php.net/htmlspecialchars); it also matches the entity definition</span></div></li> +<li><div class="src-line"><a name="a4115"></a></span><span class="src-str"> * for XML 1.0</span></div></li> +<li><div class="src-line"><a name="a4116"></a></span><span class="src-str"> * (http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_Special_characters).</span></div></li> +<li><div class="src-line"><a name="a4117"></a></span><span class="src-str"> * Like PHP we use a numeric character reference instead of '&apos;' for the</span></div></li> +<li><div class="src-line"><a name="a4118"></a></span><span class="src-str"> * single quote. For the other special characters we use the named entity</span></div></li> +<li><div class="src-line"><a name="a4119"></a></span><span class="src-str"> * references, as PHP is doing.</span></div></li> +<li><div class="src-line"><a name="a4120"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4121"></a></span><span class="src-str"> * @author {@link http://wikkawiki.org/JavaWoman Marjolein Katsma}</span></div></li> +<li><div class="src-line"><a name="a4122"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4123"></a></span><span class="src-str"> * @license http://www.gnu.org/copyleft/lgpl.html</span></div></li> +<li><div class="src-line"><a name="a4124"></a></span><span class="src-str"> * GNU Lesser General Public License</span></div></li> +<li><div class="src-line"><a name="a4125"></a></span><span class="src-str"> * @copyright Copyright 2007, {@link http://wikkawiki.org/CreditsPage</span></div></li> +<li><div class="src-line"><a name="a4126"></a></span><span class="src-str"> * Wikka Development Team}</span></div></li> +<li><div class="src-line"><a name="a4127"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4128"></a></span><span class="src-str"> * @access private</span></div></li> +<li><div class="src-line"><a name="a4129"></a></span><span class="src-str"> * @param string $string string to be converted</span></div></li> +<li><div class="src-line"><a name="a4130"></a></span><span class="src-str"> * @param integer $quote_style</span></div></li> +<li><div class="src-line"><a name="a4131"></a></span><span class="src-str"> * - ENT_COMPAT: escapes &, <, > and double quote (default)</span></div></li> +<li><div class="src-line"><a name="a4132"></a></span><span class="src-str"> * - ENT_NOQUOTES: escapes only &, < and ></span></div></li> +<li><div class="src-line"><a name="a4133"></a></span><span class="src-str"> * - ENT_QUOTES: escapes &, <, >, double and single quotes</span></div></li> +<li><div class="src-line"><a name="a4134"></a></span><span class="src-str"> * @return string converted string</span></div></li> +<li><div class="src-line"><a name="a4135"></a></span><span class="src-str"> * @since 1.0.7.18</span></div></li> +<li><div class="src-line"><a name="a4136"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a4137"></a></span><span class="src-str"> <span class="src-key">function</span> <span class="src-id">hsc</span><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$quote_style</span> = <span class="src-id">ENT_COMPAT</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4138"></a></span><span class="src-str"> <span class="src-comm">// init</span></span></div></li> +<li><div class="src-line"><a name="a4139"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">static</span> <span class="src-var">$aTransSpecchar</span> = <span class="src-key">array</span><span class="src-sym">(</span></span></div></li> +<li><div class="src-line"><a name="a4140"></a></span><span class="src-str"> <span class="src-str">'&'</span> => <span class="src-str">'&amp;'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a4141"></a></span><span class="src-str"> <span class="src-str">'"'</span> => <span class="src-str">'&quot;'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a4142"></a></span><span class="src-str"> <span class="src-str">'<'</span> => <span class="src-str">'&lt;'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a4143"></a></span><span class="src-str"> <span class="src-str">'>'</span> => <span class="src-str">'&gt;'</span><span class="src-sym">,</span></span></div></li> +<li><div class="src-line"><a name="a4144"></a> </div></li> +<li><div class="src-line"><a name="a4145"></a></span><span class="src-str"> <span class="src-comm">//This fix is related to SF#1923020, but has to be applied</span></span></div></li> +<li><div class="src-line"><a name="a4146"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//regardless of actually highlighting symbols.</span></span></div></li> +<li><div class="src-line"><a name="a4147"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a4148"></a></span><span class="src-str"> <span class="src-comm">//Circumvent a bug with symbol highlighting</span></span></div></li> +<li><div class="src-line"><a name="a4149"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//This is required as ; would produce undesirable side-effects if it</span></span></div></li> +<li><div class="src-line"><a name="a4150"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//was not to be processed as an entity.</span></span></div></li> +<li><div class="src-line"><a name="a4151"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-str">';'</span> => <span class="src-str">'<SEMI>'</span><span class="src-sym">,</span> <span class="src-comm">// Force ; to be processed as entity</span></span></div></li> +<li><div class="src-line"><a name="a4152"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-str">'|'</span> => <span class="src-str">'<PIPE>'</span> <span class="src-comm">// Force | to be processed as entity</span></span></div></li> +<li><div class="src-line"><a name="a4153"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-sym">)</span><span class="src-sym">;</span> <span class="src-comm">// ENT_COMPAT set</span></span></div></li> +<li><div class="src-line"><a name="a4154"></a></span><span class="src-str"><span class="src-comm"></span></span></div></li> +<li><div class="src-line"><a name="a4155"></a></span><span class="src-str"> <span class="src-key">switch</span> <span class="src-sym">(</span><span class="src-var">$quote_style</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4156"></a></span><span class="src-str"> <span class="src-key">case</span> <span class="src-id">ENT_NOQUOTES</span>: <span class="src-comm">// don't convert double quotes</span></span></div></li> +<li><div class="src-line"><a name="a4157"></a></span><span class="src-str"><span class="src-comm"></span> unset<span class="src-sym">(</span><span class="src-var">$aTransSpecchar</span><span class="src-sym">[</span><span class="src-str">'"'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4158"></a></span><span class="src-str"> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4159"></a></span><span class="src-str"> <span class="src-key">case</span> <span class="src-id">ENT_QUOTES</span>: <span class="src-comm">// convert single quotes as well</span></span></div></li> +<li><div class="src-line"><a name="a4160"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$aTransSpecchar</span><span class="src-sym">[</span><span class="src-str">"'"</span><span class="src-sym">]</span> = <span class="src-str">'&#39;'</span><span class="src-sym">;</span> <span class="src-comm">// (apos) htmlspecialchars() uses '&#039;'</span></span></div></li> +<li><div class="src-line"><a name="a4161"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">break</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4162"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4163"></a> </div></li> +<li><div class="src-line"><a name="a4164"></a></span><span class="src-str"> <span class="src-comm">// return translated string</span></span></div></li> +<li><div class="src-line"><a name="a4165"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">return</span> <a href="http://www.php.net/strtr">strtr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">,</span> <span class="src-var">$aTransSpecchar</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4166"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4167"></a> </div></li> +<li><div class="src-line"><a name="a4168"></a></span><span class="src-str"> /**</span></div></li> +<li><div class="src-line"><a name="a4169"></a></span><span class="src-str"> * Returns a stylesheet for the highlighted code. If $economy mode</span></div></li> +<li><div class="src-line"><a name="a4170"></a></span><span class="src-str"> * is true, we only return the stylesheet declarations that matter for</span></div></li> +<li><div class="src-line"><a name="a4171"></a></span><span class="src-str"> * this code block instead of the whole thing</span></div></li> +<li><div class="src-line"><a name="a4172"></a></span><span class="src-str"> *</span></div></li> +<li><div class="src-line"><a name="a4173"></a></span><span class="src-str"> * @param boolean Whether to use economy mode or not</span></div></li> +<li><div class="src-line"><a name="a4174"></a></span><span class="src-str"> * @return string A stylesheet built on the data for the current language</span></div></li> +<li><div class="src-line"><a name="a4175"></a></span><span class="src-str"> * @since 1.0.0</span></div></li> +<li><div class="src-line"><a name="a4176"></a></span><span class="src-str"> */</span></div></li> +<li><div class="src-line"><a name="a4177"></a></span><span class="src-str"> <span class="src-key">function</span> <a href="../geshi/core/GeSHi.html#methodget_stylesheet">get_stylesheet</a><span class="src-sym">(</span><span class="src-var">$economy_mode</span> = <span class="src-id">true</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4178"></a></span><span class="src-str"> <span class="src-comm">// If there's an error, chances are that the language file</span></span></div></li> +<li><div class="src-line"><a name="a4179"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// won't have populated the language data file, so we can't</span></span></div></li> +<li><div class="src-line"><a name="a4180"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// risk getting a stylesheet...</span></span></div></li> +<li><div class="src-line"><a name="a4181"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methoderror">error</a><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4182"></a></span><span class="src-str"> <span class="src-key">return</span> <span class="src-str">''</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4183"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4184"></a> </div></li> +<li><div class="src-line"><a name="a4185"></a></span><span class="src-str"> <span class="src-comm">//Check if the style rearrangements have been processed ...</span></span></div></li> +<li><div class="src-line"><a name="a4186"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">//This also does some preprocessing to check which style groups are useable ...</span></span></div></li> +<li><div class="src-line"><a name="a4187"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'NUMBERS_CACHE'</span><span class="src-sym">]</span><span class="src-sym">))</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4188"></a></span><span class="src-str"> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">build_style_cache</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4189"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4190"></a> </div></li> +<li><div class="src-line"><a name="a4191"></a></span><span class="src-str"> <span class="src-comm">// First, work out what the selector should be. If there's an ID,</span></span></div></li> +<li><div class="src-line"><a name="a4192"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// that should be used, the same for a class. Otherwise, a selector</span></span></div></li> +<li><div class="src-line"><a name="a4193"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// of '' means that these styles will be applied anywhere</span></span></div></li> +<li><div class="src-line"><a name="a4194"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4195"></a></span><span class="src-str"> <span class="src-var">$selector</span> = <span class="src-str">'#'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4196"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4197"></a></span><span class="src-str"> <span class="src-var">$selector</span> = <span class="src-str">'.'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4198"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_class</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4199"></a></span><span class="src-str"> <span class="src-var">$selector</span> .= <span class="src-str">'.'</span> . <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_class</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4200"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4201"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4202"></a></span><span class="src-str"> <span class="src-var">$selector</span> .= <span class="src-str">' '</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4203"></a> </div></li> +<li><div class="src-line"><a name="a4204"></a></span><span class="src-str"> <span class="src-comm">// Header of the stylesheet</span></span></div></li> +<li><div class="src-line"><a name="a4205"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4206"></a></span><span class="src-str"> <span class="src-var">$stylesheet</span> = <span class="src-str">"/**\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4207"></a></span><span class="src-str"> <span class="src-str">" * GeSHi Dynamically Generated Stylesheet\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4208"></a></span><span class="src-str"> <span class="src-str">" * --------------------------------------\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4209"></a></span><span class="src-str"> <span class="src-str">"</span></span> * Dynamically generated stylesheet for {<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language</span><span class="src-sym">}</span>\n<span class="src-str">"</span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a4210"></a></span><span class="src-str"> </span><span class="src-str">"</span> * CSS class: {<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_class</span><span class="src-sym">}</span>, CSS id: {<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_id</span><span class="src-sym">}</span>\n<span class="src-str">"</span><span class="src-str">.</span></div></li> +<li><div class="src-line"><a name="a4211"></a></span><span class="src-str"> <span class="src-str">" * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n"</span> .</span></div></li> +<li><div class="src-line"><a name="a4212"></a></span><span class="src-str"> <span class="src-str">" * (http://qbnz.com/highlighter/ and http://geshi.org/)\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4213"></a></span><span class="src-str"> <span class="src-str">" * --------------------------------------\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4214"></a></span><span class="src-str"> <span class="src-str">" */\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4215"></a></span><span class="src-str"> <span class="src-sym">}</span> <span class="src-key">else</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4216"></a></span><span class="src-str"> <span class="src-var">$stylesheet</span> = <span class="src-str">"/**\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4217"></a></span><span class="src-str"> <span class="src-str">" * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n"</span> .</span></div></li> +<li><div class="src-line"><a name="a4218"></a></span><span class="src-str"> <span class="src-str">" * (http://qbnz.com/highlighter/ and http://geshi.org/)\n"</span>.</span></div></li> +<li><div class="src-line"><a name="a4219"></a></span><span class="src-str"> <span class="src-str">" */\n"</span><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4220"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4221"></a> </div></li> +<li><div class="src-line"><a name="a4222"></a></span><span class="src-str"> <span class="src-comm">// Set the <ol> to have no effect at all if there are line numbers</span></span></div></li> +<li><div class="src-line"><a name="a4223"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// (<ol>s have margins that should be destroyed so all layout is</span></span></div></li> +<li><div class="src-line"><a name="a4224"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// controlled by the set_overall_style method, which works on the</span></span></div></li> +<li><div class="src-line"><a name="a4225"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// <pre> or <div> container). Additionally, set default styles for lines</span></span></div></li> +<li><div class="src-line"><a name="a4226"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode</span> || <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers</span> != <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4227"></a></span><span class="src-str"> <span class="src-comm">//$stylesheet .= "$selector, {$selector}ol, {$selector}ol li {margin: 0;}\n";</span></span></div></li> +<li><div class="src-line"><a name="a4228"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-var">$stylesheet</span> .= <span class="src-str">"</span></span><span class="src-var">$selector</span>.de1, <span class="src-var">$selector</span>.de2 {{<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">code_style</span><span class="src-sym">}</span>}\n<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4229"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4230"></a> </div></li> +<li><div class="src-line"><a name="a4231"></a></span><span class="src-str"> <span class="src-comm">// Add overall styles</span></span></div></li> +<li><div class="src-line"><a name="a4232"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// note: neglect economy_mode, empty styles are meaningless</span></span></div></li> +<li><div class="src-line"><a name="a4233"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_style</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4234"></a></span><span class="src-str"> <span class="src-var">$stylesheet</span> .= <span class="src-str">"</span></span><span class="src-var">$selector</span> {{<span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">overall_style</span><span class="src-sym">}</span>}\n<span class="src-str">"</span><span class="src-str"><span class="src-sym">;</span></span></div></li> +<li><div class="src-line"><a name="a4235"></a></span><span class="src-str"> <span class="src-sym">}</span></span></div></li> +<li><div class="src-line"><a name="a4236"></a> </div></li> +<li><div class="src-line"><a name="a4237"></a></span><span class="src-str"> <span class="src-comm">// Add styles for links</span></span></div></li> +<li><div class="src-line"><a name="a4238"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// note: economy mode does not make _any_ sense here</span></span></div></li> +<li><div class="src-line"><a name="a4239"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// either the style is empty and thus no selector is needed</span></span></div></li> +<li><div class="src-line"><a name="a4240"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-comm">// or the appropriate key is given.</span></span></div></li> +<li><div class="src-line"><a name="a4241"></a></span><span class="src-str"><span class="src-comm"></span> <span class="src-key">foreach</span> <span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">link_styles</span> <span class="src-key">as</span> <span class="src-var">$key</span> => <span class="src-var">$style</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4242"></a></span><span class="src-str"> <span class="src-key">if</span> <span class="src-sym">(</span><span class="src-var">$style</span> != <span class="src-str">''</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4243"></a></span><span class="src-str"> <span class="src-key">switch</span> <span class="src-sym">(</span><span class="src-var">$key</span><span class="src-sym">)</span> <span class="src-sym">{</span></span></div></li> +<li><div class="src-line"><a name="a4244"></a></span><span class="src-str"> <span class="src-key">case</span> <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_LINK">GESHI_LINK</a></span>:</span></div></li> +<li><div class="src-line"><a name="a4245"></a></span><span class="src-str"> <span class="src-var">$stylesheet</span> .= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-sym">}</span>a:link {{<span class="src-var">$style</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4246"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4247"></a> <span class="src-key">case </span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HOVER">GESHI_HOVER</a></span>:</div></li> +<li><div class="src-line"><a name="a4248"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>a:hover {{<span class="src-var">$style</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4249"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4250"></a> <span class="src-key">case </span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_ACTIVE">GESHI_ACTIVE</a></span>:</div></li> +<li><div class="src-line"><a name="a4251"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>a:active {{<span class="src-var">$style</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4252"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4253"></a> <span class="src-key">case </span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_VISITED">GESHI_VISITED</a></span>:</div></li> +<li><div class="src-line"><a name="a4254"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>a:visited {{<span class="src-var">$style</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4255"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4256"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4257"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4258"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4259"></a> </div></li> +<li><div class="src-line"><a name="a4260"></a> <span class="src-comm">// Header and footer</span></div></li> +<li><div class="src-line"><a name="a4261"></a> <span class="src-comm">// note: neglect economy_mode, empty styles are meaningless</span></div></li> +<li><div class="src-line"><a name="a4262"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">header_content_style </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4263"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.head {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">header_content_style</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4264"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4265"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">footer_content_style </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4266"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.foot {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">footer_content_style</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4267"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4268"></a> </div></li> +<li><div class="src-line"><a name="a4269"></a> <span class="src-comm">// Styles for important stuff</span></div></li> +<li><div class="src-line"><a name="a4270"></a> <span class="src-comm">// note: neglect economy_mode, empty styles are meaningless</span></div></li> +<li><div class="src-line"><a name="a4271"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">important_styles </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4272"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.imp {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">important_styles</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4273"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4274"></a> </div></li> +<li><div class="src-line"><a name="a4275"></a> <span class="src-comm">// Simple line number styles</span></div></li> +<li><div class="src-line"><a name="a4276"></a> <span class="src-key">if </span><span class="src-sym">((</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers </span>!= <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">) </span>&& <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style1 </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4277"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>li, {<span class="src-var">$selector</span><span class="src-sym">}</span>.li1 {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">line_style1</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4278"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4279"></a> <span class="src-key">if </span><span class="src-sym">((</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers </span>!= <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a></span><span class="src-sym">) </span>&& <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">table_linenumber_style </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4280"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>.ln {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">table_linenumber_style</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4281"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4282"></a> <span class="src-comm">// If there is a style set for fancy line numbers, echo it out</span></div></li> +<li><div class="src-line"><a name="a4283"></a> <span class="src-key">if </span><span class="src-sym">((</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_numbers </span>== <span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a></span><span class="src-sym">) </span>&& <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">line_style2 </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4284"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>.li2 {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">line_style2</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4285"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4286"></a> </div></li> +<li><div class="src-line"><a name="a4287"></a> <span class="src-comm">// note: empty styles are meaningless</span></div></li> +<li><div class="src-line"><a name="a4288"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4289"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>||</div></li> +<li><div class="src-line"><a name="a4290"></a> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">) </span>&&</div></li> +<li><div class="src-line"><a name="a4291"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'KEYWORDS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">))) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4292"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.kw<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4293"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4294"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4295"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4296"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>||</div></li> +<li><div class="src-line"><a name="a4297"></a> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">) </span>&&</div></li> +<li><div class="src-line"><a name="a4298"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'COMMENTS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">) </span>||</div></li> +<li><div class="src-line"><a name="a4299"></a> <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_REGEXP'</span><span class="src-sym">]</span><span class="src-sym">) </span>&&</div></li> +<li><div class="src-line"><a name="a4300"></a> <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'COMMENT_REGEXP'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">)))) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4301"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.co<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4302"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4303"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4304"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4305"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'ESCAPE_CHAR'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4306"></a> <span class="src-comm">// NEW: since 1.0.8 we have to handle hardescapes</span></div></li> +<li><div class="src-line"><a name="a4307"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$group </span>=== <span class="src-str">'HARD'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4308"></a> <span class="src-var">$group </span>= <span class="src-str">'_h'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4309"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4310"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.es<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4311"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4312"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4313"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4314"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'BRACKETS'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4315"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.br<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4316"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4317"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4318"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4319"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'SYMBOLS'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4320"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.sy<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4321"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4322"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4323"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4324"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'STRINGS'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4325"></a> <span class="src-comm">// NEW: since 1.0.8 we have to handle hardquotes</span></div></li> +<li><div class="src-line"><a name="a4326"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$group </span>=== <span class="src-str">'HARD'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4327"></a> <span class="src-var">$group </span>= <span class="src-str">'_h'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4328"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4329"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.st<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4330"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4331"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4332"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4333"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'NUMBERS'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4334"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.nu<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4335"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4336"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4337"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4338"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'METHODS'</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4339"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.me<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4340"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4341"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4342"></a> <span class="src-comm">// note: neglect economy_mode, empty styles are meaningless</span></div></li> +<li><div class="src-line"><a name="a4343"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'SCRIPT'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4344"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">''</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4345"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.sc<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4346"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4347"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4348"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'STYLES'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">] </span><span class="src-key">as </span><span class="src-var">$group </span>=> <span class="src-var">$styles</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4349"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$styles </span>!= <span class="src-str">'' </span>&& <span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>||</div></li> +<li><div class="src-line"><a name="a4350"></a> <span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">) </span>&&</div></li> +<li><div class="src-line"><a name="a4351"></a> <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">lexic_permissions</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">))) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4352"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">) </span>&&</div></li> +<li><div class="src-line"><a name="a4353"></a> <a href="http://www.php.net/array_key_exists">array_key_exists</a><span class="src-sym">(</span><span class="src-id">GESHI_CLASS</span><span class="src-sym">, </span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4354"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4355"></a> <span class="src-var">$stylesheet </span>.= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">language_data</span><span class="src-sym">[</span><span class="src-str">'REGEXPS'</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$group</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-id">GESHI_CLASS</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4356"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4357"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4358"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span><span class="src-str"><span class="src-var">$selector</span>.re<span class="src-var">$group</span> {{<span class="src-var">$styles</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4359"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4360"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4361"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4362"></a> <span class="src-comm">// Styles for lines being highlighted extra</span></div></li> +<li><div class="src-line"><a name="a4363"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$economy_mode </span>|| <span class="src-sym">(</span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines</span><span class="src-sym">)</span>!=<a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">))) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4364"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>.ln-xtra, {<span class="src-var">$selector</span><span class="src-sym">}</span>li.ln-xtra, {<span class="src-var">$selector</span><span class="src-sym">}</span>div.ln-xtra {{<span class="src-var">$this</span></span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_style</span><span class="src-str"></span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4365"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4366"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>span.xtra { display:block; }\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4367"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles </span><span class="src-key">as </span><span class="src-var">$lineid </span>=> <span class="src-var">$linestyle</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4368"></a> <span class="src-var">$stylesheet </span>.= <span class="src-str">"</span>{<span class="src-var">$selector</span><span class="src-str"></span><span class="src-sym">}</span>.lx<span class="src-var">$lineid</span>, {<span class="src-var">$selector</span><span class="src-sym">}</span>li.lx<span class="src-var">$lineid</span>, {<span class="src-var">$selector</span><span class="src-sym">}</span>div.lx<span class="src-var">$lineid</span> {{<span class="src-var">$linestyle</span><span class="src-sym">}</span>}\n</span><span class="src-str">"</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4369"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4370"></a> </div></li> +<li><div class="src-line"><a name="a4371"></a> <span class="src-key">return </span><span class="src-var">$stylesheet</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4372"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4373"></a> </div></li> +<li><div class="src-line"><a name="a4374"></a> /**</div></li> +<li><div class="src-line"><a name="a4375"></a> * Get's the style that is used for the specified line</div></li> +<li><div class="src-line"><a name="a4376"></a> *</div></li> +<li><div class="src-line"><a name="a4377"></a> * @param int The line number information is requested for</div></li> +<li><div class="src-line"><a name="a4378"></a> * @access private</div></li> +<li><div class="src-line"><a name="a4379"></a> * @since 1.0.7.21</div></li> +<li><div class="src-line"><a name="a4380"></a> */</div></li> +<li><div class="src-line"><a name="a4381"></a> <span class="src-key">function </span><span class="src-id">get_line_style</span><span class="src-sym">(</span><span class="src-var">$line</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4382"></a> <span class="src-comm">//$style = null;</span></div></li> +<li><div class="src-line"><a name="a4383"></a> <span class="src-var">$style </span>= <span class="src-id">null</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4384"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$line</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4385"></a> <span class="src-var">$style </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_styles</span><span class="src-sym">[</span><span class="src-var">$line</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4386"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{ </span><span class="src-comm">// if no "extra" style assigned</span></div></li> +<li><div class="src-line"><a name="a4387"></a> <span class="src-var">$style </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">highlight_extra_lines_style</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4388"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4389"></a> </div></li> +<li><div class="src-line"><a name="a4390"></a> <span class="src-key">return </span><span class="src-var">$style</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4391"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4392"></a> </div></li> +<li><div class="src-line"><a name="a4393"></a> /**</div></li> +<li><div class="src-line"><a name="a4394"></a> * this functions creates an optimized regular expression list</div></li> +<li><div class="src-line"><a name="a4395"></a> * of an array of strings.</div></li> +<li><div class="src-line"><a name="a4396"></a> *</div></li> +<li><div class="src-line"><a name="a4397"></a> * Example:</div></li> +<li><div class="src-line"><a name="a4398"></a> * <code>$list = array('faa', 'foo', 'foobar');</div></li> +<li><div class="src-line"><a name="a4399"></a> * => string 'f(aa|oo(bar)?)'</code></div></li> +<li><div class="src-line"><a name="a4400"></a> *</div></li> +<li><div class="src-line"><a name="a4401"></a> * @param $list array of (unquoted) strings</div></li> +<li><div class="src-line"><a name="a4402"></a> * @param $regexp_delimiter your regular expression delimiter, @see preg_quote()</div></li> +<li><div class="src-line"><a name="a4403"></a> * @return string for regular expression</div></li> +<li><div class="src-line"><a name="a4404"></a> * @author Milian Wolff <mail@milianw.de></div></li> +<li><div class="src-line"><a name="a4405"></a> * @since 1.0.8</div></li> +<li><div class="src-line"><a name="a4406"></a> * @access private</div></li> +<li><div class="src-line"><a name="a4407"></a> */</div></li> +<li><div class="src-line"><a name="a4408"></a> <span class="src-key">function </span><span class="src-id">optimize_regexp_list</span><span class="src-sym">(</span><span class="src-var">$list</span><span class="src-sym">, </span><span class="src-var">$regexp_delimiter </span>= <span class="src-str">'/'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4409"></a> <span class="src-var">$regex_chars </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">, </span><span class="src-str">'\\'</span><span class="src-sym">, </span><span class="src-str">'+'</span><span class="src-sym">, </span><span class="src-str">'*'</span><span class="src-sym">, </span><span class="src-str">'?'</span><span class="src-sym">, </span><span class="src-str">'['</span><span class="src-sym">, </span><span class="src-str">'^'</span><span class="src-sym">, </span><span class="src-str">']'</span><span class="src-sym">, </span><span class="src-str">'$'</span><span class="src-sym">,</span></div></li> +<li><div class="src-line"><a name="a4410"></a> <span class="src-str">'('</span><span class="src-sym">, </span><span class="src-str">')'</span><span class="src-sym">, </span><span class="src-str">'{'</span><span class="src-sym">, </span><span class="src-str">'}'</span><span class="src-sym">, </span><span class="src-str">'='</span><span class="src-sym">, </span><span class="src-str">'!'</span><span class="src-sym">, </span><span class="src-str">'<'</span><span class="src-sym">, </span><span class="src-str">'>'</span><span class="src-sym">, </span><span class="src-str">'|'</span><span class="src-sym">, </span><span class="src-str">':'</span><span class="src-sym">, </span><span class="src-var">$regexp_delimiter</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4411"></a> <a href="http://www.php.net/sort">sort</a><span class="src-sym">(</span><span class="src-var">$list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4412"></a> <span class="src-var">$regexp_list </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4413"></a> <span class="src-var">$num_subpatterns </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4414"></a> <span class="src-var">$list_key </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4415"></a> </div></li> +<li><div class="src-line"><a name="a4416"></a> <span class="src-comm">// the tokens which we will use to generate the regexp list</span></div></li> +<li><div class="src-line"><a name="a4417"></a> <span class="src-var">$tokens </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4418"></a> <span class="src-var">$prev_keys </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4419"></a> <span class="src-comm">// go through all entries of the list and generate the token list</span></div></li> +<li><div class="src-line"><a name="a4420"></a> <span class="src-var">$cur_len </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4421"></a> <span class="src-key">for </span><span class="src-sym">(</span><span class="src-var">$i </span>= <span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$i_max </span>= <a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$list</span><span class="src-sym">)</span><span class="src-sym">; </span><span class="src-var">$i </span>< <span class="src-var">$i_max</span><span class="src-sym">; </span>++<span class="src-var">$i</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4422"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$cur_len </span>> <span class="src-id">GESHI_MAX_PCRE_LENGTH</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4423"></a> <span class="src-comm">// seems like the length of this pcre is growing exorbitantly</span></div></li> +<li><div class="src-line"><a name="a4424"></a> <span class="src-var">$regexp_list</span><span class="src-sym">[</span>++<span class="src-var">$list_key</span><span class="src-sym">] </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_optimize_regexp_list_tokens_to_string</span><span class="src-sym">(</span><span class="src-var">$tokens</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4425"></a> <span class="src-var">$num_subpatterns </span>= <a href="http://www.php.net/substr_count">substr_count</a><span class="src-sym">(</span><span class="src-var">$regexp_list</span><span class="src-sym">[</span><span class="src-var">$list_key</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-str">'(?:'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4426"></a> <span class="src-var">$tokens </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4427"></a> <span class="src-var">$cur_len </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4428"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4429"></a> <span class="src-var">$level </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4430"></a> <span class="src-var">$entry </span>= <a href="http://www.php.net/preg_quote">preg_quote</a><span class="src-sym">(</span>(string) <span class="src-var">$list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$regexp_delimiter</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4431"></a> <span class="src-var">$pointer </span>= <span class="src-sym">&</span><span class="src-var">$tokens</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4432"></a> <span class="src-comm">// properly assign the new entry to the correct position in the token array</span></div></li> +<li><div class="src-line"><a name="a4433"></a> <span class="src-comm">// possibly generate smaller common denominator keys</span></div></li> +<li><div class="src-line"><a name="a4434"></a> <span class="src-key">while </span><span class="src-sym">(</span><span class="src-id">true</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4435"></a> <span class="src-comm">// get the common denominator</span></div></li> +<li><div class="src-line"><a name="a4436"></a> <span class="src-key">if </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4437"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">] </span>== <span class="src-var">$entry</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4438"></a> <span class="src-comm">// this is a duplicate entry, skip it</span></div></li> +<li><div class="src-line"><a name="a4439"></a> <span class="src-key">continue </span><span class="src-num">2</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4440"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4441"></a> <span class="src-var">$char </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4442"></a> <span class="src-key">while </span><span class="src-sym">(</span>isset<span class="src-sym">(</span><span class="src-var">$entry</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">) </span>&& isset<span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">)</span></div></li> +<li><div class="src-line"><a name="a4443"></a> && <span class="src-var">$entry</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">] </span>== <span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">[</span><span class="src-var">$char</span><span class="src-sym">]</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4444"></a> ++<span class="src-var">$char</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4445"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4446"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$char </span>> <span class="src-num">0</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4447"></a> <span class="src-comm">// this entry has at least some chars in common with the current key</span></div></li> +<li><div class="src-line"><a name="a4448"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$char </span>== <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4449"></a> <span class="src-comm">// current key is totally matched, i.e. this entry has just some bits appended</span></div></li> +<li><div class="src-line"><a name="a4450"></a> <span class="src-var">$pointer </span>= <span class="src-sym">&</span><span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4451"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4452"></a> <span class="src-comm">// only part of the keys match</span></div></li> +<li><div class="src-line"><a name="a4453"></a> <span class="src-var">$new_key_part1 </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-var">$char</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4454"></a> <span class="src-var">$new_key_part2 </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$char</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4455"></a> </div></li> +<li><div class="src-line"><a name="a4456"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$new_key_part1</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$regex_chars</span><span class="src-sym">)</span></div></li> +<li><div class="src-line"><a name="a4457"></a> || <a href="http://www.php.net/in_array">in_array</a><span class="src-sym">(</span><span class="src-var">$new_key_part2</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">, </span><span class="src-var">$regex_chars</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4458"></a> <span class="src-comm">// this is bad, a regex char as first character</span></div></li> +<li><div class="src-line"><a name="a4459"></a> <span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$entry</span><span class="src-sym">] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'' </span>=> <span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4460"></a> <a href="http://www.php.net/array_splice">array_splice</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">, </span><span class="src-var">$level</span><span class="src-sym">, </span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$entry</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4461"></a> <span class="src-var">$cur_len </span>+= <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$entry</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4462"></a> <span class="src-key">continue</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4463"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4464"></a> <span class="src-comm">// relocate previous tokens</span></div></li> +<li><div class="src-line"><a name="a4465"></a> <span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$new_key_part1</span><span class="src-sym">] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$new_key_part2 </span>=> <span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4466"></a> unset<span class="src-sym">(</span><span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$prev_keys</span><span class="src-sym">[</span><span class="src-var">$level</span><span class="src-sym">]]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4467"></a> <span class="src-var">$pointer </span>= <span class="src-sym">&</span><span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$new_key_part1</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4468"></a> <span class="src-comm">// recreate key index</span></div></li> +<li><div class="src-line"><a name="a4469"></a> <a href="http://www.php.net/array_splice">array_splice</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">, </span><span class="src-var">$level</span><span class="src-sym">, </span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-var">$new_key_part1</span><span class="src-sym">, </span><span class="src-var">$new_key_part2</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4470"></a> <span class="src-var">$cur_len </span>+= <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$new_key_part2</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4471"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4472"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4473"></a> ++<span class="src-var">$level</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4474"></a> <span class="src-var">$entry </span>= <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$entry</span><span class="src-sym">, </span><span class="src-var">$char</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4475"></a> <span class="src-key">continue</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4476"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4477"></a> <span class="src-comm">// else: fall trough, i.e. no common denominator was found</span></div></li> +<li><div class="src-line"><a name="a4478"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4479"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$level </span>== <span class="src-num">0 </span>&& <span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$tokens</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4480"></a> <span class="src-comm">// we can dump current tokens into the string and throw them away afterwards</span></div></li> +<li><div class="src-line"><a name="a4481"></a> <span class="src-var">$new_entry </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_optimize_regexp_list_tokens_to_string</span><span class="src-sym">(</span><span class="src-var">$tokens</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4482"></a> <span class="src-var">$new_subpatterns </span>= <a href="http://www.php.net/substr_count">substr_count</a><span class="src-sym">(</span><span class="src-var">$new_entry</span><span class="src-sym">, </span><span class="src-str">'(?:'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4483"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">GESHI_MAX_PCRE_SUBPATTERNS </span>&& <span class="src-var">$num_subpatterns </span>+ <span class="src-var">$new_subpatterns </span>> <span class="src-id">GESHI_MAX_PCRE_SUBPATTERNS</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4484"></a> <span class="src-var">$regexp_list</span><span class="src-sym">[</span>++<span class="src-var">$list_key</span><span class="src-sym">] </span>= <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4485"></a> <span class="src-var">$num_subpatterns </span>= <span class="src-var">$new_subpatterns</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4486"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4487"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$regexp_list</span><span class="src-sym">[</span><span class="src-var">$list_key</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4488"></a> <span class="src-var">$new_entry </span>= <span class="src-str">'|' </span>. <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4489"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4490"></a> <span class="src-var">$regexp_list</span><span class="src-sym">[</span><span class="src-var">$list_key</span><span class="src-sym">] </span>.= <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4491"></a> <span class="src-var">$num_subpatterns </span>+= <span class="src-var">$new_subpatterns</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4492"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4493"></a> <span class="src-var">$tokens </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4494"></a> <span class="src-var">$cur_len </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4495"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4496"></a> <span class="src-comm">// no further common denominator found</span></div></li> +<li><div class="src-line"><a name="a4497"></a> <span class="src-var">$pointer</span><span class="src-sym">[</span><span class="src-var">$entry</span><span class="src-sym">] </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'' </span>=> <span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4498"></a> <a href="http://www.php.net/array_splice">array_splice</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">, </span><span class="src-var">$level</span><span class="src-sym">, </span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$prev_keys</span><span class="src-sym">)</span><span class="src-sym">, </span><span class="src-var">$entry</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4499"></a> </div></li> +<li><div class="src-line"><a name="a4500"></a> <span class="src-var">$cur_len </span>+= <a href="http://www.php.net/strlen">strlen</a><span class="src-sym">(</span><span class="src-var">$entry</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4501"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4502"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4503"></a> unset<span class="src-sym">(</span><span class="src-var">$list</span><span class="src-sym">[</span><span class="src-var">$i</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4504"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4505"></a> <span class="src-comm">// make sure the last tokens get converted as well</span></div></li> +<li><div class="src-line"><a name="a4506"></a> <span class="src-var">$new_entry </span>= <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_optimize_regexp_list_tokens_to_string</span><span class="src-sym">(</span><span class="src-var">$tokens</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4507"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">GESHI_MAX_PCRE_SUBPATTERNS </span>&& <span class="src-var">$num_subpatterns </span>+ <a href="http://www.php.net/substr_count">substr_count</a><span class="src-sym">(</span><span class="src-var">$new_entry</span><span class="src-sym">, </span><span class="src-str">'(?:'</span><span class="src-sym">) </span>> <span class="src-id">GESHI_MAX_PCRE_SUBPATTERNS</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4508"></a> <span class="src-var">$regexp_list</span><span class="src-sym">[</span>++<span class="src-var">$list_key</span><span class="src-sym">] </span>= <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4509"></a> <span class="src-sym">} </span><span class="src-key">else </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4510"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$regexp_list</span><span class="src-sym">[</span><span class="src-var">$list_key</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4511"></a> <span class="src-var">$new_entry </span>= <span class="src-str">'|' </span>. <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4512"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4513"></a> <span class="src-var">$regexp_list</span><span class="src-sym">[</span><span class="src-var">$list_key</span><span class="src-sym">] </span>.= <span class="src-var">$new_entry</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4514"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4515"></a> <span class="src-key">return </span><span class="src-var">$regexp_list</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4516"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4517"></a> /**</div></li> +<li><div class="src-line"><a name="a4518"></a> * this function creates the appropriate regexp string of an token array</div></li> +<li><div class="src-line"><a name="a4519"></a> * you should not call this function directly, @see $this->optimize_regexp_list().</div></li> +<li><div class="src-line"><a name="a4520"></a> *</div></li> +<li><div class="src-line"><a name="a4521"></a> * @param &$tokens array of tokens</div></li> +<li><div class="src-line"><a name="a4522"></a> * @param $recursed bool to know wether we recursed or not</div></li> +<li><div class="src-line"><a name="a4523"></a> * @return string</div></li> +<li><div class="src-line"><a name="a4524"></a> * @author Milian Wolff <mail@milianw.de></div></li> +<li><div class="src-line"><a name="a4525"></a> * @since 1.0.8</div></li> +<li><div class="src-line"><a name="a4526"></a> * @access private</div></li> +<li><div class="src-line"><a name="a4527"></a> */</div></li> +<li><div class="src-line"><a name="a4528"></a> <span class="src-key">function </span><span class="src-id">_optimize_regexp_list_tokens_to_string</span><span class="src-sym">(</span><span class="src-sym">&</span><span class="src-var">$tokens</span><span class="src-sym">, </span><span class="src-var">$recursed </span>= <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4529"></a> <span class="src-var">$list </span>= <span class="src-str">''</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4530"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$tokens </span><span class="src-key">as </span><span class="src-var">$token </span>=> <span class="src-var">$sub_tokens</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4531"></a> <span class="src-var">$list </span>.= <span class="src-var">$token</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4532"></a> <span class="src-var">$close_entry </span>= isset<span class="src-sym">(</span><span class="src-var">$sub_tokens</span><span class="src-sym">[</span><span class="src-str">''</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4533"></a> unset<span class="src-sym">(</span><span class="src-var">$sub_tokens</span><span class="src-sym">[</span><span class="src-str">''</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4534"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-var">$sub_tokens</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4535"></a> <span class="src-var">$list </span>.= <span class="src-str">'(?:' </span>. <span class="src-var">$this</span><span class="src-sym">-></span><span class="src-id">_optimize_regexp_list_tokens_to_string</span><span class="src-sym">(</span><span class="src-var">$sub_tokens</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">) </span>. <span class="src-str">')'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4536"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$close_entry</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4537"></a> <span class="src-comm">// make sub_tokens optional</span></div></li> +<li><div class="src-line"><a name="a4538"></a> <span class="src-var">$list </span>.= <span class="src-str">'?'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4539"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4540"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4541"></a> <span class="src-var">$list </span>.= <span class="src-str">'|'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4542"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4543"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><span class="src-var">$recursed</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4544"></a> <span class="src-comm">// do some optimizations</span></div></li> +<li><div class="src-line"><a name="a4545"></a> <span class="src-comm">// common trailing strings</span></div></li> +<li><div class="src-line"><a name="a4546"></a> <span class="src-comm">// BUGGY!</span></div></li> +<li><div class="src-line"><a name="a4547"></a> <span class="src-comm">//$list = preg_replace_callback('#(?<=^|\:|\|)\w+?(\w+)(?:\|.+\1)+(?=\|)#', create_function(</span></div></li> +<li><div class="src-line"><a name="a4548"></a> <span class="src-comm">// '$matches', 'return "(?:" . preg_replace("#" . preg_quote($matches[1], "#") . "(?=\||$)#", "", $matches[0]) . ")" . $matches[1];'), $list);</span></div></li> +<li><div class="src-line"><a name="a4549"></a> <span class="src-comm">// (?:p)? => p?</span></div></li> +<li><div class="src-line"><a name="a4550"></a> <span class="src-var">$list </span>= <a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'#\(\?\:(.)\)\?#'</span><span class="src-sym">, </span><span class="src-str">'\1?'</span><span class="src-sym">, </span><span class="src-var">$list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4551"></a> <span class="src-comm">// (?:a|b|c|d|...)? => [abcd...]?</span></div></li> +<li><div class="src-line"><a name="a4552"></a> <span class="src-comm">// TODO: a|bb|c => [ac]|bb</span></div></li> +<li><div class="src-line"><a name="a4553"></a> <span class="src-key">static </span><span class="src-var">$callback_2</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4554"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span>isset<span class="src-sym">(</span><span class="src-var">$callback_2</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4555"></a> <span class="src-var">$callback_2 </span>= <a href="http://www.php.net/create_function">create_function</a><span class="src-sym">(</span><span class="src-str">'$matches'</span><span class="src-sym">, </span><span class="src-str">'return "[" . str_replace("|", "", $matches[1]) . "]";'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4556"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4557"></a> <span class="src-var">$list </span>= <a href="http://www.php.net/preg_replace_callback">preg_replace_callback</a><span class="src-sym">(</span><span class="src-str">'#\(\?\:((?:.\|)+.)\)#'</span><span class="src-sym">, </span><span class="src-var">$callback_2</span><span class="src-sym">, </span><span class="src-var">$list</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4558"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4559"></a> <span class="src-comm">// return $list without trailing pipe</span></div></li> +<li><div class="src-line"><a name="a4560"></a> <span class="src-key">return </span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$list</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span>-<span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4561"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4562"></a><span class="src-sym">} </span><span class="src-comm">// End Class GeSHi</span></div></li> +<li><div class="src-line"><a name="a4563"></a> </div></li> +<li><div class="src-line"><a name="a4564"></a> </div></li> +<li><div class="src-line"><a name="a4565"></a><span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/function_exists">function_exists</a><span class="src-sym">(</span><span class="src-str">'geshi_highlight'</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4566"></a> /**</div></li> +<li><div class="src-line"><a name="a4567"></a> * Easy way to highlight stuff. Behaves just like highlight_string</div></li> +<li><div class="src-line"><a name="a4568"></a> *</div></li> +<li><div class="src-line"><a name="a4569"></a> * @param string The code to highlight</div></li> +<li><div class="src-line"><a name="a4570"></a> * @param string The language to highlight the code in</div></li> +<li><div class="src-line"><a name="a4571"></a> * @param string The path to the language files. You can leave this blank if you need</div></li> +<li><div class="src-line"><a name="a4572"></a> * as from version 1.0.7 the path should be automatically detected</div></li> +<li><div class="src-line"><a name="a4573"></a> * @param boolean Whether to return the result or to echo</div></li> +<li><div class="src-line"><a name="a4574"></a> * @return string The code highlighted (if $return is true)</div></li> +<li><div class="src-line"><a name="a4575"></a> * @since 1.0.2</div></li> +<li><div class="src-line"><a name="a4576"></a> */</div></li> +<li><div class="src-line"><a name="a4577"></a> <span class="src-key">function </span><a href="../geshi/core/_geshi.php.html#functiongeshi_highlight">geshi_highlight</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-var">$language</span><span class="src-sym">, </span><span class="src-var">$path </span>= <span class="src-id">null</span><span class="src-sym">, </span><span class="src-var">$return </span>= <span class="src-id">false</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4578"></a> <span class="src-var">$geshi </span>= <span class="src-key">new </span><a href="../geshi/core/GeSHi.html#methodGeSHi">GeSHi</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-var">$language</span><span class="src-sym">, </span><span class="src-var">$path</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4579"></a> <span class="src-var">$geshi</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodset_header_type">set_header_type</a><span class="src-sym">(</span><span class="src-id"><a href="../geshi/core/_geshi.php.html#defineGESHI_HEADER_NONE">GESHI_HEADER_NONE</a></span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4580"></a> </div></li> +<li><div class="src-line"><a name="a4581"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$return</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4582"></a> <span class="src-key">return </span><span class="src-str">'<code>' </span>. <span class="src-var">$geshi</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodparse_code">parse_code</a><span class="src-sym">(</span><span class="src-sym">) </span>. <span class="src-str">'</code>'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4583"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4584"></a> </div></li> +<li><div class="src-line"><a name="a4585"></a> echo <span class="src-str">'<code>' </span>. <span class="src-var">$geshi</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methodparse_code">parse_code</a><span class="src-sym">(</span><span class="src-sym">) </span>. <span class="src-str">'</code>'</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4586"></a> </div></li> +<li><div class="src-line"><a name="a4587"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$geshi</span><span class="src-sym">-></span><a href="../geshi/core/GeSHi.html#methoderror">error</a><span class="src-sym">(</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li> +<li><div class="src-line"><a name="a4588"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4589"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4590"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li> +<li><div class="src-line"><a name="a4591"></a> <span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4592"></a><span class="src-sym">}</span></div></li> +<li><div class="src-line"><a name="a4593"></a> </div></li> +<li><div class="src-line"><a name="a4594"></a><span class="src-php">?></span></div></li> +</ol></div> +</div> + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:52 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/blank.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/blank.html new file mode 100644 index 00000000..d44ac468 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/blank.html @@ -0,0 +1,13 @@ +<html> +<head> + <title>GeSHi 1.0.8</title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> +</head> +<body> +<div align="center"><h1>GeSHi 1.0.8</h1></div> +<b>Welcome to geshi!</b><br /> +<br /> +This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.2</a><br /> +</body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/classtrees_geshi.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/classtrees_geshi.html new file mode 100644 index 00000000..e5c3868e --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/classtrees_geshi.html @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title></title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + +<!-- Start of Class Data --> +<H2> + +</H2> +<h2>Root class GeSHi</h2> +<ul> +<li><a href="geshi/core/GeSHi.html">GeSHi</a></li></ul> + + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:34 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex.html new file mode 100644 index 00000000..970ebd19 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex.html @@ -0,0 +1,867 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title></title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <a name="top"></a> +<h2>Full index</h2> +<h3>Package indexes</h3> +<ul> + <li><a href="elementindex_geshi.html">geshi</a></li> +</ul> +<br /> +<div class="index-letter-menu"> + <a class="index-letter" href="elementindex.html#a">a</a> + <a class="index-letter" href="elementindex.html#d">d</a> + <a class="index-letter" href="elementindex.html#e">e</a> + <a class="index-letter" href="elementindex.html#g">g</a> + <a class="index-letter" href="elementindex.html#h">h</a> + <a class="index-letter" href="elementindex.html#l">l</a> + <a class="index-letter" href="elementindex.html#o">o</a> + <a class="index-letter" href="elementindex.html#p">p</a> + <a class="index-letter" href="elementindex.html#r">r</a> + <a class="index-letter" href="elementindex.html#s">s</a> +</div> + + <a name="a"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">a</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">add_keyword</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodadd_keyword">GeSHi::add_keyword()</a> in geshi.php</div> + <div class="index-item-description">Adds a keyword to a keyword group for highlighting</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">add_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodadd_keyword_group">GeSHi::add_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Creates a new keyword group</div> + </dd> + </dl> + <a name="d"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">d</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">disable_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methoddisable_highlighting">GeSHi::disable_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Disables all highlighting</div> + </dd> + </dl> + <a name="e"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">e</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_classes</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_classes">GeSHi::enable_classes()</a> in geshi.php</div> + <div class="index-item-description">Sets whether CSS classes should be used to highlight the source. Default is off, calling this method with no arguments will turn it on</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_highlighting">GeSHi::enable_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Enables all highlighting</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_ids</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_ids">GeSHi::enable_ids()</a> in geshi.php</div> + <div class="index-item-description">Whether CSS IDs should be added to each line</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_important_blocks</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_important_blocks">GeSHi::enable_important_blocks()</a> in geshi.php</div> + <div class="index-item-description">Sets whether context-important blocks are highlighted</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_inner_code_block</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_inner_code_block">GeSHi::enable_inner_code_block()</a> in geshi.php</div> + <div class="index-item-description">Sets whether to force a surrounding block around the highlighted code or not</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_keyword_links</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_keyword_links">GeSHi::enable_keyword_links()</a> in geshi.php</div> + <div class="index-item-description">Turns linking of keywords on or off.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_line_numbers</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_line_numbers">GeSHi::enable_line_numbers()</a> in geshi.php</div> + <div class="index-item-description">Sets whether line numbers should be displayed.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_multiline_span</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_multiline_span">GeSHi::enable_multiline_span()</a> in geshi.php</div> + <div class="index-item-description">Sets wether spans and other HTML markup generated by GeSHi can span over multiple lines or not. Defaults to true to reduce overhead.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_strict_mode</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_strict_mode">GeSHi::enable_strict_mode()</a> in geshi.php</div> + <div class="index-item-description">Enables/disables strict highlighting. Default is off, calling this method without parameters will turn it on. See documentation for more details on strict mode and where to use it.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">error</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methoderror">GeSHi::error()</a> in geshi.php</div> + <div class="index-item-description">Returns an error message associated with the last GeSHi operation, or false if no error has occured</div> + </dd> + </dl> + <a name="g"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">g</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Constructor.png" alt="Method" title="Method" /></title> + <span class="method-title">GeSHi</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodGeSHi">GeSHi::GeSHi()</a> in geshi.php</div> + <div class="index-item-description">Creates a new GeSHi object, with source and language</div> + </dd> + <dt class="field"> + <img src="media/images/Class.png" alt="Class" title="Class" /></title> + GeSHi + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html">GeSHi</a> in geshi.php</div> + <div class="index-item-description">The GeSHi Class.</div> + </dd> + <dt class="field"> + <img src="media/images/Page.png" alt="Page" title="Page" /></title> + <span class="include-title">geshi.php</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html">geshi.php</a> in geshi.php</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_ACTIVE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_ACTIVE">GESHI_ACTIVE</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :active state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_LOWER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_LOWER">GESHI_CAPS_LOWER</a> in geshi.php</div> + <div class="index-item-description">Leave keywords found as the case that they are</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_NO_CHANGE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_NO_CHANGE">GESHI_CAPS_NO_CHANGE</a> in geshi.php</div> + <div class="index-item-description">Lowercase keywords found</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_UPPER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_UPPER">GESHI_CAPS_UPPER</a> in geshi.php</div> + <div class="index-item-description">Uppercase keywords found</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_END_IMPORTANT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_END_IMPORTANT">GESHI_END_IMPORTANT</a> in geshi.php</div> + <div class="index-item-description">The ender for important parts of the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_FANCY_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use fancy line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_DIV</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_DIV">GESHI_HEADER_DIV</a> in geshi.php</div> + <div class="index-item-description">Use a "div" to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_NONE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_NONE">GESHI_HEADER_NONE</a> in geshi.php</div> + <div class="index-item-description">Use nothing to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a> in geshi.php</div> + <div class="index-item-description">Use a "pre" to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE_TABLE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a> in geshi.php</div> + <div class="index-item-description">Use a "table" to surround the source:</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE_VALID</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a> in geshi.php</div> + <div class="index-item-description">Use a pre to wrap lines when line numbers are enabled or to wrap the whole code.</div> + </dd> + <dt class="field"> + <img src="media/images/Function.png" alt="Function" title="Function" /></title> + <span class="method-title">geshi_highlight</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#functiongeshi_highlight">geshi_highlight()</a> in geshi.php</div> + <div class="index-item-description">Easy way to highlight stuff. Behaves just like highlight_string</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HOVER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HOVER">GESHI_HOVER</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :hover state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_LANG_ROOT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_LANG_ROOT">GESHI_LANG_ROOT</a> in geshi.php</div> + <div class="index-item-description">The language file directory for GeSHi</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_LINK</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_LINK">GESHI_LINK</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :link state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_NORMAL_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_NORMAL_LINE_NUMBERS">GESHI_NORMAL_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use normal line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_NO_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use no line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_ROOT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_ROOT">GESHI_ROOT</a> in geshi.php</div> + <div class="index-item-description">The root directory for GeSHi</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_SECURITY_PARANOID</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_SECURITY_PARANOID">GESHI_SECURITY_PARANOID</a> in geshi.php</div> + <div class="index-item-description">Tells GeSHi to be paranoid about security settings</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_START_IMPORTANT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a> in geshi.php</div> + <div class="index-item-description">The starter for important parts of the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_VERSION</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_VERSION">GESHI_VERSION</a> in geshi.php</div> + <div class="index-item-description">The version of this GeSHi file</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_VISITED</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_VISITED">GESHI_VISITED</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :visited state</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_language_name</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_language_name">GeSHi::get_language_name()</a> in geshi.php</div> + <div class="index-item-description">Gets a human-readable language name (thanks to Simon Patterson for the idea :))</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_language_name_from_extension</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_language_name_from_extension">GeSHi::get_language_name_from_extension()</a> in geshi.php</div> + <div class="index-item-description">Given a file extension, this method returns either a valid geshi language name, or the empty string if it couldn't be found</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_multiline_span</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_multiline_span">GeSHi::get_multiline_span()</a> in geshi.php</div> + <div class="index-item-description">Get current setting for multiline spans, see GeSHi->enable_multiline_span().</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_real_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_real_tab_width">GeSHi::get_real_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Returns the tab width to use, based on the current language and user preference</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_stylesheet</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_stylesheet">GeSHi::get_stylesheet()</a> in geshi.php</div> + <div class="index-item-description">Returns a stylesheet for the highlighted code. If $economy mode is true, we only return the stylesheet declarations that matter for this code block instead of the whole thing</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_time</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_time">GeSHi::get_time()</a> in geshi.php</div> + <div class="index-item-description">Gets the time taken to parse the code</div> + </dd> + </dl> + <a name="h"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">h</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">highlight_lines_extra</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodhighlight_lines_extra">GeSHi::highlight_lines_extra()</a> in geshi.php</div> + <div class="index-item-description">Specifies which lines to highlight extra</div> + </dd> + </dl> + <a name="l"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">l</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">load_from_file</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodload_from_file">GeSHi::load_from_file()</a> in geshi.php</div> + <div class="index-item-description">Given a file name, this method loads its contents in, and attempts</div> + </dd> + </dl> + <a name="o"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">o</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">optimize_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodoptimize_keyword_group">GeSHi::optimize_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">compile optimized regexp list for keyword group</div> + </dd> + </dl> + <a name="p"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">p</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">parse_code</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodparse_code">GeSHi::parse_code()</a> in geshi.php</div> + <div class="index-item-description">Returns the code in $this->source, highlighted and surrounded by the nessecary HTML.</div> + </dd> + </dl> + <a name="r"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">r</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">remove_keyword</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodremove_keyword">GeSHi::remove_keyword()</a> in geshi.php</div> + <div class="index-item-description">Removes a keyword from a keyword group</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">remove_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodremove_keyword_group">GeSHi::remove_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Removes a keyword group</div> + </dd> + </dl> + <a name="s"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">s</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_brackets_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_brackets_highlighting">GeSHi::set_brackets_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for brackets</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_brackets_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_brackets_style">GeSHi::set_brackets_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for brackets. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_case_keywords</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_case_keywords">GeSHi::set_case_keywords()</a> in geshi.php</div> + <div class="index-item-description">Sets the case that keywords should use when found. Use the constants:</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_case_sensitivity</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_case_sensitivity">GeSHi::set_case_sensitivity()</a> in geshi.php</div> + <div class="index-item-description">Sets whether a set of keywords are checked for in a case sensitive manner</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_code_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_code_style">GeSHi::set_code_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the actual code. This should be a string</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_comments_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_comments_highlighting">GeSHi::set_comments_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for comment groups</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_comments_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_comments_style">GeSHi::set_comments_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for comment groups. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_encoding</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_encoding">GeSHi::set_encoding()</a> in geshi.php</div> + <div class="index-item-description">Sets the encoding used for htmlspecialchars(), for international support.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_escape_characters_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_escape_characters_highlighting">GeSHi::set_escape_characters_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for escaped characters</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_escape_characters_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_escape_characters_style">GeSHi::set_escape_characters_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for escaped characters. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_footer_content</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_footer_content">GeSHi::set_footer_content()</a> in geshi.php</div> + <div class="index-item-description">Sets the content of the footer block</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_footer_content_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_footer_content_style">GeSHi::set_footer_content_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the footer content</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_content</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_content">GeSHi::set_header_content()</a> in geshi.php</div> + <div class="index-item-description">Sets the content of the header block</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_content_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_content_style">GeSHi::set_header_content_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the header content</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_type</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_type">GeSHi::set_header_type()</a> in geshi.php</div> + <div class="index-item-description">Sets the type of header to be used.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_highlight_lines_extra_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_highlight_lines_extra_style">GeSHi::set_highlight_lines_extra_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for extra-highlighted lines</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_important_styles</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_important_styles">GeSHi::set_important_styles()</a> in geshi.php</div> + <div class="index-item-description">Sets styles for important parts of the code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_keyword_group_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_keyword_group_highlighting">GeSHi::set_keyword_group_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for a keyword group</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_keyword_group_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_keyword_group_style">GeSHi::set_keyword_group_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for a keyword group. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_language</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_language">GeSHi::set_language()</a> in geshi.php</div> + <div class="index-item-description">Sets the language for this object</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_language_path</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_language_path">GeSHi::set_language_path()</a> in geshi.php</div> + <div class="index-item-description">Sets the path to the directory containing the language files. Note that this path is relative to the directory of the script that included geshi.php, NOT geshi.php itself.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_line_ending</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_line_ending">GeSHi::set_line_ending()</a> in geshi.php</div> + <div class="index-item-description">Sets the line-ending</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_line_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_line_style">GeSHi::set_line_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for the line numbers.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_link_styles</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_link_styles">GeSHi::set_link_styles()</a> in geshi.php</div> + <div class="index-item-description">Sets styles for links in code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_link_target</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_link_target">GeSHi::set_link_target()</a> in geshi.php</div> + <div class="index-item-description">Sets the target for links in code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_methods_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_methods_highlighting">GeSHi::set_methods_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for methods</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_methods_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_methods_style">GeSHi::set_methods_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for methods. $key is a number that references the</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_numbers_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_numbers_highlighting">GeSHi::set_numbers_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for numbers</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_numbers_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_numbers_style">GeSHi::set_numbers_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for numbers. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_class</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_class">GeSHi::set_overall_class()</a> in geshi.php</div> + <div class="index-item-description">Sets the overall classname for this block of code. This class can then be used in a stylesheet to style this object's output</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_id</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_id">GeSHi::set_overall_id()</a> in geshi.php</div> + <div class="index-item-description">Sets the overall id for this block of code. This id can then be used in a stylesheet to style this object's output</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_style">GeSHi::set_overall_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for the code that will be outputted when this object is parsed. The style should be a string of valid stylesheet declarations</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_regexps_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_regexps_highlighting">GeSHi::set_regexps_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for regexps</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_regexps_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_regexps_style">GeSHi::set_regexps_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for regexps. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_source</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_source">GeSHi::set_source()</a> in geshi.php</div> + <div class="index-item-description">Sets the source code for this object</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_strings_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_strings_highlighting">GeSHi::set_strings_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for strings</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_strings_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_strings_style">GeSHi::set_strings_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for strings. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_symbols_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_symbols_highlighting">GeSHi::set_symbols_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for symbols</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_symbols_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_symbols_style">GeSHi::set_symbols_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for symbols. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_tab_width">GeSHi::set_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Sets how many spaces a tab is substituted for</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_url_for_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_url_for_keyword_group">GeSHi::set_url_for_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Sets the base URL to be used for keywords</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_use_language_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_use_language_tab_width">GeSHi::set_use_language_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Sets whether or not to use tab-stop width specifed by language</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">start_line_numbers_at</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodstart_line_numbers_at">GeSHi::start_line_numbers_at()</a> in geshi.php</div> + <div class="index-item-description">Sets what number line numbers should start at. Should be a positive integer, and will be converted to one.</div> + </dd> + </dl> + +<div class="index-letter-menu"> + <a class="index-letter" href="elementindex.html#a">a</a> + <a class="index-letter" href="elementindex.html#d">d</a> + <a class="index-letter" href="elementindex.html#e">e</a> + <a class="index-letter" href="elementindex.html#g">g</a> + <a class="index-letter" href="elementindex.html#h">h</a> + <a class="index-letter" href="elementindex.html#l">l</a> + <a class="index-letter" href="elementindex.html#o">o</a> + <a class="index-letter" href="elementindex.html#p">p</a> + <a class="index-letter" href="elementindex.html#r">r</a> + <a class="index-letter" href="elementindex.html#s">s</a> +</div> </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex_geshi.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex_geshi.html new file mode 100644 index 00000000..f3193965 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/elementindex_geshi.html @@ -0,0 +1,864 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title></title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <a name="top"></a> +<h2>[geshi] element index</h2> +<a href="elementindex.html">All elements</a> +<br /> +<div class="index-letter-menu"> + <a class="index-letter" href="elementindex_geshi.html#a">a</a> + <a class="index-letter" href="elementindex_geshi.html#d">d</a> + <a class="index-letter" href="elementindex_geshi.html#e">e</a> + <a class="index-letter" href="elementindex_geshi.html#g">g</a> + <a class="index-letter" href="elementindex_geshi.html#h">h</a> + <a class="index-letter" href="elementindex_geshi.html#l">l</a> + <a class="index-letter" href="elementindex_geshi.html#o">o</a> + <a class="index-letter" href="elementindex_geshi.html#p">p</a> + <a class="index-letter" href="elementindex_geshi.html#r">r</a> + <a class="index-letter" href="elementindex_geshi.html#s">s</a> +</div> + + <a name="a"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">a</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">add_keyword</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodadd_keyword">GeSHi::add_keyword()</a> in geshi.php</div> + <div class="index-item-description">Adds a keyword to a keyword group for highlighting</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">add_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodadd_keyword_group">GeSHi::add_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Creates a new keyword group</div> + </dd> + </dl> + <a name="d"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">d</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">disable_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methoddisable_highlighting">GeSHi::disable_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Disables all highlighting</div> + </dd> + </dl> + <a name="e"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">e</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_classes</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_classes">GeSHi::enable_classes()</a> in geshi.php</div> + <div class="index-item-description">Sets whether CSS classes should be used to highlight the source. Default is off, calling this method with no arguments will turn it on</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_highlighting">GeSHi::enable_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Enables all highlighting</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_ids</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_ids">GeSHi::enable_ids()</a> in geshi.php</div> + <div class="index-item-description">Whether CSS IDs should be added to each line</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_important_blocks</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_important_blocks">GeSHi::enable_important_blocks()</a> in geshi.php</div> + <div class="index-item-description">Sets whether context-important blocks are highlighted</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_inner_code_block</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_inner_code_block">GeSHi::enable_inner_code_block()</a> in geshi.php</div> + <div class="index-item-description">Sets whether to force a surrounding block around the highlighted code or not</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_keyword_links</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_keyword_links">GeSHi::enable_keyword_links()</a> in geshi.php</div> + <div class="index-item-description">Turns linking of keywords on or off.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_line_numbers</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_line_numbers">GeSHi::enable_line_numbers()</a> in geshi.php</div> + <div class="index-item-description">Sets whether line numbers should be displayed.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_multiline_span</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_multiline_span">GeSHi::enable_multiline_span()</a> in geshi.php</div> + <div class="index-item-description">Sets wether spans and other HTML markup generated by GeSHi can span over multiple lines or not. Defaults to true to reduce overhead.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">enable_strict_mode</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodenable_strict_mode">GeSHi::enable_strict_mode()</a> in geshi.php</div> + <div class="index-item-description">Enables/disables strict highlighting. Default is off, calling this method without parameters will turn it on. See documentation for more details on strict mode and where to use it.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">error</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methoderror">GeSHi::error()</a> in geshi.php</div> + <div class="index-item-description">Returns an error message associated with the last GeSHi operation, or false if no error has occured</div> + </dd> + </dl> + <a name="g"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">g</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Constructor.png" alt="Method" title="Method" /></title> + <span class="method-title">GeSHi</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodGeSHi">GeSHi::GeSHi()</a> in geshi.php</div> + <div class="index-item-description">Creates a new GeSHi object, with source and language</div> + </dd> + <dt class="field"> + <img src="media/images/Class.png" alt="Class" title="Class" /></title> + GeSHi + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html">GeSHi</a> in geshi.php</div> + <div class="index-item-description">The GeSHi Class.</div> + </dd> + <dt class="field"> + <img src="media/images/Page.png" alt="Page" title="Page" /></title> + <span class="include-title">geshi.php</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html">geshi.php</a> in geshi.php</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_ACTIVE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_ACTIVE">GESHI_ACTIVE</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :active state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_LOWER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_LOWER">GESHI_CAPS_LOWER</a> in geshi.php</div> + <div class="index-item-description">Leave keywords found as the case that they are</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_NO_CHANGE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_NO_CHANGE">GESHI_CAPS_NO_CHANGE</a> in geshi.php</div> + <div class="index-item-description">Lowercase keywords found</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_CAPS_UPPER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_CAPS_UPPER">GESHI_CAPS_UPPER</a> in geshi.php</div> + <div class="index-item-description">Uppercase keywords found</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_END_IMPORTANT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_END_IMPORTANT">GESHI_END_IMPORTANT</a> in geshi.php</div> + <div class="index-item-description">The ender for important parts of the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_FANCY_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_FANCY_LINE_NUMBERS">GESHI_FANCY_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use fancy line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_DIV</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_DIV">GESHI_HEADER_DIV</a> in geshi.php</div> + <div class="index-item-description">Use a "div" to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_NONE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_NONE">GESHI_HEADER_NONE</a> in geshi.php</div> + <div class="index-item-description">Use nothing to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE">GESHI_HEADER_PRE</a> in geshi.php</div> + <div class="index-item-description">Use a "pre" to surround the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE_TABLE</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_TABLE">GESHI_HEADER_PRE_TABLE</a> in geshi.php</div> + <div class="index-item-description">Use a "table" to surround the source:</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HEADER_PRE_VALID</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HEADER_PRE_VALID">GESHI_HEADER_PRE_VALID</a> in geshi.php</div> + <div class="index-item-description">Use a pre to wrap lines when line numbers are enabled or to wrap the whole code.</div> + </dd> + <dt class="field"> + <img src="media/images/Function.png" alt="Function" title="Function" /></title> + <span class="method-title">geshi_highlight</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#functiongeshi_highlight">geshi_highlight()</a> in geshi.php</div> + <div class="index-item-description">Easy way to highlight stuff. Behaves just like highlight_string</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_HOVER</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_HOVER">GESHI_HOVER</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :hover state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_LANG_ROOT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_LANG_ROOT">GESHI_LANG_ROOT</a> in geshi.php</div> + <div class="index-item-description">The language file directory for GeSHi</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_LINK</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_LINK">GESHI_LINK</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :link state</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_NORMAL_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_NORMAL_LINE_NUMBERS">GESHI_NORMAL_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use normal line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_NO_LINE_NUMBERS</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_NO_LINE_NUMBERS">GESHI_NO_LINE_NUMBERS</a> in geshi.php</div> + <div class="index-item-description">Use no line numbers when building the result</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_ROOT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_ROOT">GESHI_ROOT</a> in geshi.php</div> + <div class="index-item-description">The root directory for GeSHi</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_SECURITY_PARANOID</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_SECURITY_PARANOID">GESHI_SECURITY_PARANOID</a> in geshi.php</div> + <div class="index-item-description">Tells GeSHi to be paranoid about security settings</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_START_IMPORTANT</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_START_IMPORTANT">GESHI_START_IMPORTANT</a> in geshi.php</div> + <div class="index-item-description">The starter for important parts of the source</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_VERSION</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_VERSION">GESHI_VERSION</a> in geshi.php</div> + <div class="index-item-description">The version of this GeSHi file</div> + </dd> + <dt class="field"> + <img src="media/images/Constant.png" alt="Constant" title="Constant" /></title> + <span class="const-title">GESHI_VISITED</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/_geshi.php.html#defineGESHI_VISITED">GESHI_VISITED</a> in geshi.php</div> + <div class="index-item-description">Links in the source in the :visited state</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_language_name</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_language_name">GeSHi::get_language_name()</a> in geshi.php</div> + <div class="index-item-description">Gets a human-readable language name (thanks to Simon Patterson for the idea :))</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_language_name_from_extension</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_language_name_from_extension">GeSHi::get_language_name_from_extension()</a> in geshi.php</div> + <div class="index-item-description">Given a file extension, this method returns either a valid geshi language name, or the empty string if it couldn't be found</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_multiline_span</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_multiline_span">GeSHi::get_multiline_span()</a> in geshi.php</div> + <div class="index-item-description">Get current setting for multiline spans, see GeSHi->enable_multiline_span().</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_real_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_real_tab_width">GeSHi::get_real_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Returns the tab width to use, based on the current language and user preference</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_stylesheet</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_stylesheet">GeSHi::get_stylesheet()</a> in geshi.php</div> + <div class="index-item-description">Returns a stylesheet for the highlighted code. If $economy mode is true, we only return the stylesheet declarations that matter for this code block instead of the whole thing</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">get_time</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodget_time">GeSHi::get_time()</a> in geshi.php</div> + <div class="index-item-description">Gets the time taken to parse the code</div> + </dd> + </dl> + <a name="h"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">h</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">highlight_lines_extra</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodhighlight_lines_extra">GeSHi::highlight_lines_extra()</a> in geshi.php</div> + <div class="index-item-description">Specifies which lines to highlight extra</div> + </dd> + </dl> + <a name="l"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">l</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">load_from_file</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodload_from_file">GeSHi::load_from_file()</a> in geshi.php</div> + <div class="index-item-description">Given a file name, this method loads its contents in, and attempts</div> + </dd> + </dl> + <a name="o"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">o</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">optimize_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodoptimize_keyword_group">GeSHi::optimize_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">compile optimized regexp list for keyword group</div> + </dd> + </dl> + <a name="p"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">p</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">parse_code</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodparse_code">GeSHi::parse_code()</a> in geshi.php</div> + <div class="index-item-description">Returns the code in $this->source, highlighted and surrounded by the nessecary HTML.</div> + </dd> + </dl> + <a name="r"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">r</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">remove_keyword</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodremove_keyword">GeSHi::remove_keyword()</a> in geshi.php</div> + <div class="index-item-description">Removes a keyword from a keyword group</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">remove_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodremove_keyword_group">GeSHi::remove_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Removes a keyword group</div> + </dd> + </dl> + <a name="s"></a> + <div class="index-letter-section"> + <div style="float: left" class="index-letter-title">s</div> + <div style="float: right"><a href="#top">top</a></div> + <div style="clear: both"></div> + </div> + <dl> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_brackets_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_brackets_highlighting">GeSHi::set_brackets_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for brackets</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_brackets_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_brackets_style">GeSHi::set_brackets_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for brackets. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_case_keywords</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_case_keywords">GeSHi::set_case_keywords()</a> in geshi.php</div> + <div class="index-item-description">Sets the case that keywords should use when found. Use the constants:</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_case_sensitivity</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_case_sensitivity">GeSHi::set_case_sensitivity()</a> in geshi.php</div> + <div class="index-item-description">Sets whether a set of keywords are checked for in a case sensitive manner</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_code_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_code_style">GeSHi::set_code_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the actual code. This should be a string</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_comments_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_comments_highlighting">GeSHi::set_comments_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for comment groups</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_comments_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_comments_style">GeSHi::set_comments_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for comment groups. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_encoding</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_encoding">GeSHi::set_encoding()</a> in geshi.php</div> + <div class="index-item-description">Sets the encoding used for htmlspecialchars(), for international support.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_escape_characters_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_escape_characters_highlighting">GeSHi::set_escape_characters_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for escaped characters</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_escape_characters_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_escape_characters_style">GeSHi::set_escape_characters_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for escaped characters. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_footer_content</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_footer_content">GeSHi::set_footer_content()</a> in geshi.php</div> + <div class="index-item-description">Sets the content of the footer block</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_footer_content_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_footer_content_style">GeSHi::set_footer_content_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the footer content</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_content</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_content">GeSHi::set_header_content()</a> in geshi.php</div> + <div class="index-item-description">Sets the content of the header block</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_content_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_content_style">GeSHi::set_header_content_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for the header content</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_header_type</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_header_type">GeSHi::set_header_type()</a> in geshi.php</div> + <div class="index-item-description">Sets the type of header to be used.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_highlight_lines_extra_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_highlight_lines_extra_style">GeSHi::set_highlight_lines_extra_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for extra-highlighted lines</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_important_styles</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_important_styles">GeSHi::set_important_styles()</a> in geshi.php</div> + <div class="index-item-description">Sets styles for important parts of the code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_keyword_group_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_keyword_group_highlighting">GeSHi::set_keyword_group_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for a keyword group</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_keyword_group_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_keyword_group_style">GeSHi::set_keyword_group_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the style for a keyword group. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_language</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_language">GeSHi::set_language()</a> in geshi.php</div> + <div class="index-item-description">Sets the language for this object</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_language_path</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_language_path">GeSHi::set_language_path()</a> in geshi.php</div> + <div class="index-item-description">Sets the path to the directory containing the language files. Note that this path is relative to the directory of the script that included geshi.php, NOT geshi.php itself.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_line_ending</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_line_ending">GeSHi::set_line_ending()</a> in geshi.php</div> + <div class="index-item-description">Sets the line-ending</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_line_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_line_style">GeSHi::set_line_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for the line numbers.</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_link_styles</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_link_styles">GeSHi::set_link_styles()</a> in geshi.php</div> + <div class="index-item-description">Sets styles for links in code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_link_target</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_link_target">GeSHi::set_link_target()</a> in geshi.php</div> + <div class="index-item-description">Sets the target for links in code</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_methods_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_methods_highlighting">GeSHi::set_methods_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for methods</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_methods_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_methods_style">GeSHi::set_methods_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for methods. $key is a number that references the</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_numbers_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_numbers_highlighting">GeSHi::set_numbers_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for numbers</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_numbers_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_numbers_style">GeSHi::set_numbers_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for numbers. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_class</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_class">GeSHi::set_overall_class()</a> in geshi.php</div> + <div class="index-item-description">Sets the overall classname for this block of code. This class can then be used in a stylesheet to style this object's output</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_id</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_id">GeSHi::set_overall_id()</a> in geshi.php</div> + <div class="index-item-description">Sets the overall id for this block of code. This id can then be used in a stylesheet to style this object's output</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_overall_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_overall_style">GeSHi::set_overall_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for the code that will be outputted when this object is parsed. The style should be a string of valid stylesheet declarations</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_regexps_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_regexps_highlighting">GeSHi::set_regexps_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for regexps</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_regexps_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_regexps_style">GeSHi::set_regexps_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for regexps. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_source</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_source">GeSHi::set_source()</a> in geshi.php</div> + <div class="index-item-description">Sets the source code for this object</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_strings_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_strings_highlighting">GeSHi::set_strings_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for strings</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_strings_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_strings_style">GeSHi::set_strings_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for strings. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_symbols_highlighting</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_symbols_highlighting">GeSHi::set_symbols_highlighting()</a> in geshi.php</div> + <div class="index-item-description">Turns highlighting on/off for symbols</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_symbols_style</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_symbols_style">GeSHi::set_symbols_style()</a> in geshi.php</div> + <div class="index-item-description">Sets the styles for symbols. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_tab_width">GeSHi::set_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Sets how many spaces a tab is substituted for</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_url_for_keyword_group</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_url_for_keyword_group">GeSHi::set_url_for_keyword_group()</a> in geshi.php</div> + <div class="index-item-description">Sets the base URL to be used for keywords</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">set_use_language_tab_width</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodset_use_language_tab_width">GeSHi::set_use_language_tab_width()</a> in geshi.php</div> + <div class="index-item-description">Sets whether or not to use tab-stop width specifed by language</div> + </dd> + <dt class="field"> + <img src="media/images/Method.png" alt="Method" title="Method" /></title> + <span class="method-title">start_line_numbers_at</span> + </dt> + <dd class="index-item-body"> + <div class="index-item-details"><a href="geshi/core/GeSHi.html#methodstart_line_numbers_at">GeSHi::start_line_numbers_at()</a> in geshi.php</div> + <div class="index-item-description">Sets what number line numbers should start at. Should be a positive integer, and will be converted to one.</div> + </dd> + </dl> + +<div class="index-letter-menu"> + <a class="index-letter" href="elementindex_geshi.html#a">a</a> + <a class="index-letter" href="elementindex_geshi.html#d">d</a> + <a class="index-letter" href="elementindex_geshi.html#e">e</a> + <a class="index-letter" href="elementindex_geshi.html#g">g</a> + <a class="index-letter" href="elementindex_geshi.html#h">h</a> + <a class="index-letter" href="elementindex_geshi.html#l">l</a> + <a class="index-letter" href="elementindex_geshi.html#o">o</a> + <a class="index-letter" href="elementindex_geshi.html#p">p</a> + <a class="index-letter" href="elementindex_geshi.html#r">r</a> + <a class="index-letter" href="elementindex_geshi.html#s">s</a> +</div> </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/errors.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/errors.html new file mode 100644 index 00000000..c917f038 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/errors.html @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title>phpDocumentor Parser Errors and Warnings</title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <a href="#Post-parsing">Post-parsing</a><br> +<a name="geshi.php"></a> +<h1>geshi.php</h1> +<h2>Errors:</h2><br> +<b>Error on line 569</b> - DocBlock has multiple @access tags, illegal. ignoring additional tag "@access private"<br> + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:53 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/GeSHi.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/GeSHi.html new file mode 100644 index 00000000..a8ccc7d0 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/GeSHi.html @@ -0,0 +1,2676 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title>Docs For Class GeSHi</title> + <link rel="stylesheet" href="../../media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <div class="page-body"> +<h2 class="class-name"><img src="../../media/images/Class_logo.png" + alt=" Class" + title=" Class" + style="vertical-align: middle"> GeSHi</h2> + +<a name="sec-description"></a> +<div class="info-box"> + <div class="info-box-title">Description</div> + <div class="nav-bar"> + <span class="disabled">Description</span> | + <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) + + </div> + <div class="info-box-body"> + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The GeSHi Class.</p> +<p class="description"><p>Please refer to the documentation for GeSHi 1.0.X that is available at http://qbnz.com/highlighter/documentation.php for more information about how to use this class.</p></p> + <ul class="tags"> + <li><span class="field">author:</span> Nigel McNie <<a href="mailto:nigel@geshi.org">nigel@geshi.org</a>>, Benny Baumann <BenBE@omorphia.de></li> + <li><span class="field">copyright:</span> (C) 2004 - 2007 Nigel McNie, (C) 2007 - 2008 Benny Baumann</li> + </ul> + <p class="notes"> + Located in <a class="field" href="_geshi.php.html">/geshi.php</a> (line <span class="field"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a253">253</a></span>) + </p> + + + <pre></pre> + + </div> +</div> + + + + + <a name="sec-method-summary"></a> + <div class="info-box"> + <div class="info-box-title">Method Summary</span></div> + <div class="nav-bar"> + <a href="#sec-description">Description</a> | + <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) + </div> + <div class="info-box-body"> + <div class="method-summary"> + <div class="method-definition"> + <img src="../../media/images/Constructor.png" alt=" "/> + <span class="method-result">GeSHi</span> + <a href="#GeSHi" title="details" class="method-name">GeSHi</a> + ([<span class="var-type">string</span> <span class="var-name">$source</span> = <span class="var-default">''</span>], [<span class="var-type">string</span> <span class="var-name">$language</span> = <span class="var-default">''</span>], [<span class="var-type">string</span> <span class="var-name">$path</span> = <span class="var-default">''</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#add_keyword" title="details" class="method-name">add_keyword</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$word</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#add_keyword_group" title="details" class="method-name">add_keyword_group</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$styles</span>, [<span class="var-type">boolean</span> <span class="var-name">$case_sensitive</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$words</span> = <span class="var-default">array()</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#disable_highlighting" title="details" class="method-name">disable_highlighting</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_classes" title="details" class="method-name">enable_classes</a> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_highlighting" title="details" class="method-name">enable_highlighting</a> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_ids" title="details" class="method-name">enable_ids</a> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_important_blocks" title="details" class="method-name">enable_important_blocks</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_inner_code_block" title="details" class="method-name">enable_inner_code_block</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_keyword_links" title="details" class="method-name">enable_keyword_links</a> + ([<span class="var-type">boolean</span> <span class="var-name">$enable</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_line_numbers" title="details" class="method-name">enable_line_numbers</a> + (<span class="var-type">int</span> <span class="var-name">$flag</span>, [<span class="var-type">int</span> <span class="var-name">$nth_row</span> = <span class="var-default">5</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_multiline_span" title="details" class="method-name">enable_multiline_span</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#enable_strict_mode" title="details" class="method-name">enable_strict_mode</a> + ([<span class="var-type">boolean</span> <span class="var-name">$mode</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">string|false</span> + <a href="#error" title="details" class="method-name">error</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">string</span> + <a href="#get_language_name" title="details" class="method-name">get_language_name</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#get_language_name_from_extension" title="details" class="method-name">get_language_name_from_extension</a> + (<span class="var-type">string</span> <span class="var-name">$extension</span>, [<span class="var-type">array</span> <span class="var-name">$lookup</span> = <span class="var-default">array()</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">bool</span> + <a href="#get_multiline_span" title="details" class="method-name">get_multiline_span</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">int</span> + <a href="#get_real_tab_width" title="details" class="method-name">get_real_tab_width</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">string</span> + <a href="#get_stylesheet" title="details" class="method-name">get_stylesheet</a> + ([<span class="var-type">boolean</span> <span class="var-name">$economy_mode</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">double</span> + <a href="#get_time" title="details" class="method-name">get_time</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#highlight_lines_extra" title="details" class="method-name">highlight_lines_extra</a> + (<span class="var-type">mixed</span> <span class="var-name">$lines</span>, [<span class="var-type">string</span> <span class="var-name">$style</span> = <span class="var-default">null</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#load_from_file" title="details" class="method-name">load_from_file</a> + (<span class="var-type">string</span> <span class="var-name">$file_name</span>, [<span class="var-type">array</span> <span class="var-name">$lookup</span> = <span class="var-default">array()</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#optimize_keyword_group" title="details" class="method-name">optimize_keyword_group</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#parse_code" title="details" class="method-name">parse_code</a> + () + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#remove_keyword" title="details" class="method-name">remove_keyword</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$word</span>, [<span class="var-type">bool</span> <span class="var-name">$recompile</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#remove_keyword_group" title="details" class="method-name">remove_keyword_group</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_brackets_highlighting" title="details" class="method-name">set_brackets_highlighting</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_brackets_style" title="details" class="method-name">set_brackets_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_case_keywords" title="details" class="method-name">set_case_keywords</a> + (<span class="var-type">int</span> <span class="var-name">$case</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_case_sensitivity" title="details" class="method-name">set_case_sensitivity</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$case</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_code_style" title="details" class="method-name">set_code_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_comments_highlighting" title="details" class="method-name">set_comments_highlighting</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, [<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_comments_style" title="details" class="method-name">set_comments_style</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_encoding" title="details" class="method-name">set_encoding</a> + (<span class="var-type">string</span> <span class="var-name">$encoding</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_escape_characters_highlighting" title="details" class="method-name">set_escape_characters_highlighting</a> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_escape_characters_style" title="details" class="method-name">set_escape_characters_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_footer_content" title="details" class="method-name">set_footer_content</a> + (<span class="var-type">string</span> <span class="var-name">$content</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_footer_content_style" title="details" class="method-name">set_footer_content_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_header_content" title="details" class="method-name">set_header_content</a> + (<span class="var-type">string</span> <span class="var-name">$content</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_header_content_style" title="details" class="method-name">set_header_content_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_header_type" title="details" class="method-name">set_header_type</a> + (<span class="var-type">int</span> <span class="var-name">$type</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_highlight_lines_extra_style" title="details" class="method-name">set_highlight_lines_extra_style</a> + (<span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_important_styles" title="details" class="method-name">set_important_styles</a> + (<span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_keyword_group_highlighting" title="details" class="method-name">set_keyword_group_highlighting</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, [<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_keyword_group_style" title="details" class="method-name">set_keyword_group_style</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_language" title="details" class="method-name">set_language</a> + (<span class="var-type">string</span> <span class="var-name">$language</span>, [<span class="var-type"></span> <span class="var-name">$force_reset</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_language_path" title="details" class="method-name">set_language_path</a> + (<span class="var-type">string</span> <span class="var-name">$path</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_line_ending" title="details" class="method-name">set_line_ending</a> + (<span class="var-type">string</span> <span class="var-name">$line_ending</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_line_style" title="details" class="method-name">set_line_style</a> + (<span class="var-type">string</span> <span class="var-name">$style1</span>, [<span class="var-type">string|boolean</span> <span class="var-name">$style2</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_link_styles" title="details" class="method-name">set_link_styles</a> + (<span class="var-type">int</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_link_target" title="details" class="method-name">set_link_target</a> + (<span class="var-type">string</span> <span class="var-name">$target</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_methods_highlighting" title="details" class="method-name">set_methods_highlighting</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_methods_style" title="details" class="method-name">set_methods_style</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_numbers_highlighting" title="details" class="method-name">set_numbers_highlighting</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_numbers_style" title="details" class="method-name">set_numbers_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_overall_class" title="details" class="method-name">set_overall_class</a> + (<span class="var-type">string</span> <span class="var-name">$class</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_overall_id" title="details" class="method-name">set_overall_id</a> + (<span class="var-type">string</span> <span class="var-name">$id</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_overall_style" title="details" class="method-name">set_overall_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_regexps_highlighting" title="details" class="method-name">set_regexps_highlighting</a> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_regexps_style" title="details" class="method-name">set_regexps_style</a> + (<span class="var-type">string</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$style</span>, [<span class="var-type"></span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_source" title="details" class="method-name">set_source</a> + (<span class="var-type">string</span> <span class="var-name">$source</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_strings_highlighting" title="details" class="method-name">set_strings_highlighting</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_strings_style" title="details" class="method-name">set_strings_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_symbols_highlighting" title="details" class="method-name">set_symbols_highlighting</a> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_symbols_style" title="details" class="method-name">set_symbols_style</a> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$group</span> = <span class="var-default">0</span>]) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_tab_width" title="details" class="method-name">set_tab_width</a> + (<span class="var-type">int</span> <span class="var-name">$width</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_url_for_keyword_group" title="details" class="method-name">set_url_for_keyword_group</a> + (<span class="var-type">int</span> <span class="var-name">$group</span>, <span class="var-type">string</span> <span class="var-name">$url</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#set_use_language_tab_width" title="details" class="method-name">set_use_language_tab_width</a> + (<span class="var-type">boolean</span> <span class="var-name">$use</span>) + </div> + <div class="method-definition"> + <img src="../../media/images/Method.png" alt=" "/> + <span class="method-result">void</span> + <a href="#start_line_numbers_at" title="details" class="method-name">start_line_numbers_at</a> + (<span class="var-type">int</span> <span class="var-name">$number</span>) + </div> + </div> + </div> + </div> + + + <a name="sec-methods"></a> + <div class="info-box"> + <div class="info-box-title">Methods</div> + <div class="nav-bar"> + <a href="#sec-description">Description</a> | + <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) + + </div> + <div class="info-box-body"> + <A NAME='method_detail'></A> +<a name="methodGeSHi" id="GeSHi"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Constructor.png" /> + <span class="method-title">Constructor GeSHi</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a591">591</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Creates a new GeSHi object, with source and language</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">GeSHi</span> + <span class="method-name"> + GeSHi + </span> + ([<span class="var-type">string</span> <span class="var-name">$source</span> = <span class="var-default">''</span>], [<span class="var-type">string</span> <span class="var-name">$language</span> = <span class="var-default">''</span>], [<span class="var-type">string</span> <span class="var-name">$path</span> = <span class="var-default">''</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$source</span><span class="var-description">: The source code to highlight</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$language</span><span class="var-description">: The language to highlight the source with</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$path</span><span class="var-description">: The path to the language file directory. <strong>This + is deprecated!</strong> I've backported the auto path detection from the 1.1.X dev branch, so now it should be automatically set correctly. If you have renamed the language directory however, you will still need to set the path using this parameter or GeSHi->set_language_path()</span> </li> + </ul> + + + </div> +<a name="methodadd_keyword" id="add_keyword"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">add_keyword</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1441">1441</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Adds a keyword to a keyword group for highlighting</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + add_keyword + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$word</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to add the keyword to</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$word</span><span class="var-description">: The word to add to the keyword group</span> </li> + </ul> + + + </div> +<a name="methodadd_keyword_group" id="add_keyword_group"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">add_keyword_group</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1487">1487</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Creates a new keyword group</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + add_keyword_group + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$styles</span>, [<span class="var-type">boolean</span> <span class="var-name">$case_sensitive</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$words</span> = <span class="var-default">array()</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to create</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$styles</span><span class="var-description">: The styles for the keyword group</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$case_sensitive</span><span class="var-description">: Whether the keyword group is case sensitive ornot</span> </li> + <li> + <span class="var-type">array</span> + <span class="var-name">$words</span><span class="var-description">: The words to use for the keyword group</span> </li> + </ul> + + + </div> +<a name="methoddisable_highlighting" id="disable_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">disable_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1288">1288</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Disables all highlighting</p> + <ul class="tags"> + <li><span class="field">deprecated:</span> In favour of enable_highlighting</li> + <li><span class="field">todo:</span> Rewrite with array traversal</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + disable_highlighting + </span> + () + </div> + + + + </div> +<a name="methodenable_classes" id="enable_classes"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_classes</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a805">805</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether CSS classes should be used to highlight the source. Default is off, calling this method with no arguments will turn it on</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_classes + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn classes on or not</span> </li> + </ul> + + + </div> +<a name="methodenable_highlighting" id="enable_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1302">1302</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Enables all highlighting</p> +<p class="description"><p>The optional flag parameter was added in version 1.0.7.21 and can be used to enable (true) or disable (false) all highlighting.</p></p> + <ul class="tags"> + <li><span class="field">todo:</span> Rewrite with array traversal</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_highlighting + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: A flag specifying whether to enable or disable all highlighting</span> </li> + </ul> + + + </div> +<a name="methodenable_ids" id="enable_ids"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_ids</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1652">1652</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Whether CSS IDs should be added to each line</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_ids + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: If true, IDs will be added to each line.</span> </li> + </ul> + + + </div> +<a name="methodenable_important_blocks" id="enable_important_blocks"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_important_blocks</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1642">1642</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether context-important blocks are highlighted</p> + <ul class="tags"> + <li><span class="field">deprecated:</span> </li> + <li><span class="field">todo:</span> REMOVE THIS SHIZ FROM GESHI!</li> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_important_blocks + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Tells whether to enable or disable highlighting of important blocks</span> </li> + </ul> + + + </div> +<a name="methodenable_inner_code_block" id="enable_inner_code_block"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_inner_code_block</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1581">1581</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether to force a surrounding block around the highlighted code or not</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.7.20</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_inner_code_block + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Tells whether to enable or disable this feature</span> </li> + </ul> + + + </div> +<a name="methodenable_keyword_links" id="enable_keyword_links"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_keyword_links</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1756">1756</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns linking of keywords on or off.</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_keyword_links + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$enable</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$enable</span><span class="var-description">: If true, links will be added to keywords</span> </li> + </ul> + + + </div> +<a name="methodenable_line_numbers" id="enable_line_numbers"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_line_numbers</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a878">878</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether line numbers should be displayed.</p> +<p class="description"><p>Valid values for the first parameter are:</p><p><ul><li>GESHI_NO_LINE_NUMBERS: Line numbers will not be displayed</li><li>GESHI_NORMAL_LINE_NUMBERS: Line numbers will be displayed</li><li>GESHI_FANCY_LINE_NUMBERS: Fancy line numbers will be displayed</li></ul> For fancy line numbers, the second parameter is used to signal which lines are to be fancy. For example, if the value of this parameter is 5 then every 5th line will be fancy.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_line_numbers + </span> + (<span class="var-type">int</span> <span class="var-name">$flag</span>, [<span class="var-type">int</span> <span class="var-name">$nth_row</span> = <span class="var-default">5</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$flag</span><span class="var-description">: How line numbers should be displayed</span> </li> + <li> + <span class="var-type">int</span> + <span class="var-name">$nth_row</span><span class="var-description">: Defines which lines are fancy</span> </li> + </ul> + + + </div> +<a name="methodenable_multiline_span" id="enable_multiline_span"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_multiline_span</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a896">896</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets wether spans and other HTML markup generated by GeSHi can span over multiple lines or not. Defaults to true to reduce overhead.</p> +<p class="description"><p>Set it to false if you want to manipulate the output or manually display the code in an ordered list.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.7.22</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_multiline_span + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Wether multiline spans are allowed or not</span> </li> + </ul> + + + </div> +<a name="methodenable_strict_mode" id="enable_strict_mode"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">enable_strict_mode</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1275">1275</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Enables/disables strict highlighting. Default is off, calling this method without parameters will turn it on. See documentation for more details on strict mode and where to use it.</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + enable_strict_mode + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$mode</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$mode</span><span class="var-description">: Whether to enable strict mode or not</span> </li> + </ul> + + + </div> +<a name="methoderror" id="error"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">error</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a608">608</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Returns an error message associated with the last GeSHi operation, or false if no error has occured</p> + <ul class="tags"> + <li><span class="field">return:</span> An error message if there has been an error, else false</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">string|false</span> + <span class="method-name"> + error + </span> + () + </div> + + + + </div> +<a name="methodget_language_name" id="get_language_name"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_language_name</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a632">632</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Gets a human-readable language name (thanks to Simon Patterson for the idea :))</p> + <ul class="tags"> + <li><span class="field">return:</span> The name for the current language</li> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">string</span> + <span class="method-name"> + get_language_name + </span> + () + </div> + + + + </div> +<a name="methodget_language_name_from_extension" id="get_language_name_from_extension"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_language_name_from_extension</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1329">1329</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Given a file extension, this method returns either a valid geshi language name, or the empty string if it couldn't be found</p> + <ul class="tags"> + <li><span class="field">todo:</span> Re-think about how this method works (maybe make it private and/or make it a extension->lang lookup?)</li> + <li><span class="field">todo:</span> static?</li> + <li><span class="field">since:</span> 1.0.5</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + get_language_name_from_extension + </span> + (<span class="var-type">string</span> <span class="var-name">$extension</span>, [<span class="var-type">array</span> <span class="var-name">$lookup</span> = <span class="var-default">array()</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$extension</span><span class="var-description">: The extension to get a language name for</span> </li> + <li> + <span class="var-type">array</span> + <span class="var-name">$lookup</span><span class="var-description">: A lookup array to use instead of the default one</span> </li> + </ul> + + + </div> +<a name="methodget_multiline_span" id="get_multiline_span"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_multiline_span</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a906">906</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Get current setting for multiline spans, see GeSHi->enable_multiline_span().</p> + <ul class="tags"> + <li><span class="field">see:</span> <a href="../../geshi/core/GeSHi.html#methodenable_multiline_span">GeSHi::enable_multiline_span()</a></li> + </ul> + + <div class="method-signature"> + <span class="method-result">bool</span> + <span class="method-name"> + get_multiline_span + </span> + () + </div> + + + + </div> +<a name="methodget_real_tab_width" id="get_real_tab_width"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_real_tab_width</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1258">1258</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Returns the tab width to use, based on the current language and user preference</p> + <ul class="tags"> + <li><span class="field">return:</span> Tab width</li> + <li><span class="field">since:</span> 1.0.7.20</li> + </ul> + + <div class="method-signature"> + <span class="method-result">int</span> + <span class="method-name"> + get_real_tab_width + </span> + () + </div> + + + + </div> +<a name="methodget_stylesheet" id="get_stylesheet"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_stylesheet</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a4177">4177</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Returns a stylesheet for the highlighted code. If $economy mode is true, we only return the stylesheet declarations that matter for this code block instead of the whole thing</p> + <ul class="tags"> + <li><span class="field">return:</span> A stylesheet built on the data for the current language</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">string</span> + <span class="method-name"> + get_stylesheet + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$economy_mode</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$economy_mode</span><span class="var-description">: Whether to use economy mode or not</span> </li> + </ul> + + + </div> +<a name="methodget_time" id="get_time"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">get_time</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a3524">3524</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Gets the time taken to parse the code</p> + <ul class="tags"> + <li><span class="field">return:</span> The time taken to parse the code</li> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">double</span> + <span class="method-name"> + get_time + </span> + () + </div> + + + + </div> +<a name="methodhighlight_lines_extra" id="highlight_lines_extra"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">highlight_lines_extra</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1670">1670</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Specifies which lines to highlight extra</p> +<p class="description"><p>The extra style parameter was added in 1.0.7.21.</p></p> + <ul class="tags"> + <li><span class="field">todo:</span> Some data replication here that could be cut down on</li> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + highlight_lines_extra + </span> + (<span class="var-type">mixed</span> <span class="var-name">$lines</span>, [<span class="var-type">string</span> <span class="var-name">$style</span> = <span class="var-default">null</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">mixed</span> + <span class="var-name">$lines</span><span class="var-description">: An array of line numbers to highlight, or just a line number on its own.</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: A string specifying the style to use for this line. If null is specified, the default style is used. If false is specified, the line will be removed from special highlighting</span> </li> + </ul> + + + </div> +<a name="methodload_from_file" id="load_from_file"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">load_from_file</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1425">1425</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Given a file name, this method loads its contents in, and attempts</p> +<p class="description"><p>to set the language automatically. An optional lookup table can be passed for looking up the language name. If not specified a default table is used</p><p>The language table is in the form <pre>array( + 'lang_name' => array('extension', 'extension', ...), + 'lang_name' ... + );</pre></p></p> + <ul class="tags"> + <li><span class="field">todo:</span> Complete rethink of this and above method</li> + <li><span class="field">since:</span> 1.0.5</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + load_from_file + </span> + (<span class="var-type">string</span> <span class="var-name">$file_name</span>, [<span class="var-type">array</span> <span class="var-name">$lookup</span> = <span class="var-default">array()</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$file_name</span><span class="var-description">: The filename to load the source from</span> </li> + <li> + <span class="var-type">array</span> + <span class="var-name">$lookup</span><span class="var-description">: A lookup array to use instead of the default one</span> </li> + </ul> + + + </div> +<a name="methodoptimize_keyword_group" id="optimize_keyword_group"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">optimize_keyword_group</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1529">1529</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">compile optimized regexp list for keyword group</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.8</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + optimize_keyword_group + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to compile & optimize</span> </li> + </ul> + + + </div> +<a name="methodparse_code" id="parse_code"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">parse_code</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1992">1992</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Returns the code in $this->source, highlighted and surrounded by the nessecary HTML.</p> +<p class="description"><p>This should only be called ONCE, cos it's SLOW! If you want to highlight the same source multiple times, you're better off doing a whole lot of str_replaces to replace the &lt;span&gt;s</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + parse_code + </span> + () + </div> + + + + </div> +<a name="methodremove_keyword" id="remove_keyword"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">remove_keyword</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1466">1466</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Removes a keyword from a keyword group</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + remove_keyword + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$word</span>, [<span class="var-type">bool</span> <span class="var-name">$recompile</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to remove the keyword from</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$word</span><span class="var-description">: The word to remove from the keyword group</span> </li> + <li> + <span class="var-type">bool</span> + <span class="var-name">$recompile</span><span class="var-description">: Wether to automatically recompile the optimized regexp list or not. Note: if you set this to false and @see GeSHi->parse_code() was already called once, for the current language, you have to manually call @see GeSHi->optimize_keyword_group() or the removed keyword will stay in cache and still be highlighted! On the other hand it might be too expensive to recompile the regexp list for every removal if you want to remove a lot of keywords.</span> </li> + </ul> + + + </div> +<a name="methodremove_keyword_group" id="remove_keyword_group"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">remove_keyword_group</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1512">1512</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Removes a keyword group</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + remove_keyword_group + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to remove</span> </li> + </ul> + + + </div> +<a name="methodset_brackets_highlighting" id="set_brackets_highlighting"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_brackets_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1036">1036</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for brackets</p> +<p class="description"><p>This method is DEPRECATED: use set_symbols_highlighting instead. This method will be remove in 1.2.X</p></p> + <ul class="tags"> + <li><span class="field">deprecated:</span> In favour of set_symbols_highlighting</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_brackets_highlighting + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for brackets on or off</span> </li> + </ul> + + + </div> +<a name="methodset_brackets_style" id="set_brackets_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_brackets_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1018">1018</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for brackets. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> +<p class="description"><p>This method is DEPRECATED: use set_symbols_style instead. This method will be removed in 1.2.X</p></p> + <ul class="tags"> + <li><span class="field">deprecated:</span> In favour of set_symbols_style</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_brackets_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the brackets</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_case_keywords" id="set_case_keywords"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_case_keywords</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1216">1216</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the case that keywords should use when found. Use the constants:</p> +<p class="description"><p><ul><li>GESHI_CAPS_NO_CHANGE: leave keywords as-is</li><li>GESHI_CAPS_UPPER: convert all keywords to uppercase where found</li><li>GESHI_CAPS_LOWER: convert all keywords to lowercase where found</li></ul></p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.1</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_case_keywords + </span> + (<span class="var-type">int</span> <span class="var-name">$case</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$case</span><span class="var-description">: A constant specifying what to do with matched keywords</span> </li> + </ul> + + + </div> +<a name="methodset_case_sensitivity" id="set_case_sensitivity"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_case_sensitivity</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1202">1202</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether a set of keywords are checked for in a case sensitive manner</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_case_sensitivity + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$case</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to change the case sensitivity of</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$case</span><span class="var-description">: Whether to check in a case sensitive manner or not</span> </li> + </ul> + + + </div> +<a name="methodset_code_style" id="set_code_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_code_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a824">824</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the style for the actual code. This should be a string</p> +<p class="description"><p>containing valid stylesheet declarations. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p><p>Note: Use this method to override any style changes you made to the line numbers if you are using line numbers, else the line of code will have the same style as the line number! Consult the GeSHi documentation for more information about this.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_code_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to use for actual code</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the current styles with the new styles</span> </li> + </ul> + + + </div> +<a name="methodset_comments_highlighting" id="set_comments_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_comments_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a972">972</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for comment groups</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_comments_highlighting + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, [<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the comment group to turn on or off</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for that group on or off</span> </li> + </ul> + + + </div> +<a name="methodset_comments_style" id="set_comments_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_comments_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a957">957</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for comment groups. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_comments_style + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the comment group to change the styles of</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the comments</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_encoding" id="set_encoding"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_encoding</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1744">1744</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the encoding used for htmlspecialchars(), for international support.</p> +<p class="description"><p>NOTE: This is not needed for now because htmlspecialchars() is not being used (it has a security hole in PHP4 that has not been patched). Maybe in a future version it may make a return for speed reasons, but I doubt it.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.3</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_encoding + </span> + (<span class="var-type">string</span> <span class="var-name">$encoding</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$encoding</span><span class="var-description">: The encoding to use for the source</span> </li> + </ul> + + + </div> +<a name="methodset_escape_characters_highlighting" id="set_escape_characters_highlighting"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_escape_characters_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1000">1000</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for escaped characters</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_escape_characters_highlighting + </span> + ([<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for escape characters on or off</span> </li> + </ul> + + + </div> +<a name="methodset_escape_characters_style" id="set_escape_characters_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_escape_characters_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a986">986</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for escaped characters. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_escape_characters_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the escape characters</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_footer_content" id="set_footer_content"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_footer_content</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1550">1550</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the content of the footer block</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_footer_content + </span> + (<span class="var-type">string</span> <span class="var-name">$content</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$content</span><span class="var-description">: The content of the footer block</span> </li> + </ul> + + + </div> +<a name="methodset_footer_content_style" id="set_footer_content_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_footer_content_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1570">1570</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the style for the footer content</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_footer_content_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style for the footer content</span> </li> + </ul> + + + </div> +<a name="methodset_header_content" id="set_header_content"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_header_content</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1540">1540</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the content of the header block</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_header_content + </span> + (<span class="var-type">string</span> <span class="var-name">$content</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$content</span><span class="var-description">: The content of the header block</span> </li> + </ul> + + + </div> +<a name="methodset_header_content_style" id="set_header_content_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_header_content_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1560">1560</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the style for the header content</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_header_content_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style for the header content</span> </li> + </ul> + + + </div> +<a name="methodset_header_type" id="set_header_type"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_header_type</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a746">746</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the type of header to be used.</p> +<p class="description"><p>If GESHI_HEADER_DIV is used, the code is surrounded in a "div".This means more source code but more control over tab width and line-wrapping. GESHI_HEADER_PRE means that a "pre" is used - less source, but less control. Default is GESHI_HEADER_PRE.</p><p>From 1.0.7.2, you can use GESHI_HEADER_NONE to specify that no header code should be outputted.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_header_type + </span> + (<span class="var-type">int</span> <span class="var-name">$type</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$type</span><span class="var-description">: The type of header to be used</span> </li> + </ul> + + + </div> +<a name="methodset_highlight_lines_extra_style" id="set_highlight_lines_extra_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_highlight_lines_extra_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1699">1699</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the style for extra-highlighted lines</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_highlight_lines_extra_style + </span> + (<span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$styles</span><span class="var-description">: The style for extra-highlighted lines</span> </li> + </ul> + + + </div> +<a name="methodset_important_styles" id="set_important_styles"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_important_styles</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1630">1630</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets styles for important parts of the code</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_important_styles + </span> + (<span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$styles</span><span class="var-description">: The styles to use on important parts of the code</span> </li> + </ul> + + + </div> +<a name="methodset_keyword_group_highlighting" id="set_keyword_group_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_keyword_group_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a942">942</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for a keyword group</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_keyword_group_highlighting + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, [<span class="var-type">boolean</span> <span class="var-name">$flag</span> = <span class="var-default">true</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to turn on or off</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for that group on or off</span> </li> + </ul> + + + </div> +<a name="methodset_keyword_group_style" id="set_keyword_group_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_keyword_group_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a921">921</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the style for a keyword group. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_keyword_group_style + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the keyword group to change the styles of</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the keywords</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_language" id="set_language"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_language</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a659">659</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the language for this object</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + <li><span class="field">note:</span> since 1.0.8 this function won't reset language-settings by default anymore! if you need this set $force_reset = true</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_language + </span> + (<span class="var-type">string</span> <span class="var-name">$language</span>, [<span class="var-type"></span> <span class="var-name">$force_reset</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$language</span><span class="var-description">: The name of the language to use</span> </li> + <li> + <span class="var-type"></span> + <span class="var-name">$force_reset</span> </li> + </ul> + + + </div> +<a name="methodset_language_path" id="set_language_path"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_language_path</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a703">703</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the path to the directory containing the language files. Note that this path is relative to the directory of the script that included geshi.php, NOT geshi.php itself.</p> + <ul class="tags"> + <li><span class="field">deprecated:</span> The path to the language files should now be automatically detected, so this method should no longer be needed. The 1.1.X branch handles manual setting of the path differently so this method will disappear in 1.2.0.</li> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_language_path + </span> + (<span class="var-type">string</span> <span class="var-name">$path</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$path</span><span class="var-description">: The path to the language directory</span> </li> + </ul> + + + </div> +<a name="methodset_line_ending" id="set_line_ending"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_line_ending</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1709">1709</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the line-ending</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_line_ending + </span> + (<span class="var-type">string</span> <span class="var-name">$line_ending</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$line_ending</span><span class="var-description">: The new line-ending</span> </li> + </ul> + + + </div> +<a name="methodset_line_style" id="set_line_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_line_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a844">844</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for the line numbers.</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_line_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style1</span>, [<span class="var-type">string|boolean</span> <span class="var-name">$style2</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style1</span><span class="var-description">: The style for the line numbers that are "normal"</span> </li> + <li> + <span class="var-type">string|boolean</span> + <span class="var-name">$style2</span><span class="var-description">: If a string, this is the style of the line numbers that are "fancy", otherwise if boolean then this defines whether the normal styles should be merged with the new normal styles or not</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: If set, is the flag for whether to merge the "fancy" styles with the current styles or not</span> </li> + </ul> + + + </div> +<a name="methodset_link_styles" id="set_link_styles"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_link_styles</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1606">1606</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets styles for links in code</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_link_styles + </span> + (<span class="var-type">int</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$styles</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$type</span><span class="var-description">: A constant that specifies what state the style is being set for - e.g. :hover or :visited</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$styles</span><span class="var-description">: The styles to use for that state</span> </li> + </ul> + + + </div> +<a name="methodset_link_target" id="set_link_target"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_link_target</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1616">1616</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the target for links in code</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.3</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_link_target + </span> + (<span class="var-type">string</span> <span class="var-name">$target</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$target</span><span class="var-description">: The target for links in the code, e.g. _blank</span> </li> + </ul> + + + </div> +<a name="methodset_methods_highlighting" id="set_methods_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_methods_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1162">1162</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for methods</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_methods_highlighting + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for methods on or off</span> </li> + </ul> + + + </div> +<a name="methodset_methods_style" id="set_methods_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_methods_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1148">1148</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for methods. $key is a number that references the</p> +<p class="description"><p>appropriate "object splitter" - see the language file for the language you are highlighting to get this number. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_methods_style + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the object splitter to change the styles of</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the methods</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_numbers_highlighting" id="set_numbers_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_numbers_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1131">1131</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for numbers</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_numbers_highlighting + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for numbers on or off</span> </li> + </ul> + + + </div> +<a name="methodset_numbers_style" id="set_numbers_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_numbers_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1117">1117</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for numbers. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_numbers_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the numbers</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_overall_class" id="set_overall_class"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_overall_class</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a783">783</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the overall classname for this block of code. This class can then be used in a stylesheet to style this object's output</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_overall_class + </span> + (<span class="var-type">string</span> <span class="var-name">$class</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$class</span><span class="var-description">: The class name to use for this block of code</span> </li> + </ul> + + + </div> +<a name="methodset_overall_id" id="set_overall_id"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_overall_id</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a794">794</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the overall id for this block of code. This id can then be used in a stylesheet to style this object's output</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_overall_id + </span> + (<span class="var-type">string</span> <span class="var-name">$id</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$id</span><span class="var-description">: The ID to use for this block of code</span> </li> + </ul> + + + </div> +<a name="methodset_overall_style" id="set_overall_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_overall_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a767">767</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for the code that will be outputted when this object is parsed. The style should be a string of valid stylesheet declarations</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_overall_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The overall style for the outputted code block</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the styles with the current styles or not</span> </li> + </ul> + + + </div> +<a name="methodset_regexps_highlighting" id="set_regexps_highlighting"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_regexps_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1191">1191</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for regexps</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_regexps_highlighting + </span> + (<span class="var-type">int</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$key</span><span class="var-description">: The key of the regular expression group to turn on or off</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for the regular expression group on or off</span> </li> + </ul> + + + </div> +<a name="methodset_regexps_style" id="set_regexps_style"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_regexps_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1176">1176</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for regexps. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_regexps_style + </span> + (<span class="var-type">string</span> <span class="var-name">$key</span>, <span class="var-type">boolean</span> <span class="var-name">$style</span>, [<span class="var-type"></span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$key</span><span class="var-description">: The style to make the regular expression matches</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$style</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + <li> + <span class="var-type"></span> + <span class="var-name">$preserve_defaults</span> </li> + </ul> + + + </div> +<a name="methodset_source" id="set_source"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_source</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a645">645</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the source code for this object</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_source + </span> + (<span class="var-type">string</span> <span class="var-name">$source</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$source</span><span class="var-description">: The source code to highlight</span> </li> + </ul> + + + </div> +<a name="methodset_strings_highlighting" id="set_strings_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_strings_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1103">1103</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for strings</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_strings_highlighting + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for strings on or off</span> </li> + </ul> + + + </div> +<a name="methodset_strings_style" id="set_strings_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_strings_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1089">1089</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for strings. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_strings_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the escape characters</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + </ul> + + + </div> +<a name="methodset_symbols_highlighting" id="set_symbols_highlighting"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_symbols_highlighting</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1071">1071</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Turns highlighting on/off for symbols</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_symbols_highlighting + </span> + (<span class="var-type">boolean</span> <span class="var-name">$flag</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$flag</span><span class="var-description">: Whether to turn highlighting for symbols on or off</span> </li> + </ul> + + + </div> +<a name="methodset_symbols_style" id="set_symbols_style"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_symbols_style</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1051">1051</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the styles for symbols. If $preserve_defaults is true, then styles are merged with the default styles, with the user defined styles having priority</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.1</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_symbols_style + </span> + (<span class="var-type">string</span> <span class="var-name">$style</span>, [<span class="var-type">boolean</span> <span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$group</span> = <span class="var-default">0</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$style</span><span class="var-description">: The style to make the symbols</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$preserve_defaults</span><span class="var-description">: Whether to merge the new styles with the old or just to overwrite them</span> </li> + <li> + <span class="var-type">int</span> + <span class="var-name">$group</span><span class="var-description">: Tells the group of symbols for which style should be set.</span> </li> + </ul> + + + </div> +<a name="methodset_tab_width" id="set_tab_width"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_tab_width</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1231">1231</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets how many spaces a tab is substituted for</p> +<p class="description"><p>Widths below zero are ignored</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.0</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_tab_width + </span> + (<span class="var-type">int</span> <span class="var-name">$width</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$width</span><span class="var-description">: The tab width</span> </li> + </ul> + + + </div> +<a name="methodset_url_for_keyword_group" id="set_url_for_keyword_group"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_url_for_keyword_group</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1594">1594</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets the base URL to be used for keywords</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_url_for_keyword_group + </span> + (<span class="var-type">int</span> <span class="var-name">$group</span>, <span class="var-type">string</span> <span class="var-name">$url</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$group</span><span class="var-description">: The key of the keyword group to set the URL for</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$url</span><span class="var-description">: The URL to set for the group. If {FNAME} is in the url somewhere, it is replaced by the keyword that the URL is being made for</span> </li> + </ul> + + + </div> +<a name="methodset_use_language_tab_width" id="set_use_language_tab_width"><!-- --></a> +<div class="oddrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">set_use_language_tab_width</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1247">1247</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets whether or not to use tab-stop width specifed by language</p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.7.20</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + set_use_language_tab_width + </span> + (<span class="var-type">boolean</span> <span class="var-name">$use</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$use</span><span class="var-description">: Whether to use language-specific tab-stop widths</span> </li> + </ul> + + + </div> +<a name="methodstart_line_numbers_at" id="start_line_numbers_at"><!-- --></a> +<div class="evenrow"> + + <div class="method-header"> + <img src="../../media/images/Method.png" /> + <span class="method-title">start_line_numbers_at</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a1728">1728</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Sets what number line numbers should start at. Should be a positive integer, and will be converted to one.</p> +<p class="description"><p><strong>Warning:</strong> Using this method will add the "start" attribute to the &lt;ol&gt; that is used for line numbering. This is <strong>not</strong> valid XHTML strict, so if that's what you care about then don't use this method. Firefox is getting support for the CSS method of doing this in 1.1 and Opera has support for the CSS method, but (of course) IE doesn't so it's not worth doing it the CSS way yet.</p></p> + <ul class="tags"> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + + <div class="method-signature"> + <span class="method-result">void</span> + <span class="method-name"> + start_line_numbers_at + </span> + (<span class="var-type">int</span> <span class="var-name">$number</span>) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">int</span> + <span class="var-name">$number</span><span class="var-description">: The number to start line numbers at</span> </li> + </ul> + + + </div> + + </div> + </div> + + + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:52 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </div></body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/_geshi.php.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/_geshi.php.html new file mode 100644 index 00000000..798f68f2 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/geshi/core/_geshi.php.html @@ -0,0 +1,478 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title>Docs for page geshi.php</title> + <link rel="stylesheet" href="../../media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <div class="page-body"> +<h2 class="file-name"><img src="../../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/geshi.php</h2> + +<a name="sec-description"></a> +<div class="info-box"> + <div class="info-box-title">Description</div> + <div class="nav-bar"> + <span class="disabled">Description</span> | + <a href="#sec-classes">Classes</a> + | <a href="#sec-constants">Constants</a> + | <a href="#sec-functions">Functions</a> + </div> + <div class="info-box-body"> + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">GeSHi - Generic Syntax Highlighter</p> +<p class="description"><p>The GeSHi class for Generic Syntax Highlighting. Please refer to the documentation at http://qbnz.com/highlighter/documentation.php for more information about how to use this class.</p><p>For changes, release notes, TODOs etc, see the relevant files in the docs/ directory.</p><p>This file is part of GeSHi.</p><p>GeSHi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</p><p>GeSHi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p><p>You should have received a copy of the GNU General Public License along with GeSHi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p></p> + <ul class="tags"> + <li><span class="field">author:</span> Nigel McNie <<a href="mailto:nigel@geshi.org">nigel@geshi.org</a>>, Benny Baumann <BenBE@omorphia.de></li> + <li><span class="field">copyright:</span> (C) 2004 - 2007 Nigel McNie, (C) 2007 - 2008 Benny Baumann</li> + <li><span class="field">filesource:</span> <a href="../../__filesource/fsource_geshi_core_geshi.php.html">Source Code for this file</a></li> + <li><span class="field">license:</span> <a href="http://gnu.org/copyleft/gpl.html">GNU GPL</a></li> + </ul> + + </div> +</div> + + <a name="sec-classes"></a> + <div class="info-box"> + <div class="info-box-title">Classes</div> + <div class="nav-bar"> + <a href="#sec-description">Description</a> | + <span class="disabled">Classes</span> + | <a href="#sec-constants">Constants</a> + | <a href="#sec-functions">Functions</a> + </div> + <div class="info-box-body"> + <table cellpadding="2" cellspacing="0" class="class-table"> + <tr> + <th class="class-table-header">Class</th> + <th class="class-table-header">Description</th> + </tr> + <tr> + <td style="padding-right: 2em; vertical-align: top; white-space: nowrap"> + <img src="../../media/images/Class.png" + alt=" class" + title=" class"/> + <a href="../../geshi/core/GeSHi.html">GeSHi</a> + </td> + <td> + The GeSHi Class. + </td> + </tr> + </table> + </div> + </div> + + + <a name="sec-constants"></a> + <div class="info-box"> + <div class="info-box-title">Constants</div> + <div class="nav-bar"> + <a href="#sec-description">Description</a> | + <a href="#sec-classes">Classes</a> + | <span class="disabled">Constants</span> + | <a href="#sec-functions">Functions</a> + </div> + <div class="info-box-body"> + <a name="defineGESHI_ACTIVE"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_ACTIVE</span> = 2 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a107">107</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Links in the source in the :active state</p> + + +</div> +<a name="defineGESHI_CAPS_LOWER"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_CAPS_LOWER</span> = 2 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a99">99</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Leave keywords found as the case that they are</p> + + +</div> +<a name="defineGESHI_CAPS_NO_CHANGE"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_CAPS_NO_CHANGE</span> = 0 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a95">95</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Lowercase keywords found</p> + + +</div> +<a name="defineGESHI_CAPS_UPPER"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_CAPS_UPPER</span> = 1 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a97">97</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Uppercase keywords found</p> + + +</div> +<a name="defineGESHI_END_IMPORTANT"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_END_IMPORTANT</span> = '<END GeSHi>' + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a117">117</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The ender for important parts of the source</p> + + +</div> +<a name="defineGESHI_FANCY_LINE_NUMBERS"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_FANCY_LINE_NUMBERS</span> = 2 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a67">67</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use fancy line numbers when building the result</p> + + +</div> +<a name="defineGESHI_HEADER_DIV"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HEADER_DIV</span> = 1 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a73">73</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use a "div" to surround the source</p> + + +</div> +<a name="defineGESHI_HEADER_NONE"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HEADER_NONE</span> = 0 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a71">71</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use nothing to surround the source</p> + + +</div> +<a name="defineGESHI_HEADER_PRE"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HEADER_PRE</span> = 2 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a75">75</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use a "pre" to surround the source</p> + + +</div> +<a name="defineGESHI_HEADER_PRE_TABLE"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HEADER_PRE_TABLE</span> = 4 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a91">91</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use a "table" to surround the source:</p> +<p class="description"><p><table> <thead><tr><td colspan="2">$header</td></tr></thead> <tbody><tr><td><pre>$linenumbers</pre></td><td><pre>$code></pre></td></tr></tbody> <tfooter><tr><td colspan="2">$footer</td></tr></tfoot> </table></p><p>this is essentially only a workaround for Firefox, see sf#1651996 or take a look at https://bugzilla.mozilla.org/show_bug.cgi?id=365805</p></p> + <ul class="tags"> + <li><span class="field">note:</span> when linenumbers are disabled this is essentially the same as GESHI_HEADER_PRE</li> + </ul> + + +</div> +<a name="defineGESHI_HEADER_PRE_VALID"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HEADER_PRE_VALID</span> = 3 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a77">77</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use a pre to wrap lines when line numbers are enabled or to wrap the whole code.</p> + + +</div> +<a name="defineGESHI_HOVER"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_HOVER</span> = 1 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a105">105</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Links in the source in the :hover state</p> + + +</div> +<a name="defineGESHI_LANG_ROOT"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_LANG_ROOT</span> = GESHI_ROOT.'geshi'.DIRECTORY_SEPARATOR + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a53">53</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The language file directory for GeSHi</p> + + +</div> +<a name="defineGESHI_LINK"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_LINK</span> = 0 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a103">103</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Links in the source in the :link state</p> + + +</div> +<a name="defineGESHI_NORMAL_LINE_NUMBERS"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_NORMAL_LINE_NUMBERS</span> = 1 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a65">65</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use normal line numbers when building the result</p> + + +</div> +<a name="defineGESHI_NO_LINE_NUMBERS"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_NO_LINE_NUMBERS</span> = 0 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a63">63</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Use no line numbers when building the result</p> + + +</div> +<a name="defineGESHI_ROOT"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_ROOT</span> = dirname(__FILE__).DIRECTORY_SEPARATOR + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a49">49</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The root directory for GeSHi</p> + + +</div> +<a name="defineGESHI_SECURITY_PARANOID"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_SECURITY_PARANOID</span> = false + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a58">58</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Tells GeSHi to be paranoid about security settings</p> + + +</div> +<a name="defineGESHI_START_IMPORTANT"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_START_IMPORTANT</span> = '<BEGIN GeSHi>' + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a115">115</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The starter for important parts of the source</p> + + +</div> +<a name="defineGESHI_VERSION"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_VERSION</span> = '1.0.8.2', + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a44">44</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">The version of this GeSHi file</p> + + +</div> +<a name="defineGESHI_VISITED"><!-- --></a> +<div class="oddrow"> + + <div> + <img src="../../media/images/Constant.png" /> + <span class="const-title"> + <span class="const-name">GESHI_VISITED</span> = 3 + (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a109">109</a></span>) + </span> + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Links in the source in the :visited state</p> + + +</div> + </div> + </div> + + + <a name="sec-functions"></a> + <div class="info-box"> + <div class="info-box-title">Functions</div> + <div class="nav-bar"> + <a href="#sec-description">Description</a> | + <a href="#sec-classes">Classes</a> + | <a href="#sec-constants">Constants</a> + | <span class="disabled">Functions</span> + </div> + <div class="info-box-body"> + <a name="functiongeshi_highlight" id="functiongeshi_highlight"><!-- --></a> +<div class="evenrow"> + + <div> + <img src="../../media/images/Function.png" /> + <span class="method-title">geshi_highlight</span> (line <span class="line-number"><a href="../../__filesource/fsource_geshi_core_geshi.php.html#a4577">4577</a></span>) + </div> + + <!-- ========== Info from phpDoc block ========= --> +<p class="short-description">Easy way to highlight stuff. Behaves just like highlight_string</p> + <ul class="tags"> + <li><span class="field">return:</span> The code highlighted (if $return is true)</li> + <li><span class="field">since:</span> 1.0.2</li> + </ul> + <div class="method-signature"> + <span class="method-result">string</span> + <span class="method-name"> + geshi_highlight + </span> + (<span class="var-type">string</span> <span class="var-name">$string</span>, <span class="var-type">string</span> <span class="var-name">$language</span>, [<span class="var-type">string</span> <span class="var-name">$path</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$return</span> = <span class="var-default">false</span>]) + </div> + + <ul class="parameters"> + <li> + <span class="var-type">string</span> + <span class="var-name">$string</span><span class="var-description">: The code to highlight</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$language</span><span class="var-description">: The language to highlight the code in</span> </li> + <li> + <span class="var-type">string</span> + <span class="var-name">$path</span><span class="var-description">: The path to the language files. You can leave this blank if you need as from version 1.0.7 the path should be automatically detected</span> </li> + <li> + <span class="var-type">boolean</span> + <span class="var-name">$return</span><span class="var-description">: Whether to return the result or to echo</span> </li> + </ul> + + +</div> + </div> + </div> + + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:34 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </div></body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/index.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/index.html new file mode 100644 index 00000000..f499a8f9 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/index.html @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <!-- Generated by phpDocumentor on Thu, 25 Dec 2008 14:34:34 +0100 --> + <title>GeSHi 1.0.8</title> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> +</head> + +<FRAMESET rows='120,*'> + <FRAME src='packages.html' name='left_top' frameborder="1" bordercolor="#999999"> + <FRAMESET cols='25%,*'> + <FRAME src='li_geshi.html' name='left_bottom' frameborder="1" bordercolor="#999999"> + <FRAME src='blank.html' name='right' frameborder="1" bordercolor="#999999"> + </FRAMESET> + <NOFRAMES> + <H2>Frame Alert</H2> + <P>This document is designed to be viewed using the frames feature. + If you see this message, you are using a non-frame-capable web client.</P> + </NOFRAMES> +</FRAMESET> +</HTML>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/li_geshi.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/li_geshi.html new file mode 100644 index 00000000..f074e378 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/li_geshi.html @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title></title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <div class="package-title">geshi</div> +<div class="package-details"> + + <dl class="tree"> + + <dt class="folder-title">Description</dt> + <dd> + <a href='classtrees_geshi.html' target='right'>Class trees</a><br /> + <a href='elementindex_geshi.html' target='right'>Index of elements</a><br /> + <a href="todolist.html" target="right">Todo List</a><br /> + </dd> + + + + + + + + <dt class="sub-package"><img class="tree-icon" src="media/images/package.png" alt="Sub-package">core</dt> + <dd> + <dl class="tree"> + <dt class="folder-title"><img class="tree-icon" src="media/images/class_folder.png" alt=" ">Classes</dt> + <dd><img class="tree-icon" src="media/images/Class.png" alt="Class"><a href='geshi/core/GeSHi.html' target='right'>GeSHi</a></dd> + <dt class="folder-title"><img class="tree-icon" src="media/images/function_folder.png" alt=" ">Functions</dt> + <dd><img class="tree-icon" src="media/images/Function.png" alt="Function"><a href='geshi/core/_geshi.php.html#functiongeshi_highlight' target='right'>geshi_highlight</a></dd> + <dt class="folder-title"><img class="tree-icon" src="media/images/folder.png" alt=" ">Files</dt> + <dd><img class="tree-icon" src="media/images/Page.png" alt="File"><a href='geshi/core/_geshi.php.html' target='right'>geshi.php</a></dd> + </dl> + </dd> + + + </dl> +</div> +<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.2</span></a></p> +</BODY> +</HTML>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/banner.css b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/banner.css new file mode 100644 index 00000000..032b037f --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/banner.css @@ -0,0 +1,33 @@ +body +{ + background-color: #EEEEEE; + margin: 0px; + padding: 0px; +} + +/* Banner (top bar) classes */ + +.banner { } + +.banner-menu +{ + text-align: right; + clear: both; + padding: .5em; + border-top: 2px solid #AAAAAA; +} + +.banner-title +{ + text-align: right; + font-size: 20pt; + font-weight: bold; + margin: .2em; +} + +.package-selector +{ + background-color: #DDDDDD; + border: 1px solid #AAAAAA; + color: #000090; +} diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass.png Binary files differnew file mode 100644 index 00000000..b1f60760 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass_logo.png Binary files differnew file mode 100644 index 00000000..ab21d652 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractClass_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractMethod.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractMethod.png Binary files differnew file mode 100644 index 00000000..635fa08b --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractMethod.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass.png Binary files differnew file mode 100644 index 00000000..eb2938e8 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass_logo.png Binary files differnew file mode 100644 index 00000000..93c1da85 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateClass_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateMethod.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateMethod.png Binary files differnew file mode 100644 index 00000000..203ce61d --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/AbstractPrivateMethod.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class.png Binary files differnew file mode 100644 index 00000000..9ac7daa9 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class_logo.png Binary files differnew file mode 100644 index 00000000..2c97193a --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Class_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constant.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constant.png Binary files differnew file mode 100644 index 00000000..c3610cb9 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constant.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constructor.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constructor.png Binary files differnew file mode 100644 index 00000000..cb78dcd2 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Constructor.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Destructor.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Destructor.png Binary files differnew file mode 100644 index 00000000..d60215d6 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Destructor.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Function.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Function.png Binary files differnew file mode 100644 index 00000000..5f05eb2f --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Function.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Global.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Global.png Binary files differnew file mode 100644 index 00000000..f00968b7 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Global.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/I.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/I.png Binary files differnew file mode 100644 index 00000000..874f1ba5 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/I.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Index.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Index.png Binary files differnew file mode 100644 index 00000000..09cead5f --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Index.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface.png Binary files differnew file mode 100644 index 00000000..4ab1592e --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface_logo.png Binary files differnew file mode 100644 index 00000000..2c97193a --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Interface_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/L.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/L.png Binary files differnew file mode 100644 index 00000000..dc49c4ee --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/L.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lminus.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lminus.png Binary files differnew file mode 100644 index 00000000..a7346d22 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lminus.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lplus.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lplus.png Binary files differnew file mode 100644 index 00000000..673ab01b --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Lplus.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Method.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Method.png Binary files differnew file mode 100644 index 00000000..e5b154b5 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Method.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page.png Binary files differnew file mode 100644 index 00000000..4d3a3771 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page_logo.png Binary files differnew file mode 100644 index 00000000..91437deb --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Page_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass.png Binary files differnew file mode 100644 index 00000000..88431d4f --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass_logo.png Binary files differnew file mode 100644 index 00000000..c9d3a58a --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateClass_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateMethod.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateMethod.png Binary files differnew file mode 100644 index 00000000..9b9f7335 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateMethod.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateVariable.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateVariable.png Binary files differnew file mode 100644 index 00000000..fef0a273 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/PrivateVariable.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticMethod.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticMethod.png Binary files differnew file mode 100644 index 00000000..e5b154b5 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticMethod.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticVariable.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticVariable.png Binary files differnew file mode 100644 index 00000000..2a372b48 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/StaticVariable.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/T.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/T.png Binary files differnew file mode 100644 index 00000000..e6f55bd8 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/T.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tminus.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tminus.png Binary files differnew file mode 100644 index 00000000..226ba0c0 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tminus.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tplus.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tplus.png Binary files differnew file mode 100644 index 00000000..e9a3c4ee --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Tplus.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Variable.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Variable.png Binary files differnew file mode 100644 index 00000000..2a372b48 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/Variable.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/blank.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/blank.png Binary files differnew file mode 100644 index 00000000..9c1bda19 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/blank.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/class_folder.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/class_folder.png Binary files differnew file mode 100644 index 00000000..be0face2 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/class_folder.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/empty.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/empty.png Binary files differnew file mode 100644 index 00000000..d5683865 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/empty.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/file.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/file.png Binary files differnew file mode 100644 index 00000000..8ff962fd --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/file.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/folder.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/folder.png Binary files differnew file mode 100644 index 00000000..b793328d --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/folder.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/function_folder.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/function_folder.png Binary files differnew file mode 100644 index 00000000..6d8861c7 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/function_folder.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button.png Binary files differnew file mode 100644 index 00000000..521f29a8 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button_disabled.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button_disabled.png Binary files differnew file mode 100644 index 00000000..def00128 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/next_button_disabled.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package.png Binary files differnew file mode 100644 index 00000000..6fe427a5 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package_folder.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package_folder.png Binary files differnew file mode 100644 index 00000000..f504b70d --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/package_folder.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button.png Binary files differnew file mode 100644 index 00000000..9f0c62d4 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button_disabled.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button_disabled.png Binary files differnew file mode 100644 index 00000000..850edcfd --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/previous_button_disabled.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/private_class_logo.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/private_class_logo.png Binary files differnew file mode 100644 index 00000000..c9d3a58a --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/private_class_logo.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial.png Binary files differnew file mode 100644 index 00000000..14443d8c --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial_folder.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial_folder.png Binary files differnew file mode 100644 index 00000000..6e28f012 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/tutorial_folder.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/up_button.png b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/up_button.png Binary files differnew file mode 100644 index 00000000..bd9ff8cd --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/images/up_button.png diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/stylesheet.css b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/stylesheet.css new file mode 100644 index 00000000..96729b65 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/media/stylesheet.css @@ -0,0 +1,146 @@ +a { color: #000090; text-decoration: none; } +a:hover, a:active, a:focus { color: highlighttext; background-color: highlight; text-decoration: none; } + +body { background: #FFFFFF; } +body, table { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; } + +a img { border: 0px; } + +/* Page layout/boxes */ + +.info-box { } +.info-box-title { margin: 1em 0em 0em 0em; font-weight: normal; font-size: 14pt; color: #999999; border-bottom: 2px solid #999999; } +.info-box-body { border: 1px solid #999999; padding: .5em; } +.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; } + +.oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} +.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} + +.page-body { max-width: 800px; margin: auto; } +.tree { white-space: nowrap; font: icon } +.tree dd { margin-left: 19px } +.tree dl { margin: 0px } +.tree-icon { vertical-align: middle; border: 0px; margin-right: 3px } + +/* Index formatting classes */ + +.index-item-body { margin-top: .5em; margin-bottom: .5em} +.index-item-description { margin-top: .25em } +.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt } +.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em} +.index-letter-title { font-size: 12pt; font-weight: bold } +.index-letter-menu { text-align: center; margin: 1em } +.index-letter { font-size: 12pt } + +/* Docbook classes */ + +.description {} +.short-description { font-weight: bold; color: #666666; } +.tags { padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; } +.parameters { padding-left: 0em; margin-left: 3em; color: #014fbe; list-style-type: square; } +.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; } +.package { font-weight: bold; } +.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black } +.package-details { font-size: 85%; } +.sub-package { font-weight: bold; } +.tutorial { border-width: thin; border-color: #0066ff; } +.tutorial-nav-box { width: 100%; border: 1px solid #999999; background-color: #F8F8F8; } +.folder-title { font-style: italic; font-family: Verdana, Arial, Helvetica, sans-serif } + +/* Generic formatting */ + +.field { font-weight: bold; } +.detail { font-size: 8pt; } +.notes { font-style: italic; font-size: 8pt; } +.separator { background-color: #999999; height: 2px; } +.warning { color: #FF6600; } +.disabled { font-style: italic; color: #999999; } + +/* Code elements */ + +.line-number { } + +.class-table { width: 100%; } +.class-table-header { border-bottom: 1px dotted #666666; text-align: left} +.class-name { color: #0000AA; font-weight: bold; } + +.method-summary { color: #009000; padding-left: 1em; font-size: 8pt; } +.method-header { } +.method-definition { margin-bottom: .2em } +.method-title { color: #009000; font-weight: bold; } +.method-name { font-weight: bold; } +.method-signature { font-size: 85%; color: #666666; margin: .5em 0em } +.method-result { font-style: italic; } + +.var-summary { padding-left: 1em; font-size: 8pt; } +.var-header { } +.var-title { color: #014fbe; margin-bottom: .3em } +.var-type { font-style: italic; } +.var-name { font-weight: bold; } +.var-default {} +.var-description { font-weight: normal; color: #000000; } + +.include-title { color: #014fbe;} +.include-type { font-style: italic; } +.include-name { font-weight: bold; } + +.const-title { color: #FF6600; } +.const-name { font-weight: bold; } + +/* Syntax highlighting */ + +.src-code { font-family: 'Courier New', Courier, monospace; font-weight: normal; } +.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } + +.src-code a:link { padding: 1px; text-decoration: underline; color: #0000DD; } +.src-code a:visited { text-decoration: underline; color: #0000DD; } +.src-code a:active { background-color: #FFFF66; color: #008000; } +.src-code a:hover { background-color: #FFFF66; text-decoration: overline underline; color: #008000; } + +.src-comm { color: #666666; } +.src-id { color: #FF6600; font-style: italic; } +.src-inc { color: #0000AA; font-weight: bold; } +.src-key { color: #0000AA; font-weight: bold; } +.src-num { color: #CC0000; } +.src-str { color: #CC0000; } +.src-sym { } +.src-var { } + +.src-php { font-weight: bold; } + +.src-doc { color: #666666; } +.src-doc-close-template { color: #666666 } +.src-doc-coretag { color: #008000; } +.src-doc-inlinetag {} +.src-doc-internal {} +.src-doc-tag { color: #0080CC; } +.src-doc-template { color: #666666 } +.src-doc-type { font-style: italic; color: #444444 } +.src-doc-var { color: #444444 } + +.tute-tag { color: #009999 } +.tute-attribute-name { color: #0000FF } +.tute-attribute-value { color: #0099FF } +.tute-entity { font-weight: bold; } +.tute-comment { font-style: italic } +.tute-inline-tag { color: #636311; font-weight: bold } + +/* tutorial */ + +.authors { } +.author { font-style: italic; font-weight: bold } +.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } +.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } +*[class="example"] { line-height : 1.0em; } +.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } +*[class="listing"] { line-height : 1.0em; } +.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } +.ref-title-box { } +.ref-title { } +.ref-purpose { font-style: italic; color: #666666 } +.ref-synopsis { } +.title { font-weight: bold; border-bottom: 1px solid #999999; color: #999999; } +.cmd-synopsis { margin: 1em 0em } +.cmd-title { font-weight: bold } +.toc { margin-left: 2em; padding-left: 0em } + diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/packages.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/packages.html new file mode 100644 index 00000000..d8c4c04a --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/packages.html @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title></title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <link rel="stylesheet" href="media/banner.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <div class="banner"> + <div class="banner-title">geshi</div> + <div class="banner-menu"> + <form> + <table cellpadding="0" cellspacing="0" style="width: 100%"> + <tr> + <td> + </td> + <td style="width: 2em"> </td> + <td style="text-align: right"> + </td> + </tr> + </table> + </form> + </div> + </div> + </body> + </html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/todolist.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/todolist.html new file mode 100644 index 00000000..95177c15 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/api/todolist.html @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- template designed by Marco Von Ballmoos --> + <title>Todo List</title> + <link rel="stylesheet" href="media/stylesheet.css" /> + <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> + </head> + <body> + <div align="center"><h1>Todo List</h1></div> +<h2>geshi</h2> +<h3><a href="geshi/core/GeSHi.html#methoddisable_highlighting">GeSHi::disable_highlighting()</a></h3> +<ul> + <li>Rewrite with array traversal</li> +</ul> +<h3><a href="geshi/core/GeSHi.html#methodenable_highlighting">GeSHi::enable_highlighting()</a></h3> +<ul> + <li>Rewrite with array traversal</li> +</ul> +<h3><a href="geshi/core/GeSHi.html#methodenable_important_blocks">GeSHi::enable_important_blocks()</a></h3> +<ul> + <li>REMOVE THIS SHIZ FROM GESHI!</li> +</ul> +<h3><a href="geshi/core/GeSHi.html#methodget_language_name_from_extension">GeSHi::get_language_name_from_extension()</a></h3> +<ul> + <li>Re-think about how this method works (maybe make it private and/or make it a extension->lang lookup?)</li> + <li>static?</li> +</ul> +<h3><a href="geshi/core/GeSHi.html#methodhighlight_lines_extra">GeSHi::highlight_lines_extra()</a></h3> +<ul> + <li>Some data replication here that could be cut down on</li> +</ul> +<h3><a href="geshi/core/GeSHi.html#methodload_from_file">GeSHi::load_from_file()</a></h3> +<ul> + <li>Complete rethink of this and above method</li> +</ul> + <p class="notes" id="credit"> + Documentation generated on Thu, 25 Dec 2008 14:34:53 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a> + </p> + </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.html b/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.html new file mode 100644 index 00000000..dc5161f4 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.html @@ -0,0 +1,4077 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>GeSHi Documentation 1.0.8.11</title> + + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <meta name="keywords" content="GeSHi, syntax, highlighter, colorizer, beautifier, code, generic, php, sql, css, html, syntax, highlighting, documentation" /> + <meta name="description" content="GeSHi - Generic Syntax Highlighter for PHP. Highlight many languages, including PHP, CSS, HTML, SQL, Java and C for XHTML compliant output using this easy PHP Class. Every aspect of the highlighting is customisable, from colours and other styles to case-sensitivity checking and more. GeSHi - the best syntax highlighter in the world!" /> + + <style type="text/css"> + html { + background-color: #e6e6e6; + } + body { + font-family: Verdana, Arial, sans-serif; + margin: 10px; + border: 2px solid #d0d0d0; + background-color: #f6f6f6; + padding: 10px; + } + p, ul, ol, div, blockquote, dt, dd { + font-size: 80%; + line-height: 140%; + letter-spacing: 1px; + color: #002; + } + dt { + font-weight: bold; + } + acronym { + border-bottom: 1px dotted #303030; + cursor: help; + } + blockquote { + font-weight: bold; + } + pre, .geshicode { + border: 1px solid #c0e6ff; + background-color: #e0e8ef; + color: #002; + margin:0; + font-size: 12px; + width:100%; + } + table { + border-collapse:collapse; + } + .geshicode pre { + border:none; + background-color:inherit; + font-weight:bold; + } + .geshicode .li2 td { + background-color:#eee; + } + .geshicode .li1 td { + background-color:#fff; + } + .geshicode td td { + padding:0 2px; + } + .geshicode td, .geshicode table { + width: 100%; + } + .geshicode td.ln { + border-right:2px solid #e0e8ef; + } + .geshicode .head { + text-align:center; + font-weight:bold; + } + code, tt, kbd { + font-size: 125%; + font-weight:normal; + } + hr { + height: 0; + border: none; + border-top: 1px dotted #404040; + width: 75%; + } + var { + color: blue; font-style: normal; font-family: monospace; + } + li { + padding-top: 2px; + } + ul ul, ol ol, div ul, div ol { + font-size:100%; + } + .note { + border: 1px solid yellow; + background-color: #ffc; + color: #220; + padding: 5px; + margin: 1em 0 0 .75em; + } + .caution { + border: 6px double red; + background-color: #fcc; + color: #200; + padding: 5px; + margin: 1em 0 0 .75em; + } + .caution p:first-child, .note p:first-child { + margin-top: 0; + } + .caution-header { + border: 1px solid red; + border-width: 1px 2px 2px 1px; + margin-top: -1.6em; + background-color: #fcc; + width: 10%; + font-weight: bold; + text-align: center; + color: #600; + } + .note-header { + border: 1px solid #ff0; + border-width: 1px 2px 2px 1px; + margin-top: -1.2em; + background-color: #ffc; + width: 10%; + font-weight: bold; + text-align: center; + color: #660; + } + .nav { + font-size: 70%; + } + .nav a { + color: #707070; + border: 1px solid #a0a0a0; + border-width: 0 1px 1px 1px; + border-top: 1px dotted #c0c0c0; + text-decoration: none; + padding: 1px 2px; + background-color: #e0e0e0; + -moz-border-radius-bottomleft: 3px; + -moz-border-radius-bottomright: 3px; + } + h1, #contents { + margin-top: 0; + margin-bottom: 0; + text-align: center; + color: #404060; + } + #contents { + text-align:left; + background:none; + border:none; + } + h2 { + border-bottom: 1px dotted #b0b0b0; + margin-top: 2em; + border-top: 1px dotted #b0b0b0; + background-color: #ddd; + margin-bottom: 0; + } + h3 { + margin-top: 1.6em; + border-bottom: 1px dotted #c0c0c0; + margin-bottom: 0; + } + h4 { + border-bottom: 1px dotted #d0d0d0; + margin-top: 1.2em; + margin-bottom: 0; + } + h2, h3, h4 { + color: #707070; + font-weight: normal; + } + a { + color: #7777ff; + } + sup a { + text-decoration: none; + } + abbr { + cursor: help; + } + .header p { + text-align: center; + border-bottom: 1px dotted #d0d0d0; + } + + .header dl { + background-color: #e0e8ef; + color: #002; + padding: 5px; + } + + .header img { + float: right; + margin:2.5em 1em 0 0; + } + + /** + * GeSHi Dynamically Generated Stylesheet + * -------------------------------------- + * Dynamically generated stylesheet for bash + * CSS class: , CSS id: + * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann + * (http://qbnz.com/highlighter/ and http://geshi.org/) + * -------------------------------------- + */ +.bash .de1, .bash .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} +.bash {font-family:monospace;} +.bash .imp {font-weight: bold; color: red;} +.bash li, .bash .li1 {font-weight: normal; vertical-align:top;} +.bash .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} +.bash .li2 {font-weight: bold; vertical-align:top;} +.bash .kw1 {color: #000000; font-weight: bold;} +.bash .kw2 {color: #c20cb9; font-weight: bold;} +.bash .kw3 {color: #7a0874; font-weight: bold;} +.bash .co0 {color: #666666; font-style: italic;} +.bash .co1 {color: #800000;} +.bash .co2 {color: #cc0000; font-style: italic;} +.bash .co3 {color: #000000; font-weight: bold;} +.bash .co4 {color: #666666;} +.bash .es1 {color: #000099; font-weight: bold;} +.bash .es2 {color: #007800;} +.bash .es3 {color: #007800;} +.bash .es4 {color: #007800;} +.bash .es5 {color: #780078;} +.bash .es_h {color: #000099; font-weight: bold;} +.bash .br0 {color: #7a0874; font-weight: bold;} +.bash .sy0 {color: #000000; font-weight: bold;} +.bash .st0 {color: #ff0000;} +.bash .st_h {color: #ff0000;} +.bash .nu0 {color: #000000;} +.bash .re0 {color: #007800;} +.bash .re1 {color: #007800;} +.bash .re2 {color: #007800;} +.bash .re4 {color: #007800;} +.bash .re5 {color: #660033;} +.bash .ln-xtra, .bash li.ln-xtra, .bash div.ln-xtra {background-color: #ffc;} +.bash span.xtra { display:block; } + +/** + * GeSHi Dynamically Generated Stylesheet + * -------------------------------------- + * Dynamically generated stylesheet for php + * CSS class: , CSS id: + * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann + * (http://qbnz.com/highlighter/ and http://geshi.org/) + * -------------------------------------- + */ +.php .de1, .php .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} +.php {font-family:monospace;} +.php .imp {font-weight: bold; color: red;} +.php li, .php .li1 {font-weight: normal; vertical-align:top;} +.php .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} +.php .li2 {font-weight: bold; vertical-align:top;} +.php .kw1 {color: #b1b100;} +.php .kw2 {color: #000000; font-weight: bold;} +.php .kw3 {color: #990000;} +.php .kw4 {color: #009900; font-weight: bold;} +.php .co1 {color: #666666; font-style: italic;} +.php .co2 {color: #666666; font-style: italic;} +.php .co3 {color: #0000cc; font-style: italic;} +.php .co4 {color: #009933; font-style: italic;} +.php .coMULTI {color: #666666; font-style: italic;} +.php .es0 {color: #000099; font-weight: bold;} +.php .es1 {color: #000099; font-weight: bold;} +.php .es2 {color: #660099; font-weight: bold;} +.php .es3 {color: #660099; font-weight: bold;} +.php .es4 {color: #006699; font-weight: bold;} +.php .es5 {color: #006699; font-weight: bold; font-style: italic;} +.php .es6 {color: #009933; font-weight: bold;} +.php .es_h {color: #000099; font-weight: bold;} +.php .br0 {color: #009900;} +.php .sy0 {color: #339933;} +.php .sy1 {color: #000000; font-weight: bold;} +.php .st0 {color: #0000ff;} +.php .st_h {color: #0000ff;} +.php .nu0 {color: #cc66cc;} +.php .nu8 {color: #208080;} +.php .nu12 {color: #208080;} +.php .nu19 {color:#800080;} +.php .me1 {color: #004000;} +.php .me2 {color: #004000;} +.php .re0 {color: #000088;} +.php .ln-xtra, .php li.ln-xtra, .php div.ln-xtra {background-color: #ffc;} +.php span.xtra { display:block; } + +/** + * GeSHi Dynamically Generated Stylesheet + * -------------------------------------- + * Dynamically generated stylesheet for html4strict + * CSS class: , CSS id: + * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann + * (http://qbnz.com/highlighter/ and http://geshi.org/) + * -------------------------------------- + */ +.html4strict .de1, .html4strict .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} +.html4strict {font-family:monospace;} +.html4strict .imp {font-weight: bold; color: red;} +.html4strict li, .html4strict .li1 {font-weight: normal; vertical-align:top;} +.html4strict .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} +.html4strict .li2 {font-weight: bold; vertical-align:top;} +.html4strict .kw2 {color: #000000; font-weight: bold;} +.html4strict .kw3 {color: #000066;} +.html4strict .es0 {color: #000099; font-weight: bold;} +.html4strict .br0 {color: #66cc66;} +.html4strict .sy0 {color: #66cc66;} +.html4strict .st0 {color: #ff0000;} +.html4strict .nu0 {color: #cc66cc;} +.html4strict .sc-2 {color: #404040;} +.html4strict .sc-1 {color: #808080; font-style: italic;} +.html4strict .sc0 {color: #00bbdd;} +.html4strict .sc1 {color: #ddbb00;} +.html4strict .sc2 {color: #009900;} +.html4strict .ln-xtra, .html4strict li.ln-xtra, .html4strict div.ln-xtra {background-color: #ffc;} +.html4strict span.xtra { display:block; } + +/** + * GeSHi Dynamically Generated Stylesheet + * -------------------------------------- + * Dynamically generated stylesheet for css + * CSS class: , CSS id: + * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann + * (http://qbnz.com/highlighter/ and http://geshi.org/) + * -------------------------------------- + */ +.css .de1, .css .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} +.css {font-family:monospace;} +.css .imp {font-weight: bold; color: red;} +.css li, .css .li1 {font-weight: normal; vertical-align:top;} +.css .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} +.css .li2 {font-weight: bold; vertical-align:top;} +.css .kw1 {color: #000000; font-weight: bold;} +.css .kw2 {color: #993333;} +.css .co1 {color: #a1a100;} +.css .co2 {color: #ff0000; font-style: italic;} +.css .coMULTI {color: #808080; font-style: italic;} +.css .es0 {color: #000099; font-weight: bold;} +.css .es2 {color: #000099; font-weight: bold;} +.css .br0 {color: #00AA00;} +.css .sy0 {color: #00AA00;} +.css .st0 {color: #ff0000;} +.css .nu0 {color: #cc66cc;} +.css .re0 {color: #cc00cc;} +.css .re1 {color: #6666ff;} +.css .re2 {color: #3333ff;} +.css .re3 {color: #933;} +.css .ln-xtra, .css li.ln-xtra, .css div.ln-xtra {background-color: #ffc;} +.css span.xtra { display:block; } + +/** + * GeSHi Dynamically Generated Stylesheet + * -------------------------------------- + * Dynamically generated stylesheet for java + * CSS class: , CSS id: + * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann + * (http://qbnz.com/highlighter/ and http://geshi.org/) + * -------------------------------------- + */ +.java .de1, .java .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;} +.java {font-family:monospace;} +.java .imp {font-weight: bold; color: red;} +.java li, .java .li1 {font-weight: normal; vertical-align:top;} +.java .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;} +.java .li2 {font-weight: bold; vertical-align:top;} +.java .kw1 {color: #000000; font-weight: bold;} +.java .kw2 {color: #000066; font-weight: bold;} +.java .kw3 {color: #003399;} +.java .kw4 {color: #000066; font-weight: bold;} +.java .co1 {color: #666666; font-style: italic;} +.java .co2 {color: #006699;} +.java .co3 {color: #008000; font-style: italic; font-weight: bold;} +.java .coMULTI {color: #666666; font-style: italic;} +.java .es0 {color: #000099; font-weight: bold;} +.java .br0 {color: #009900;} +.java .sy0 {color: #339933;} +.java .st0 {color: #0000ff;} +.java .nu0 {color: #cc66cc;} +.java .me1 {color: #006633;} +.java .me2 {color: #006633;} +.java .ln-xtra, .java li.ln-xtra, .java div.ln-xtra {background-color: #ffc;} +.java span.xtra { display:block; } + + + </style> + </head> + <body> + <h1 id="top"><abbr title="Generic Syntax Highlighter">GeSHi</abbr> Documentation</h1> + +<div class="header"> + +<p>Version 1.0.8.11</p> + +<p><img src="http://qbnz.com/highlighter/images/geshi.png" alt="The GeSHi Logo" /></p> + +<dl> +<dt>Authors:</dt> +<dd>© 2004 - 2007 <a href="mailto:nigel@geshi.org">Nigel McNie</a></dd> + +<dd>© 2007 - 2012 <a href="mailto:BenBE@geshi.org">Benny Baumann</a></dd> + +<dd>© 2008 - 2009 <a href="mailto:mail@milianw.de">Milian Wolff</a></dd> + +<dt><abbr title="Generic Syntax Highlighter">GeSHi</abbr> Website:</dt> +<dd><a href="http://qbnz.com/highlighter">http://qbnz.com/highlighter</a></dd> +</dl> + +</div> + +<p>This is the documentation for <abbr title="Generic Syntax Highlighter">GeSHi</abbr> - Generic Syntax Highlighter.</p> + +<p>The most modern version of this document is available on the web - +go to <a href="http://qbnz.com/highlighter/documentation.php">http://qbnz.com/highlighter/documentation.php</a> to view it.</p> + +<p>Any comments, questions, confusing points? Please <a href="#feedback">get in contact</a> with the developers! We +need all the information we can get to make the use of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> and everything related to it (including this documentation) +a breeze.</p> + +<h2 id="contents">Contents</h2> + +<div id="toc"><ul> +<li><a href="#introduction">1 Introduction</a><ul> +<li><a href="#features">1.1 Features</a></li> +<li><a href="#about-geshi">1.2 About <abbr title="Generic Syntax Highlighter">GeSHi</abbr></a></li> +<li><a href="#credits">1.3 Credits</a></li> +<li><a href="#feedback">1.4 Feedback</a></li> +</ul></li> +<li><a href="#the-basics">2 The Basics</a><ul> +<li><a href="#getting-geshi">2.1 Getting <abbr title="Generic Syntax Highlighter">GeSHi</abbr> work</a><ul> +<li><a href="#requirements">2.1.1 Requirements</a></li> +<li><a href="#downloading-geshi">2.1.2 Downloading <abbr title="Generic Syntax Highlighter">GeSHi</abbr></a></li> +<li><a href="#extracting-geshi">2.1.3 Extracting <abbr title="Generic Syntax Highlighter">GeSHi</abbr></a></li> +<li><a href="#installing-geshi">2.1.4 Installing <abbr title="Generic Syntax Highlighter">GeSHi</abbr></a></li> +</ul></li> +<li><a href="#basic-usage">2.2 Basic Usage</a></li> +</ul></li> +<li><a href="#advanced-features">3 Advanced Features</a><ul> +<li><a href="#the-code-container">3.1 The Code Container</a></li> +<li><a href="#line-numbers">3.2 Line Numbers</a><ul> +<li><a href="#enabling-line-numbers">3.2.1 Enabling Line Numbers</a></li> +<li><a href="#styling-line-numbers">3.2.2 Styling Line Numbers</a></li> +<li><a href="#starting-line-numbers">3.2.3 Choosing a Start Number</a></li> +</ul></li> +<li><a href="#using-css-classes">3.3 Using <abbr title="Cascading Style Sheets">CSS</abbr> Classes</a><ul> +<li><a href="#enabling-css-classes">3.3.1 Enabling <abbr title="Cascading Style Sheets">CSS</abbr> Classes</a></li> +<li><a href="#setting-css-class-id">3.3.2 Setting the <abbr title="Cascading Style Sheets">CSS</abbr> class and ID</a></li> +<li><a href="#getting-stylesheet">3.3.3 Getting the stylesheet for your code</a></li> +<li><a href="#using-an-external-stylesheet">3.3.4 Using an External Stylesheet</a></li> +</ul></li> +<li><a href="#changing-styles">3.4 Changing Styles</a><ul> +<li><a href="#the-overall-styles">3.4.1 The Overall Styles</a></li> +<li><a href="#line-number-styles">3.4.2 Line Number Styles</a></li> +<li><a href="#setting-keyword-styles">3.4.3 Setting Keyword Styles</a></li> +<li><a href="#setting-comment-styles">3.4.4 Setting Comment Styles</a></li> +<li><a href="#setting-other-styles">3.4.5 Setting Other Styles</a></li> +</ul></li> +<li><a href="#case-caps">3.5 Case Sensitivity and Auto Casing</a><ul> +<li><a href="#auto-caps-nocaps">3.5.1 Auto-Caps/NoCaps</a></li> +<li><a href="#setting-case-sensitivity">3.5.2 Setting Case Sensitivity</a></li> +</ul></li> +<li><a href="#changing-config">3.6 Changing the Source, Language, Config Options</a><ul> +<li><a href="#changing-the-source">3.6.1 Changing the Source Code</a></li> +<li><a href="#changing-the-language">3.6.2 Changing the Language</a></li> +<li><a href="#changing-the-path">3.6.3 Changing the Language Path</a></li> +<li><a href="#changing-the-charset">3.6.4 Changing the Character Set</a></li> +</ul></li> +<li><a href="#error-handling">3.7 Error Handling</a></li> +<li><a href="#disabling-lexics">3.8 Disabling styling of some Lexics</a></li> +<li><a href="#setting-tab-width">3.9 Setting the Tab Width</a></li> +<li><a href="#using-strict-mode">3.10 Using Strict Mode</a></li> +<li><a href="#adding-removing-keywords">3.11 Adding/Removing Keywords</a><ul> +<li><a href="#adding-a-keyword">3.11.1 Adding a Keyword</a></li> +<li><a href="#removing-a-keyword">3.11.2 Removing a Keyword</a></li> +<li><a href="#adding-a-keyword-group">3.11.3 Adding a Keyword Group</a></li> +<li><a href="#removing-a-keyword-group">3.11.4 Removing a Keyword Group</a></li> +</ul></li> +<li><a href="#headers-and-footers">3.12 Headers and Footers for Your Code</a><ul> +<li><a href="#keyword-substitution">3.12.1 Keyword Substitution</a></li> +<li><a href="#setting-header-content">3.12.2 Setting Header Content</a></li> +<li><a href="#setting-footer-content">3.12.3 Setting Footer Content</a></li> +<li><a href="#styling-header-content">3.12.4 Styling Header Content</a></li> +<li><a href="#styling-footer-content">3.12.5 Styling Footer Content</a></li> +</ul></li> +<li><a href="#keyword-urls">3.13 Keyword URLs</a><ul> +<li><a href="#setting-a-url">3.13.1 Setting a URL for a Keyword Group</a></li> +<li><a href="#disabling-urls">3.13.2 Disabling a URL for a Keyword Group</a></li> +<li><a href="#disabling-all-urls">3.13.3 Disabling all URLs for Keywords</a></li> +<li><a href="#styling-links">3.13.4 Styling Links</a></li> +<li><a href="#using-targets">3.13.5 Setting the Link Target</a></li> +</ul></li> +<li><a href="#using-contextual-importance">3.14 Using Contextual Importance</a></li> +<li><a href="#highlighting-special-lines-extra">3.15 Highlighting Special Lines “Extra”</a><ul> +<li><a href="#specifying-lines-to-highlight-extra">3.15.1 Specifying the Lines to Highlight Extra</a></li> +<li><a href="#styles-for-highlighted-lines">3.15.2 Styles for the Highlighted Lines</a></li> +</ul></li> +<li><a href="#adding-ids-to-each-line">3.16 Adding IDs to Each Line</a></li> +<li><a href="#getting-the-time-of-styling">3.17 Getting the Time of Styling</a></li> +</ul></li> +<li><a href="#language-files">4 Language Files</a><ul> +<li><a href="#language-file-example">4.1 An Example Language File</a></li> +<li><a href="#language-file-conventions">4.2 Language File Conventions</a></li> +<li><a href="#language-file-sections">4.3 Language File Sections</a><ul> +<li><a href="#language-file-header">4.3.1 The Header</a></li> +<li><a href="#language-file-start-indices">4.3.2 The First Indices</a></li> +<li><a href="#language-file-keywords">4.3.3 Keywords</a></li> +<li><a href="#language-file-symbols-case">4.3.4 Symbols and Case Sensitivity</a></li> +<li><a href="#language-file-styles">4.3.5 Styles for your Language File</a></li> +<li><a href="#language-file-urls">4.3.6 URLs for Functions</a></li> +<li><a href="#language-file-numbers-support">4.3.7 Number Highlighting Support</a></li> +<li><a href="#language-file-oo-support">4.3.8 Object Orientation Support</a></li> +<li><a href="#language-file-regexps">4.3.9 Using Regular Expressions</a></li> +<li><a href="#language-file-strict-mode">4.3.10 Contextual Highlighting and Strict Mode</a></li> +<li><a href="#language-file-parser-control">4.3.11 Special Parser Settings (Experimental)</a></li> +<li><a href="#language-file-tidying-up">4.3.12 Tidying Up</a></li> +</ul></li> +<li><a href="#lang-validation">4.4 Validating your language file</a></li> +</ul></li> +<li><a href="#method-constant-reference">5 Method/Constant Reference</a></li> +</ul> +</div> + +<h2 id="introduction">1 Introduction</h2><div class="nav"><a href="#features">Next</a></div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> is exactly what the acronym stands for: a <strong>Generic Syntax Highlighter</strong>. As long +as you have a language file for almost any computer language - whether it be a +scripting language, object orientated, markup or anything in between - <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can +highlight it! <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is extremely customisable - the same source can be highlighted +multiple times in multiple ways - the same source even with a different language. +<abbr title="Generic Syntax Highlighter">GeSHi</abbr> outputs XHTML strict compliant code<sup id="fnref:xhtml-strict"><a href="#fn:xhtml-strict" rel="footnote">1</a></sup>, and can +make use of <abbr title="Cascading Style Sheets">CSS</abbr> to save on the amount of output. And what is the cost for all of this? You need +<a href="http://php.net"><abbr title="PHP: HTML Preprocessor">PHP</abbr></a>. That’s all!</p> + +<h3 id="features">1.1 Features</h3><div class="nav"><a href="#introduction">Previous</a> | <a href="#introduction">Top</a> | <a href="#about-geshi">Next</a></div> + +<p>Here are some of the standout features of <abbr title="Generic Syntax Highlighter">GeSHi</abbr>:</p> + +<dl> +<dt>Programmed in <abbr title="PHP: HTML Preprocessor">PHP</abbr>:</dt> +<dd><abbr title="Generic Syntax Highlighter">GeSHi</abbr> is coded entirely in <abbr title="PHP: HTML Preprocessor">PHP</abbr>. This means that where ever you have <abbr title="PHP: HTML Preprocessor">PHP</abbr>, you +can have <abbr title="Generic Syntax Highlighter">GeSHi</abbr>! Almost any free webhost supports <abbr title="PHP: HTML Preprocessor">PHP</abbr>, and <abbr title="Generic Syntax Highlighter">GeSHi</abbr> works fine with <abbr title="PHP: HTML Preprocessor">PHP</abbr> > 4.3.0<sup id="fnref:php-version-note"><a href="#fn:php-version-note" rel="footnote">2</a></sup>.</dd> + +<dt>Support for many languages:</dt> +<dd><abbr title="Generic Syntax Highlighter">GeSHi</abbr> comes with more than <em>100</em> languages, including <abbr title="PHP: HTML Preprocessor">PHP</abbr>, <abbr title="Hypertext Markup Language">HTML</abbr>, <abbr title="Cascading Style Sheets">CSS</abbr>, Java, C, Lisp, <abbr title="Extensible Markup Language">XML</abbr>, Perl, Python, +<abbr title="Assembly language">ASM</abbr> and many more!</dd> + +<dt>XHTML compliant output:</dt> +<dd><abbr title="Generic Syntax Highlighter">GeSHi</abbr> produces XHTML compliant output, using stylesheets, so you need not worry about +<abbr title="Generic Syntax Highlighter">GeSHi</abbr> ruining your claims to perfection in the standards department ;)</dd> + +<dt>Highly customisable:</dt> +<dd><abbr title="Generic Syntax Highlighter">GeSHi</abbr> allows you to change the style of the output on the fly, use <abbr title="Cascading Style Sheets">CSS</abbr> classes or not, use an external +stylesheet or not, use line numbering, change the case of output keywords… the list goes on and on!</dd> + +<dt>Flexible:</dt> +<dd>Unfortunately, <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is quite load/time intensive for large blocks of code. However, you want speed? +Turn off any features you don’t like, pre-make a stylesheet and use <abbr title="Cascading Style Sheets">CSS</abbr> classes to reduce the amount of output and more - +it’s easy to strike a balance that suits you.</dd> +</dl> + +<p>This is just a taste of what you get with <abbr title="Generic Syntax Highlighter">GeSHi</abbr> - the best syntax highlighter for the web in the world!</p> + +<h3 id="about-geshi">1.2 About <abbr title="Generic Syntax Highlighter">GeSHi</abbr></h3><div class="nav"><a href="#features">Previous</a> | <a href="#introduction">Top</a> | <a href="#credits">Next</a></div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> started as a mod for the <a href="http://phpbb.net"><abbr title="PHP Burning Board">phpBB</abbr></a> forum system, to enable highlighting of more +languages than the available (which can be roughly estimated to exactly 0 ;)). However, it quickly spawned into an +entire project on its own. But now it has been released, work continues on a mod +for phpBB<sup id="fnref:phpbb-note"><a href="#fn:phpbb-note" rel="footnote">3</a></sup> - and hopefully for many forum systems, blogs and other web-based systems.</p> + +<p>Several systems are using <abbr title="Generic Syntax Highlighter">GeSHi</abbr> now, including:</p> + +<ul> +<li><a href="http://www.splitbrain.org/docuwiki/">Dokuwiki</a> - An advanced wiki engine</li> +<li><a href="http://gtk.php.net/">gtk.php.net</a> - Their manual uses <abbr title="Generic Syntax Highlighter">GeSHi</abbr> for syntax highlighting</li> +<li><a href="http://www.wordpress.org/">WordPress</a> - A powerful blogging system<sup id="fnref:plugin-only"><a href="#fn:plugin-only" rel="footnote">4</a></sup></li> +<li><a href="http://www.php-fusion.co.uk/"><abbr title="PHP: HTML Preprocessor">PHP</abbr>-Fusion</a> - A constantly evolving CMS</li> +<li><a href="http://cypreess.dione.cc/sqlm">SQL Manager</a> - A Postgres DBAL</li> +<li><a href="http://www.mamboserver.com/">Mambo</a> - A popular open source CMS</li> +<li><a href="http://www.mediawiki.org/">MediaWiki</a> - A leader in Wikis[^plugin-only]</li> +<li><a href="http://www.tikiwiki.org/">TikiWiki</a> - A megapowerful Wiki/CMS</li> +<li><a href="http://www.tikipro.org/">TikiPro</a> - Another powerful Wiki based on TikiWiki</li> +<li><a href="http://www.wikkawiki.org/">WikkaWiki</a> - A flexible and lightweight Wiki engine</li> +<li><a href="http://robloach.net/projects/phpscripts/rweb/">RWeb</a> - A site-building tool</li> +</ul> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> is the original work of <a href="mailto:nigel@geshi.org">Nigel McNie</a>. The project was later handed over to <a href="mailto:BenBE@geshi.org">Benny Baumann</a>. +Others have helped with aspects of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> also, they’re mentioned in the <a href="THANKS"><code>THANKS</code></a> file.</p> + +<h3 id="credits">1.3 Credits</h3><div class="nav"><a href="#about-geshi">Previous</a> | <a href="#introduction">Top</a> | <a href="#feedback">Next</a></div> + +<p>Many people have helped out with <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, whether by creating language files, submitting bug +reports, suggesting new ideas or simply pointing out a new idea or something I’d missed. All +of these people have helped to build a better <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, you can see them in the <a href="THANKS"><code>THANKS</code></a> +file.</p> + +<p>Do you want your name on this list? Why not make a language file, or submit a valid bug? Or perhaps help me with an +added feature I can’t get my head around, or suggest a new feature, or even port +<abbr title="Generic Syntax Highlighter">GeSHi</abbr> to anothe language? There’s lots you can do to help out, and I need it all :)</p> + +<h3 id="feedback">1.4 Feedback</h3><div class="nav"><a href="#credits">Previous</a> | <a href="#introduction">Top</a> | <a href="#the-basics">Next</a></div> + +<p>I need your feedback! <em>ANY</em>thing you have to say is fine, whether it be a query, +congratulations, a bug report or complaint, I don’t care! I want to make this software +the best it can be, and I need your help! You can contact me in the following ways:</p> + +<ul> +<li><strong>E-mail:</strong> <a href="mailto:nigel@geshi.org">Nigel McNie</a>, <a href="mailto:BenBE@geshi.org">Benny Baumann</a> or better yet: use the <a href="http://lists.sourceforge.net/mailman/listinfo/geshi-users">geshi-users</a> mailinglist</li> +<li><strong>Forums:</strong> <a href="http://sourceforge.net/forum?group_id=114997">Sourceforge.net Forums</a></li> +<li><strong>IRC:</strong> <a href="irc://irc.freenode.net/geshi">#geshi</a> on <a href="http://freenode.net">Freenode</a></li> +</ul> + +<p>Remember, any help I am grateful for :)</p> + +<h2 id="the-basics">2 The Basics</h2><div class="nav"><a href="#feedback">Previous</a> | <a href="#getting-geshi">Next</a></div> + +<p>In this section, you’ll learn a bit about <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, how it works and what it uses, how to install it and how to use +it to perform basic highlighting.</p> + +<h3 id="getting-geshi">2.1 Getting <abbr title="Generic Syntax Highlighter">GeSHi</abbr> work</h3><div class="nav"><a href="#the-basics">Previous</a> | <a href="#the-basics">Top</a> | <a href="#requirements">Next</a></div> + +<p>If you’re reading this and don’t have <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, that’s a problem ;). So, how do you get your hands on it?</p> + +<h4 id="requirements">2.1.1 Requirements</h4><div class="nav"><a href="#getting-geshi">Previous</a> | <a href="#getting-geshi">Top</a> | <a href="#downloading-geshi">Next</a></div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> requires the following to be installable:</p> + +<ul> +<li><strong><a href="http://php.net"><abbr title="PHP: HTML Preprocessor">PHP</abbr></a></strong>. It’s untested with anything other below 4.4.X. I hope to extend this range soon. I see no reason why +it won’t work with any version of <abbr title="PHP: HTML Preprocessor">PHP</abbr> above 4.3.0.</li> +<li><strong>Approximately 2 megabytes of space</strong>. The actual script is small - around 150K - but most of the size comes +from the large number of language files (over 100!). If you’re pushed for space, make sure you don’t upload to +your server the <code>docs/</code> or <code>contrib/</code> directory, and you may want to leave out any language files that don’t +take your fancy either.</li> +</ul> + +<p>As you can see, the requirements are very small. If <abbr title="Generic Syntax Highlighter">GeSHi</abbr> does NOT work for you in a particular version of <abbr title="PHP: HTML Preprocessor">PHP</abbr>, let +me know why and I’ll fix it.</p> + +<h4 id="downloading-geshi">2.1.2 Downloading <abbr title="Generic Syntax Highlighter">GeSHi</abbr></h4><div class="nav"><a href="#requirements">Previous</a> | <a href="#getting-geshi">Top</a> | <a href="#extracting-geshi">Next</a></div> + +<p>There are several ways to get a copy of <abbr title="Generic Syntax Highlighter">GeSHi</abbr>. The first and easiest way of all is +visiting <a href="http://qbnz.com/highlighter/downloads.php">http://qbnz.com/highlighter/downloads.php</a> to obtain the latest version. +This is suitable especially when you plan on using <abbr title="Generic Syntax Highlighter">GeSHi</abbr> on an production website +or otherwise need a stable copy for flawless operation.</p> + +<p>If you are somewhat more sophisticated or need a feature just recently implemented +you might consider getting <abbr title="Generic Syntax Highlighter">GeSHi</abbr> by downloading via SVN. There are multiple ways +for doing so and each one has its own advantages and disadvantages. Let’s cover +the various locations in the SVN you might download from:</p> + +<ul> +<li><a href="https://geshi.svn.sourceforge.net/svnroot/geshi/tags/">https://geshi.svn.sourceforge.net/svnroot/geshi/tags/</a>:<br /> +This directory holds all previous releases of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> each as a subdirectory. By downloading from here you can test your code with various old versions +in case something has been broken recently.</li> +<li><a href="https://geshi.svn.sourceforge.net/svnroot/geshi/branches/RELEASE_1_0_X_STABLE/geshi-1.0.X/src/">https://geshi.svn.sourceforge.net/svnroot/geshi/branches/RELEASE_1_0_X_STABLE/geshi-1.0.X/src/</a>:<br /> +This directory is the right place for you if you want to have reasonably current versions of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> but need something that is stable. This directory +is updated once in a while between updates whenever there’s something new but which is already reasonably stable. This branch is used to form the +actual release once the work is done.</li> +<li><a href="https://geshi.svn.sourceforge.net/svnroot/geshi/trunk/geshi-1.0.X/src/">https://geshi.svn.sourceforge.net/svnroot/geshi/trunk/geshi-1.0.X/src/</a>:<br /> +This directory is the working directory where every new feature, patch or improvement is committed to. This directory is updated regularly, but is not +guaranteed to be tested and stable at all times. With this version you’ll always get the latest version of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> out there, but beware of bugs! There +will be loads of them here! So this is absolutely <strong>not recommended</strong> for productive use!</li> +</ul> + +<p>If you have choosen the right SVN directory for you do a quick +<code class="highlighted bash"><span class="kw2">svn co</span> <span class="re1">$SVNPATH</span> geshi</code> where <code class="highlighted bash"><span class="co4">$</span>SVNPATH</code> is one of the above paths and your desired version of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> will be +downloaded into an subdirectory called “geshi”. If you got a version of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> +you can go on installing as shown below.</p> + +<h4 id="extracting-geshi">2.1.3 Extracting <abbr title="Generic Syntax Highlighter">GeSHi</abbr></h4><div class="nav"><a href="#downloading-geshi">Previous</a> | <a href="#getting-geshi">Top</a> | <a href="#installing-geshi">Next</a></div> + +<p>Packages come in <code>.zip</code>, <code>.tar.gz</code> and <code>.tar.bz2</code> format, so there’s no complaining about whether it’s available for +you. *nix users probably want <code>.tar.gz</code> or <code>.tar.bz2</code> and windows users probably want <code>.zip</code>. +And those lucky to download it directly from SVN don’t even need to bother extracting <abbr title="Generic Syntax Highlighter">GeSHi</abbr>.</p> + +<p>To extract <abbr title="Generic Syntax Highlighter">GeSHi</abbr> in Linux (<code>.tar.gz</code>):</p> + +<ol> +<li>Open a shell</li> +<li><code class="highlighted bash"><span class="kw3">cd</span></code> to the directory where the archive lies</li> +<li>Type <code class="highlighted bash"><span class="kw2">tar</span> <span class="re5">-xzvf</span> <span class="br0">[</span>filename<span class="br0">]</span></code> where <code>[filename]</code> is the name of the archive (typically <code>GeSHi-1.X.X.tar.gz</code>)</li> +<li><abbr title="Generic Syntax Highlighter">GeSHi</abbr> will be extracted to its own directory</li> +</ol> + +<p>To extract <abbr title="Generic Syntax Highlighter">GeSHi</abbr> in Windows (<code>.zip</code>):</p> + +<ol> +<li>Open Explorer</li> +<li>Navigate to the directory where the archive lies</li> +<li>Extract the archive. The method you use will depend on your configuration. Some people can right-click upon +the archive and select “Extract” from there, others may have to drag the archive and drop it upon an extraction program.</li> +</ol> + +<p>To extract from <code>.zip</code> you’ll need an unzipping program - <code class="highlighted bash"><span class="kw2">unzip</span></code> in Linux, or 7-Zip, WinZip, WinRAR or similar for Windows.</p> + +<h4 id="installing-geshi">2.1.4 Installing <abbr title="Generic Syntax Highlighter">GeSHi</abbr></h4><div class="nav"><a href="#extracting-geshi">Previous</a> | <a href="#getting-geshi">Top</a> | <a href="#basic-usage">Next</a></div> + +<p>Installing <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is a snap, even for those most new to <abbr title="PHP: HTML Preprocessor">PHP</abbr>. There’s no tricks involved. Honest!</p> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> is nothing more than a <abbr title="PHP: HTML Preprocessor">PHP</abbr> class with related language support files. Those of you familiar with <abbr title="PHP: HTML Preprocessor">PHP</abbr> can then +guess how easy the installation will be: simply copy it into your include path somewhere. You can put it wherever you +like in this include path. I recommend that you put the language files in a subdirectory of your include path too - +perhaps the same subdirectory that geshi.php is in. <strong>Remember this path</strong> for later.</p> + +<p>If you don’t know what an include path is, don’t worry. Simply copy <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to your webserver. So for example, say your +site is at <code>http://mysite.com/myfolder</code>, you can copy <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to your site so the directory structure is like this:</p> + +<pre><code>http://mysite.com/myfolder/geshi/[language files] +http://mysite.com/myfolder/geshi.php +</code></pre> + +<p>Or you can put it in any subdirectory you like:</p> + +<pre><code>http://mysite.com/myfolder/includes/geshi/[language files] +http://mysite.com/myfolder/includes/geshi.php +</code></pre> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>When using <abbr title="Generic Syntax Highlighter">GeSHi</abbr> on a live site, the only directory required is the <code>geshi/</code> subdirectory. Both <code>contrib/</code> and <code>docs/</code> are +worthless, and furthermore, as some people discovered, one of the files in contrib had a security hole (fixed as of 1.0.7.3). +I suggest you delete these directories from any live site they are on.</p> + +</div> + +<h3 id="basic-usage">2.2 Basic Usage</h3><div class="nav"><a href="#installing-geshi">Previous</a> | <a href="#the-basics">Top</a> | <a href="#advanced-features">Next</a></div> + +<p>Use of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is very easy. Here’s a simple example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span></pre></td><td class="de1"><pre class="de1"><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="co1">// Include the GeSHi library</span></span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="kw1">include_once</span> <span class="st_h">'geshi.php'</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="co1">//</span></span></span><span class="co1">// Define some source to highlight, a language to use</span> +<span class="xtra li2"><span class="de2"><span class="co1">// and the path to the language files</span></span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$source</span> <span class="sy0">=</span> <span class="st_h">'$foo = 45;</span> +<span class="xtra li2"><span class="de2"><span class="st_h">for ( $i = 1; $i < $foo; $i++ )</span></span></span><span class="st_h">{</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> echo "$foo\n";</span></span></span><span class="st_h"> --$foo;</span> +<span class="xtra li2"><span class="de2"><span class="st_h">}'</span><span class="sy0">;</span></span></span><span class="re0">$language</span> <span class="sy0">=</span> <span class="st_h">'php'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="co1">// Create a GeSHi object</span></span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="re0">$language</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="co1">// And echo the result!</span></span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>As you can see, there’s only three really important lines:</p> + +<p><code class="highlighted php"><span class="kw1">include_once</span><span class="br0">(</span><span class="st_h">'geshi.php'</span><span class="br0">)</span></code></p> + +<p>This line includes the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> class for use</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="re0">$language</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>This line creates a new <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object, holding the source and the language you want to use for highlighting.</p> + +<p><code class="highlighted php"><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>This line spits out the result :)</p> + +<p>So as you can see, simple usage of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is really easy. Just create a new <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object and get the code!</p> + +<p>Since version 1.0.2, there is a function included with <abbr title="Generic Syntax Highlighter">GeSHi</abbr> called <code>geshi_highlight</code>. This behaves exactly as the php +function <code class="highlighted php"><span class="kw3">highlight_string</span><span class="br0">(</span><span class="br0">)</span></code> behaves - all you do is pass it the language you want to use to highlight and the +path to the language files as well as the source. Here are some examples:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +</pre></td><td class="de1"><pre class="de1"><span class="co1">// Simply echo the highlighted code</span> +<span class="xtra li2"><span class="de2">geshi_highlight<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'php'</span><span class="sy0">,</span> <span class="re0">$path</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="co1">// Get the code back, for use later</span></span></span><span class="re0">$code</span> <span class="sy0">=</span> geshi_highlight<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'java'</span><span class="sy0">,</span> <span class="re0">$path</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// Check if there is an error with parsing this code</span> +<span class="xtra li2"><span class="de2"> </span></span><a href="http://www.php.net/ob_start"><span class="kw3">ob_start</span></a><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$result</span> <span class="sy0">=</span> geshi_highlight<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'perl'</span><span class="sy0">,</span> <span class="re0">$path</span><span class="br0">)</span><span class="sy0">;</span></span></span><span class="re0">$code</span> <span class="sy0">=</span> <a href="http://www.php.net/ob_get_contents"><span class="kw3">ob_get_contents</span></a><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><a href="http://www.php.net/ob_end_clean"><span class="kw3">ob_end_clean</span></a><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="kw1">if</span> <span class="br0">(</span> <span class="sy0">!</span><span class="re0">$result</span> <span class="br0">)</span></span></span><span class="br0">{</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// There was an error with highlighting...</span></span></span><span class="br0">}</span> +<span class="xtra li2"><span class="de2"><span class="kw1">else</span></span></span><span class="br0">{</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// All OK :)</span></span></span><span class="br0">}</span></pre></td></tr></tbody></table> + +<p>However, these are really simple examples and doesn’t even begin to cover all the advanced features of <abbr title="Generic Syntax Highlighter">GeSHi</abbr>. +If you want to learn more, continue on to section 3: Advanced Features.</p> + +<h2 id="advanced-features">3 Advanced Features</h2><div class="nav"><a href="#basic-usage">Previous</a> | <a href="#the-code-container">Next</a></div> + +<p>This section documents the advanced features of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> - strict mode, using <abbr title="Cascading Style Sheets">CSS</abbr> classes, changing styles on the fly, +disabling highlighting of some things and more.</p> + +<p>In this section there are many code snippets. For all of these, you should assume that the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> library has been +included, and a <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object has been created and is referenced by the variable <code class="highlighted php"><span class="re0">$geshi</span></code>. Normally, the +source, language and path used are arbitary.</p> + +<h3 id="the-code-container">3.1 The Code Container</h3><div class="nav"><a href="#advanced-features">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#line-numbers">Next</a></div> + +<p>The <strong>Code Container</strong> has a fundamental effect on the layout of your code before you even begin to style. What is the +Code Container? It’s the bit of markup that goes around your code to contain it. By default your code is surrounded +by a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code>, but you can also specify a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>.</p> + +<p>The <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> header is the default. If you’re familiar with <abbr title="Hypertext Markup Language">HTML</abbr> you’ll know that whitespace is rendered +“as is” by a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> element. The advantage for you is that if you use <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> the whitespace +you use will appear pretty much exactly how it is in the source, and what’s more <abbr title="Generic Syntax Highlighter">GeSHi</abbr> won’t have to add a whole +lot of <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">br</span> <span class="sy0">/</span>></span></code>’s and non-breaking spaces (<code class="highlighted html4strict"><span class="sc1">&nbsp;</span></code>) to your code to indent it. This saves +you source code (and your valuable visitors waiting time and your bandwidth).</p> + +<p>But if you don’t like <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> or it looks stupid in your browser no matter what styles you try to +apply to it or something similar, you might want to use a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> instead. A <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> will +result in more source - <abbr title="Generic Syntax Highlighter">GeSHi</abbr> will have to insert whitespace markup - but in return you can wrap long lines of code +that would otherwise have your browser’s horizontal scrollbar appear. Of course with <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> you can +<em>not</em> wrap lines if you please. The highlighter demo at the <a href="http://qbnz.com/highlighter"><abbr title="Generic Syntax Highlighter">GeSHi</abbr> home page</a> uses the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> +approach for this reason.</p> + +<p>At this stage there isn’t an option to wrap the code in <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">code</span>></span></code> tags (unless you use the function +<code>geshi_highlight</code>), partly because of the inconsistent and unexpected ways stuff in <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">code</span>></span></code> tags is +highlighted. Besides, <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">code</span>></span></code> is an inline element. But this may become an option in future versions.</p> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.2 there is a new header type, that specifies that the code should not be wrapped in anything at all.</p> + +<p>Another requested addition has been made in <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.20 to force <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to create a block around the highlighted +source even if this wasn’t necessary, thus styles that are applied to the output of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can directly influence +the code only even if headers and footers are present.</p> + +<p>To change/set the header to use, you call the <strong><code class="highlighted php">set_header_type<span class="br0">(</span><span class="br0">)</span></code></strong> method. It has one required argument which +defines the container type. Available are:</p> + +<dl> +<dt><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_type</span><span class="br0">(</span>GESHI_HEADER_DIV<span class="br0">)</span><span class="sy0">;</span></code></dt> +<dd> +<p>Puts a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> around both, code and linenumbers. Whitespace is converted to <code class="highlighted html4strict"><span class="sc1">&nbsp;</span></code> +sequences (i.e. one whitespace and the html entity of a non-breaking whitespace) to keep your indendation level +in tact. Tabs are converted as well and you can manually <a href="#setting-tab-width">define the tab-width</a>. Lines are automatically wrapped. +Linenumbers are created using an ordered list.</p> +</dd> + +<dt><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_type</span><span class="br0">(</span>GESHI_HEADER_PRE<span class="br0">)</span><span class="sy0">;</span></code></dt> +<dd> +<p>Wraps code and linenumbers in a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> container. This way whitespace is kept as-is and thus +this header produces less overhead then the <code>GESHI_HEADER_DIV</code> header type. Since linenumbers are still +created using an ordered list this header type produces <strong>invalid <abbr title="Hypertext Markup Language">HTML</abbr></strong>.</p> +</dd> + +<dt><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_type</span><span class="br0">(</span>GESHI_HEADER_PRE_VALID<span class="br0">)</span><span class="sy0">;</span></code></dt> +<dd><em><small>Available since 1.0.8</small></em></dd> + +<dd> +<p>When linenumbers are disabled, this behaves just like <code>GESHI_HEADER_PRE</code>. In the other case though, a +<code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> is used to wrap the code and linenumbers and the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> is put inside the list +items (<code class="highlighted html4strict"><span class="sc2"><<span class="kw2">li</span>></span></code>). This means slightly larger <abbr title="Hypertext Markup Language">HTML</abbr> output compared to <code>GESHI_HEADER_PRE</code>, but the +output is <strong>valid <abbr title="Hypertext Markup Language">HTML</abbr></strong>.</p> +</dd> + +<dt><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_type</span><span class="br0">(</span>GESHI_HEADER_PRE_TABLE<span class="br0">)</span><span class="sy0">;</span></code></dt> +<dd><em><small>Available since 1.0.8</small></em></dd> + +<dd> +<p>Once again a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> tag wraps the output. This time though no ordered list is used to create an ordered list, +but instead we use a table with two cells in a single row. The left cell contains a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> tag which holds all +linenumbers. The second cell holds the highlighted code, also wrapped in a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> tag, just like with +<code>GESHI_HEADER_PRE</code>.</p> +</dd> + +<dd> +<p>This produces <strong>valid <abbr title="Hypertext Markup Language">HTML</abbr></strong> and works around the nasty selection behaviour of Firefox and other Gecko based +browsers, see <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1651996&group_id=114997&atid=670231">SF#1651996</a> for more information.</p> +</dd> + +<dt><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_type</span><span class="br0">(</span>GESHI_HEADER_NONE<span class="br0">)</span><span class="sy0">;</span></code></dt> +<dd><em><small>Available since 1.0.7.2</small></em></dd> + +<dd> +<p>No wrapper is added.</p> +</dd> +</dl> + +<p>Those are the only arguments you should pass to <code class="highlighted php">set_header_type</code>. Passing anything else may cause inconsistencies +in what is used as the Code Container (although it <em>should</em> simply use a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code>). Better not to risk it.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>GESHI_HEADER_DIV, GESHI_HEADER_PRE, etc. are <em>constants</em>, so don’t put them in strings!</p> + +</div> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>The default styles for the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> and <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> <em>will be different</em>, especially if you use + line numbers!</p> + +<p>I have found that a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> results in code that is smaller than for that of a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>, you + should rectify this difference by using <strong><code class="highlighted php">set_overall_style<span class="br0">(</span><span class="br0">)</span></code></strong> if you need to. But be aware of this + difference for if you are changing the header type!</p> + +</div> + +<h3 id="line-numbers">3.2 Line Numbers</h3><div class="nav"><a href="#the-code-container">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#enabling-line-numbers">Next</a></div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> has the ability to add line numbers to your code (see the demo available at <a href="http://qbnz.com/highlighter/demo.php">http://qbnz.com/highlighter/demo.php</a> +to see what can be achieved). Line numbers are a great way to make your code look professional, especially if you use the +fancy line numbers feature.</p> + +<p>There are multiple methods for highlighting line numbers, but none of them is perfect. Of the various ways to highlight +line numbers <abbr title="Generic Syntax Highlighter">GeSHi</abbr> itself implements 2 different approaches, but allows you +by the way it generates the code to do the line numbers yourself if necessary - but more on this case later.</p> + +<p>The easiest approach is using the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">ol</span>></span></code>-tag for generating the line numbers, but +even though this is the easiest one there’s a big drawback with this one when +using Gecko-engine based browsers like Firefox or Konqueror. In these browsers +this approach will select the line numbers along with the code or will include extra markup in the selection.</p> + +<p>The other approach has been implemented in the 1.0.8 release of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> with the <code class="highlighted php">GESHI_HEADER_PRE_TABLE</code> header type. +When using this header type the line numbers are rendered apart from the source +in a table cell while the actual source is formatted as if the <code class="highlighted php">GESHI_HEADER_PRE</code> header had been used. +This approach works with Firefox and other Gecko-based browsers so far although extreme care +has to be taken when applying styles to your source as Windows has some fonts +where bold font is of different height than normal or italic text of the same fontface.</p> + +<h4 id="enabling-line-numbers">3.2.1 Enabling Line Numbers</h4><div class="nav"><a href="#line-numbers">Previous</a> | <a href="#line-numbers">Top</a> | <a href="#styling-line-numbers">Next</a></div> + +<p>To highlight a source with line numbers, you call the <code class="highlighted php">enable_line_numbers<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_line_numbers</span><span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span><span class="sy0">;</span></code> +Where <code class="highlighted php"><span class="re0">$flag</span></code> is one of the following:</p> + +<ul> +<li><code>GESHI_NORMAL_LINE_NUMBERS</code> - Use normal line numbering</li> +<li><code>GESHI_FANCY_LINE_NUMBERS</code> - Use fancy line numbering</li> +<li><code>GESHI_NO_LINE_NUMBERS</code> - Disable line numbers (default)</li> +</ul> + +<p>Normal line numbers means you specify a style for them, and that style gets applied to all of them. Fancy line numbers +means that you can specify a different style for each n<sup>th</sup> line number. You change the value of n (default 5):</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_line_numbers</span><span class="br0">(</span>GESHI_FANCY_LINE_NUMBERS<span class="sy0">,</span> <span class="nu0">37</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>The second parameter is not used in any other mode. Setting it to <code>0</code> is the same as simply using normal line numbers. +Setting it to <code>1</code> applies the fancy style to every line number.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>The values above are CONSTANTS - so don’t put them in strings!</p> + +</div> + +<h4 id="styling-line-numbers">3.2.2 Styling Line Numbers</h4><div class="nav"><a href="#enabling-line-numbers">Previous</a> | <a href="#line-numbers">Top</a> | <a href="#starting-line-numbers">Next</a></div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.2, line numbers are added by the use of ordered lists. This solves the old issues of line number +styles inheriting from styles meant for the code. Also, this solves an important issue about selecting code. For +example, line numbers look nice, but when you go to select the code in your browser to copy it? You got the line +numbers too! Not such a good thing, but thankfully this issue is now solved. What is the price? Unfortunately the +whole way that styles are inherited/used has changed for those of you who were familiar with 1.0.1, and there is +quite a bit more <abbr title="Hypertext Markup Language">HTML</abbr> involved. So think carefully about these things before you enable line numbers.</p> + +<p>Now, onto how to style line numbers:</p> + +<p>Styles are set for line numbers using the <code class="highlighted php">set_line_style<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'background: #fcfcfc;'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>If you’re using Fancy Line Numbers mode, you pass a second string for the style of the n<sup>th</sup> line number:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'background: #fcfcfc;'</span><span class="sy0">,</span> <span class="st_h">'background: #f0f0f0;'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>The second style will have no effect if you’re not using Fancy Line Numbers mode.</p> + +<p>By default, the styles you pass overwrite the current styles. Add a boolean “true” after the styles you specify to combine them with the current styles:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'background: red;'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// or, for fancy line numbers</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'background: red;'</span><span class="sy0">,</span> <span class="st_h">'background: blue;'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Due to a bug with Firefox the issue that should have been fixed with 1.0.2 has reappeared in another form as Firefox + includes extra text\markup into plaintext versions of webpage copies. This can sometimes be useful (actually it’s + used to get the plaintext version of this documentation), but more often is quite annoying. Best practice so far is + to either not use line numbers, or offer the visitor of your page a plaintext version of your source. To learn more + have a look at the <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1651996&group_id=114997&atid=670231">SF.net BugTracker Issue #1651996</a>. This will hopefully be fixed in <abbr title="Generic Syntax Highlighter">GeSHi</abbr> version 1.2 + or as soon as Firefox provides webdevelopers with adequate ways to control this feature - whichever comes first!</p> + +</div> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>When you set line number styles, the code will inherit those styles! This is the main issue to come out of the 1.0.2 + release. If you want your code to be styled in a predictable manner, you’ll have to call the <code class="highlighted php">set_code_style<span class="br0">(</span><span class="br0">)</span></code> + method to rectify this problem.</p> + +<p>Note also that you cannot apply background colours to line numbers unless you use <code class="highlighted php">set_overall_style<span class="br0">(</span><span class="br0">)</span></code>. + Here’s how you’d style:</p> + +<ol> +<li><p>Use <code class="highlighted php">set_overall_style<span class="br0">(</span><span class="br0">)</span></code> to style the overall code block. For example, you can set the border +style/colour, any margins and padding etc. using this method. <strong>In addition:</strong> set the background colour for +all the line numbers using this method.</p></li> +<li><p>Use <code class="highlighted php">set_line_style<span class="br0">(</span><span class="br0">)</span></code> to style the foreground of the line numbers. For example, you can set the colour, +weight, font, padding etc. of the line numbers using this method.</p></li> +<li><p>Use <code class="highlighted php">set_code_style<span class="br0">(</span><span class="br0">)</span></code> to explicitly override the styles you set for line numbers using +<code class="highlighted php">set_line_style</code>. For example, if you’d set the line numbers to be bold (or even if you’d only set +the fancy line number style to be bold), and you didn’t actually want your code to be bold, you’d make sure +that <code class="highlighted css"><span class="kw1">font-weight</span><span class="sy0">:</span> <span class="kw2">normal</span><span class="sy0">;</span></code> was in the stylesheet rule you passed to <code class="highlighted php">set_code_style<span class="br0">(</span><span class="br0">)</span></code>.</p> + +<p>This is the one major change from <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.1 - make sure you become familiar with this, and make sure that you check +any code you have already styled with 1.0.1 when you upgrade to make sure nothing bad happens to it.</p></li> +</ol> + +</div> + +<h4 id="starting-line-numbers">3.2.3 Choosing a Start Number</h4><div class="nav"><a href="#styling-line-numbers">Previous</a> | <a href="#line-numbers">Top</a> | <a href="#using-css-classes">Next</a></div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.2, you can now make the line numbers start at any number, rather than just 1. This feature is useful +if you’re highlighting code from a file from around a certain line number in that file, as an additional guide to +those who will view the code. You set the line numbers by calling the <code class="highlighted php">start_line_numbers_at<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">start_line_numbers_at</span><span class="br0">(</span><span class="re0">$number</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p><code class="highlighted php"><span class="re0">$number</span></code> must be a positive integer (or zero). If it is not, <abbr title="Generic Syntax Highlighter">GeSHi</abbr> will convert it anyway.</p> + +<p>If you have not enabled line numbers, this will have no effect.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>Although I’d like <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to have XHTML strict compliance, this feature will break compliancy (however transitional + compliancy remains). This is because the only widely supported way to change the start value for line numbers is + by using the <strong>start=”number”</strong> attribute of the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">ol</span>></span></code> tag. Although <abbr title="Cascading Style Sheets">CSS</abbr> does provide a mechanism for + doing this, it is only supported in Opera versions 7.5 and above (not even Firefox supports this).</p> + +</div> + +<h3 id="using-css-classes">3.3 Using <abbr title="Cascading Style Sheets">CSS</abbr> Classes</h3><div class="nav"><a href="#starting-line-numbers">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#enabling-css-classes">Next</a></div> + +<p>Using <abbr title="Cascading Style Sheets">CSS</abbr> to highlight your code instead of in-lining the styles is a definate bonus. Not only is it more compliant +(the w3c is deprecating the style attribute in XHTML 2.0) but it results in far less outputted code - up to a whopping +90% saving - which makes a *huge* difference to those unlucky of us on modems!</p> + +<h4 id="enabling-css-classes">3.3.1 Enabling <abbr title="Cascading Style Sheets">CSS</abbr> Classes</h4><div class="nav"><a href="#using-css-classes">Previous</a> | <a href="#using-css-classes">Top</a> | <a href="#setting-css-class-id">Next</a></div> + +<p>By default, <abbr title="Generic Syntax Highlighter">GeSHi</abbr> doesn’t use the classes, so it’s easy just to whack out some highlighted code if you need without +worrying about stylesheets. However, if you’re a bit more organised about it, you should use the classes ;). To turn +the use of classes on, you call the <code class="highlighted php">enable_classes<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>If you want to turn classes OFF for some reason later:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="kw4">false</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>If classes are enabled when <code class="highlighted php">parse_code<span class="br0">(</span><span class="br0">)</span></code> is called, then the resultant source will use <abbr title="Cascading Style Sheets">CSS</abbr> classes in the +output, otherwise it will in-line the styles. The advantages of using classes are great - the reduction in source will +be very noticeable, and what’s more you can use one stylesheet for several different highlights on the same page. In +fact, you can even use an external stylesheet and link to that, saving even more time and source (because stylesheets +are cached by browsers).</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>There have been problems with inline styles and the Symbol Highlighting added in 1.0.7.21. If you can you should + therefore turn <abbr title="Cascading Style Sheets">CSS</abbr> classes ON to avoid those issues. Although latest reworks in 1.0.8 should fix most of those issues.</p> + +</div> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>This should be the very first method you call after creating a new <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object! That way, various other methods + can act upon your choice to use classes correctly. In theory, you could call this method just before parsing the + code, but this may result in unexpected behaviour.</p> + +</div> + +<h4 id="setting-css-class-id">3.3.2 Setting the <abbr title="Cascading Style Sheets">CSS</abbr> class and ID</h4><div class="nav"><a href="#enabling-css-classes">Previous</a> | <a href="#using-css-classes">Top</a> | <a href="#getting-stylesheet">Next</a></div> + +<p>You can set an overall <abbr title="Cascading Style Sheets">CSS</abbr> class and id for the code. This is a good feature that allows you to use the same +stylesheet for many different snippets of code. You call <code class="highlighted php">set_overall_class<span class="br0">(</span><span class="br0">)</span></code> and <code class="highlighted php">set_overall_id</code> +to accomplish this:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_overall_class</span><span class="br0">(</span><span class="st_h">'mycode'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_overall_id</span><span class="br0">(</span><span class="st_h">'dk48ck'</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>The default classname is the name of the language being used. This means you can use just the one stylesheet for all +sources that use the same language, and incidentally means that you probably won’t have to call these methods too often.</p> + +<p><abbr title="Cascading Style Sheets">CSS</abbr> IDs are supposed to be unique, and you should use them as such. Basically, you can specify an ID for your code +and then use that ID to highlight that code in a unique way. You’d do this for a block of code that you expressly +wanted to be highlighted in a different way (see the section below on gettting the stylesheet for your code for an example).</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 the class name will always include the language name used for highlighting.</p> + +</div> + +<h4 id="getting-stylesheet">3.3.3 Getting the stylesheet for your code</h4><div class="nav"><a href="#setting-css-class-id">Previous</a> | <a href="#using-css-classes">Top</a> | <a href="#using-an-external-stylesheet">Next</a></div> + +<p>The other half of using <abbr title="Cascading Style Sheets">CSS</abbr> classes is getting the stylesheet for use with the classes. <abbr title="Generic Syntax Highlighter">GeSHi</abbr> makes it very easy to +get a stylesheet for your code, with one easy method call:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +</pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// Here we have code that will spit out a header for</span> +<span class="xtra li2"><span class="de2"><span class="co1">// a stylesheet. For example:</span></span></span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="st_h">'<html></span></span></span><span class="st_h"><head><title>Code</title></span> +<span class="xtra li2"><span class="de2"><span class="st_h"><style type="text/css"></span></span></span><span class="st_h"><!--'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="co1">// Echo out the stylesheet for this code block</span></span></span><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">get_stylesheet</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// And continue echoing the page</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="kw1">echo</span> <span class="st_h">'--></span> +<span class="xtra li2"><span class="de2"><span class="st_h"></style></head></span></span></span><span class="st_h"><body>'</span><span class="sy0">;</span></pre></td></tr></tbody></table> + +<p>The <code class="highlighted php">get_stylesheet<span class="br0">(</span><span class="br0">)</span></code> method gets the stylesheet for your code in one easy call. All you need to do +is output it in the correct place. As you can also see, you don’t even have to enable class usage to get the +stylesheet nessecary either - however not enabling classes but using the stylesheet may result in problems later.</p> + +<p>By default, <code class="highlighted php">get_stylesheet<span class="br0">(</span><span class="br0">)</span></code> tries to echo the least amount of code possible. Although currently it doesn’t +check to see if a certain lexic is even in the source, you can expect this feature in the future. At least for the +present however, if you explicitly disable the highlighting of a certain lexic, or disable line numbers, the related +<abbr title="Cascading Style Sheets">CSS</abbr> will not be outputted. This may be a bad thing for you perhaps you’re going to use the stylesheet for many blocks +of code, some with line numbers, others with some lexic enabled where this source has it disabled. Or perhaps you’re +building an external stylesheet and want all lexics included. So to get around this problem, you do this:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">get_stylesheet</span><span class="br0">(</span><span class="kw4">false</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>This turns economy mode off, and all of the stylesheet will be outputted regardless.</p> + +<p>Now lets say you have several snippets of code, using the same language. In most of them you don’t mind if they’re +highlighted the same way (in fact, that’s exactly what you want) but in one of them you’d like the source to be +highlighted differently. Here’s how you can do that:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span>29 +<span class="xtra li2"><span class="de2">30</span></span>31 +<span class="xtra li2"><span class="de2">32</span></span>33 +<span class="xtra li2"><span class="de2">34</span></span>35 +<span class="xtra li2"><span class="de2">36</span></span>37 +<span class="xtra li2"><span class="de2">38</span></span>39 +<span class="xtra li2"><span class="de2">40</span></span>41 +<span class="xtra li2"><span class="de2">42</span></span>43 +<span class="xtra li2"><span class="de2">44</span></span>45 +<span class="xtra li2"><span class="de2">46</span></span>47 +<span class="xtra li2"><span class="de2">48</span></span></pre></td><td class="de1"><pre class="de1"><span class="co1">// assume path is the default "geshi/" relative to the current directory</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi1</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source1</span><span class="sy0">,</span> <span class="re0">$lang</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi2</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source2</span><span class="sy0">,</span> <span class="re0">$lang</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi3</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source3</span><span class="sy0">,</span> <span class="re0">$lang</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="co1">// Turn classes on for all sources</span></span></span><span class="re0">$geshi1</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi2</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi3</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="co1">// Make $geshi3 unique</span></span></span><span class="re0">$geshi3</span><span class="sy0">-></span><span class="me1">set_overall_id</span><span class="br0">(</span><span class="st_h">'different'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span> +<span class="xtra li2"><span class="de2"><span class="co1">//</span></span></span><span class="co1">// Methods are called on $geshi3 to change styles...</span> +<span class="xtra li2"><span class="de2"><span class="co1">//</span></span></span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="st_h">'<html></span></span></span><span class="st_h"><head><title>Code</title></span> +<span class="xtra li2"><span class="de2"> </span></span><span class="st_h"><style type="text/css"></span> +<span class="xtra li2"><span class="de2"><span class="st_h"><!--</span></span></span><span class="st_h">'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// Get the nessecary stylesheets</span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="re0">$geshi1</span><span class="sy0">-></span><span class="me1">get_stylesheet</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="re0">$geshi3</span><span class="sy0">-></span><span class="me1">get_stylesheet</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="st_h">'--></span></span></span><span class="st_h"></style></head></span> +<span class="xtra li2"><span class="de2"><span class="st_h"><body>'</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"> </span></span><span class="kw1">echo</span> <span class="st_h">'Code snippet 1:'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="re0">$geshi1</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span><span class="kw1">echo</span> <span class="st_h">'Code snippet 2 (same highlighting as 1):'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="kw1">echo</span> <span class="re0">$geshi2</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="st_h">'Code snippet 3 (DIFFERENT highlighting):'</span><span class="sy0">;</span></span></span><span class="kw1">echo</span> <span class="re0">$geshi3</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="st_h">'</body></html>'</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>Before version 1.0.2, you needed to set the class of the code you wanted to be unique to the empty string. This +limitation has been removed in version 1.0.2 - if you set the ID of a block of code, all styling will be done based +on that ID alone.</p> + +<h4 id="using-an-external-stylesheet">3.3.4 Using an External Stylesheet</h4><div class="nav"><a href="#getting-stylesheet">Previous</a> | <a href="#using-css-classes">Top</a> | <a href="#changing-styles">Next</a></div> + +<p>An external stylesheet can reduce even more the amount of code needed to highlight some source. However there are some +drawbacks with this. To use an external stylesheet, it’s up to you to link it in to your document, normally with +the following <abbr title="Hypertext Markup Language">HTML</abbr>:</p> + +<table class="html4strict geshicode"><thead><tr><td colspan="2" class="head">HTML code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +</pre></td><td class="de1"><pre class="de1"><span class="sc2"><<a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>></span> +<span class="xtra li2"><span class="de2"><span class="sc2"><<a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>></span></span></span><span class="sc2"><<a href="http://december.com/html/4/element/link.html"><span class="kw2">link</span></a> <span class="kw3">rel</span><span class="sy0">=</span><span class="st0">"stylesheet"</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">"text/css"</span> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">"url_to_stylesheet.css"</span> <span class="sy0">/</span>></span></pre></td></tr></tbody></table> + +<p>In your external stylesheet you put <abbr title="Cascading Style Sheets">CSS</abbr> declarations for your code. Then just make sure you’re using the correct class (use +<code class="highlighted php">set_overall_class<span class="br0">(</span><span class="br0">)</span></code> to ensure this) and this should work fine.</p> + +<p>This method is great if you don’t mind the source always being highlighted the same (in particular, if you’re making a +plugin for a forum/wiki/other system, using an external stylesheet is a good idea!). It saves a small amount of code and +your bandwidth, and it’s relatively easy to just change the stylesheet should you need to. However, using this will render +the methods that change the styles of the code useless, because of course the stylesheet is no longer being dynamically +generated. You can still disable highlighting of certain lexics dynamically, however.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>As of version 1.0.2, <abbr title="Generic Syntax Highlighter">GeSHi</abbr> comes with a <code>contrib/</code> directory, which in it contains a “wizard” script for creating + a stylesheet. Although this script is by no means a complete solution, it will create the necessary rules for the + basic lexics - comments, strings for example. Things not included in the wizard include regular expressions for any + language that uses them (<abbr title="PHP: HTML Preprocessor">PHP</abbr> and <abbr title="Extensible Markup Language">XML</abbr> are two languages that use them), and keyword-link styles. However, this script + should take some of the tedium out of the job of making an external stylesheet. Expect a much better version of this + script in version 1.2!</p> + +</div> + +<h3 id="changing-styles">3.4 Changing Styles</h3><div class="nav"><a href="#using-an-external-stylesheet">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#the-overall-styles">Next</a></div> + +<p>One of the more powerful features of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is the ability to change the style of the output dynamically. Why be chained +to the boring styles the language authors make up? You can change almost every single aspect of highlighted code - and +can even say whether something is to be highlighted at all.</p> + +<p>If you’re confused about “styles”, you probably want to have a quick tutorial in them so you know what you can do with +them. Checkout the homepage of <abbr title="Cascading Style Sheets">CSS</abbr> at <a href="http://www.w3.org/Style/CSS">http://www.w3.org/Style/CSS</a>.</p> + +<h4 id="the-overall-styles">3.4.1 The Overall Styles</h4><div class="nav"><a href="#changing-styles">Previous</a> | <a href="#changing-styles">Top</a> | <a href="#line-number-styles">Next</a></div> + +<p>The code outputted by <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is either in a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> or a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> (see the section entitled “The +Code Container”), and this can be styled.</p> + +<p><code>$geshi->set_overall_style('... styles ...');</code> +Where styles is a string containing valid <abbr title="Cascading Style Sheets">CSS</abbr> declarations. By default, these styles overwrite the current styles, but you can change this by adding a second parameter:</p> + +<p><code>$geshi->set_overall_style('color: blue;', true);</code> +The default styles “shine through” wherever anything isn’t highlighted. Also, you can apply more advanced styles, like position: (fixed|relative) etc, because a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>/<code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> is a block level element.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Remember that a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> will by default have a larger font size than a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code>, as discussed in the section <a href="#the-code-container">“The Code Container”</a>.</p> + +</div> + +<h4 id="line-number-styles">3.4.2 Line Number Styles</h4><div class="nav"><a href="#the-overall-styles">Previous</a> | <a href="#changing-styles">Top</a> | <a href="#setting-keyword-styles">Next</a></div> + +<p>You may wish to refer to the section [Styling Line Numbers][1] before reading this section.</p> + +<p>As of version 1.0.2, the way line numbers are generated is different, so therefore the way that they are styled is +different. In particular, now you cannot set the background style of the fancy line numbers to be different from that +of the normal line numbers.</p> + +<p>Line number styles are set by using the method <code class="highlighted php">set_line_style</code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="re0">$style1</span><span class="sy0">,</span> <span class="re0">$style2</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p><code class="highlighted php"><span class="re0">$style1</span></code> is the style of the line numbers by default, and <code class="highlighted php"><span class="re0">$style2</span></code> is the style of the fancy line numbers.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>Things have changed since 1.0.1! This note is <strong>very</strong> important - please make sure you check this twice before + complaining about line numbers!</p> + +<p>Because of the way that ordered lists are done in <abbr title="Hypertext Markup Language">HTML</abbr>, there really isn’t normally a way to style the actual + <em>numbers</em> in the list. I’ve cheated somewhat with <abbr title="Generic Syntax Highlighter">GeSHi</abbr> - I’ve made it possible to use <abbr title="Cascading Style Sheets">CSS</abbr> to style the <em>foreground</em> of + the line numbers. So therefore, you can change the color, font size and type, and padding on them. If you want to + have a pretty background, you <strong>must</strong> use <code class="highlighted php">set_overall_style<span class="br0">(</span><span class="br0">)</span></code> to do this, and use <code class="highlighted php">set_code_style<span class="br0">(</span><span class="br0">)</span></code> + to style the actual code! This is explained in the section above: <a href="#styling-line-numbers">Styling Line Numbers</a>.</p> + +<p>In addition, the styles for fancy line numbers <em>is now the difference between the normal styles and the styles you want + to achieve</em>. For example, in <abbr title="Generic Syntax Highlighter">GeSHi</abbr> prior to 1.0.2 you may have done this to style line numbers:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'color: red; font-weight: bold;'</span><span class="sy0">,</span> <span class="st_h">'color: green; font-weight: bold'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Now you instead can do this:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_line_style</span><span class="br0">(</span><span class="st_h">'color: red; font-weight: bold;'</span><span class="sy0">,</span> <span class="st_h">'color: green;'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>The <code class="highlighted css"><span class="kw1">font-weight</span><span class="sy0">:</span> <span class="kw2">bold</span><span class="sy0">;</span></code> will automatically carry through to the fancy styles. This is actually a small + saving in code - but the difference may be confusing for anyone using 1.0.1 at first.</p> + +</div> + +<h4 id="setting-keyword-styles">3.4.3 Setting Keyword Styles</h4><div class="nav"><a href="#line-number-styles">Previous</a> | <a href="#changing-styles">Top</a> | <a href="#setting-comment-styles">Next</a></div> + +<p>Perhaps the most regular change you will make will be to the styles of a keyword set. In order to change the styles for +a particular set, you’ll have to know what the set is called first. Sets are numbered from 1 up. Typically, set 1 +contains keywords like <code>if</code>, <code>while</code>, <code>do</code>, <code>for</code>, <code>switch</code> etc, set 2 contains <code>null</code>, <code>false</code>, <code>true</code> etc, set 3 +contains function inbuilt into the language (<code>echo</code>, <code>htmlspecialchars</code> etc. in <abbr title="PHP: HTML Preprocessor">PHP</abbr>) and set 4 contains data types and +similar variable modifiers: <code>int</code>, <code>double</code>, <code>real</code>, <code>static</code> etc. However these things are not fixed, and you should +check the language file to see what key you want. Having a familiarity with a language file is definately a plus for +using it.</p> + +<p>To change the styles for a keyword set, call the <code class="highlighted php">set_keyword_group_style<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_keyword_group_style</span><span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$group</span></code> is the group to change the styles for and <code class="highlighted php"><span class="re0">$styles</span></code> is a string containing the styles +to apply to that group.</p> + +<p>By default, the styles you pass overwrite the current styles. Add a boolean <code class="highlighted php"><span class="kw4">true</span></code> after the styles you specify to +combine them with the current styles:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_keyword_group_style</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="st_h">'color: white;'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<h4 id="setting-comment-styles">3.4.4 Setting Comment Styles</h4><div class="nav"><a href="#setting-keyword-styles">Previous</a> | <a href="#changing-styles">Top</a> | <a href="#setting-other-styles">Next</a></div> + +<p>To change the styles for a comment group, call the <code class="highlighted php">set_comments_style<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_comments_style</span><span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$group</span></code> is either a number corresponding to a single-line comment, or the string <code class="highlighted php"><span class="st_h">'MULTI'</span></code> to +specify multiline comments:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_comments_style</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="st_h">'font-style: italic;'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_comments_style</span><span class="br0">(</span><span class="st_h">'MULTI'</span><span class="sy0">,</span> <span class="st_h">'display: hidden;'</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>By default, the styles you pass overwrite the current styles. Add a boolean <code class="highlighted php"><span class="kw4">true</span></code> after the styles you specify to +combine them with the current styles:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_comments_style</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="st_h">'font-weight: 100;'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>In 1.0.7.22 a new kind of Comments called “COMMENT_REGEXP” has been added. Those are handled by setting single + line comment styles.</p> + +</div> + +<h4 id="setting-other-styles">3.4.5 Setting Other Styles</h4><div class="nav"><a href="#setting-comment-styles">Previous</a> | <a href="#changing-styles">Top</a> | <a href="#case-caps">Next</a></div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> can highlight many other aspects of your source other than just keywords and comments. Strings, Numbers, Methods +and Brackets among other things can all also be highlighted. Here are the related methods:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +</pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_escape_characters_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_symbols_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_strings_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span></span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_numbers_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_methods_style</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span></span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_regexps_style</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span></pre></td></tr></tbody></table> + +<p><code class="highlighted php"><span class="re0">$styles</span></code> is a string containing valid stylesheet declarations, while <code class="highlighted php"><span class="re0">$preserve_defaults</span></code> should be set +to <code class="highlighted php"><span class="kw4">true</span></code> if you want your styles to be merged with the previous styles. In the case of <code class="highlighted php">set_methods_style<span class="br0">(</span><span class="br0">)</span></code>, +you should select a group to set the styles of, check the language files for the number used for each “object splitter”.</p> + +<p>Like this was possible for <code class="highlighted php">set_method_style</code> a new parameter has been introduced for +<code class="highlighted php">set_symbols_style</code> too which allows you to select the group of symbols for which you’d like to change your +style. <code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_symbols_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$preserve_defaults</span><span class="br0">[</span><span class="sy0">,</span> <span class="re0">$group</span><span class="br0">]</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span></code> If the third parameter is not +given, group 0 is assumed. Furthermore you should note that any changes to group 0 are also reflected in the bracket +style, i.e. a pass-through call to <code class="highlighted php">set_bracket_style</code> is made.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 multiple styles for strings and numbers are supported, though the API doesn’t provide full access yet.</p> + +</div> + +<h3 id="case-caps">3.5 Case Sensitivity and Auto Casing</h3><div class="nav"><a href="#setting-other-styles">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#auto-caps-nocaps">Next</a></div> + +<p>Controlling the case of the outputted source is an easy job with <abbr title="Generic Syntax Highlighter">GeSHi</abbr>. You can control which keywords are converted in +case, and also control whether keywords are checked in a case sensitive manner.</p> + +<h4 id="auto-caps-nocaps">3.5.1 Auto-Caps/NoCaps</h4><div class="nav"><a href="#case-caps">Previous</a> | <a href="#case-caps">Top</a> | <a href="#setting-case-sensitivity">Next</a></div> + +<p>Auto-Caps/NoCaps is a nifty little feature that capitalises or lowercases automatically certain lexics when they are +styled. I dabble in QuickBASIC, a dialect of BASIC which is well known for it’s capatalisation, and SQL is another +language well known for using caps for readability.</p> + +<p>To change what case lexics are rendered in, you call the <code class="highlighted php">set_case_keywords<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_case_keywords</span><span class="br0">(</span><span class="re0">$caps_modifier</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>The valid values to pass to this method are:</p> + +<ul> +<li><code>GESHI_CAPS_NO_CHANGE</code> - Don’t change the case of any lexics, leave as they are found</li> +<li><code>GESHI_CAPS_UPPER</code> - Uppercase all lexics found</li> +<li><code>GESHI_CAPS_LOWER</code> - Lowercase all lexics found</li> +</ul> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>When I say “lexic”, I mean “keywords”. <strong>Any</strong> keyword in <strong>any</strong> keyword array will be modified using this option! + This is one small area of inflexibility I hope to fix in 1.2.X.</p> + +</div> + +<p>I suspect this will only be used to specify <code>GESHI_CAPS_NO_CHANGE</code> to turn off autocaps for languages like SQL +and BASIC variants, like so:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'sql'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_case_keywords</span><span class="br0">(</span>GESHI_CAPS_NO_CHANGE<span class="br0">)</span><span class="sy0">;</span> <span class="co1">// don't want keywords capatalised</span></span></span></pre></td></tr></tbody></table> + +<p>All the same, it can be used for some interesting effects:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'java'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="co1">// Anyone who's used java knows how picky it is about CapitalLetters...</span></span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_case_keywords</span><span class="br0">(</span>GESHI_CAPS_LOWER<span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="co1">// No *way* the source will look right now ;)</span></span></span></pre></td></tr></tbody></table> + +<h4 id="setting-case-sensitivity">3.5.2 Setting Case Sensitivity</h4><div class="nav"><a href="#auto-caps-nocaps">Previous</a> | <a href="#case-caps">Top</a> | <a href="#changing-config">Next</a></div> + +<p>Some languages, like <abbr title="PHP: HTML Preprocessor">PHP</abbr>, don’t mind what case function names and keywords are in, while others, like Java, depend on +such pickiness to maintain their bad reputations ;). In any event, you can use the <code class="highlighted php">set_case_sensitivity<span class="br0">(</span><span class="br0">)</span></code> +to change the case sensitiveness of a particular keyword group from the default:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_case_sensitivity</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$sensitivity</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$key</span></code> is the key of the group for which you wish to change case sensitivness for (see the language file +for that language), and <code class="highlighted php"><span class="re0">$sensitivity</span></code> is a boolean value - <code class="highlighted php"><span class="kw4">true</span></code> if the keyword is case sensitive, and +<code class="highlighted php"><span class="kw4">false</span></code> if not.</p> + +<h3 id="changing-config">3.6 Changing the Source, Language, Config Options</h3><div class="nav"><a href="#setting-case-sensitivity">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#changing-the-source">Next</a></div> + +<p>What happens if you want to change the source to be highlighted on the fly, or the language. Or if you want to specify +any of those basic fields after you’ve created a <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object? Well, that’s where these methods come in.</p> + +<h4 id="changing-the-source">3.6.1 Changing the Source Code</h4><div class="nav"><a href="#changing-config">Previous</a> | <a href="#changing-config">Top</a> | <a href="#changing-the-language">Next</a></div> + +<p>To change the source code, you call the <code class="highlighted php">set_source<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_source</span><span class="br0">(</span><span class="re0">$newsource</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source1</span><span class="sy0">,</span> <span class="st_h">'php'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// Method calls to specify various options...</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$code1</span> <span class="sy0">=</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_source</span><span class="br0">(</span><span class="re0">$source2</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$code2</span> <span class="sy0">=</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<h4 id="changing-the-language">3.6.2 Changing the Language</h4><div class="nav"><a href="#changing-the-source">Previous</a> | <a href="#changing-config">Top</a> | <a href="#changing-the-path">Next</a></div> + +<p>What happens if you want to change the language used for highlighting? Just call <code class="highlighted php">set_language<span class="br0">(</span><span class="br0">)</span></code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_language</span><span class="br0">(</span><span class="st_h">'newlanguage'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span></pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'php'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$code</span> <span class="sy0">=</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="co1">// Highlight GeSHi's output</span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_source</span><span class="br0">(</span><span class="re0">$code</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_language</span><span class="br0">(</span><span class="st_h">'html4strict'</span><span class="br0">)</span><span class="sy0">;</span></span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_classes</span><span class="br0">(</span><span class="kw4">false</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.5, you can use the method <code class="highlighted php">load_from_file<span class="br0">(</span><span class="br0">)</span></code> to load the source code and language from a file. +Simply pass this method a file name and it will attempt to load the source and set the language.</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">load_from_file</span><span class="br0">(</span><span class="re0">$file_name</span><span class="sy0">,</span> <span class="re0">$lookup</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p><code class="highlighted php"><span class="re0">$file_name</span></code> is the file name to use, and <code class="highlighted php"><span class="re0">$lookup</span></code> is an optional parameter that contains a lookup +array to use for deciding which language to choose. You can use this to override <abbr title="Generic Syntax Highlighter">GeSHi</abbr>’s default lookup array, which +may not contain the extension of the file you’re after, or perhaps does have your extension but under a different +language. The lookup array is of the form:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span></pre></td><td class="de1"><pre class="de1"><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'lang_name'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'extension'</span><span class="sy0">,</span> <span class="st_h">'extension'</span><span class="sy0">,</span> <span class="sy0">...</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'lang_name'</span> <span class="sy0">...</span> +<span class="xtra li2"><span class="de2"><span class="br0">)</span><span class="sy0">;</span></span></span></pre></td></tr></tbody></table> + +<p>Also, you can use the method <code class="highlighted php">get_language_name_from_extension<span class="br0">(</span><span class="br0">)</span></code> if you need to convert a file extension +to a valid language name. This method will return the empty string if it could not find a match in the lookup, and +like <code class="highlighted php">load_from_file</code> it accepts an optional second parameter that contains a lookup array.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Names are case-insensitive - they will be converted to lower case to match a language file however. So if you’re + making a language file, remember it should have a name in lower case.</p> + +</div> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>What you pass to this method is the name of a language file, minus the .php extension. If you’re writing a plugin + for a particular application, it’s up to you to somehow convert user input into a valid language name.</p> + +</div> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 this function does not reset language settings for an already loaded language. If you want + to highlight code in the same language with different settings add the optional + <code class="highlighted php"><span class="re0">$force_reset</span> parameter</code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_language</span><span class="br0">(</span><span class="st_h">'language'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +</div> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> <code class="highlighted php"><span class="kw1">include</span><span class="br0">(</span><span class="br0">)</span></code>s the language file, so be careful to make sure that users can’t pass some wierd + language name to include any old script! <abbr title="Generic Syntax Highlighter">GeSHi</abbr> tries to strip non-valid characters out of a language name, but + you should always do this your self anyway. In particular, language files are always lower-case, with either + alphanumeric characters, dashes or underscores in their name.</p> + +<p>At the very least, strip “/” characters out of a language name.</p> + +</div> + +<h4 id="changing-the-path">3.6.3 Changing the Language Path</h4><div class="nav"><a href="#changing-the-language">Previous</a> | <a href="#changing-config">Top</a> | <a href="#changing-the-charset">Next</a></div> + +<p>What happens if all of a sudden you want to use language files from a different directory from the current +language file location? You call the <code class="highlighted php">set_language_path<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_language_path</span><span class="br0">(</span><span class="re0">$newpath</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>It doesn’t matter whether the path has a trailing slash after it or not - only that it points to a valid folder. +If it doesn’t, that’s your tough luck ;)</p> + +<h4 id="changing-the-charset">3.6.4 Changing the Character Set</h4><div class="nav"><a href="#changing-the-path">Previous</a> | <a href="#changing-config">Top</a> | <a href="#error-handling">Next</a></div> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Although <abbr title="Generic Syntax Highlighter">GeSHi</abbr> itself does not require to know the exact charset of your source you + will need to set this option when processing sources where multi-byte characters can occur. + As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.18 internally a rewrite of <code class="highlighted php"><span class="kw3">htmlspecialchars</span></code> is used + due to a security flaw in that function that is unpatched in even the most recent PHP4 versions and in PHP5 < 5.2. + Although this does no longer explicitely require the charset it is required again + as of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 to properly handle multi-byte characters (e.g. after an escape char).</p> + +</div> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 the default charset has been changed to UTF-8.</p> + +</div> + +<p>As of version 1.0.3, you can use the method <code class="highlighted php">set_encoding<span class="br0">(</span><span class="br0">)</span></code> to specify the character set that your source +is in. Valid names are those names that are valid for the <abbr title="PHP: HTML Preprocessor">PHP</abbr> mbstring library:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_encoding</span><span class="br0">(</span><span class="re0">$encoding</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>There is a table of valid strings for <code class="highlighted php"><span class="re0">$encoding</span></code> at the php.net manual linked to above. If you do not +specify an encoding, or specify an invalid encoding, the character set used is ISO-8859-1.</p> + +<h3 id="error-handling">3.7 Error Handling</h3><div class="nav"><a href="#changing-the-charset">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#disabling-lexics">Next</a></div> + +<p>What happens if you try to highlight using a language that doesn’t exist? Or if <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can’t read a required file? +The results you get may be confusing. You may check your code over and over, and never find anything wrong. <abbr title="Generic Syntax Highlighter">GeSHi</abbr> +provides ways of finding out if <abbr title="Generic Syntax Highlighter">GeSHi</abbr> itself found anything wrong with what you tried to do. After highlighting, +you can call the <code class="highlighted php">error<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="st_h">'hi'</span><span class="sy0">,</span> <span class="st_h">'thisLangIsNotSupported'</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p><code class="highlighted php"><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">error</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span> <span class="co1">// echoes error message</span></code></p> + +<p>The error message you will get will look like this:</p> + +<blockquote> + <p><abbr title="Generic Syntax Highlighter">GeSHi</abbr> Error: <abbr title="Generic Syntax Highlighter">GeSHi</abbr> could not find the language thisLangIsNotSupported (using path geshi/) (code 2)</p> +</blockquote> + +<p>The error outputted will be the last error <abbr title="Generic Syntax Highlighter">GeSHi</abbr> came across, just like how <code class="highlighted php"><span class="kw3">mysql_error</span><span class="br0">(</span><span class="br0">)</span></code> works.</p> + +<h3 id="disabling-lexics">3.8 Disabling styling of some Lexics</h3><div class="nav"><a href="#error-handling">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#setting-tab-width">Next</a></div> + +<p>One disadvantage of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> is that for large source files using complex languages, it can be quite slow with +every option turned on. Although future releases will concentrate on the speed/resource side of highlighting, +you can gain speed by disabling some of the highlighting options. This is done by using a +series of <code class="highlighted php">set_<span class="sy0">*</span>_highlighting</code> methods:</p> + +<dl> +<dt><code class="highlighted php">set_keyword_group_highlighting<span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="re0">$flag</span><span class="br0">)</span><span class="sy0">:</span></code></dt> +<dd>Sets whether a particular <code class="highlighted php"><span class="re0">$group</span></code> of keywords is to be highlighted or not. Consult the necessary +language file(s) to see what <code class="highlighted php"><span class="re0">$group</span></code> should be for each group (typically a positive integer). +<code class="highlighted php"><span class="re0">$flag</span></code> is <code class="highlighted php"><span class="kw4">false</span></code> if you want to disable highlighting of this group, and <code class="highlighted php"><span class="kw4">true</span></code> if you want +to re-enable higlighting of this group. If you disable a keyword group then even if the keyword group has a +related URL one will not be generated for that keyword.</dd> + +<dt><code class="highlighted php">set_comments_highlighting<span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="re0">$flag</span><span class="br0">)</span><span class="sy0">:</span></code></dt> +<dd>Sets whether a particular <code class="highlighted php"><span class="re0">$group</span></code> of comments is to be highlighted or not. Consult the necessary +language file(s) to see what <code class="highlighted php"><span class="re0">$group</span></code> should be for each group (typically a positive integer, or th +string <code class="highlighted php"><span class="st_h">'MULTI'</span></code> for multiline comments. <code class="highlighted php"><span class="re0">$flag</span></code> is <code class="highlighted php"><span class="kw4">false</span></code> if you want to disable +highlighting of this group, and <code class="highlighted php"><span class="kw4">true</span></code> if you want to re-enable highlighting of this group.</dd> + +<dt><code class="highlighted php">set_regexps_highlighting<span class="br0">(</span><span class="re0">$regexp</span><span class="sy0">,</span> <span class="re0">$flag</span><span class="br0">)</span><span class="sy0">:</span></code></dt> +<dd>Sets whether a particular <code class="highlighted php"><span class="re0">$regexp</span></code> is to be highlighted or not. Consult the necessary language file(s) +to see what <code class="highlighted php"><span class="re0">$regexp</span></code> should be for each regexp (typically a positive integer, or the string <code class="highlighted php"><span class="st_h">'MULTI'</span></code> +for multiline comments. <code class="highlighted php"><span class="re0">$flag</span></code> is <code class="highlighted php"><span class="kw4">false</span></code> if you want to disable highlighting of this group, +and <code class="highlighted php"><span class="kw4">true</span></code> if you want to re-enable highlighting of this group.</dd> +</dl> + +<p>The following methods:</p> + +<ul> +<li><code class="highlighted php">set_escape_characters_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code></li> +<li><code class="highlighted php">set_symbols_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code></li> +<li><code class="highlighted php">set_strings_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code></li> +<li><code class="highlighted php">set_numbers_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code></li> +<li><code class="highlighted php">set_methods_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code></li> +</ul> + +<p>Work on their respective lexics (e.g. <code class="highlighted php">set_methods_highlighting<span class="br0">(</span><span class="br0">)</span></code> will disable/enable highlighting of methods). +For each method, if <code class="highlighted php"><span class="re0">$flag</span></code> is <code class="highlighted php"><span class="kw4">false</span></code> then the related lexics will not be highlighted at all (this +means no <abbr title="Hypertext Markup Language">HTML</abbr> will surround the lexic like usual, saving on time and bandwidth.</p> + +<p>In case all highlighting should be disabled or reenabled <abbr title="Generic Syntax Highlighter">GeSHi</abbr> provides two methods called <code class="highlighted php">disable_highlighting<span class="br0">(</span><span class="br0">)</span></code> +and <code class="highlighted php">enable_highlighting<span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span></code>. The optional paramter <code class="highlighted php"><span class="re0">$flag</span></code> has been added in 1.0.7.21 and specifies +the desired state, i.e. <code class="highlighted php"><span class="kw4">true</span></code> (default) to turn all highlighting on, or <code class="highlighted php"><span class="kw4">false</span></code> to turn all +highlighting off. Since 1.0.7.21 the method <code class="highlighted php">disnable_highlighting<span class="br0">(</span><span class="br0">)</span></code> has become deprecated.</p> + +<h3 id="setting-tab-width">3.9 Setting the Tab Width</h3><div class="nav"><a href="#disabling-lexics">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#using-strict-mode">Next</a></div> + +<p>If you’re using the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">pre</span>></span></code> header, tabs are handled automatically by your browser, and in general you can +count on good results. However, if you’re using the <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code> header, you may want to specify a tab +width explicitly.</p> + +<p>Note that tabs created in this fashion won’t be like normal tabs - there won’t be “tab-stops” as such, instead +tabs will be replaced with the specified number of spaces - just like most editors do.</p> + +<p>To change the tab width, you call the <code class="highlighted php">set_tab_width<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_tab_width</span><span class="br0">(</span><span class="re0">$width</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$width</span></code> is the width in spaces that you’d like tabs to be.</p> + +<h3 id="using-strict-mode">3.10 Using Strict Mode</h3><div class="nav"><a href="#setting-tab-width">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#adding-removing-keywords">Next</a></div> + +<p>Some languages like to get tricky, and jump in and out of the file that they’re in. For example, the vast +majority of you reading this will have used a <abbr title="PHP: HTML Preprocessor">PHP</abbr> file. And you know that <abbr title="PHP: HTML Preprocessor">PHP</abbr> code is only executed if it’s +within delimiters like <code class="highlighted php"><span class="kw2"><?php</span></code> and <code class="highlighted php"><span class="sy1">?></span></code> (there are others of course…). So what happens if you do the +following in a php file?</p> + +<p><code class="highlighted php"><img src="<span class="kw2"><?php</span> <span class="kw1">echo</span> <span class="kw3">rand</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">100</span><span class="br0">)</span> <span class="sy1">?></span>" /></code></p> + +<p>When using <abbr title="Generic Syntax Highlighter">GeSHi</abbr> without strict mode, or using a bad highlighter, you’ll end up with scrambled crap, +especially if you’re being slack about where you’re putting your quotes, you could end up with the rest +of your file as bright blue. Fortunately, you can tell <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to be “strict” about just when it highlights +and when it does not, using the <code class="highlighted php">enable_strict_mode<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_strict_mode</span><span class="br0">(</span><span class="re0">$mode</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$mode</span></code> is <code class="highlighted php"><span class="kw4">true</span></code> or not specified to enable strict mode, or <code class="highlighted php"><span class="kw4">false</span></code> to disable +strict mode if you’ve already turned it and don’t want it now.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 there is a new way to tell <abbr title="Generic Syntax Highlighter">GeSHi</abbr> when to use Strict Mode + which is somewhat more intelligent than in previous releases. <abbr title="Generic Syntax Highlighter">GeSHi</abbr> now also + allows <code class="highlighted php">GESHI_MAYBE</code>, <code class="highlighted php">GESHI_NEVER</code> and <code class="highlighted php">GESHI_ALWAYS</code> instead of <code class="highlighted php"><span class="kw4">true</span></code> and <code class="highlighted php"><span class="kw4">false</span></code>. + Basically <code class="highlighted php">GESHI_ALWAYS</code> (<code class="highlighted php"><span class="kw4">true</span></code>) always enables strict mode, + whereas <code class="highlighted php">GESHI_NEVER</code> (<code class="highlighted php"><span class="kw4">false</span></code>) completely disables strict mode. The new thing is + <code class="highlighted php">GESHI_MAYBE</code> which enables strict mode if it finds any sequences of code + that look like strict block delimiters.</p> + +<p>By the way: That’s why this section had to be changed, as the new documentation + tool we now use, applies this feature and thus auto-detects when strict mode has to be used…</p> + +</div> + +<h3 id="adding-removing-keywords">3.11 Adding/Removing Keywords</h3><div class="nav"><a href="#using-strict-mode">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#adding-a-keyword">Next</a></div> + +<p>Lets say that you’re working on a large project, with many files, many classes and many functions. Perhaps also you +have the source code on the web and highlighted by <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, perhaps as a front end to CVS, as a learning tool, something +to refer to, whatever. Well, why not highlight the names of the functions and classes <em>your</em> project uses, as well +as the standard functions and classes? Or perhaps you’re not interested in highlighting certain functions, and would +like to remove them? Or maybe you don’t mind if an entire function group goes west in the interest of speed? <abbr title="Generic Syntax Highlighter">GeSHi</abbr> +can handle all of this!</p> + +<h4 id="adding-a-keyword">3.11.1 Adding a Keyword</h4><div class="nav"><a href="#adding-removing-keywords">Previous</a> | <a href="#adding-removing-keywords">Top</a> | <a href="#removing-a-keyword">Next</a></div> + +<p>If you want to add a keyword to an existing keyword group, you use the <code class="highlighted php">add_keyword</code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">add_keyword</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$word</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$key</span></code> is the index of the group of keywords you want to add this keyword to, and <code class="highlighted php"><span class="re0">$word</span></code> is +the word to add.</p> + +<p>This implies knowledge of the language file to know the correct index.</p> + +<h4 id="removing-a-keyword">3.11.2 Removing a Keyword</h4><div class="nav"><a href="#adding-a-keyword">Previous</a> | <a href="#adding-removing-keywords">Top</a> | <a href="#adding-a-keyword-group">Next</a></div> + +<p>Perhaps you want to remove a keyword from an existing group. Maybe you don’t use it and want to save yourself some time. Whatever the reason, you can remove it using the <code class="highlighted php">remove_keyword</code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">remove_keyword</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$word</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$key</span></code> is the index of the group of keywords that you want to remove this keyword from, and +<code class="highlighted php"><span class="re0">$word</span></code> is the word to remove.</p> + +<p>This implies knowledge of the language file to know the correct index - most of the time the keywords you’ll +want to remove will be in group 3, but this is not guaranteed and you should check the language file first.</p> + +<p>This function is silent - if the keyword is not in the group you specified, nothing awful will happen ;)</p> + +<h4 id="adding-a-keyword-group">3.11.3 Adding a Keyword Group</h4><div class="nav"><a href="#removing-a-keyword">Previous</a> | <a href="#adding-removing-keywords">Top</a> | <a href="#removing-a-keyword-group">Next</a></div> + +<p>Lets say for your big project you have several main functions and classes that you’d like highlighted. Why not +add them as their own group instead of having them highlighted the same way as other keywords? Then you can make +them stand out, and people can instantly see which functions and classes are user defined or inbuilt. Furthermore, +you could set the URL for this group to point at the API documentation of your project.</p> + +<p>You add a keyword group by using the <code class="highlighted php">add_keyword_group</code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">add_keyword_group</span><span class="br0">(</span><span class="re0">$key</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="sy0">,</span> <span class="re0">$case_sensitive</span><span class="sy0">,</span> <span class="re0">$words</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$key</span></code> is the key that you want to use to refer to this group, <code class="highlighted php"><span class="re0">$styles</span></code> is the styles that +you want to use to style this group, <code class="highlighted php"><span class="re0">$case_sensitive</span></code> is <strong>true</strong> or <strong>false</strong> depending on whether you want +this group of keywords to be case sensitive or not and <code class="highlighted php"><span class="re0">$words</span></code> is an array of words (or a string) of which +words to add to this group. For example:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">add_keyword_group</span><span class="br0">(</span><span class="nu0">10</span><span class="sy0">,</span> <span class="st_h">'color: #600000;'</span><span class="sy0">,</span> <span class="kw4">false</span><span class="sy0">,</span> <span class="kw3">array</span><span class="br0">(</span><span class="st_h">'myfunc_1'</span><span class="sy0">,</span> <span class="st_h">'myfunc_2'</span><span class="sy0">,</span> <span class="st_h">'myfunc_3'</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Adds a keyword group referenced by index 10, of which all keywords in the group will be dark red, each keyword +can be in any case and which contains the keywords “myfunc_1”, “myfunc_2” and “myfunc_3”.</p> + +<p>After creating such a keyword group, you may call other <abbr title="Generic Syntax Highlighter">GeSHi</abbr> methods on it, just as you would for any other keyword group.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>If you specify a <code class="highlighted php"><span class="re0">$key</span></code> for which there is already a keyword group, the old keyword group will be + overwritten! Most language files don’t use numbers larger than 5, so I recommend you play it safe and use a number + like 10 or 42.</p> + +</div> + +<h4 id="removing-a-keyword-group">3.11.4 Removing a Keyword Group</h4><div class="nav"><a href="#adding-a-keyword-group">Previous</a> | <a href="#adding-removing-keywords">Top</a> | <a href="#headers-and-footers">Next</a></div> + +<p>Perhaps you <em>really</em> need speed? Why not just remove an entire keyword group? <abbr title="Generic Syntax Highlighter">GeSHi</abbr> won’t have to loop through +each keyword checking for its existance, saving much time. You remove a keyword group by using the +<code class="highlighted php">remove_keyword_group</code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">remove_keyword_group</span><span class="br0">(</span><span class="re0">$key</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$key</span></code> is the key of the group you wish to remove. This implies knowleged of the language file.</p> + +<h3 id="headers-and-footers">3.12 Headers and Footers for Your Code</h3><div class="nav"><a href="#removing-a-keyword-group">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#keyword-substitution">Next</a></div> + +<p>So you want to add some special information to the highlighted source? <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can do that too! You can specify headers +and footers for your code, style them, and insert information from the highlighted source into your header or footer.</p> + +<h4 id="keyword-substitution">3.12.1 Keyword Substitution</h4><div class="nav"><a href="#headers-and-footers">Previous</a> | <a href="#headers-and-footers">Top</a> | <a href="#setting-header-content">Next</a></div> + +<p>In your header and footer, you can put special keywords that will be replaced with actual configuration values for +this <abbr title="Generic Syntax Highlighter">GeSHi</abbr> object. The keywords you can use are:</p> + +<ul> +<li><strong><code><TIME></code></strong> or <strong><code>{TIME}</code></strong>: Is replaced by the time it took for the <code class="highlighted php">parse_code<span class="br0">(</span><span class="br0">)</span></code> method - i.e., +how long it took for your code to be highlighted. The time is returned to three decimal places.</li> +<li><strong><code><LANGUAGE></code></strong> or <strong><code>{LANGUAGE}</code></strong>: Is replaced by a nice, friendly version of the language name used to +highlight this code.</li> +<li><strong><code><SPEED></code></strong> or <strong><code>{SPEED}</code></strong>: Is replaced by the speed at which your source has been processed.</li> +<li><strong><code><VERSION></code></strong> or <strong><code>{VERSION}</code></strong>: The <abbr title="Generic Syntax Highlighter">GeSHi</abbr> version used to highlight the code.</li> +</ul> + +<h4 id="setting-header-content">3.12.2 Setting Header Content</h4><div class="nav"><a href="#keyword-substitution">Previous</a> | <a href="#headers-and-footers">Top</a> | <a href="#setting-footer-content">Next</a></div> + +<p>The header for your code is a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>, which is inside the containing block. Therefore, it is affected by +the method <code class="highlighted php">set_overall_style</code>, and should contain the sort of <abbr title="Hypertext Markup Language">HTML</abbr> that belongs in a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>. +You may use any <abbr title="Hypertext Markup Language">HTML</abbr> you like, and format it as an <abbr title="Hypertext Markup Language">HTML</abbr> document. You should use valid <abbr title="Hypertext Markup Language">HTML</abbr> - convert to entities +any quotemarks or angle brackets you want displayed. You set the header content using the method +<code class="highlighted php">set_header_content<span class="br0">(</span><span class="br0">)</span></code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_content</span><span class="br0">(</span><span class="re0">$content</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$content</span></code> is the <abbr title="Hypertext Markup Language">HTML</abbr> you want to use for the header.</p> + +<h4 id="setting-footer-content">3.12.3 Setting Footer Content</h4><div class="nav"><a href="#setting-header-content">Previous</a> | <a href="#headers-and-footers">Top</a> | <a href="#styling-header-content">Next</a></div> + +<p>The footer for your code is a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>, which is inside the containing block. Therefore, it is affected by +the method <code class="highlighted php">set_overall_style</code>, and should contain the sort of <abbr title="Hypertext Markup Language">HTML</abbr> that belongs in a <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">div</span>></span></code>. +You may use any <abbr title="Hypertext Markup Language">HTML</abbr> you like, and format it as an <abbr title="Hypertext Markup Language">HTML</abbr> document. You should use valid <abbr title="Hypertext Markup Language">HTML</abbr> - convert to entities +any quotemarks or angle brackets you want displayed. You set the footer content using the method +<code class="highlighted php">set_footer_content<span class="br0">(</span><span class="br0">)</span></code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_footer_content</span><span class="br0">(</span><span class="re0">$content</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$content</span></code> is the <abbr title="Hypertext Markup Language">HTML</abbr> you want to use for the footer.</p> + +<h4 id="styling-header-content">3.12.4 Styling Header Content</h4><div class="nav"><a href="#setting-footer-content">Previous</a> | <a href="#headers-and-footers">Top</a> | <a href="#styling-footer-content">Next</a></div> + +<p>You can apply styles to the header content you have set with the <code class="highlighted php">set_header_content_style</code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_header_content_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$styles</span></code> is the stylesheet declarations you want to use to style the header content.</p> + +<h4 id="styling-footer-content">3.12.5 Styling Footer Content</h4><div class="nav"><a href="#styling-header-content">Previous</a> | <a href="#headers-and-footers">Top</a> | <a href="#keyword-urls">Next</a></div> + +<p>You can apply styles to the footer content you have set with the <code class="highlighted php">set_footer_content_style</code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_footer_content_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$styles</span></code> is the stylesheet declarations you want to use to style the footer content.</p> + +<h3 id="keyword-urls">3.13 Keyword URLs</h3><div class="nav"><a href="#styling-footer-content">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#setting-a-url">Next</a></div> + +<p>As of version 1.0.2, <abbr title="Generic Syntax Highlighter">GeSHi</abbr> allows you to specify a URL for keyword groups. This URL is used by <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to convert +the keywords in that group into URLs to appropriate documentation. And using <code class="highlighted php">add_keyword_group</code> you +can add functions and classes from your own projects and use the URL functionality to provide a link to your +own API documentation.</p> + +<h4 id="setting-a-url">3.13.1 Setting a URL for a Keyword Group</h4><div class="nav"><a href="#keyword-urls">Previous</a> | <a href="#keyword-urls">Top</a> | <a href="#disabling-urls">Next</a></div> + +<p>To set the URL to be used for a keyword group, you use the <code class="highlighted php">set_url_for_keyword_group<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_url_for_keyword_group</span><span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="re0">$url</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$group</span></code> is the keyword group you want to assign the URL for, and <code class="highlighted php"><span class="re0">$url</span></code> is the URL for +this group of keywords.</p> + +<p>You may be wondering how to make each keyword in the group point to the correct URL. You do this by putting +<code>{FNAME}</code> in the URL at the correct place. For example, <abbr title="PHP: HTML Preprocessor">PHP</abbr> makes it easy by linking <code>www.php.net/function-name</code> +to the documentation for that function, so the URL used is <code>http://www.php.net/{FNAME}</code>.</p> + +<p>Of course, when you get to a language like Java, that puts its class documentation in related folders, it gets a +little trickier to work out an appropriate URL (see the Java language file!). I hope to provide some kind of +redirection service at the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> website in the future.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>As of Version 1.0.7.21 there have been added two more symbols you can use to link to functions. <code>{FNAMEL}</code> + will generate the lowercase version of the keyword, <code>{FNAMEU}</code> will generate the uppercase version. <code>{FNAME}</code> + will provide the keyword as specified in the language file. <strong>Use one of these more specific placeholders + if possible</strong>, as they result in less overhead while linking for case insensitive languages.</p> + +</div> + +<h4 id="disabling-urls">3.13.2 Disabling a URL for a Keyword Group</h4><div class="nav"><a href="#setting-a-url">Previous</a> | <a href="#keyword-urls">Top</a> | <a href="#disabling-all-urls">Next</a></div> + +<p>It’s easy to disable a URL for a keyword group: Simply use the method <code class="highlighted php">set_url_for_keyword_group<span class="br0">(</span><span class="br0">)</span></code> to pass +an empty string as the URL:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_url_for_keyword_group</span><span class="br0">(</span><span class="re0">$group</span><span class="sy0">,</span> <span class="st_h">''</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<h4 id="disabling-all-urls">3.13.3 Disabling all URLs for Keywords</h4><div class="nav"><a href="#disabling-urls">Previous</a> | <a href="#keyword-urls">Top</a> | <a href="#styling-links">Next</a></div> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.18, you can disable all URL linking for keywords:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_keyword_links</span><span class="br0">(</span><span class="kw4">false</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<h4 id="styling-links">3.13.4 Styling Links</h4><div class="nav"><a href="#disabling-all-urls">Previous</a> | <a href="#keyword-urls">Top</a> | <a href="#using-targets">Next</a></div> + +<p>You can also style the function links. You can style their default status, hovered, active and visited status. +All of this is controlled by one method, <code class="highlighted php">set_link_styles<span class="br0">(</span><span class="br0">)</span></code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_link_styles</span><span class="br0">(</span><span class="re0">$mode</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$mode</span></code> is one of four values:</p> + +<ul> +<li><strong><code class="highlighted php">GESHI_LINK</code>:</strong> The default style of the links.</li> +<li><strong><code class="highlighted php">GESHI_HOVER</code>:</strong> The style of the links when they have focus (the mouse is hovering over them).</li> +<li><strong><code class="highlighted php">GESHI_ACTIVE</code>:</strong> The style of the links when they are being clicked.</li> +<li><strong><code class="highlighted php">GESHI_VISITED</code>:</strong> The style of links that the user has already visited.</li> +</ul> + +<p>And <code class="highlighted php"><span class="re0">$styles</span></code> is the stylesheet declarations to apply to the links.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>The names <code class="highlighted php">GESHI_LINK</code>, <code class="highlighted php">GESHI_HOVER</code> … are constants. Don’t put them in quotes!</p> + +</div> + +<h4 id="using-targets">3.13.5 Setting the Link Target</h4><div class="nav"><a href="#styling-links">Previous</a> | <a href="#keyword-urls">Top</a> | <a href="#using-contextual-importance">Next</a></div> + +<p>Perhaps you want to set the target of link attributes, so the manual pages open in a new window? Use the +<code class="highlighted php">set_link_target<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_link_target</span><span class="br0">(</span><span class="re0">$target</span><span class="sy0">,</span> <span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$target</span></code> is any valid (X)<abbr title="Hypertext Markup Language">HTML</abbr> target value - <code>_blank</code> or <code>_top</code> for example.</p> + +<h3 id="using-contextual-importance">3.14 Using Contextual Importance</h3><div class="nav"><a href="#using-targets">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#highlighting-special-lines-extra">Next</a></div> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>This functionality is not only buggy, but is proving very hard to implement in 1.1.X. Therefore, this + functionality may well be <strong>removed</strong> in 1.2.0. You are hereby warned!</p> + +</div> + +<p>This feature allows you to mark a part of your source as important. But as the +implementation its use is deprecated and you should consider using +the “Highlight Lines Extra” feature described below.</p> + +<h3 id="highlighting-special-lines-extra">3.15 Highlighting Special Lines “Extra”</h3><div class="nav"><a href="#using-contextual-importance">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#specifying-lines-to-highlight-extra">Next</a></div> + +<p>An alternative (and more stable) method of highlighting code that is important +is to use extra highlighting by line. Although you may not know what line numbers +contain the important lines, if you do this method is a much more flexible way of +making important lines stand out.</p> + +<h4 id="specifying-lines-to-highlight-extra">3.15.1 Specifying the Lines to Highlight Extra</h4><div class="nav"><a href="#highlighting-special-lines-extra">Previous</a> | <a href="#highlighting-special-lines-extra">Top</a> | <a href="#styles-for-highlighted-lines">Next</a></div> + +<p>To specify which lines to highlight extra, you pass an array containing the line numbers to <code class="highlighted php">highlight_lines_extra<span class="br0">(</span><span class="br0">)</span></code>:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">highlight_lines_extra</span><span class="br0">(</span><span class="re0">$array</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>The array could be in the form <code class="highlighted php"><span class="kw3">array</span><span class="br0">(</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">7</span><span class="sy0">,</span> <span class="nu0">12</span><span class="sy0">,</span> <span class="nu0">344</span><span class="sy0">,</span> <span class="nu0">4242</span><span class="br0">)</span></code>, made from a DB query, generated +from looking through the source for certain important things and working out what line those things are… +However you get the line numbers, the array should simply be an array of integers.</p> + +<p>Here’s an example, using the same source as before:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +</pre></td><td class="de1"><pre class="de1"><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="co1">// Here we go again! This time we'll simply highlight the 8th line</span></span></span><span class="co1">//</span> +<span class="xtra li2"><span class="de2"><span class="re0">$source</span> <span class="sy0">=</span> <span class="st_h">'public int[][] product ( n, m )</span></span></span><span class="st_h">{</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> int [][] ans = new int[n][m];</span></span></span><span class="st_h"> for ( int i = 0; i < n; i++ )</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> {</span></span></span><span class="st_h"> for ( int j = 0; i < m; j++ )</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> {</span></span></span><span class="st_h"> ans[i][j] = i * j;</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> }</span></span></span><span class="st_h"> }</span> +<span class="xtra li2"><span class="de2"><span class="st_h"> return ans;</span></span></span><span class="st_h">}'</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="st_h">'java'</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">highlight_lines_extra</span><span class="br0">(</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="nu0">8</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="kw1">echo</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></pre></td></tr></tbody></table> + +<p>Which produces:</p> + +<table class="java geshicode"><thead><tr><td colspan="2" class="head">Java code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2"><span class="xtra ln-xtra">8</span></span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span></pre></td><td class="de1"><pre class="de1"><span class="kw1">public</span> <span class="kw4">int</span><span class="br0">[</span><span class="br0">]</span><span class="br0">[</span><span class="br0">]</span> product <span class="br0">(</span> n, m <span class="br0">)</span> +<span class="xtra li2"><span class="de2"><span class="br0">{</span></span></span> <span class="kw4">int</span> <span class="br0">[</span><span class="br0">]</span><span class="br0">[</span><span class="br0">]</span> ans <span class="sy0">=</span> <span class="kw1">new</span> <span class="kw4">int</span><span class="br0">[</span>n<span class="br0">]</span><span class="br0">[</span>m<span class="br0">]</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> <span class="kw1">for</span> <span class="br0">(</span> <span class="kw4">int</span> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0"><</span> n<span class="sy0">;</span> i<span class="sy0">++</span> <span class="br0">)</span></span></span> <span class="br0">{</span> +<span class="xtra li2"><span class="de2"> <span class="kw1">for</span> <span class="br0">(</span> <span class="kw4">int</span> j <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0"><</span> m<span class="sy0">;</span> j<span class="sy0">++</span> <span class="br0">)</span></span></span> <span class="br0">{</span> +<span class="xtra li2"><span class="de2"><span class="xtra ln-xtra"> ans<span class="br0">[</span>i<span class="br0">]</span><span class="br0">[</span>j<span class="br0">]</span> <span class="sy0">=</span> i <span class="sy0">*</span> j<span class="sy0">;</span></span></span></span> <span class="br0">}</span> +<span class="xtra li2"><span class="de2"> <span class="br0">}</span></span></span> <span class="kw1">return</span> ans<span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="br0">}</span></span></span></pre></td></tr></tbody></table> + +<p>What’s more, as you can see the code on a highlighted line is still actually highlighted itself.</p> + +<h4 id="styles-for-highlighted-lines">3.15.2 Styles for the Highlighted Lines</h4><div class="nav"><a href="#specifying-lines-to-highlight-extra">Previous</a> | <a href="#highlighting-special-lines-extra">Top</a> | <a href="#adding-ids-to-each-line">Next</a></div> + +<p>Again as with contextual importance, you’re not chained to the yellow theme that is the default. You can +use the <code class="highlighted php">set_highlight_lines_extra_style</code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">set_highlight_lines_extra_style</span><span class="br0">(</span><span class="re0">$styles</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$styles</span></code> is the stylesheet declarations that you want to apply to highlighted lines.</p> + +<h3 id="adding-ids-to-each-line">3.16 Adding IDs to Each Line</h3><div class="nav"><a href="#styles-for-highlighted-lines">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#getting-the-time-of-styling">Next</a></div> + +<p>Perhaps you’re a javascript junkie? <abbr title="Generic Syntax Highlighter">GeSHi</abbr> provides a way to give each line an ID so you can access that line with +javascript, or perhaps just by plain <abbr title="Cascading Style Sheets">CSS</abbr> (though if you want to access lines by <abbr title="Cascading Style Sheets">CSS</abbr> you should use the method +in the previous section). To enable IDs you call the <code class="highlighted php">enable_ids<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<p><code class="highlighted php"><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">enable_ids</span><span class="br0">(</span><span class="re0">$flag</span><span class="br0">)</span><span class="sy0">;</span></code></p> + +<p>Where <code class="highlighted php"><span class="re0">$flag</span></code> is <code class="highlighted php"><span class="kw4">true</span></code> or not present to enable IDs, and <code class="highlighted php"><span class="kw4">false</span></code> to disable them again if you need.</p> + +<p>The ID generated is in the form <code>{overall-css-id}-{line-number}</code>. So for example, if you set the overall <abbr title="Cascading Style Sheets">CSS</abbr> id to +be “mycode”, then the IDs for each line would by “mycode-1”, “mycode-2” etc. If there is no <abbr title="Cascading Style Sheets">CSS</abbr> ID set, then one is +made up in the form <code>geshi-[4 random characters]</code>, but this is not so useful for if you want to do javascript manipulation.</p> + +<h3 id="getting-the-time-of-styling">3.17 Getting the Time of Styling</h3><div class="nav"><a href="#adding-ids-to-each-line">Previous</a> | <a href="#advanced-features">Top</a> | <a href="#language-files">Next</a></div> + +<p>Once you’ve called <code class="highlighted php">parse_code<span class="br0">(</span><span class="br0">)</span></code>, you can get the time it took to run the highlighting by calling the +<code class="highlighted php">get_time<span class="br0">(</span><span class="br0">)</span></code> method:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +</pre></td><td class="de1"><pre class="de1"><span class="re0">$geshi</span> <span class="sy0">=</span> <span class="kw2">new</span> GeSHi<span class="br0">(</span><span class="re0">$source</span><span class="sy0">,</span> <span class="re0">$language</span><span class="sy0">,</span> <span class="re0">$path</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$code</span> <span class="sy0">=</span> <a href="http://www.php.net/mysql_real_escape_string"><span class="kw3">mysql_real_escape_string</span></a><span class="br0">(</span><span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">parse_code</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"><span class="re0">$time</span> <span class="sy0">=</span> <span class="re0">$geshi</span><span class="sy0">-></span><span class="me1">get_time</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></span></span> +<span class="xtra li2"><span class="de2"><span class="co1">// do something with it</span></span></span><a href="http://www.php.net/mysql_query"><span class="kw3">mysql_query</span></a><span class="br0">(</span><span class="st0">"INSERT INTO code VALUES ('<span class="es4">$code</span>', '<span class="es4">$time</span>')"</span><span class="br0">)</span><span class="sy0">;</span></pre></td></tr></tbody></table> + +<h2 id="language-files">4 Language Files</h2><div class="nav"><a href="#getting-the-time-of-styling">Previous</a> | <a href="#language-file-example">Next</a></div> + +<p>So now you know what features <abbr title="Generic Syntax Highlighter">GeSHi</abbr> offers, and perhaps you’ve even meddled with the source. Or perhaps +you’d like a language file for language X but it doesn’t seem to be supported? Rubbish! <abbr title="Generic Syntax Highlighter">GeSHi</abbr> will highlight +anything, what do you think I coded this for? ^_^ You’ll just have to learn how to make a language file +yourself. And I promise it’s not too hard - and if you’re here you’re in the right place!</p> + +<h3 id="language-file-example">4.1 An Example Language File</h3><div class="nav"><a href="#language-files">Previous</a> | <a href="#language-files">Top</a> | <a href="#language-file-conventions">Next</a></div> + +<p>Let’s begin by looking at an example language file - the language file for the first language ever supported, +<abbr title="PHP: HTML Preprocessor">PHP</abbr>:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span>29 +<span class="xtra li2"><span class="de2">30</span></span>31 +<span class="xtra li2"><span class="de2">32</span></span>33 +<span class="xtra li2"><span class="de2">34</span></span>35 +<span class="xtra li2"><span class="de2">36</span></span>37 +<span class="xtra li2"><span class="de2">38</span></span>39 +<span class="xtra li2"><span class="de2">40</span></span>41 +<span class="xtra li2"><span class="de2">42</span></span>43 +<span class="xtra li2"><span class="de2">44</span></span>45 +<span class="xtra li2"><span class="de2">46</span></span>47 +<span class="xtra li2"><span class="de2">48</span></span>49 +<span class="xtra li2"><span class="de2">50</span></span>51 +<span class="xtra li2"><span class="de2">52</span></span>53 +<span class="xtra li2"><span class="de2">54</span></span>55 +<span class="xtra li2"><span class="de2">56</span></span>57 +<span class="xtra li2"><span class="de2">58</span></span>59 +<span class="xtra li2"><span class="de2">60</span></span>61 +<span class="xtra li2"><span class="de2">62</span></span>63 +<span class="xtra li2"><span class="de2">64</span></span>65 +<span class="xtra li2"><span class="de2">66</span></span>67 +<span class="xtra li2"><span class="de2">68</span></span>69 +<span class="xtra li2"><span class="de2">70</span></span>71 +<span class="xtra li2"><span class="de2">72</span></span>73 +<span class="xtra li2"><span class="de2">74</span></span>75 +<span class="xtra li2"><span class="de2">76</span></span>77 +<span class="xtra li2"><span class="de2">78</span></span>79 +<span class="xtra li2"><span class="de2">80</span></span>81 +<span class="xtra li2"><span class="de2">82</span></span>83 +<span class="xtra li2"><span class="de2">84</span></span>85 +<span class="xtra li2"><span class="de2">86</span></span>87 +<span class="xtra li2"><span class="de2">88</span></span>89 +<span class="xtra li2"><span class="de2">90</span></span>91 +<span class="xtra li2"><span class="de2">92</span></span>93 +<span class="xtra li2"><span class="de2">94</span></span>95 +<span class="xtra li2"><span class="de2">96</span></span>97 +<span class="xtra li2"><span class="de2">98</span></span>99 +<span class="xtra li2"><span class="de2">100</span></span>101 +<span class="xtra li2"><span class="de2">102</span></span>103 +<span class="xtra li2"><span class="de2">104</span></span>105 +<span class="xtra li2"><span class="de2">106</span></span>107 +<span class="xtra li2"><span class="de2">108</span></span>109 +<span class="xtra li2"><span class="de2">110</span></span>111 +<span class="xtra li2"><span class="de2">112</span></span>113 +<span class="xtra li2"><span class="de2">114</span></span>115 +<span class="xtra li2"><span class="de2">116</span></span>117 +<span class="xtra li2"><span class="de2">118</span></span>119 +<span class="xtra li2"><span class="de2">120</span></span>121 +<span class="xtra li2"><span class="de2">122</span></span>123 +<span class="xtra li2"><span class="de2">124</span></span>125 +<span class="xtra li2"><span class="de2">126</span></span>127 +<span class="xtra li2"><span class="de2">128</span></span>129 +<span class="xtra li2"><span class="de2">130</span></span>131 +<span class="xtra li2"><span class="de2">132</span></span>133 +<span class="xtra li2"><span class="de2">134</span></span>135 +<span class="xtra li2"><span class="de2">136</span></span>137 +<span class="xtra li2"><span class="de2">138</span></span>139 +<span class="xtra li2"><span class="de2">140</span></span>141 +<span class="xtra li2"><span class="de2">142</span></span>143 +<span class="xtra li2"><span class="de2">144</span></span>145 +<span class="xtra li2"><span class="de2">146</span></span>147 +<span class="xtra li2"><span class="de2">148</span></span>149 +<span class="xtra li2"><span class="de2">150</span></span>151 +<span class="xtra li2"><span class="de2">152</span></span>153 +<span class="xtra li2"><span class="de2">154</span></span>155 +<span class="xtra li2"><span class="de2">156</span></span>157 +<span class="xtra li2"><span class="de2">158</span></span>159 +<span class="xtra li2"><span class="de2">160</span></span>161 +<span class="xtra li2"><span class="de2">162</span></span>163 +<span class="xtra li2"><span class="de2">164</span></span>165 +<span class="xtra li2"><span class="de2">166</span></span>167 +<span class="xtra li2"><span class="de2">168</span></span>169 +<span class="xtra li2"><span class="de2">170</span></span>171 +<span class="xtra li2"><span class="de2">172</span></span>173 +<span class="xtra li2"><span class="de2">174</span></span>175 +<span class="xtra li2"><span class="de2">176</span></span>177 +<span class="xtra li2"><span class="de2">178</span></span>179 +<span class="xtra li2"><span class="de2">180</span></span>181 +<span class="xtra li2"><span class="de2">182</span></span>183 +<span class="xtra li2"><span class="de2">184</span></span>185 +<span class="xtra li2"><span class="de2">186</span></span>187 +<span class="xtra li2"><span class="de2">188</span></span>189 +<span class="xtra li2"><span class="de2">190</span></span>191 +<span class="xtra li2"><span class="de2">192</span></span>193 +<span class="xtra li2"><span class="de2">194</span></span>195 +<span class="xtra li2"><span class="de2">196</span></span>197 +<span class="xtra li2"><span class="de2">198</span></span>199 +<span class="xtra li2"><span class="de2">200</span></span>201 +<span class="xtra li2"><span class="de2">202</span></span>203 +<span class="xtra li2"><span class="de2">204</span></span>205 +<span class="xtra li2"><span class="de2">206</span></span>207 +<span class="xtra li2"><span class="de2">208</span></span>209 +<span class="xtra li2"><span class="de2">210</span></span>211 +<span class="xtra li2"><span class="de2">212</span></span>213 +<span class="xtra li2"><span class="de2">214</span></span>215 +<span class="xtra li2"><span class="de2">216</span></span>217 +<span class="xtra li2"><span class="de2">218</span></span>219 +<span class="xtra li2"><span class="de2">220</span></span>221 +<span class="xtra li2"><span class="de2">222</span></span>223 +<span class="xtra li2"><span class="de2">224</span></span>225 +<span class="xtra li2"><span class="de2">226</span></span>227 +<span class="xtra li2"><span class="de2">228</span></span>229 +<span class="xtra li2"><span class="de2">230</span></span>231 +<span class="xtra li2"><span class="de2">232</span></span>233 +<span class="xtra li2"><span class="de2">234</span></span>235 +<span class="xtra li2"><span class="de2">236</span></span>237 +<span class="xtra li2"><span class="de2">238</span></span>239 +<span class="xtra li2"><span class="de2">240</span></span>241 +<span class="xtra li2"><span class="de2">242</span></span>243 +<span class="xtra li2"><span class="de2">244</span></span>245 +<span class="xtra li2"><span class="de2">246</span></span>247 +<span class="xtra li2"><span class="de2">248</span></span>249 +<span class="xtra li2"><span class="de2">250</span></span>251 +<span class="xtra li2"><span class="de2">252</span></span>253 +<span class="xtra li2"><span class="de2">254</span></span>255 +<span class="xtra li2"><span class="de2">256</span></span>257 +<span class="xtra li2"><span class="de2">258</span></span>259 +<span class="xtra li2"><span class="de2">260</span></span>261 +<span class="xtra li2"><span class="de2">262</span></span>263 +<span class="xtra li2"><span class="de2">264</span></span>265 +<span class="xtra li2"><span class="de2">266</span></span>267 +<span class="xtra li2"><span class="de2">268</span></span>269 +<span class="xtra li2"><span class="de2">270</span></span>271 +<span class="xtra li2"><span class="de2">272</span></span>273 +<span class="xtra li2"><span class="de2">274</span></span>275 +<span class="xtra li2"><span class="de2">276</span></span>277 +<span class="xtra li2"><span class="de2">278</span></span>279 +<span class="xtra li2"><span class="de2">280</span></span>281 +<span class="xtra li2"><span class="de2">282</span></span>283 +<span class="xtra li2"><span class="de2">284</span></span>285 +<span class="xtra li2"><span class="de2">286</span></span>287 +<span class="xtra li2"><span class="de2">288</span></span>289 +<span class="xtra li2"><span class="de2">290</span></span>291 +<span class="xtra li2"><span class="de2">292</span></span>293 +<span class="xtra li2"><span class="de2">294</span></span>295 +<span class="xtra li2"><span class="de2">296</span></span>297 +<span class="xtra li2"><span class="de2">298</span></span>299 +<span class="xtra li2"><span class="de2">300</span></span>301 +<span class="xtra li2"><span class="de2">302</span></span>303 +<span class="xtra li2"><span class="de2">304</span></span>305 +<span class="xtra li2"><span class="de2">306</span></span>307 +<span class="xtra li2"><span class="de2">308</span></span>309 +<span class="xtra li2"><span class="de2">310</span></span>311 +<span class="xtra li2"><span class="de2">312</span></span>313 +<span class="xtra li2"><span class="de2">314</span></span>315 +<span class="xtra li2"><span class="de2">316</span></span>317 +<span class="xtra li2"><span class="de2">318</span></span>319 +<span class="xtra li2"><span class="de2">320</span></span>321 +<span class="xtra li2"><span class="de2">322</span></span>323 +<span class="xtra li2"><span class="de2">324</span></span>325 +<span class="xtra li2"><span class="de2">326</span></span>327 +<span class="xtra li2"><span class="de2">328</span></span>329 +<span class="xtra li2"><span class="de2">330</span></span>331 +<span class="xtra li2"><span class="de2">332</span></span>333 +<span class="xtra li2"><span class="de2">334</span></span>335 +<span class="xtra li2"><span class="de2">336</span></span>337 +<span class="xtra li2"><span class="de2">338</span></span>339 +<span class="xtra li2"><span class="de2">340</span></span>341 +<span class="xtra li2"><span class="de2">342</span></span>343 +<span class="xtra li2"><span class="de2">344</span></span>345 +<span class="xtra li2"><span class="de2">346</span></span>347 +<span class="xtra li2"><span class="de2">348</span></span>349 +<span class="xtra li2"><span class="de2">350</span></span>351 +<span class="xtra li2"><span class="de2">352</span></span>353 +<span class="xtra li2"><span class="de2">354</span></span>355 +<span class="xtra li2"><span class="de2">356</span></span>357 +<span class="xtra li2"><span class="de2">358</span></span>359 +<span class="xtra li2"><span class="de2">360</span></span>361 +<span class="xtra li2"><span class="de2">362</span></span>363 +<span class="xtra li2"><span class="de2">364</span></span>365 +<span class="xtra li2"><span class="de2">366</span></span>367 +<span class="xtra li2"><span class="de2">368</span></span>369 +<span class="xtra li2"><span class="de2">370</span></span>371 +<span class="xtra li2"><span class="de2">372</span></span>373 +<span class="xtra li2"><span class="de2">374</span></span>375 +<span class="xtra li2"><span class="de2">376</span></span>377 +<span class="xtra li2"><span class="de2">378</span></span>379 +<span class="xtra li2"><span class="de2">380</span></span>381 +<span class="xtra li2"><span class="de2">382</span></span>383 +<span class="xtra li2"><span class="de2">384</span></span>385 +<span class="xtra li2"><span class="de2">386</span></span>387 +<span class="xtra li2"><span class="de2">388</span></span>389 +<span class="xtra li2"><span class="de2">390</span></span>391 +<span class="xtra li2"><span class="de2">392</span></span>393 +<span class="xtra li2"><span class="de2">394</span></span>395 +<span class="xtra li2"><span class="de2">396</span></span>397 +<span class="xtra li2"><span class="de2">398</span></span>399 +<span class="xtra li2"><span class="de2">400</span></span>401 +<span class="xtra li2"><span class="de2">402</span></span>403 +<span class="xtra li2"><span class="de2">404</span></span>405 +<span class="xtra li2"><span class="de2">406</span></span>407 +<span class="xtra li2"><span class="de2">408</span></span>409 +<span class="xtra li2"><span class="de2">410</span></span>411 +<span class="xtra li2"><span class="de2">412</span></span>413 +<span class="xtra li2"><span class="de2">414</span></span>415 +<span class="xtra li2"><span class="de2">416</span></span>417 +<span class="xtra li2"><span class="de2">418</span></span>419 +<span class="xtra li2"><span class="de2">420</span></span>421 +<span class="xtra li2"><span class="de2">422</span></span>423 +<span class="xtra li2"><span class="de2">424</span></span>425 +<span class="xtra li2"><span class="de2">426</span></span>427 +<span class="xtra li2"><span class="de2">428</span></span>429 +<span class="xtra li2"><span class="de2">430</span></span>431 +<span class="xtra li2"><span class="de2">432</span></span>433 +<span class="xtra li2"><span class="de2">434</span></span>435 +<span class="xtra li2"><span class="de2">436</span></span>437 +<span class="xtra li2"><span class="de2">438</span></span>439 +<span class="xtra li2"><span class="de2">440</span></span>441 +<span class="xtra li2"><span class="de2">442</span></span>443 +<span class="xtra li2"><span class="de2">444</span></span>445 +<span class="xtra li2"><span class="de2">446</span></span>447 +<span class="xtra li2"><span class="de2">448</span></span>449 +<span class="xtra li2"><span class="de2">450</span></span>451 +<span class="xtra li2"><span class="de2">452</span></span>453 +<span class="xtra li2"><span class="de2">454</span></span>455 +<span class="xtra li2"><span class="de2">456</span></span>457 +<span class="xtra li2"><span class="de2">458</span></span>459 +<span class="xtra li2"><span class="de2">460</span></span>461 +<span class="xtra li2"><span class="de2">462</span></span>463 +<span class="xtra li2"><span class="de2">464</span></span>465 +<span class="xtra li2"><span class="de2">466</span></span>467 +<span class="xtra li2"><span class="de2">468</span></span>469 +<span class="xtra li2"><span class="de2">470</span></span>471 +<span class="xtra li2"><span class="de2">472</span></span>473 +<span class="xtra li2"><span class="de2">474</span></span>475 +<span class="xtra li2"><span class="de2">476</span></span>477 +<span class="xtra li2"><span class="de2">478</span></span>479 +<span class="xtra li2"><span class="de2">480</span></span>481 +<span class="xtra li2"><span class="de2">482</span></span>483 +<span class="xtra li2"><span class="de2">484</span></span>485 +<span class="xtra li2"><span class="de2">486</span></span>487 +<span class="xtra li2"><span class="de2">488</span></span>489 +<span class="xtra li2"><span class="de2">490</span></span>491 +<span class="xtra li2"><span class="de2">492</span></span>493 +<span class="xtra li2"><span class="de2">494</span></span>495 +<span class="xtra li2"><span class="de2">496</span></span>497 +<span class="xtra li2"><span class="de2">498</span></span>499 +<span class="xtra li2"><span class="de2">500</span></span>501 +<span class="xtra li2"><span class="de2">502</span></span>503 +<span class="xtra li2"><span class="de2">504</span></span>505 +<span class="xtra li2"><span class="de2">506</span></span>507 +<span class="xtra li2"><span class="de2">508</span></span>509 +<span class="xtra li2"><span class="de2">510</span></span>511 +<span class="xtra li2"><span class="de2">512</span></span>513 +<span class="xtra li2"><span class="de2">514</span></span>515 +<span class="xtra li2"><span class="de2">516</span></span>517 +<span class="xtra li2"><span class="de2">518</span></span>519 +<span class="xtra li2"><span class="de2">520</span></span>521 +<span class="xtra li2"><span class="de2">522</span></span>523 +<span class="xtra li2"><span class="de2">524</span></span>525 +<span class="xtra li2"><span class="de2">526</span></span>527 +<span class="xtra li2"><span class="de2">528</span></span>529 +<span class="xtra li2"><span class="de2">530</span></span>531 +<span class="xtra li2"><span class="de2">532</span></span>533 +<span class="xtra li2"><span class="de2">534</span></span>535 +<span class="xtra li2"><span class="de2">536</span></span>537 +<span class="xtra li2"><span class="de2">538</span></span>539 +<span class="xtra li2"><span class="de2">540</span></span>541 +<span class="xtra li2"><span class="de2">542</span></span>543 +<span class="xtra li2"><span class="de2">544</span></span>545 +<span class="xtra li2"><span class="de2">546</span></span>547 +<span class="xtra li2"><span class="de2">548</span></span>549 +<span class="xtra li2"><span class="de2">550</span></span>551 +<span class="xtra li2"><span class="de2">552</span></span>553 +<span class="xtra li2"><span class="de2">554</span></span>555 +<span class="xtra li2"><span class="de2">556</span></span>557 +<span class="xtra li2"><span class="de2">558</span></span>559 +<span class="xtra li2"><span class="de2">560</span></span>561 +<span class="xtra li2"><span class="de2">562</span></span>563 +<span class="xtra li2"><span class="de2">564</span></span>565 +<span class="xtra li2"><span class="de2">566</span></span>567 +<span class="xtra li2"><span class="de2">568</span></span>569 +<span class="xtra li2"><span class="de2">570</span></span>571 +<span class="xtra li2"><span class="de2">572</span></span>573 +<span class="xtra li2"><span class="de2">574</span></span>575 +<span class="xtra li2"><span class="de2">576</span></span>577 +<span class="xtra li2"><span class="de2">578</span></span>579 +<span class="xtra li2"><span class="de2">580</span></span>581 +<span class="xtra li2"><span class="de2">582</span></span>583 +<span class="xtra li2"><span class="de2">584</span></span>585 +<span class="xtra li2"><span class="de2">586</span></span>587 +<span class="xtra li2"><span class="de2">588</span></span>589 +<span class="xtra li2"><span class="de2">590</span></span>591 +<span class="xtra li2"><span class="de2">592</span></span>593 +<span class="xtra li2"><span class="de2">594</span></span>595 +<span class="xtra li2"><span class="de2">596</span></span>597 +<span class="xtra li2"><span class="de2">598</span></span>599 +<span class="xtra li2"><span class="de2">600</span></span>601 +<span class="xtra li2"><span class="de2">602</span></span>603 +<span class="xtra li2"><span class="de2">604</span></span>605 +<span class="xtra li2"><span class="de2">606</span></span>607 +<span class="xtra li2"><span class="de2">608</span></span>609 +<span class="xtra li2"><span class="de2">610</span></span>611 +<span class="xtra li2"><span class="de2">612</span></span>613 +<span class="xtra li2"><span class="de2">614</span></span>615 +<span class="xtra li2"><span class="de2">616</span></span>617 +<span class="xtra li2"><span class="de2">618</span></span>619 +<span class="xtra li2"><span class="de2">620</span></span>621 +<span class="xtra li2"><span class="de2">622</span></span>623 +<span class="xtra li2"><span class="de2">624</span></span>625 +<span class="xtra li2"><span class="de2">626</span></span>627 +<span class="xtra li2"><span class="de2">628</span></span>629 +<span class="xtra li2"><span class="de2">630</span></span>631 +<span class="xtra li2"><span class="de2">632</span></span>633 +<span class="xtra li2"><span class="de2">634</span></span>635 +<span class="xtra li2"><span class="de2">636</span></span>637 +<span class="xtra li2"><span class="de2">638</span></span>639 +<span class="xtra li2"><span class="de2">640</span></span>641 +<span class="xtra li2"><span class="de2">642</span></span>643 +<span class="xtra li2"><span class="de2">644</span></span>645 +<span class="xtra li2"><span class="de2">646</span></span>647 +<span class="xtra li2"><span class="de2">648</span></span>649 +<span class="xtra li2"><span class="de2">650</span></span>651 +<span class="xtra li2"><span class="de2">652</span></span>653 +<span class="xtra li2"><span class="de2">654</span></span>655 +<span class="xtra li2"><span class="de2">656</span></span>657 +<span class="xtra li2"><span class="de2">658</span></span>659 +<span class="xtra li2"><span class="de2">660</span></span>661 +<span class="xtra li2"><span class="de2">662</span></span>663 +<span class="xtra li2"><span class="de2">664</span></span>665 +<span class="xtra li2"><span class="de2">666</span></span>667 +<span class="xtra li2"><span class="de2">668</span></span>669 +<span class="xtra li2"><span class="de2">670</span></span>671 +<span class="xtra li2"><span class="de2">672</span></span>673 +<span class="xtra li2"><span class="de2">674</span></span>675 +<span class="xtra li2"><span class="de2">676</span></span>677 +<span class="xtra li2"><span class="de2">678</span></span>679 +<span class="xtra li2"><span class="de2">680</span></span>681 +<span class="xtra li2"><span class="de2">682</span></span>683 +<span class="xtra li2"><span class="de2">684</span></span>685 +<span class="xtra li2"><span class="de2">686</span></span>687 +<span class="xtra li2"><span class="de2">688</span></span>689 +<span class="xtra li2"><span class="de2">690</span></span>691 +<span class="xtra li2"><span class="de2">692</span></span>693 +<span class="xtra li2"><span class="de2">694</span></span>695 +<span class="xtra li2"><span class="de2">696</span></span>697 +<span class="xtra li2"><span class="de2">698</span></span>699 +<span class="xtra li2"><span class="de2">700</span></span>701 +<span class="xtra li2"><span class="de2">702</span></span>703 +<span class="xtra li2"><span class="de2">704</span></span>705 +<span class="xtra li2"><span class="de2">706</span></span>707 +<span class="xtra li2"><span class="de2">708</span></span>709 +<span class="xtra li2"><span class="de2">710</span></span>711 +<span class="xtra li2"><span class="de2">712</span></span>713 +<span class="xtra li2"><span class="de2">714</span></span>715 +<span class="xtra li2"><span class="de2">716</span></span>717 +<span class="xtra li2"><span class="de2">718</span></span>719 +<span class="xtra li2"><span class="de2">720</span></span>721 +<span class="xtra li2"><span class="de2">722</span></span>723 +<span class="xtra li2"><span class="de2">724</span></span>725 +<span class="xtra li2"><span class="de2">726</span></span>727 +<span class="xtra li2"><span class="de2">728</span></span>729 +<span class="xtra li2"><span class="de2">730</span></span>731 +<span class="xtra li2"><span class="de2">732</span></span>733 +<span class="xtra li2"><span class="de2">734</span></span>735 +<span class="xtra li2"><span class="de2">736</span></span>737 +<span class="xtra li2"><span class="de2">738</span></span>739 +<span class="xtra li2"><span class="de2">740</span></span>741 +<span class="xtra li2"><span class="de2">742</span></span>743 +<span class="xtra li2"><span class="de2">744</span></span>745 +<span class="xtra li2"><span class="de2">746</span></span>747 +<span class="xtra li2"><span class="de2">748</span></span>749 +<span class="xtra li2"><span class="de2">750</span></span>751 +<span class="xtra li2"><span class="de2">752</span></span>753 +<span class="xtra li2"><span class="de2">754</span></span>755 +<span class="xtra li2"><span class="de2">756</span></span>757 +<span class="xtra li2"><span class="de2">758</span></span>759 +<span class="xtra li2"><span class="de2">760</span></span>761 +<span class="xtra li2"><span class="de2">762</span></span>763 +<span class="xtra li2"><span class="de2">764</span></span>765 +<span class="xtra li2"><span class="de2">766</span></span>767 +<span class="xtra li2"><span class="de2">768</span></span>769 +<span class="xtra li2"><span class="de2">770</span></span>771 +<span class="xtra li2"><span class="de2">772</span></span>773 +<span class="xtra li2"><span class="de2">774</span></span>775 +<span class="xtra li2"><span class="de2">776</span></span>777 +<span class="xtra li2"><span class="de2">778</span></span>779 +<span class="xtra li2"><span class="de2">780</span></span>781 +<span class="xtra li2"><span class="de2">782</span></span>783 +<span class="xtra li2"><span class="de2">784</span></span>785 +<span class="xtra li2"><span class="de2">786</span></span>787 +<span class="xtra li2"><span class="de2">788</span></span>789 +<span class="xtra li2"><span class="de2">790</span></span>791 +<span class="xtra li2"><span class="de2">792</span></span>793 +<span class="xtra li2"><span class="de2">794</span></span>795 +<span class="xtra li2"><span class="de2">796</span></span>797 +<span class="xtra li2"><span class="de2">798</span></span>799 +<span class="xtra li2"><span class="de2">800</span></span>801 +<span class="xtra li2"><span class="de2">802</span></span>803 +<span class="xtra li2"><span class="de2">804</span></span>805 +<span class="xtra li2"><span class="de2">806</span></span>807 +<span class="xtra li2"><span class="de2">808</span></span>809 +<span class="xtra li2"><span class="de2">810</span></span>811 +<span class="xtra li2"><span class="de2">812</span></span>813 +<span class="xtra li2"><span class="de2">814</span></span>815 +<span class="xtra li2"><span class="de2">816</span></span>817 +<span class="xtra li2"><span class="de2">818</span></span>819 +<span class="xtra li2"><span class="de2">820</span></span>821 +<span class="xtra li2"><span class="de2">822</span></span>823 +<span class="xtra li2"><span class="de2">824</span></span>825 +<span class="xtra li2"><span class="de2">826</span></span>827 +<span class="xtra li2"><span class="de2">828</span></span>829 +<span class="xtra li2"><span class="de2">830</span></span>831 +<span class="xtra li2"><span class="de2">832</span></span>833 +<span class="xtra li2"><span class="de2">834</span></span>835 +<span class="xtra li2"><span class="de2">836</span></span>837 +<span class="xtra li2"><span class="de2">838</span></span>839 +<span class="xtra li2"><span class="de2">840</span></span>841 +<span class="xtra li2"><span class="de2">842</span></span>843 +<span class="xtra li2"><span class="de2">844</span></span>845 +<span class="xtra li2"><span class="de2">846</span></span>847 +<span class="xtra li2"><span class="de2">848</span></span>849 +<span class="xtra li2"><span class="de2">850</span></span>851 +<span class="xtra li2"><span class="de2">852</span></span>853 +<span class="xtra li2"><span class="de2">854</span></span>855 +<span class="xtra li2"><span class="de2">856</span></span>857 +<span class="xtra li2"><span class="de2">858</span></span>859 +<span class="xtra li2"><span class="de2">860</span></span>861 +<span class="xtra li2"><span class="de2">862</span></span>863 +<span class="xtra li2"><span class="de2">864</span></span>865 +<span class="xtra li2"><span class="de2">866</span></span>867 +<span class="xtra li2"><span class="de2">868</span></span>869 +<span class="xtra li2"><span class="de2">870</span></span>871 +<span class="xtra li2"><span class="de2">872</span></span>873 +<span class="xtra li2"><span class="de2">874</span></span>875 +<span class="xtra li2"><span class="de2">876</span></span>877 +<span class="xtra li2"><span class="de2">878</span></span>879 +<span class="xtra li2"><span class="de2">880</span></span>881 +<span class="xtra li2"><span class="de2">882</span></span>883 +<span class="xtra li2"><span class="de2">884</span></span>885 +<span class="xtra li2"><span class="de2">886</span></span>887 +<span class="xtra li2"><span class="de2">888</span></span>889 +<span class="xtra li2"><span class="de2">890</span></span>891 +<span class="xtra li2"><span class="de2">892</span></span>893 +<span class="xtra li2"><span class="de2">894</span></span>895 +<span class="xtra li2"><span class="de2">896</span></span>897 +<span class="xtra li2"><span class="de2">898</span></span>899 +<span class="xtra li2"><span class="de2">900</span></span>901 +<span class="xtra li2"><span class="de2">902</span></span>903 +<span class="xtra li2"><span class="de2">904</span></span>905 +<span class="xtra li2"><span class="de2">906</span></span>907 +<span class="xtra li2"><span class="de2">908</span></span>909 +<span class="xtra li2"><span class="de2">910</span></span>911 +<span class="xtra li2"><span class="de2">912</span></span>913 +<span class="xtra li2"><span class="de2">914</span></span>915 +<span class="xtra li2"><span class="de2">916</span></span>917 +<span class="xtra li2"><span class="de2">918</span></span>919 +<span class="xtra li2"><span class="de2">920</span></span>921 +<span class="xtra li2"><span class="de2">922</span></span>923 +<span class="xtra li2"><span class="de2">924</span></span>925 +<span class="xtra li2"><span class="de2">926</span></span>927 +<span class="xtra li2"><span class="de2">928</span></span>929 +<span class="xtra li2"><span class="de2">930</span></span>931 +<span class="xtra li2"><span class="de2">932</span></span>933 +<span class="xtra li2"><span class="de2">934</span></span>935 +<span class="xtra li2"><span class="de2">936</span></span>937 +<span class="xtra li2"><span class="de2">938</span></span>939 +<span class="xtra li2"><span class="de2">940</span></span>941 +<span class="xtra li2"><span class="de2">942</span></span>943 +<span class="xtra li2"><span class="de2">944</span></span>945 +<span class="xtra li2"><span class="de2">946</span></span>947 +<span class="xtra li2"><span class="de2">948</span></span>949 +<span class="xtra li2"><span class="de2">950</span></span>951 +<span class="xtra li2"><span class="de2">952</span></span>953 +<span class="xtra li2"><span class="de2">954</span></span>955 +<span class="xtra li2"><span class="de2">956</span></span>957 +<span class="xtra li2"><span class="de2">958</span></span>959 +<span class="xtra li2"><span class="de2">960</span></span>961 +<span class="xtra li2"><span class="de2">962</span></span>963 +<span class="xtra li2"><span class="de2">964</span></span>965 +<span class="xtra li2"><span class="de2">966</span></span>967 +<span class="xtra li2"><span class="de2">968</span></span>969 +<span class="xtra li2"><span class="de2">970</span></span>971 +<span class="xtra li2"><span class="de2">972</span></span>973 +<span class="xtra li2"><span class="de2">974</span></span>975 +<span class="xtra li2"><span class="de2">976</span></span>977 +<span class="xtra li2"><span class="de2">978</span></span>979 +<span class="xtra li2"><span class="de2">980</span></span>981 +<span class="xtra li2"><span class="de2">982</span></span>983 +<span class="xtra li2"><span class="de2">984</span></span>985 +<span class="xtra li2"><span class="de2">986</span></span>987 +<span class="xtra li2"><span class="de2">988</span></span>989 +<span class="xtra li2"><span class="de2">990</span></span>991 +<span class="xtra li2"><span class="de2">992</span></span>993 +<span class="xtra li2"><span class="de2">994</span></span>995 +<span class="xtra li2"><span class="de2">996</span></span>997 +<span class="xtra li2"><span class="de2">998</span></span>999 +<span class="xtra li2"><span class="de2">1000</span></span>1001 +<span class="xtra li2"><span class="de2">1002</span></span>1003 +<span class="xtra li2"><span class="de2">1004</span></span>1005 +<span class="xtra li2"><span class="de2">1006</span></span>1007 +<span class="xtra li2"><span class="de2">1008</span></span>1009 +<span class="xtra li2"><span class="de2">1010</span></span>1011 +<span class="xtra li2"><span class="de2">1012</span></span>1013 +<span class="xtra li2"><span class="de2">1014</span></span>1015 +<span class="xtra li2"><span class="de2">1016</span></span>1017 +<span class="xtra li2"><span class="de2">1018</span></span>1019 +<span class="xtra li2"><span class="de2">1020</span></span>1021 +<span class="xtra li2"><span class="de2">1022</span></span>1023 +<span class="xtra li2"><span class="de2">1024</span></span>1025 +<span class="xtra li2"><span class="de2">1026</span></span>1027 +<span class="xtra li2"><span class="de2">1028</span></span>1029 +<span class="xtra li2"><span class="de2">1030</span></span>1031 +<span class="xtra li2"><span class="de2">1032</span></span>1033 +<span class="xtra li2"><span class="de2">1034</span></span>1035 +<span class="xtra li2"><span class="de2">1036</span></span>1037 +<span class="xtra li2"><span class="de2">1038</span></span>1039 +<span class="xtra li2"><span class="de2">1040</span></span>1041 +<span class="xtra li2"><span class="de2">1042</span></span>1043 +<span class="xtra li2"><span class="de2">1044</span></span>1045 +<span class="xtra li2"><span class="de2">1046</span></span>1047 +<span class="xtra li2"><span class="de2">1048</span></span>1049 +<span class="xtra li2"><span class="de2">1050</span></span>1051 +<span class="xtra li2"><span class="de2">1052</span></span>1053 +<span class="xtra li2"><span class="de2">1054</span></span>1055 +<span class="xtra li2"><span class="de2">1056</span></span>1057 +<span class="xtra li2"><span class="de2">1058</span></span>1059 +<span class="xtra li2"><span class="de2">1060</span></span>1061 +<span class="xtra li2"><span class="de2">1062</span></span>1063 +<span class="xtra li2"><span class="de2">1064</span></span>1065 +<span class="xtra li2"><span class="de2">1066</span></span>1067 +<span class="xtra li2"><span class="de2">1068</span></span>1069 +<span class="xtra li2"><span class="de2">1070</span></span>1071 +<span class="xtra li2"><span class="de2">1072</span></span>1073 +<span class="xtra li2"><span class="de2">1074</span></span>1075 +<span class="xtra li2"><span class="de2">1076</span></span>1077 +<span class="xtra li2"><span class="de2">1078</span></span>1079 +<span class="xtra li2"><span class="de2">1080</span></span>1081 +<span class="xtra li2"><span class="de2">1082</span></span>1083 +<span class="xtra li2"><span class="de2">1084</span></span>1085 +<span class="xtra li2"><span class="de2">1086</span></span>1087 +<span class="xtra li2"><span class="de2">1088</span></span>1089 +<span class="xtra li2"><span class="de2">1090</span></span>1091 +<span class="xtra li2"><span class="de2">1092</span></span>1093 +<span class="xtra li2"><span class="de2">1094</span></span>1095 +<span class="xtra li2"><span class="de2">1096</span></span>1097 +<span class="xtra li2"><span class="de2">1098</span></span>1099 +<span class="xtra li2"><span class="de2">1100</span></span>1101 +<span class="xtra li2"><span class="de2">1102</span></span>1103 +<span class="xtra li2"><span class="de2">1104</span></span>1105 +<span class="xtra li2"><span class="de2">1106</span></span>1107 +<span class="xtra li2"><span class="de2">1108</span></span>1109 +<span class="xtra li2"><span class="de2">1110</span></span>1111 +<span class="xtra li2"><span class="de2">1112</span></span>1113 +<span class="xtra li2"><span class="de2">1114</span></span>1115 +<span class="xtra li2"><span class="de2">1116</span></span>1117 +</pre></td><td class="de1"><pre class="de1"><span class="kw2"><?php</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI">/*************************************************************************************</span></span></span><span class="coMULTI"> * php.php</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * --------</span></span></span><span class="coMULTI"> * Author: Nigel McNie (nigel@geshi.org)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)</span></span></span><span class="coMULTI"> * Release Version: 1.0.8.10</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * Date Started: 2004/06/20</span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * PHP language file for GeSHi.</span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * CHANGES</span></span></span><span class="coMULTI"> * -------</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * 2008/05/23 (1.0.7.22)</span></span></span><span class="coMULTI"> * - Added description of extra language features (SF#1970248)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * 2004/11/25 (1.0.3)</span></span></span><span class="coMULTI"> * - Added support for multiple object splitters</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * - Fixed &new problem</span></span></span><span class="coMULTI"> * 2004/10/27 (1.0.2)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * - Added URL support</span></span></span><span class="coMULTI"> * - Added extra constants</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * 2004/08/05 (1.0.1)</span></span></span><span class="coMULTI"> * - Added support for symbols</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * 2004/07/14 (1.0.0)</span></span></span><span class="coMULTI"> * - First Release</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * TODO (updated 2004/07/14)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * -------------------------</span></span></span><span class="coMULTI"> * * Make sure the last few function I may have missed</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * (like eval()) are included for highlighting</span></span></span><span class="coMULTI"> * * Split to several files - php4, php5 etc</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> *************************************************************************************</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * This file is part of GeSHi.</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * GeSHi is free software; you can redistribute it and/or modify</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * it under the terms of the GNU General Public License as published by</span></span></span><span class="coMULTI"> * the Free Software Foundation; either version 2 of the License, or</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * (at your option) any later version.</span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * GeSHi is distributed in the hope that it will be useful,</span></span></span><span class="coMULTI"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></span></span><span class="coMULTI"> * GNU General Public License for more details.</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * You should have received a copy of the GNU General Public License</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * along with GeSHi; if not, write to the Free Software</span></span></span><span class="coMULTI"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> ************************************************************************************/</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$language_data</span> <span class="sy0">=</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'LANG_NAME'</span> <span class="sy0">=></span> <span class="st_h">'PHP'</span><span class="sy0">,</span></span></span> <span class="st_h">'COMMENT_SINGLE'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'//'</span><span class="sy0">,</span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'#'</span><span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'COMMENT_MULTI'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'/*'</span> <span class="sy0">=></span> <span class="st_h">'*/'</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'COMMENT_REGEXP'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="co1">//Heredoc and Nowdoc syntax</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'/<<<\s*?(\'?)([a-zA-Z0-9]+?)\1[^\n]*?\\n.*\\n\\2(?![a-zA-Z0-9])/siU'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// phpdoc comments</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">'#/\*\*(?![\*\/]).*\*/#sU'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// Advanced # handling</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st0">"/#.*?(?:(?=\?\>)|^)/smi"</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'CASE_KEYWORDS'</span> <span class="sy0">=></span> GESHI_CAPS_NO_CHANGE<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'QUOTEMARKS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'"'</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'ESCAPE_CHAR'</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ESCAPE_REGEXP'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="co1">//Simple Single Char Escapes</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st0">"#<span class="es1">\\</span><span class="es1">\\</span>[nfrtv<span class="es1">\$</span><span class="es1">\"</span><span class="es1">\n</span><span class="es1">\\</span><span class="es1">\\</span>]#i"</span><span class="sy0">,</span></span></span> <span class="co1">//Hexadecimal Char Specs</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st0">"#<span class="es1">\\</span><span class="es1">\\</span>x[\da-fA-F]{1,2}#i"</span><span class="sy0">,</span></span></span> <span class="co1">//Octal Char Specs</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st0">"#<span class="es1">\\</span><span class="es1">\\</span>[0-7]{1,3}#"</span><span class="sy0">,</span></span></span> <span class="co1">//String Parsing of Variable Names</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st0">"#<span class="es1">\\</span>$[a-z0-9_]+(?:<span class="es1">\\</span>[[a-z0-9_]+<span class="es1">\\</span>]|->[a-z0-9_]+)?|(?:<span class="es1">\\</span>{<span class="es1">\\</span>$|<span class="es1">\\</span>$<span class="es1">\\</span>{)[a-z0-9_]+(?:<span class="es1">\\</span>[('?)[a-z0-9_]*<span class="es1">\\</span>1<span class="es1">\\</span>]|->[a-z0-9_]+)*<span class="es1">\\</span>}#i"</span><span class="sy0">,</span></span></span> <span class="co1">//Experimental extension supporting cascaded {${$var}} syntax</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">5</span> <span class="sy0">=></span> <span class="st0">"#<span class="es1">\$</span>[a-z0-9_]+(?:\[[a-z0-9_]+\]|->[a-z0-9_]+)?|(?:\{<span class="es1">\$</span>|<span class="es1">\$</span>\{)[a-z0-9_]+(?:\[('?)[a-z0-9_]*<span class="es1">\\</span>1\]|->[a-z0-9_]+)*\}|\{<span class="es1">\$</span>(?R)\}#i"</span><span class="sy0">,</span></span></span> <span class="co1">//Format String support in ""-Strings</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">6</span> <span class="sy0">=></span> <span class="st0">"#%(?:%|(?:\d+<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span><span class="es1">\$</span>)?<span class="es1">\\</span>+?(?:<span class="es2">\x20</span>|0|'.)?-?(?:\d+|<span class="es1">\\</span>*)?(?:\.\d+)?[bcdefFosuxX])#"</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'HARDQUOTE'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st0">"'"</span><span class="sy0">,</span> <span class="st0">"'"</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'HARDESCAPE'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st0">"'"</span><span class="sy0">,</span> <span class="st0">"<span class="es1">\\</span>"</span><span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'HARDCHAR'</span> <span class="sy0">=></span> <span class="st0">"<span class="es1">\\</span>"</span><span class="sy0">,</span></span></span> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> +<span class="xtra li2"><span class="de2"> GESHI_NUMBER_INT_BASIC <span class="sy0">|</span> GESHI_NUMBER_OCT_PREFIX <span class="sy0">|</span> GESHI_NUMBER_HEX_PREFIX <span class="sy0">|</span></span></span> GESHI_NUMBER_FLT_SCI_ZERO<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'as'</span><span class="sy0">,</span><span class="st_h">'break'</span><span class="sy0">,</span><span class="st_h">'case'</span><span class="sy0">,</span><span class="st_h">'continue'</span><span class="sy0">,</span><span class="st_h">'default'</span><span class="sy0">,</span><span class="st_h">'do'</span><span class="sy0">,</span><span class="st_h">'else'</span><span class="sy0">,</span><span class="st_h">'elseif'</span><span class="sy0">,</span></span></span> <span class="st_h">'endfor'</span><span class="sy0">,</span><span class="st_h">'endforeach'</span><span class="sy0">,</span><span class="st_h">'endif'</span><span class="sy0">,</span><span class="st_h">'endswitch'</span><span class="sy0">,</span><span class="st_h">'endwhile'</span><span class="sy0">,</span><span class="st_h">'for'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'foreach'</span><span class="sy0">,</span><span class="st_h">'if'</span><span class="sy0">,</span><span class="st_h">'include'</span><span class="sy0">,</span><span class="st_h">'include_once'</span><span class="sy0">,</span><span class="st_h">'require'</span><span class="sy0">,</span><span class="st_h">'require_once'</span><span class="sy0">,</span></span></span> <span class="st_h">'return'</span><span class="sy0">,</span><span class="st_h">'switch'</span><span class="sy0">,</span><span class="st_h">'throw'</span><span class="sy0">,</span><span class="st_h">'while'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> </span></span> <span class="st_h">'echo'</span><span class="sy0">,</span><span class="st_h">'print'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'&amp;new'</span><span class="sy0">,</span><span class="st_h">'&lt;/script&gt;'</span><span class="sy0">,</span><span class="st_h">'&lt;?php'</span><span class="sy0">,</span><span class="st_h">'&lt;script language'</span><span class="sy0">,</span></span></span> <span class="st_h">'abstract'</span><span class="sy0">,</span><span class="st_h">'class'</span><span class="sy0">,</span><span class="st_h">'const'</span><span class="sy0">,</span><span class="st_h">'declare'</span><span class="sy0">,</span><span class="st_h">'extends'</span><span class="sy0">,</span><span class="st_h">'function'</span><span class="sy0">,</span><span class="st_h">'global'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'interface'</span><span class="sy0">,</span><span class="st_h">'namespace'</span><span class="sy0">,</span><span class="st_h">'new'</span><span class="sy0">,</span><span class="st_h">'private'</span><span class="sy0">,</span><span class="st_h">'protected'</span><span class="sy0">,</span><span class="st_h">'public'</span><span class="sy0">,</span><span class="st_h">'self'</span><span class="sy0">,</span></span></span> <span class="st_h">'use'</span><span class="sy0">,</span><span class="st_h">'var'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'abs'</span><span class="sy0">,</span><span class="st_h">'acos'</span><span class="sy0">,</span><span class="st_h">'acosh'</span><span class="sy0">,</span><span class="st_h">'addcslashes'</span><span class="sy0">,</span><span class="st_h">'addslashes'</span><span class="sy0">,</span><span class="st_h">'aggregate'</span><span class="sy0">,</span></span></span> <span class="st_h">'aggregate_methods'</span><span class="sy0">,</span><span class="st_h">'aggregate_methods_by_list'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'aggregate_methods_by_regexp'</span><span class="sy0">,</span><span class="st_h">'aggregate_properties'</span><span class="sy0">,</span></span></span> <span class="st_h">'aggregate_properties_by_list'</span><span class="sy0">,</span><span class="st_h">'aggregate_properties_by_regexp'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'aggregation_info'</span><span class="sy0">,</span><span class="st_h">'apache_child_terminate'</span><span class="sy0">,</span><span class="st_h">'apache_get_modules'</span><span class="sy0">,</span></span></span> <span class="st_h">'apache_get_version'</span><span class="sy0">,</span><span class="st_h">'apache_getenv'</span><span class="sy0">,</span><span class="st_h">'apache_lookup_uri'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'apache_note'</span><span class="sy0">,</span><span class="st_h">'apache_request_headers'</span><span class="sy0">,</span><span class="st_h">'apache_response_headers'</span><span class="sy0">,</span></span></span> <span class="st_h">'apache_setenv'</span><span class="sy0">,</span><span class="st_h">'array'</span><span class="sy0">,</span><span class="st_h">'array_change_key_case'</span><span class="sy0">,</span><span class="st_h">'array_chunk'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_combine'</span><span class="sy0">,</span><span class="st_h">'array_count_values'</span><span class="sy0">,</span><span class="st_h">'array_diff'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_diff_assoc'</span><span class="sy0">,</span><span class="st_h">'array_diff_key'</span><span class="sy0">,</span><span class="st_h">'array_diff_uassoc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_diff_ukey'</span><span class="sy0">,</span><span class="st_h">'array_fill'</span><span class="sy0">,</span><span class="st_h">'array_fill_keys'</span><span class="sy0">,</span><span class="st_h">'array_filter'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_flip'</span><span class="sy0">,</span><span class="st_h">'array_intersect'</span><span class="sy0">,</span><span class="st_h">'array_intersect_assoc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_intersect_key'</span><span class="sy0">,</span><span class="st_h">'array_intersect_uassoc'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_intersect_ukey'</span><span class="sy0">,</span><span class="st_h">'array_key_exists'</span><span class="sy0">,</span><span class="st_h">'array_keys'</span><span class="sy0">,</span><span class="st_h">'array_map'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_merge'</span><span class="sy0">,</span><span class="st_h">'array_merge_recursive'</span><span class="sy0">,</span><span class="st_h">'array_multisort'</span><span class="sy0">,</span><span class="st_h">'array_pad'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_pop'</span><span class="sy0">,</span><span class="st_h">'array_product'</span><span class="sy0">,</span><span class="st_h">'array_push'</span><span class="sy0">,</span><span class="st_h">'array_rand'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_reduce'</span><span class="sy0">,</span><span class="st_h">'array_reverse'</span><span class="sy0">,</span><span class="st_h">'array_search'</span><span class="sy0">,</span><span class="st_h">'array_shift'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_slice'</span><span class="sy0">,</span><span class="st_h">'array_splice'</span><span class="sy0">,</span><span class="st_h">'array_sum'</span><span class="sy0">,</span><span class="st_h">'array_udiff'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_udiff_assoc'</span><span class="sy0">,</span><span class="st_h">'array_udiff_uassoc'</span><span class="sy0">,</span><span class="st_h">'array_uintersect'</span><span class="sy0">,</span></span></span> <span class="st_h">'array_uintersect_assoc'</span><span class="sy0">,</span><span class="st_h">'array_uintersect_uassoc'</span><span class="sy0">,</span><span class="st_h">'array_unique'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'array_unshift'</span><span class="sy0">,</span><span class="st_h">'array_values'</span><span class="sy0">,</span><span class="st_h">'array_walk'</span><span class="sy0">,</span><span class="st_h">'array_walk_recursive'</span><span class="sy0">,</span></span></span> <span class="st_h">'arsort'</span><span class="sy0">,</span><span class="st_h">'asin'</span><span class="sy0">,</span><span class="st_h">'asinh'</span><span class="sy0">,</span><span class="st_h">'asort'</span><span class="sy0">,</span><span class="st_h">'assert'</span><span class="sy0">,</span><span class="st_h">'assert_options'</span><span class="sy0">,</span><span class="st_h">'atan'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'atan2'</span><span class="sy0">,</span><span class="st_h">'atanh'</span><span class="sy0">,</span><span class="st_h">'base_convert'</span><span class="sy0">,</span><span class="st_h">'base64_decode'</span><span class="sy0">,</span><span class="st_h">'base64_encode'</span><span class="sy0">,</span></span></span> <span class="st_h">'basename'</span><span class="sy0">,</span><span class="st_h">'bcadd'</span><span class="sy0">,</span><span class="st_h">'bccomp'</span><span class="sy0">,</span><span class="st_h">'bcdiv'</span><span class="sy0">,</span><span class="st_h">'bcmod'</span><span class="sy0">,</span><span class="st_h">'bcmul'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bcompiler_load'</span><span class="sy0">,</span><span class="st_h">'bcompiler_load_exe'</span><span class="sy0">,</span><span class="st_h">'bcompiler_parse_class'</span><span class="sy0">,</span></span></span> <span class="st_h">'bcompiler_read'</span><span class="sy0">,</span><span class="st_h">'bcompiler_write_class'</span><span class="sy0">,</span><span class="st_h">'bcompiler_write_constant'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bcompiler_write_exe_footer'</span><span class="sy0">,</span><span class="st_h">'bcompiler_write_file'</span><span class="sy0">,</span></span></span> <span class="st_h">'bcompiler_write_footer'</span><span class="sy0">,</span><span class="st_h">'bcompiler_write_function'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bcompiler_write_functions_from_file'</span><span class="sy0">,</span><span class="st_h">'bcompiler_write_header'</span><span class="sy0">,</span></span></span> <span class="st_h">'bcompiler_write_included_filename'</span><span class="sy0">,</span><span class="st_h">'bcpow'</span><span class="sy0">,</span><span class="st_h">'bcpowmod'</span><span class="sy0">,</span><span class="st_h">'bcscale'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bcsqrt'</span><span class="sy0">,</span><span class="st_h">'bcsub'</span><span class="sy0">,</span><span class="st_h">'bin2hex'</span><span class="sy0">,</span><span class="st_h">'bindec'</span><span class="sy0">,</span><span class="st_h">'bindtextdomain'</span><span class="sy0">,</span></span></span> <span class="st_h">'bind_textdomain_codeset'</span><span class="sy0">,</span><span class="st_h">'bitset_empty'</span><span class="sy0">,</span><span class="st_h">'bitset_equal'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bitset_excl'</span><span class="sy0">,</span><span class="st_h">'bitset_fill'</span><span class="sy0">,</span><span class="st_h">'bitset_from_array'</span><span class="sy0">,</span><span class="st_h">'bitset_from_hash'</span><span class="sy0">,</span></span></span> <span class="st_h">'bitset_from_string'</span><span class="sy0">,</span><span class="st_h">'bitset_in'</span><span class="sy0">,</span><span class="st_h">'bitset_incl'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bitset_intersection'</span><span class="sy0">,</span><span class="st_h">'bitset_invert'</span><span class="sy0">,</span><span class="st_h">'bitset_is_empty'</span><span class="sy0">,</span></span></span> <span class="st_h">'bitset_subset'</span><span class="sy0">,</span><span class="st_h">'bitset_to_array'</span><span class="sy0">,</span><span class="st_h">'bitset_to_hash'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bitset_to_string'</span><span class="sy0">,</span><span class="st_h">'bitset_union'</span><span class="sy0">,</span><span class="st_h">'blenc_encrypt'</span><span class="sy0">,</span><span class="st_h">'bzclose'</span><span class="sy0">,</span></span></span> <span class="st_h">'bzcompress'</span><span class="sy0">,</span><span class="st_h">'bzdecompress'</span><span class="sy0">,</span><span class="st_h">'bzerrno'</span><span class="sy0">,</span><span class="st_h">'bzerror'</span><span class="sy0">,</span><span class="st_h">'bzerrstr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'bzflush'</span><span class="sy0">,</span><span class="st_h">'bzopen'</span><span class="sy0">,</span><span class="st_h">'bzread'</span><span class="sy0">,</span><span class="st_h">'bzwrite'</span><span class="sy0">,</span><span class="st_h">'cal_days_in_month'</span><span class="sy0">,</span></span></span> <span class="st_h">'cal_from_jd'</span><span class="sy0">,</span><span class="st_h">'cal_info'</span><span class="sy0">,</span><span class="st_h">'cal_to_jd'</span><span class="sy0">,</span><span class="st_h">'call_user_func'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'call_user_func_array'</span><span class="sy0">,</span><span class="st_h">'call_user_method'</span><span class="sy0">,</span><span class="st_h">'call_user_method_array'</span><span class="sy0">,</span></span></span> <span class="st_h">'ceil'</span><span class="sy0">,</span><span class="st_h">'chdir'</span><span class="sy0">,</span><span class="st_h">'checkdate'</span><span class="sy0">,</span><span class="st_h">'checkdnsrr'</span><span class="sy0">,</span><span class="st_h">'chgrp'</span><span class="sy0">,</span><span class="st_h">'chmod'</span><span class="sy0">,</span><span class="st_h">'chop'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'chown'</span><span class="sy0">,</span><span class="st_h">'chr'</span><span class="sy0">,</span><span class="st_h">'chunk_split'</span><span class="sy0">,</span><span class="st_h">'class_exists'</span><span class="sy0">,</span><span class="st_h">'class_implements'</span><span class="sy0">,</span></span></span> <span class="st_h">'class_parents'</span><span class="sy0">,</span><span class="st_h">'classkit_aggregate_methods'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'classkit_doc_comments'</span><span class="sy0">,</span><span class="st_h">'classkit_import'</span><span class="sy0">,</span><span class="st_h">'classkit_method_add'</span><span class="sy0">,</span></span></span> <span class="st_h">'classkit_method_copy'</span><span class="sy0">,</span><span class="st_h">'classkit_method_redefine'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'classkit_method_remove'</span><span class="sy0">,</span><span class="st_h">'classkit_method_rename'</span><span class="sy0">,</span><span class="st_h">'clearstatcache'</span><span class="sy0">,</span></span></span> <span class="st_h">'closedir'</span><span class="sy0">,</span><span class="st_h">'closelog'</span><span class="sy0">,</span><span class="st_h">'com_create_guid'</span><span class="sy0">,</span><span class="st_h">'com_event_sink'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'com_get_active_object'</span><span class="sy0">,</span><span class="st_h">'com_load_typelib'</span><span class="sy0">,</span><span class="st_h">'com_message_pump'</span><span class="sy0">,</span></span></span> <span class="st_h">'com_print_typeinfo'</span><span class="sy0">,</span><span class="st_h">'compact'</span><span class="sy0">,</span><span class="st_h">'confirm_phpdoc_compiled'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'connection_aborted'</span><span class="sy0">,</span><span class="st_h">'connection_status'</span><span class="sy0">,</span><span class="st_h">'constant'</span><span class="sy0">,</span></span></span> <span class="st_h">'convert_cyr_string'</span><span class="sy0">,</span><span class="st_h">'convert_uudecode'</span><span class="sy0">,</span><span class="st_h">'convert_uuencode'</span><span class="sy0">,</span><span class="st_h">'copy'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cos'</span><span class="sy0">,</span><span class="st_h">'cosh'</span><span class="sy0">,</span><span class="st_h">'count'</span><span class="sy0">,</span><span class="st_h">'count_chars'</span><span class="sy0">,</span><span class="st_h">'cpdf_add_annotation'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_add_outline'</span><span class="sy0">,</span><span class="st_h">'cpdf_arc'</span><span class="sy0">,</span><span class="st_h">'cpdf_begin_text'</span><span class="sy0">,</span><span class="st_h">'cpdf_circle'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_clip'</span><span class="sy0">,</span><span class="st_h">'cpdf_close'</span><span class="sy0">,</span><span class="st_h">'cpdf_closepath'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_closepath_fill_stroke'</span><span class="sy0">,</span><span class="st_h">'cpdf_closepath_stroke'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_continue_text'</span><span class="sy0">,</span><span class="st_h">'cpdf_curveto'</span><span class="sy0">,</span><span class="st_h">'cpdf_end_text'</span><span class="sy0">,</span><span class="st_h">'cpdf_fill'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_fill_stroke'</span><span class="sy0">,</span><span class="st_h">'cpdf_finalize'</span><span class="sy0">,</span><span class="st_h">'cpdf_finalize_page'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_global_set_document_limits'</span><span class="sy0">,</span><span class="st_h">'cpdf_import_jpeg'</span><span class="sy0">,</span><span class="st_h">'cpdf_lineto'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_moveto'</span><span class="sy0">,</span><span class="st_h">'cpdf_newpath'</span><span class="sy0">,</span><span class="st_h">'cpdf_open'</span><span class="sy0">,</span><span class="st_h">'cpdf_output_buffer'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_page_init'</span><span class="sy0">,</span><span class="st_h">'cpdf_rect'</span><span class="sy0">,</span><span class="st_h">'cpdf_restore'</span><span class="sy0">,</span><span class="st_h">'cpdf_rlineto'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_rmoveto'</span><span class="sy0">,</span><span class="st_h">'cpdf_rotate'</span><span class="sy0">,</span><span class="st_h">'cpdf_rotate_text'</span><span class="sy0">,</span><span class="st_h">'cpdf_save'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_save_to_file'</span><span class="sy0">,</span><span class="st_h">'cpdf_scale'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_action_url'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_set_char_spacing'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_creator'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_current_page'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_set_font'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_font_directories'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_set_font_map_file'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_horiz_scaling'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_set_keywords'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_leading'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_page_animation'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_set_subject'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_text_matrix'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_text_pos'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_set_text_rendering'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_text_rise'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_title'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_set_viewer_preferences'</span><span class="sy0">,</span><span class="st_h">'cpdf_set_word_spacing'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_setdash'</span><span class="sy0">,</span><span class="st_h">'cpdf_setflat'</span><span class="sy0">,</span><span class="st_h">'cpdf_setgray'</span><span class="sy0">,</span><span class="st_h">'cpdf_setgray_fill'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_setgray_stroke'</span><span class="sy0">,</span><span class="st_h">'cpdf_setlinecap'</span><span class="sy0">,</span><span class="st_h">'cpdf_setlinejoin'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_setlinewidth'</span><span class="sy0">,</span><span class="st_h">'cpdf_setmiterlimit'</span><span class="sy0">,</span><span class="st_h">'cpdf_setrgbcolor'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_setrgbcolor_fill'</span><span class="sy0">,</span><span class="st_h">'cpdf_setrgbcolor_stroke'</span><span class="sy0">,</span><span class="st_h">'cpdf_show'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cpdf_show_xy'</span><span class="sy0">,</span><span class="st_h">'cpdf_stringwidth'</span><span class="sy0">,</span><span class="st_h">'cpdf_stroke'</span><span class="sy0">,</span><span class="st_h">'cpdf_text'</span><span class="sy0">,</span></span></span> <span class="st_h">'cpdf_translate'</span><span class="sy0">,</span><span class="st_h">'crack_check'</span><span class="sy0">,</span><span class="st_h">'crack_closedict'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'crack_getlastmessage'</span><span class="sy0">,</span><span class="st_h">'crack_opendict'</span><span class="sy0">,</span><span class="st_h">'crc32'</span><span class="sy0">,</span><span class="st_h">'create_function'</span><span class="sy0">,</span></span></span> <span class="st_h">'crypt'</span><span class="sy0">,</span><span class="st_h">'ctype_alnum'</span><span class="sy0">,</span><span class="st_h">'ctype_alpha'</span><span class="sy0">,</span><span class="st_h">'ctype_cntrl'</span><span class="sy0">,</span><span class="st_h">'ctype_digit'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ctype_graph'</span><span class="sy0">,</span><span class="st_h">'ctype_lower'</span><span class="sy0">,</span><span class="st_h">'ctype_print'</span><span class="sy0">,</span><span class="st_h">'ctype_punct'</span><span class="sy0">,</span></span></span> <span class="st_h">'ctype_space'</span><span class="sy0">,</span><span class="st_h">'ctype_upper'</span><span class="sy0">,</span><span class="st_h">'ctype_xdigit'</span><span class="sy0">,</span><span class="st_h">'curl_close'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'curl_copy_handle'</span><span class="sy0">,</span><span class="st_h">'curl_errno'</span><span class="sy0">,</span><span class="st_h">'curl_error'</span><span class="sy0">,</span><span class="st_h">'curl_exec'</span><span class="sy0">,</span></span></span> <span class="st_h">'curl_getinfo'</span><span class="sy0">,</span><span class="st_h">'curl_init'</span><span class="sy0">,</span><span class="st_h">'curl_multi_add_handle'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'curl_multi_close'</span><span class="sy0">,</span><span class="st_h">'curl_multi_exec'</span><span class="sy0">,</span><span class="st_h">'curl_multi_getcontent'</span><span class="sy0">,</span></span></span> <span class="st_h">'curl_multi_info_read'</span><span class="sy0">,</span><span class="st_h">'curl_multi_init'</span><span class="sy0">,</span><span class="st_h">'curl_multi_remove_handle'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'curl_multi_select'</span><span class="sy0">,</span><span class="st_h">'curl_setopt'</span><span class="sy0">,</span><span class="st_h">'curl_setopt_array'</span><span class="sy0">,</span></span></span> <span class="st_h">'curl_version'</span><span class="sy0">,</span><span class="st_h">'current'</span><span class="sy0">,</span><span class="st_h">'cvsclient_connect'</span><span class="sy0">,</span><span class="st_h">'cvsclient_log'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'cvsclient_login'</span><span class="sy0">,</span><span class="st_h">'cvsclient_retrieve'</span><span class="sy0">,</span><span class="st_h">'date'</span><span class="sy0">,</span><span class="st_h">'date_create'</span><span class="sy0">,</span></span></span> <span class="st_h">'date_date_set'</span><span class="sy0">,</span><span class="st_h">'date_default_timezone_get'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'date_default_timezone_set'</span><span class="sy0">,</span><span class="st_h">'date_format'</span><span class="sy0">,</span><span class="st_h">'date_isodate_set'</span><span class="sy0">,</span></span></span> <span class="st_h">'date_modify'</span><span class="sy0">,</span><span class="st_h">'date_offset_get'</span><span class="sy0">,</span><span class="st_h">'date_parse'</span><span class="sy0">,</span><span class="st_h">'date_sun_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'date_sunrise'</span><span class="sy0">,</span><span class="st_h">'date_sunset'</span><span class="sy0">,</span><span class="st_h">'date_time_set'</span><span class="sy0">,</span><span class="st_h">'date_timezone_get'</span><span class="sy0">,</span></span></span> <span class="st_h">'date_timezone_set'</span><span class="sy0">,</span><span class="st_h">'db_id_list'</span><span class="sy0">,</span><span class="st_h">'dba_close'</span><span class="sy0">,</span><span class="st_h">'dba_delete'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dba_exists'</span><span class="sy0">,</span><span class="st_h">'dba_fetch'</span><span class="sy0">,</span><span class="st_h">'dba_firstkey'</span><span class="sy0">,</span><span class="st_h">'dba_handlers'</span><span class="sy0">,</span><span class="st_h">'dba_insert'</span><span class="sy0">,</span></span></span> <span class="st_h">'dba_key_split'</span><span class="sy0">,</span><span class="st_h">'dba_list'</span><span class="sy0">,</span><span class="st_h">'dba_nextkey'</span><span class="sy0">,</span><span class="st_h">'dba_open'</span><span class="sy0">,</span><span class="st_h">'dba_optimize'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dba_popen'</span><span class="sy0">,</span><span class="st_h">'dba_replace'</span><span class="sy0">,</span><span class="st_h">'dba_sync'</span><span class="sy0">,</span><span class="st_h">'dbase_add_record'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbase_close'</span><span class="sy0">,</span><span class="st_h">'dbase_create'</span><span class="sy0">,</span><span class="st_h">'dbase_delete_record'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbase_get_header_info'</span><span class="sy0">,</span><span class="st_h">'dbase_get_record'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbase_get_record_with_names'</span><span class="sy0">,</span><span class="st_h">'dbase_numfields'</span><span class="sy0">,</span><span class="st_h">'dbase_numrecords'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbase_open'</span><span class="sy0">,</span><span class="st_h">'dbase_pack'</span><span class="sy0">,</span><span class="st_h">'dbase_replace_record'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbg_get_all_contexts'</span><span class="sy0">,</span><span class="st_h">'dbg_get_all_module_names'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbg_get_all_source_lines'</span><span class="sy0">,</span><span class="st_h">'dbg_get_context_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbg_get_module_name'</span><span class="sy0">,</span><span class="st_h">'dbg_get_profiler_results'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbg_get_source_context'</span><span class="sy0">,</span><span class="st_h">'dblist'</span><span class="sy0">,</span><span class="st_h">'dbmclose'</span><span class="sy0">,</span><span class="st_h">'dbmdelete'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbmexists'</span><span class="sy0">,</span><span class="st_h">'dbmfetch'</span><span class="sy0">,</span><span class="st_h">'dbmfirstkey'</span><span class="sy0">,</span><span class="st_h">'dbminsert'</span><span class="sy0">,</span><span class="st_h">'dbmnextkey'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbmopen'</span><span class="sy0">,</span><span class="st_h">'dbmreplace'</span><span class="sy0">,</span><span class="st_h">'dbx_close'</span><span class="sy0">,</span><span class="st_h">'dbx_compare'</span><span class="sy0">,</span><span class="st_h">'dbx_connect'</span><span class="sy0">,</span></span></span> <span class="st_h">'dbx_error'</span><span class="sy0">,</span><span class="st_h">'dbx_escape_string'</span><span class="sy0">,</span><span class="st_h">'dbx_fetch_row'</span><span class="sy0">,</span><span class="st_h">'dbx_query'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dbx_sort'</span><span class="sy0">,</span><span class="st_h">'dcgettext'</span><span class="sy0">,</span><span class="st_h">'dcngettext'</span><span class="sy0">,</span><span class="st_h">'deaggregate'</span><span class="sy0">,</span><span class="st_h">'debug_backtrace'</span><span class="sy0">,</span></span></span> <span class="st_h">'debug_zval_dump'</span><span class="sy0">,</span><span class="st_h">'debugbreak'</span><span class="sy0">,</span><span class="st_h">'decbin'</span><span class="sy0">,</span><span class="st_h">'dechex'</span><span class="sy0">,</span><span class="st_h">'decoct'</span><span class="sy0">,</span><span class="st_h">'define'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'defined'</span><span class="sy0">,</span><span class="st_h">'define_syslog_variables'</span><span class="sy0">,</span><span class="st_h">'deg2rad'</span><span class="sy0">,</span><span class="st_h">'dgettext'</span><span class="sy0">,</span><span class="st_h">'die'</span><span class="sy0">,</span></span></span> <span class="st_h">'dio_close'</span><span class="sy0">,</span><span class="st_h">'dio_open'</span><span class="sy0">,</span><span class="st_h">'dio_read'</span><span class="sy0">,</span><span class="st_h">'dio_seek'</span><span class="sy0">,</span><span class="st_h">'dio_stat'</span><span class="sy0">,</span><span class="st_h">'dio_write'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'dir'</span><span class="sy0">,</span><span class="st_h">'dirname'</span><span class="sy0">,</span><span class="st_h">'disk_free_space'</span><span class="sy0">,</span><span class="st_h">'disk_total_space'</span><span class="sy0">,</span></span></span> <span class="st_h">'diskfreespace'</span><span class="sy0">,</span><span class="st_h">'dl'</span><span class="sy0">,</span><span class="st_h">'dngettext'</span><span class="sy0">,</span><span class="st_h">'docblock_token_name'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'docblock_tokenize'</span><span class="sy0">,</span><span class="st_h">'dom_import_simplexml'</span><span class="sy0">,</span><span class="st_h">'domxml_add_root'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_attributes'</span><span class="sy0">,</span><span class="st_h">'domxml_children'</span><span class="sy0">,</span><span class="st_h">'domxml_doc_add_root'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_doc_document_element'</span><span class="sy0">,</span><span class="st_h">'domxml_doc_get_element_by_id'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_doc_get_elements_by_tagname'</span><span class="sy0">,</span><span class="st_h">'domxml_doc_get_root'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_doc_set_root'</span><span class="sy0">,</span><span class="st_h">'domxml_doc_validate'</span><span class="sy0">,</span><span class="st_h">'domxml_doc_xinclude'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_dump_mem'</span><span class="sy0">,</span><span class="st_h">'domxml_dump_mem_file'</span><span class="sy0">,</span><span class="st_h">'domxml_dump_node'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_dumpmem'</span><span class="sy0">,</span><span class="st_h">'domxml_elem_get_attribute'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_elem_set_attribute'</span><span class="sy0">,</span><span class="st_h">'domxml_get_attribute'</span><span class="sy0">,</span><span class="st_h">'domxml_getattr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_html_dump_mem'</span><span class="sy0">,</span><span class="st_h">'domxml_new_child'</span><span class="sy0">,</span><span class="st_h">'domxml_new_doc'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_new_xmldoc'</span><span class="sy0">,</span><span class="st_h">'domxml_node'</span><span class="sy0">,</span><span class="st_h">'domxml_node_add_namespace'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_node_attributes'</span><span class="sy0">,</span><span class="st_h">'domxml_node_children'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_node_get_content'</span><span class="sy0">,</span><span class="st_h">'domxml_node_has_attributes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_node_new_child'</span><span class="sy0">,</span><span class="st_h">'domxml_node_set_content'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_node_set_namespace'</span><span class="sy0">,</span><span class="st_h">'domxml_node_unlink_node'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_open_file'</span><span class="sy0">,</span><span class="st_h">'domxml_open_mem'</span><span class="sy0">,</span><span class="st_h">'domxml_parser'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_parser_add_chunk'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_cdata_section'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_parser_characters'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_comment'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_parser_end'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_end_document'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_parser_end_element'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_entity_reference'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_parser_get_document'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_namespace_decl'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_parser_processing_instruction'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_parser_start_document'</span><span class="sy0">,</span><span class="st_h">'domxml_parser_start_element'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_root'</span><span class="sy0">,</span><span class="st_h">'domxml_set_attribute'</span><span class="sy0">,</span><span class="st_h">'domxml_setattr'</span><span class="sy0">,</span></span></span> <span class="st_h">'domxml_substitute_entities_default'</span><span class="sy0">,</span><span class="st_h">'domxml_unlink_node'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'domxml_version'</span><span class="sy0">,</span><span class="st_h">'domxml_xmltree'</span><span class="sy0">,</span><span class="st_h">'doubleval'</span><span class="sy0">,</span><span class="st_h">'each'</span><span class="sy0">,</span><span class="st_h">'easter_date'</span><span class="sy0">,</span></span></span> <span class="st_h">'easter_days'</span><span class="sy0">,</span><span class="st_h">'empty'</span><span class="sy0">,</span><span class="st_h">'end'</span><span class="sy0">,</span><span class="st_h">'ereg'</span><span class="sy0">,</span><span class="st_h">'ereg_replace'</span><span class="sy0">,</span><span class="st_h">'eregi'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'eregi_replace'</span><span class="sy0">,</span><span class="st_h">'error_get_last'</span><span class="sy0">,</span><span class="st_h">'error_log'</span><span class="sy0">,</span><span class="st_h">'error_reporting'</span><span class="sy0">,</span></span></span> <span class="st_h">'escapeshellarg'</span><span class="sy0">,</span><span class="st_h">'escapeshellcmd'</span><span class="sy0">,</span><span class="st_h">'eval'</span><span class="sy0">,</span><span class="st_h">'event_deschedule'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'event_dispatch'</span><span class="sy0">,</span><span class="st_h">'event_free'</span><span class="sy0">,</span><span class="st_h">'event_handle_signal'</span><span class="sy0">,</span></span></span> <span class="st_h">'event_have_events'</span><span class="sy0">,</span><span class="st_h">'event_init'</span><span class="sy0">,</span><span class="st_h">'event_new'</span><span class="sy0">,</span><span class="st_h">'event_pending'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'event_priority_set'</span><span class="sy0">,</span><span class="st_h">'event_schedule'</span><span class="sy0">,</span><span class="st_h">'event_set'</span><span class="sy0">,</span><span class="st_h">'event_timeout'</span><span class="sy0">,</span></span></span> <span class="st_h">'exec'</span><span class="sy0">,</span><span class="st_h">'exif_imagetype'</span><span class="sy0">,</span><span class="st_h">'exif_read_data'</span><span class="sy0">,</span><span class="st_h">'exif_tagname'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'exif_thumbnail'</span><span class="sy0">,</span><span class="st_h">'exit'</span><span class="sy0">,</span><span class="st_h">'exp'</span><span class="sy0">,</span><span class="st_h">'explode'</span><span class="sy0">,</span><span class="st_h">'expm1'</span><span class="sy0">,</span><span class="st_h">'extension_loaded'</span><span class="sy0">,</span></span></span> <span class="st_h">'extract'</span><span class="sy0">,</span><span class="st_h">'ezmlm_hash'</span><span class="sy0">,</span><span class="st_h">'fbird_add_user'</span><span class="sy0">,</span><span class="st_h">'fbird_affected_rows'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_backup'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_add'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_cancel'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_blob_close'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_create'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_echo'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_blob_get'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_import'</span><span class="sy0">,</span><span class="st_h">'fbird_blob_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_blob_open'</span><span class="sy0">,</span><span class="st_h">'fbird_close'</span><span class="sy0">,</span><span class="st_h">'fbird_commit'</span><span class="sy0">,</span><span class="st_h">'fbird_commit_ret'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_connect'</span><span class="sy0">,</span><span class="st_h">'fbird_db_info'</span><span class="sy0">,</span><span class="st_h">'fbird_delete_user'</span><span class="sy0">,</span><span class="st_h">'fbird_drop_db'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_errcode'</span><span class="sy0">,</span><span class="st_h">'fbird_errmsg'</span><span class="sy0">,</span><span class="st_h">'fbird_execute'</span><span class="sy0">,</span><span class="st_h">'fbird_fetch_assoc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_fetch_object'</span><span class="sy0">,</span><span class="st_h">'fbird_fetch_row'</span><span class="sy0">,</span><span class="st_h">'fbird_field_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_free_event_handler'</span><span class="sy0">,</span><span class="st_h">'fbird_free_query'</span><span class="sy0">,</span><span class="st_h">'fbird_free_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_gen_id'</span><span class="sy0">,</span><span class="st_h">'fbird_maintain_db'</span><span class="sy0">,</span><span class="st_h">'fbird_modify_user'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_name_result'</span><span class="sy0">,</span><span class="st_h">'fbird_num_fields'</span><span class="sy0">,</span><span class="st_h">'fbird_num_params'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_param_info'</span><span class="sy0">,</span><span class="st_h">'fbird_pconnect'</span><span class="sy0">,</span><span class="st_h">'fbird_prepare'</span><span class="sy0">,</span><span class="st_h">'fbird_query'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_restore'</span><span class="sy0">,</span><span class="st_h">'fbird_rollback'</span><span class="sy0">,</span><span class="st_h">'fbird_rollback_ret'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fbird_server_info'</span><span class="sy0">,</span><span class="st_h">'fbird_service_attach'</span><span class="sy0">,</span><span class="st_h">'fbird_service_detach'</span><span class="sy0">,</span></span></span> <span class="st_h">'fbird_set_event_handler'</span><span class="sy0">,</span><span class="st_h">'fbird_trans'</span><span class="sy0">,</span><span class="st_h">'fbird_wait_event'</span><span class="sy0">,</span><span class="st_h">'fclose'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fdf_add_doc_javascript'</span><span class="sy0">,</span><span class="st_h">'fdf_add_template'</span><span class="sy0">,</span><span class="st_h">'fdf_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'fdf_create'</span><span class="sy0">,</span><span class="st_h">'fdf_enum_values'</span><span class="sy0">,</span><span class="st_h">'fdf_errno'</span><span class="sy0">,</span><span class="st_h">'fdf_error'</span><span class="sy0">,</span><span class="st_h">'fdf_get_ap'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fdf_get_attachment'</span><span class="sy0">,</span><span class="st_h">'fdf_get_encoding'</span><span class="sy0">,</span><span class="st_h">'fdf_get_file'</span><span class="sy0">,</span></span></span> <span class="st_h">'fdf_get_flags'</span><span class="sy0">,</span><span class="st_h">'fdf_get_opt'</span><span class="sy0">,</span><span class="st_h">'fdf_get_status'</span><span class="sy0">,</span><span class="st_h">'fdf_get_value'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fdf_get_version'</span><span class="sy0">,</span><span class="st_h">'fdf_header'</span><span class="sy0">,</span><span class="st_h">'fdf_next_field_name'</span><span class="sy0">,</span><span class="st_h">'fdf_open'</span><span class="sy0">,</span></span></span> <span class="st_h">'fdf_open_string'</span><span class="sy0">,</span><span class="st_h">'fdf_remove_item'</span><span class="sy0">,</span><span class="st_h">'fdf_save'</span><span class="sy0">,</span><span class="st_h">'fdf_save_string'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fdf_set_ap'</span><span class="sy0">,</span><span class="st_h">'fdf_set_encoding'</span><span class="sy0">,</span><span class="st_h">'fdf_set_file'</span><span class="sy0">,</span><span class="st_h">'fdf_set_flags'</span><span class="sy0">,</span></span></span> <span class="st_h">'fdf_set_javascript_action'</span><span class="sy0">,</span><span class="st_h">'fdf_set_on_import_javascript'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fdf_set_opt'</span><span class="sy0">,</span><span class="st_h">'fdf_set_status'</span><span class="sy0">,</span><span class="st_h">'fdf_set_submit_form_action'</span><span class="sy0">,</span></span></span> <span class="st_h">'fdf_set_target_frame'</span><span class="sy0">,</span><span class="st_h">'fdf_set_value'</span><span class="sy0">,</span><span class="st_h">'fdf_set_version'</span><span class="sy0">,</span><span class="st_h">'feof'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fflush'</span><span class="sy0">,</span><span class="st_h">'fgetc'</span><span class="sy0">,</span><span class="st_h">'fgetcsv'</span><span class="sy0">,</span><span class="st_h">'fgets'</span><span class="sy0">,</span><span class="st_h">'fgetss'</span><span class="sy0">,</span><span class="st_h">'file'</span><span class="sy0">,</span><span class="st_h">'file_exists'</span><span class="sy0">,</span></span></span> <span class="st_h">'file_get_contents'</span><span class="sy0">,</span><span class="st_h">'file_put_contents'</span><span class="sy0">,</span><span class="st_h">'fileatime'</span><span class="sy0">,</span><span class="st_h">'filectime'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'filegroup'</span><span class="sy0">,</span><span class="st_h">'fileinode'</span><span class="sy0">,</span><span class="st_h">'filemtime'</span><span class="sy0">,</span><span class="st_h">'fileowner'</span><span class="sy0">,</span><span class="st_h">'fileperms'</span><span class="sy0">,</span></span></span> <span class="st_h">'filepro'</span><span class="sy0">,</span><span class="st_h">'filepro_fieldcount'</span><span class="sy0">,</span><span class="st_h">'filepro_fieldname'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'filepro_fieldtype'</span><span class="sy0">,</span><span class="st_h">'filepro_fieldwidth'</span><span class="sy0">,</span><span class="st_h">'filepro_retrieve'</span><span class="sy0">,</span></span></span> <span class="st_h">'filepro_rowcount'</span><span class="sy0">,</span><span class="st_h">'filesize'</span><span class="sy0">,</span><span class="st_h">'filetype'</span><span class="sy0">,</span><span class="st_h">'filter_has_var'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'filter_id'</span><span class="sy0">,</span><span class="st_h">'filter_input'</span><span class="sy0">,</span><span class="st_h">'filter_input_array'</span><span class="sy0">,</span><span class="st_h">'filter_list'</span><span class="sy0">,</span></span></span> <span class="st_h">'filter_var'</span><span class="sy0">,</span><span class="st_h">'filter_var_array'</span><span class="sy0">,</span><span class="st_h">'finfo_buffer'</span><span class="sy0">,</span><span class="st_h">'finfo_close'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'finfo_file'</span><span class="sy0">,</span><span class="st_h">'finfo_open'</span><span class="sy0">,</span><span class="st_h">'finfo_set_flags'</span><span class="sy0">,</span><span class="st_h">'floatval'</span><span class="sy0">,</span><span class="st_h">'flock'</span><span class="sy0">,</span></span></span> <span class="st_h">'floor'</span><span class="sy0">,</span><span class="st_h">'flush'</span><span class="sy0">,</span><span class="st_h">'fmod'</span><span class="sy0">,</span><span class="st_h">'fnmatch'</span><span class="sy0">,</span><span class="st_h">'fopen'</span><span class="sy0">,</span><span class="st_h">'fpassthru'</span><span class="sy0">,</span><span class="st_h">'fprintf'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fputcsv'</span><span class="sy0">,</span><span class="st_h">'fputs'</span><span class="sy0">,</span><span class="st_h">'fread'</span><span class="sy0">,</span><span class="st_h">'frenchtojd'</span><span class="sy0">,</span><span class="st_h">'fribidi_charset_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'fribidi_get_charsets'</span><span class="sy0">,</span><span class="st_h">'fribidi_log2vis'</span><span class="sy0">,</span><span class="st_h">'fscanf'</span><span class="sy0">,</span><span class="st_h">'fseek'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'fsockopen'</span><span class="sy0">,</span><span class="st_h">'fstat'</span><span class="sy0">,</span><span class="st_h">'ftell'</span><span class="sy0">,</span><span class="st_h">'ftok'</span><span class="sy0">,</span><span class="st_h">'ftp_alloc'</span><span class="sy0">,</span><span class="st_h">'ftp_cdup'</span><span class="sy0">,</span></span></span> <span class="st_h">'ftp_chdir'</span><span class="sy0">,</span><span class="st_h">'ftp_chmod'</span><span class="sy0">,</span><span class="st_h">'ftp_close'</span><span class="sy0">,</span><span class="st_h">'ftp_connect'</span><span class="sy0">,</span><span class="st_h">'ftp_delete'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ftp_exec'</span><span class="sy0">,</span><span class="st_h">'ftp_fget'</span><span class="sy0">,</span><span class="st_h">'ftp_fput'</span><span class="sy0">,</span><span class="st_h">'ftp_get'</span><span class="sy0">,</span><span class="st_h">'ftp_get_option'</span><span class="sy0">,</span></span></span> <span class="st_h">'ftp_login'</span><span class="sy0">,</span><span class="st_h">'ftp_mdtm'</span><span class="sy0">,</span><span class="st_h">'ftp_mkdir'</span><span class="sy0">,</span><span class="st_h">'ftp_nb_continue'</span><span class="sy0">,</span><span class="st_h">'ftp_nb_fget'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ftp_nb_fput'</span><span class="sy0">,</span><span class="st_h">'ftp_nb_get'</span><span class="sy0">,</span><span class="st_h">'ftp_nb_put'</span><span class="sy0">,</span><span class="st_h">'ftp_nlist'</span><span class="sy0">,</span><span class="st_h">'ftp_pasv'</span><span class="sy0">,</span></span></span> <span class="st_h">'ftp_put'</span><span class="sy0">,</span><span class="st_h">'ftp_pwd'</span><span class="sy0">,</span><span class="st_h">'ftp_quit'</span><span class="sy0">,</span><span class="st_h">'ftp_raw'</span><span class="sy0">,</span><span class="st_h">'ftp_rawlist'</span><span class="sy0">,</span><span class="st_h">'ftp_rename'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ftp_rmdir'</span><span class="sy0">,</span><span class="st_h">'ftp_set_option'</span><span class="sy0">,</span><span class="st_h">'ftp_site'</span><span class="sy0">,</span><span class="st_h">'ftp_size'</span><span class="sy0">,</span></span></span> <span class="st_h">'ftp_ssl_connect'</span><span class="sy0">,</span><span class="st_h">'ftp_systype'</span><span class="sy0">,</span><span class="st_h">'ftruncate'</span><span class="sy0">,</span><span class="st_h">'function_exists'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'func_get_arg'</span><span class="sy0">,</span><span class="st_h">'func_get_args'</span><span class="sy0">,</span><span class="st_h">'func_num_args'</span><span class="sy0">,</span><span class="st_h">'fwrite'</span><span class="sy0">,</span><span class="st_h">'gd_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'getallheaders'</span><span class="sy0">,</span><span class="st_h">'getcwd'</span><span class="sy0">,</span><span class="st_h">'getdate'</span><span class="sy0">,</span><span class="st_h">'getenv'</span><span class="sy0">,</span><span class="st_h">'gethostbyaddr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gethostbyname'</span><span class="sy0">,</span><span class="st_h">'gethostbynamel'</span><span class="sy0">,</span><span class="st_h">'getimagesize'</span><span class="sy0">,</span><span class="st_h">'getlastmod'</span><span class="sy0">,</span></span></span> <span class="st_h">'getmxrr'</span><span class="sy0">,</span><span class="st_h">'getmygid'</span><span class="sy0">,</span><span class="st_h">'getmyinode'</span><span class="sy0">,</span><span class="st_h">'getmypid'</span><span class="sy0">,</span><span class="st_h">'getmyuid'</span><span class="sy0">,</span><span class="st_h">'getopt'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'getprotobyname'</span><span class="sy0">,</span><span class="st_h">'getprotobynumber'</span><span class="sy0">,</span><span class="st_h">'getrandmax'</span><span class="sy0">,</span><span class="st_h">'getrusage'</span><span class="sy0">,</span></span></span> <span class="st_h">'getservbyname'</span><span class="sy0">,</span><span class="st_h">'getservbyport'</span><span class="sy0">,</span><span class="st_h">'gettext'</span><span class="sy0">,</span><span class="st_h">'gettimeofday'</span><span class="sy0">,</span><span class="st_h">'gettype'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'get_browser'</span><span class="sy0">,</span><span class="st_h">'get_cfg_var'</span><span class="sy0">,</span><span class="st_h">'get_class'</span><span class="sy0">,</span><span class="st_h">'get_class_methods'</span><span class="sy0">,</span></span></span> <span class="st_h">'get_class_vars'</span><span class="sy0">,</span><span class="st_h">'get_current_user'</span><span class="sy0">,</span><span class="st_h">'get_declared_classes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'get_defined_constants'</span><span class="sy0">,</span><span class="st_h">'get_defined_functions'</span><span class="sy0">,</span><span class="st_h">'get_defined_vars'</span><span class="sy0">,</span></span></span> <span class="st_h">'get_extension_funcs'</span><span class="sy0">,</span><span class="st_h">'get_headers'</span><span class="sy0">,</span><span class="st_h">'get_html_translation_table'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'get_included_files'</span><span class="sy0">,</span><span class="st_h">'get_include_path'</span><span class="sy0">,</span><span class="st_h">'get_loaded_extensions'</span><span class="sy0">,</span></span></span> <span class="st_h">'get_magic_quotes_gpc'</span><span class="sy0">,</span><span class="st_h">'get_magic_quotes_runtime'</span><span class="sy0">,</span><span class="st_h">'get_meta_tags'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'get_object_vars'</span><span class="sy0">,</span><span class="st_h">'get_parent_class'</span><span class="sy0">,</span><span class="st_h">'get_required_files'</span><span class="sy0">,</span></span></span> <span class="st_h">'get_resource_type'</span><span class="sy0">,</span><span class="st_h">'glob'</span><span class="sy0">,</span><span class="st_h">'gmdate'</span><span class="sy0">,</span><span class="st_h">'gmmktime'</span><span class="sy0">,</span><span class="st_h">'gmp_abs'</span><span class="sy0">,</span><span class="st_h">'gmp_add'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gmp_and'</span><span class="sy0">,</span><span class="st_h">'gmp_clrbit'</span><span class="sy0">,</span><span class="st_h">'gmp_cmp'</span><span class="sy0">,</span><span class="st_h">'gmp_com'</span><span class="sy0">,</span><span class="st_h">'gmp_div'</span><span class="sy0">,</span><span class="st_h">'gmp_div_q'</span><span class="sy0">,</span></span></span> <span class="st_h">'gmp_div_qr'</span><span class="sy0">,</span><span class="st_h">'gmp_div_r'</span><span class="sy0">,</span><span class="st_h">'gmp_divexact'</span><span class="sy0">,</span><span class="st_h">'gmp_fact'</span><span class="sy0">,</span><span class="st_h">'gmp_gcd'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gmp_gcdext'</span><span class="sy0">,</span><span class="st_h">'gmp_hamdist'</span><span class="sy0">,</span><span class="st_h">'gmp_init'</span><span class="sy0">,</span><span class="st_h">'gmp_intval'</span><span class="sy0">,</span><span class="st_h">'gmp_invert'</span><span class="sy0">,</span></span></span> <span class="st_h">'gmp_jacobi'</span><span class="sy0">,</span><span class="st_h">'gmp_legendre'</span><span class="sy0">,</span><span class="st_h">'gmp_mod'</span><span class="sy0">,</span><span class="st_h">'gmp_mul'</span><span class="sy0">,</span><span class="st_h">'gmp_neg'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gmp_nextprime'</span><span class="sy0">,</span><span class="st_h">'gmp_or'</span><span class="sy0">,</span><span class="st_h">'gmp_perfect_square'</span><span class="sy0">,</span><span class="st_h">'gmp_popcount'</span><span class="sy0">,</span></span></span> <span class="st_h">'gmp_pow'</span><span class="sy0">,</span><span class="st_h">'gmp_powm'</span><span class="sy0">,</span><span class="st_h">'gmp_prob_prime'</span><span class="sy0">,</span><span class="st_h">'gmp_random'</span><span class="sy0">,</span><span class="st_h">'gmp_scan0'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gmp_scan1'</span><span class="sy0">,</span><span class="st_h">'gmp_setbit'</span><span class="sy0">,</span><span class="st_h">'gmp_sign'</span><span class="sy0">,</span><span class="st_h">'gmp_sqrt'</span><span class="sy0">,</span><span class="st_h">'gmp_sqrtrem'</span><span class="sy0">,</span></span></span> <span class="st_h">'gmp_strval'</span><span class="sy0">,</span><span class="st_h">'gmp_sub'</span><span class="sy0">,</span><span class="st_h">'gmp_xor'</span><span class="sy0">,</span><span class="st_h">'gmstrftime'</span><span class="sy0">,</span><span class="st_h">'gopher_parsedir'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gregoriantojd'</span><span class="sy0">,</span><span class="st_h">'gzclose'</span><span class="sy0">,</span><span class="st_h">'gzcompress'</span><span class="sy0">,</span><span class="st_h">'gzdeflate'</span><span class="sy0">,</span><span class="st_h">'gzencode'</span><span class="sy0">,</span></span></span> <span class="st_h">'gzeof'</span><span class="sy0">,</span><span class="st_h">'gzfile'</span><span class="sy0">,</span><span class="st_h">'gzgetc'</span><span class="sy0">,</span><span class="st_h">'gzgets'</span><span class="sy0">,</span><span class="st_h">'gzgetss'</span><span class="sy0">,</span><span class="st_h">'gzinflate'</span><span class="sy0">,</span><span class="st_h">'gzopen'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'gzpassthru'</span><span class="sy0">,</span><span class="st_h">'gzputs'</span><span class="sy0">,</span><span class="st_h">'gzread'</span><span class="sy0">,</span><span class="st_h">'gzrewind'</span><span class="sy0">,</span><span class="st_h">'gzseek'</span><span class="sy0">,</span><span class="st_h">'gztell'</span><span class="sy0">,</span></span></span> <span class="st_h">'gzuncompress'</span><span class="sy0">,</span><span class="st_h">'gzwrite'</span><span class="sy0">,</span><span class="st_h">'hash'</span><span class="sy0">,</span><span class="st_h">'hash_algos'</span><span class="sy0">,</span><span class="st_h">'hash_file'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'hash_final'</span><span class="sy0">,</span><span class="st_h">'hash_hmac'</span><span class="sy0">,</span><span class="st_h">'hash_hmac_file'</span><span class="sy0">,</span><span class="st_h">'hash_init'</span><span class="sy0">,</span><span class="st_h">'hash_update'</span><span class="sy0">,</span></span></span> <span class="st_h">'hash_update_file'</span><span class="sy0">,</span><span class="st_h">'hash_update_stream'</span><span class="sy0">,</span><span class="st_h">'header'</span><span class="sy0">,</span><span class="st_h">'headers_list'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'headers_sent'</span><span class="sy0">,</span><span class="st_h">'hebrev'</span><span class="sy0">,</span><span class="st_h">'hebrevc'</span><span class="sy0">,</span><span class="st_h">'hexdec'</span><span class="sy0">,</span><span class="st_h">'highlight_file'</span><span class="sy0">,</span></span></span> <span class="st_h">'highlight_string'</span><span class="sy0">,</span><span class="st_h">'html_doc'</span><span class="sy0">,</span><span class="st_h">'html_doc_file'</span><span class="sy0">,</span><span class="st_h">'html_entity_decode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'htmlentities'</span><span class="sy0">,</span><span class="st_h">'htmlspecialchars'</span><span class="sy0">,</span><span class="st_h">'htmlspecialchars_decode'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_build_cookie'</span><span class="sy0">,</span><span class="st_h">'http_build_query'</span><span class="sy0">,</span><span class="st_h">'http_build_str'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_build_url'</span><span class="sy0">,</span><span class="st_h">'http_cache_etag'</span><span class="sy0">,</span><span class="st_h">'http_cache_last_modified'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_chunked_decode'</span><span class="sy0">,</span><span class="st_h">'http_date'</span><span class="sy0">,</span><span class="st_h">'http_deflate'</span><span class="sy0">,</span><span class="st_h">'http_get'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_get_request_body'</span><span class="sy0">,</span><span class="st_h">'http_get_request_body_stream'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_get_request_headers'</span><span class="sy0">,</span><span class="st_h">'http_head'</span><span class="sy0">,</span><span class="st_h">'http_inflate'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_match_etag'</span><span class="sy0">,</span><span class="st_h">'http_match_modified'</span><span class="sy0">,</span><span class="st_h">'http_match_request_header'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_negotiate_charset'</span><span class="sy0">,</span><span class="st_h">'http_negotiate_content_type'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_negotiate_language'</span><span class="sy0">,</span><span class="st_h">'http_parse_cookie'</span><span class="sy0">,</span><span class="st_h">'http_parse_headers'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_parse_message'</span><span class="sy0">,</span><span class="st_h">'http_parse_params'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_persistent_handles_clean'</span><span class="sy0">,</span><span class="st_h">'http_persistent_handles_count'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_persistent_handles_ident'</span><span class="sy0">,</span><span class="st_h">'http_post_data'</span><span class="sy0">,</span><span class="st_h">'http_post_fields'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_put_data'</span><span class="sy0">,</span><span class="st_h">'http_put_file'</span><span class="sy0">,</span><span class="st_h">'http_put_stream'</span><span class="sy0">,</span><span class="st_h">'http_redirect'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_request'</span><span class="sy0">,</span><span class="st_h">'http_request_body_encode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_request_method_exists'</span><span class="sy0">,</span><span class="st_h">'http_request_method_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_request_method_register'</span><span class="sy0">,</span><span class="st_h">'http_request_method_unregister'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_send_content_disposition'</span><span class="sy0">,</span><span class="st_h">'http_send_content_type'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_send_data'</span><span class="sy0">,</span><span class="st_h">'http_send_file'</span><span class="sy0">,</span><span class="st_h">'http_send_last_modified'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'http_send_status'</span><span class="sy0">,</span><span class="st_h">'http_send_stream'</span><span class="sy0">,</span><span class="st_h">'http_support'</span><span class="sy0">,</span></span></span> <span class="st_h">'http_throttle'</span><span class="sy0">,</span><span class="st_h">'hypot'</span><span class="sy0">,</span><span class="st_h">'i18n_convert'</span><span class="sy0">,</span><span class="st_h">'i18n_discover_encoding'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'i18n_http_input'</span><span class="sy0">,</span><span class="st_h">'i18n_http_output'</span><span class="sy0">,</span><span class="st_h">'i18n_internal_encoding'</span><span class="sy0">,</span></span></span> <span class="st_h">'i18n_ja_jp_hantozen'</span><span class="sy0">,</span><span class="st_h">'i18n_mime_header_decode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'i18n_mime_header_encode'</span><span class="sy0">,</span><span class="st_h">'ibase_add_user'</span><span class="sy0">,</span><span class="st_h">'ibase_affected_rows'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_backup'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_add'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_cancel'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_blob_close'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_create'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_echo'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_blob_get'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_import'</span><span class="sy0">,</span><span class="st_h">'ibase_blob_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_blob_open'</span><span class="sy0">,</span><span class="st_h">'ibase_close'</span><span class="sy0">,</span><span class="st_h">'ibase_commit'</span><span class="sy0">,</span><span class="st_h">'ibase_commit_ret'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_connect'</span><span class="sy0">,</span><span class="st_h">'ibase_db_info'</span><span class="sy0">,</span><span class="st_h">'ibase_delete_user'</span><span class="sy0">,</span><span class="st_h">'ibase_drop_db'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_errcode'</span><span class="sy0">,</span><span class="st_h">'ibase_errmsg'</span><span class="sy0">,</span><span class="st_h">'ibase_execute'</span><span class="sy0">,</span><span class="st_h">'ibase_fetch_assoc'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_fetch_object'</span><span class="sy0">,</span><span class="st_h">'ibase_fetch_row'</span><span class="sy0">,</span><span class="st_h">'ibase_field_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_free_event_handler'</span><span class="sy0">,</span><span class="st_h">'ibase_free_query'</span><span class="sy0">,</span><span class="st_h">'ibase_free_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_gen_id'</span><span class="sy0">,</span><span class="st_h">'ibase_maintain_db'</span><span class="sy0">,</span><span class="st_h">'ibase_modify_user'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_name_result'</span><span class="sy0">,</span><span class="st_h">'ibase_num_fields'</span><span class="sy0">,</span><span class="st_h">'ibase_num_params'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_param_info'</span><span class="sy0">,</span><span class="st_h">'ibase_pconnect'</span><span class="sy0">,</span><span class="st_h">'ibase_prepare'</span><span class="sy0">,</span><span class="st_h">'ibase_query'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_restore'</span><span class="sy0">,</span><span class="st_h">'ibase_rollback'</span><span class="sy0">,</span><span class="st_h">'ibase_rollback_ret'</span><span class="sy0">,</span></span></span> <span class="st_h">'ibase_server_info'</span><span class="sy0">,</span><span class="st_h">'ibase_service_attach'</span><span class="sy0">,</span><span class="st_h">'ibase_service_detach'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ibase_set_event_handler'</span><span class="sy0">,</span><span class="st_h">'ibase_trans'</span><span class="sy0">,</span><span class="st_h">'ibase_wait_event'</span><span class="sy0">,</span><span class="st_h">'iconv'</span><span class="sy0">,</span></span></span> <span class="st_h">'iconv_get_encoding'</span><span class="sy0">,</span><span class="st_h">'iconv_mime_decode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'iconv_mime_decode_headers'</span><span class="sy0">,</span><span class="st_h">'iconv_mime_encode'</span><span class="sy0">,</span></span></span> <span class="st_h">'iconv_set_encoding'</span><span class="sy0">,</span><span class="st_h">'iconv_strlen'</span><span class="sy0">,</span><span class="st_h">'iconv_strpos'</span><span class="sy0">,</span><span class="st_h">'iconv_strrpos'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'iconv_substr'</span><span class="sy0">,</span><span class="st_h">'id3_get_frame_long_name'</span><span class="sy0">,</span><span class="st_h">'id3_get_frame_short_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'id3_get_genre_id'</span><span class="sy0">,</span><span class="st_h">'id3_get_genre_list'</span><span class="sy0">,</span><span class="st_h">'id3_get_genre_name'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'id3_get_tag'</span><span class="sy0">,</span><span class="st_h">'id3_get_version'</span><span class="sy0">,</span><span class="st_h">'id3_remove_tag'</span><span class="sy0">,</span><span class="st_h">'id3_set_tag'</span><span class="sy0">,</span></span></span> <span class="st_h">'idate'</span><span class="sy0">,</span><span class="st_h">'ignore_user_abort'</span><span class="sy0">,</span><span class="st_h">'image_type_to_extension'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'image_type_to_mime_type'</span><span class="sy0">,</span><span class="st_h">'image2wbmp'</span><span class="sy0">,</span><span class="st_h">'imagealphablending'</span><span class="sy0">,</span></span></span> <span class="st_h">'imageantialias'</span><span class="sy0">,</span><span class="st_h">'imagearc'</span><span class="sy0">,</span><span class="st_h">'imagechar'</span><span class="sy0">,</span><span class="st_h">'imagecharup'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecolorallocate'</span><span class="sy0">,</span><span class="st_h">'imagecolorallocatealpha'</span><span class="sy0">,</span><span class="st_h">'imagecolorat'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagecolorclosest'</span><span class="sy0">,</span><span class="st_h">'imagecolorclosestalpha'</span><span class="sy0">,</span><span class="st_h">'imagecolordeallocate'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecolorexact'</span><span class="sy0">,</span><span class="st_h">'imagecolorexactalpha'</span><span class="sy0">,</span><span class="st_h">'imagecolormatch'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagecolorresolve'</span><span class="sy0">,</span><span class="st_h">'imagecolorresolvealpha'</span><span class="sy0">,</span><span class="st_h">'imagecolorset'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecolorsforindex'</span><span class="sy0">,</span><span class="st_h">'imagecolorstotal'</span><span class="sy0">,</span><span class="st_h">'imagecolortransparent'</span><span class="sy0">,</span></span></span> <span class="st_h">'imageconvolution'</span><span class="sy0">,</span><span class="st_h">'imagecopy'</span><span class="sy0">,</span><span class="st_h">'imagecopymerge'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecopymergegray'</span><span class="sy0">,</span><span class="st_h">'imagecopyresampled'</span><span class="sy0">,</span><span class="st_h">'imagecopyresized'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagecreate'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromgd'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromgd2'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecreatefromgd2part'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromgif'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromjpeg'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagecreatefrompng'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromstring'</span><span class="sy0">,</span><span class="st_h">'imagecreatefromwbmp'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagecreatefromxbm'</span><span class="sy0">,</span><span class="st_h">'imagecreatetruecolor'</span><span class="sy0">,</span><span class="st_h">'imagedashedline'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagedestroy'</span><span class="sy0">,</span><span class="st_h">'imageellipse'</span><span class="sy0">,</span><span class="st_h">'imagefill'</span><span class="sy0">,</span><span class="st_h">'imagefilledarc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagefilledellipse'</span><span class="sy0">,</span><span class="st_h">'imagefilledpolygon'</span><span class="sy0">,</span><span class="st_h">'imagefilledrectangle'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagefilltoborder'</span><span class="sy0">,</span><span class="st_h">'imagefilter'</span><span class="sy0">,</span><span class="st_h">'imagefontheight'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagefontwidth'</span><span class="sy0">,</span><span class="st_h">'imageftbbox'</span><span class="sy0">,</span><span class="st_h">'imagefttext'</span><span class="sy0">,</span><span class="st_h">'imagegammacorrect'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagegd'</span><span class="sy0">,</span><span class="st_h">'imagegd2'</span><span class="sy0">,</span><span class="st_h">'imagegif'</span><span class="sy0">,</span><span class="st_h">'imagegrabscreen'</span><span class="sy0">,</span><span class="st_h">'imagegrabwindow'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imageinterlace'</span><span class="sy0">,</span><span class="st_h">'imageistruecolor'</span><span class="sy0">,</span><span class="st_h">'imagejpeg'</span><span class="sy0">,</span><span class="st_h">'imagelayereffect'</span><span class="sy0">,</span></span></span> <span class="st_h">'imageline'</span><span class="sy0">,</span><span class="st_h">'imageloadfont'</span><span class="sy0">,</span><span class="st_h">'imagepalettecopy'</span><span class="sy0">,</span><span class="st_h">'imagepng'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagepolygon'</span><span class="sy0">,</span><span class="st_h">'imagepsbbox'</span><span class="sy0">,</span><span class="st_h">'imagepsencodefont'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagepsextendfont'</span><span class="sy0">,</span><span class="st_h">'imagepsfreefont'</span><span class="sy0">,</span><span class="st_h">'imagepsloadfont'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagepsslantfont'</span><span class="sy0">,</span><span class="st_h">'imagepstext'</span><span class="sy0">,</span><span class="st_h">'imagerectangle'</span><span class="sy0">,</span><span class="st_h">'imagerotate'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagesavealpha'</span><span class="sy0">,</span><span class="st_h">'imagesetbrush'</span><span class="sy0">,</span><span class="st_h">'imagesetpixel'</span><span class="sy0">,</span><span class="st_h">'imagesetstyle'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagesetthickness'</span><span class="sy0">,</span><span class="st_h">'imagesettile'</span><span class="sy0">,</span><span class="st_h">'imagestring'</span><span class="sy0">,</span><span class="st_h">'imagestringup'</span><span class="sy0">,</span></span></span> <span class="st_h">'imagesx'</span><span class="sy0">,</span><span class="st_h">'imagesy'</span><span class="sy0">,</span><span class="st_h">'imagetruecolortopalette'</span><span class="sy0">,</span><span class="st_h">'imagettfbbox'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imagettftext'</span><span class="sy0">,</span><span class="st_h">'imagetypes'</span><span class="sy0">,</span><span class="st_h">'imagewbmp'</span><span class="sy0">,</span><span class="st_h">'imagexbm'</span><span class="sy0">,</span><span class="st_h">'imap_8bit'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_alerts'</span><span class="sy0">,</span><span class="st_h">'imap_append'</span><span class="sy0">,</span><span class="st_h">'imap_base64'</span><span class="sy0">,</span><span class="st_h">'imap_binary'</span><span class="sy0">,</span><span class="st_h">'imap_body'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_bodystruct'</span><span class="sy0">,</span><span class="st_h">'imap_check'</span><span class="sy0">,</span><span class="st_h">'imap_clearflag_full'</span><span class="sy0">,</span><span class="st_h">'imap_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_create'</span><span class="sy0">,</span><span class="st_h">'imap_createmailbox'</span><span class="sy0">,</span><span class="st_h">'imap_delete'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_deletemailbox'</span><span class="sy0">,</span><span class="st_h">'imap_errors'</span><span class="sy0">,</span><span class="st_h">'imap_expunge'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_fetch_overview'</span><span class="sy0">,</span><span class="st_h">'imap_fetchbody'</span><span class="sy0">,</span><span class="st_h">'imap_fetchheader'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_fetchstructure'</span><span class="sy0">,</span><span class="st_h">'imap_fetchtext'</span><span class="sy0">,</span><span class="st_h">'imap_get_quota'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_get_quotaroot'</span><span class="sy0">,</span><span class="st_h">'imap_getacl'</span><span class="sy0">,</span><span class="st_h">'imap_getmailboxes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_getsubscribed'</span><span class="sy0">,</span><span class="st_h">'imap_header'</span><span class="sy0">,</span><span class="st_h">'imap_headerinfo'</span><span class="sy0">,</span><span class="st_h">'imap_headers'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_last_error'</span><span class="sy0">,</span><span class="st_h">'imap_list'</span><span class="sy0">,</span><span class="st_h">'imap_listmailbox'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_listsubscribed'</span><span class="sy0">,</span><span class="st_h">'imap_lsub'</span><span class="sy0">,</span><span class="st_h">'imap_mail'</span><span class="sy0">,</span><span class="st_h">'imap_mail_compose'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_mail_copy'</span><span class="sy0">,</span><span class="st_h">'imap_mail_move'</span><span class="sy0">,</span><span class="st_h">'imap_mailboxmsginfo'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_mime_header_decode'</span><span class="sy0">,</span><span class="st_h">'imap_msgno'</span><span class="sy0">,</span><span class="st_h">'imap_num_msg'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_num_recent'</span><span class="sy0">,</span><span class="st_h">'imap_open'</span><span class="sy0">,</span><span class="st_h">'imap_ping'</span><span class="sy0">,</span><span class="st_h">'imap_qprint'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_rename'</span><span class="sy0">,</span><span class="st_h">'imap_renamemailbox'</span><span class="sy0">,</span><span class="st_h">'imap_reopen'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_rfc822_parse_adrlist'</span><span class="sy0">,</span><span class="st_h">'imap_rfc822_parse_headers'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_rfc822_write_address'</span><span class="sy0">,</span><span class="st_h">'imap_savebody'</span><span class="sy0">,</span><span class="st_h">'imap_scan'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_scanmailbox'</span><span class="sy0">,</span><span class="st_h">'imap_search'</span><span class="sy0">,</span><span class="st_h">'imap_set_quota'</span><span class="sy0">,</span><span class="st_h">'imap_setacl'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_setflag_full'</span><span class="sy0">,</span><span class="st_h">'imap_sort'</span><span class="sy0">,</span><span class="st_h">'imap_status'</span><span class="sy0">,</span><span class="st_h">'imap_subscribe'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_thread'</span><span class="sy0">,</span><span class="st_h">'imap_timeout'</span><span class="sy0">,</span><span class="st_h">'imap_uid'</span><span class="sy0">,</span><span class="st_h">'imap_undelete'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'imap_unsubscribe'</span><span class="sy0">,</span><span class="st_h">'imap_utf7_decode'</span><span class="sy0">,</span><span class="st_h">'imap_utf7_encode'</span><span class="sy0">,</span></span></span> <span class="st_h">'imap_utf8'</span><span class="sy0">,</span><span class="st_h">'implode'</span><span class="sy0">,</span><span class="st_h">'import_request_variables'</span><span class="sy0">,</span><span class="st_h">'in_array'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ini_alter'</span><span class="sy0">,</span><span class="st_h">'ini_get'</span><span class="sy0">,</span><span class="st_h">'ini_get_all'</span><span class="sy0">,</span><span class="st_h">'ini_restore'</span><span class="sy0">,</span><span class="st_h">'ini_set'</span><span class="sy0">,</span></span></span> <span class="st_h">'intval'</span><span class="sy0">,</span><span class="st_h">'ip2long'</span><span class="sy0">,</span><span class="st_h">'iptcembed'</span><span class="sy0">,</span><span class="st_h">'iptcparse'</span><span class="sy0">,</span><span class="st_h">'isset'</span><span class="sy0">,</span><span class="st_h">'is_a'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'is_array'</span><span class="sy0">,</span><span class="st_h">'is_bool'</span><span class="sy0">,</span><span class="st_h">'is_callable'</span><span class="sy0">,</span><span class="st_h">'is_dir'</span><span class="sy0">,</span><span class="st_h">'is_double'</span><span class="sy0">,</span></span></span> <span class="st_h">'is_executable'</span><span class="sy0">,</span><span class="st_h">'is_file'</span><span class="sy0">,</span><span class="st_h">'is_finite'</span><span class="sy0">,</span><span class="st_h">'is_float'</span><span class="sy0">,</span><span class="st_h">'is_infinite'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'is_int'</span><span class="sy0">,</span><span class="st_h">'is_integer'</span><span class="sy0">,</span><span class="st_h">'is_link'</span><span class="sy0">,</span><span class="st_h">'is_long'</span><span class="sy0">,</span><span class="st_h">'is_nan'</span><span class="sy0">,</span><span class="st_h">'is_null'</span><span class="sy0">,</span></span></span> <span class="st_h">'is_numeric'</span><span class="sy0">,</span><span class="st_h">'is_object'</span><span class="sy0">,</span><span class="st_h">'is_readable'</span><span class="sy0">,</span><span class="st_h">'is_real'</span><span class="sy0">,</span><span class="st_h">'is_resource'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'is_scalar'</span><span class="sy0">,</span><span class="st_h">'is_soap_fault'</span><span class="sy0">,</span><span class="st_h">'is_string'</span><span class="sy0">,</span><span class="st_h">'is_subclass_of'</span><span class="sy0">,</span></span></span> <span class="st_h">'is_uploaded_file'</span><span class="sy0">,</span><span class="st_h">'is_writable'</span><span class="sy0">,</span><span class="st_h">'is_writeable'</span><span class="sy0">,</span><span class="st_h">'iterator_apply'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'iterator_count'</span><span class="sy0">,</span><span class="st_h">'iterator_to_array'</span><span class="sy0">,</span><span class="st_h">'java_last_exception_clear'</span><span class="sy0">,</span></span></span> <span class="st_h">'java_last_exception_get'</span><span class="sy0">,</span><span class="st_h">'jddayofweek'</span><span class="sy0">,</span><span class="st_h">'jdmonthname'</span><span class="sy0">,</span><span class="st_h">'jdtofrench'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'jdtogregorian'</span><span class="sy0">,</span><span class="st_h">'jdtojewish'</span><span class="sy0">,</span><span class="st_h">'jdtojulian'</span><span class="sy0">,</span><span class="st_h">'jdtounix'</span><span class="sy0">,</span><span class="st_h">'jewishtojd'</span><span class="sy0">,</span></span></span> <span class="st_h">'join'</span><span class="sy0">,</span><span class="st_h">'jpeg2wbmp'</span><span class="sy0">,</span><span class="st_h">'json_decode'</span><span class="sy0">,</span><span class="st_h">'json_encode'</span><span class="sy0">,</span><span class="st_h">'juliantojd'</span><span class="sy0">,</span><span class="st_h">'key'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'key_exists'</span><span class="sy0">,</span><span class="st_h">'krsort'</span><span class="sy0">,</span><span class="st_h">'ksort'</span><span class="sy0">,</span><span class="st_h">'lcg_value'</span><span class="sy0">,</span><span class="st_h">'ldap_add'</span><span class="sy0">,</span><span class="st_h">'ldap_bind'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_close'</span><span class="sy0">,</span><span class="st_h">'ldap_compare'</span><span class="sy0">,</span><span class="st_h">'ldap_connect'</span><span class="sy0">,</span><span class="st_h">'ldap_count_entries'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ldap_delete'</span><span class="sy0">,</span><span class="st_h">'ldap_dn2ufn'</span><span class="sy0">,</span><span class="st_h">'ldap_err2str'</span><span class="sy0">,</span><span class="st_h">'ldap_errno'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_error'</span><span class="sy0">,</span><span class="st_h">'ldap_explode_dn'</span><span class="sy0">,</span><span class="st_h">'ldap_first_attribute'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ldap_first_entry'</span><span class="sy0">,</span><span class="st_h">'ldap_first_reference'</span><span class="sy0">,</span><span class="st_h">'ldap_free_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_get_attributes'</span><span class="sy0">,</span><span class="st_h">'ldap_get_dn'</span><span class="sy0">,</span><span class="st_h">'ldap_get_entries'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ldap_get_option'</span><span class="sy0">,</span><span class="st_h">'ldap_get_values'</span><span class="sy0">,</span><span class="st_h">'ldap_get_values_len'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_list'</span><span class="sy0">,</span><span class="st_h">'ldap_mod_add'</span><span class="sy0">,</span><span class="st_h">'ldap_mod_del'</span><span class="sy0">,</span><span class="st_h">'ldap_mod_replace'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ldap_modify'</span><span class="sy0">,</span><span class="st_h">'ldap_next_attribute'</span><span class="sy0">,</span><span class="st_h">'ldap_next_entry'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_next_reference'</span><span class="sy0">,</span><span class="st_h">'ldap_parse_reference'</span><span class="sy0">,</span><span class="st_h">'ldap_parse_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ldap_read'</span><span class="sy0">,</span><span class="st_h">'ldap_rename'</span><span class="sy0">,</span><span class="st_h">'ldap_search'</span><span class="sy0">,</span><span class="st_h">'ldap_set_option'</span><span class="sy0">,</span></span></span> <span class="st_h">'ldap_sort'</span><span class="sy0">,</span><span class="st_h">'ldap_start_tls'</span><span class="sy0">,</span><span class="st_h">'ldap_unbind'</span><span class="sy0">,</span><span class="st_h">'levenshtein'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'libxml_clear_errors'</span><span class="sy0">,</span><span class="st_h">'libxml_get_errors'</span><span class="sy0">,</span><span class="st_h">'libxml_get_last_error'</span><span class="sy0">,</span></span></span> <span class="st_h">'libxml_set_streams_context'</span><span class="sy0">,</span><span class="st_h">'libxml_use_internal_errors'</span><span class="sy0">,</span><span class="st_h">'link'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'linkinfo'</span><span class="sy0">,</span><span class="st_h">'list'</span><span class="sy0">,</span><span class="st_h">'localeconv'</span><span class="sy0">,</span><span class="st_h">'localtime'</span><span class="sy0">,</span><span class="st_h">'log'</span><span class="sy0">,</span><span class="st_h">'log1p'</span><span class="sy0">,</span><span class="st_h">'log10'</span><span class="sy0">,</span></span></span> <span class="st_h">'long2ip'</span><span class="sy0">,</span><span class="st_h">'lstat'</span><span class="sy0">,</span><span class="st_h">'ltrim'</span><span class="sy0">,</span><span class="st_h">'lzf_compress'</span><span class="sy0">,</span><span class="st_h">'lzf_decompress'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'lzf_optimized_for'</span><span class="sy0">,</span><span class="st_h">'magic_quotes_runtime'</span><span class="sy0">,</span><span class="st_h">'mail'</span><span class="sy0">,</span><span class="st_h">'max'</span><span class="sy0">,</span><span class="st_h">'mbereg'</span><span class="sy0">,</span></span></span> <span class="st_h">'mberegi'</span><span class="sy0">,</span><span class="st_h">'mberegi_replace'</span><span class="sy0">,</span><span class="st_h">'mbereg_match'</span><span class="sy0">,</span><span class="st_h">'mbereg_replace'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mbereg_search'</span><span class="sy0">,</span><span class="st_h">'mbereg_search_getpos'</span><span class="sy0">,</span><span class="st_h">'mbereg_search_getregs'</span><span class="sy0">,</span></span></span> <span class="st_h">'mbereg_search_init'</span><span class="sy0">,</span><span class="st_h">'mbereg_search_pos'</span><span class="sy0">,</span><span class="st_h">'mbereg_search_regs'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mbereg_search_setpos'</span><span class="sy0">,</span><span class="st_h">'mbregex_encoding'</span><span class="sy0">,</span><span class="st_h">'mbsplit'</span><span class="sy0">,</span><span class="st_h">'mbstrcut'</span><span class="sy0">,</span></span></span> <span class="st_h">'mbstrlen'</span><span class="sy0">,</span><span class="st_h">'mbstrpos'</span><span class="sy0">,</span><span class="st_h">'mbstrrpos'</span><span class="sy0">,</span><span class="st_h">'mbsubstr'</span><span class="sy0">,</span><span class="st_h">'mb_check_encoding'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_convert_case'</span><span class="sy0">,</span><span class="st_h">'mb_convert_encoding'</span><span class="sy0">,</span><span class="st_h">'mb_convert_kana'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_convert_variables'</span><span class="sy0">,</span><span class="st_h">'mb_decode_mimeheader'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_decode_numericentity'</span><span class="sy0">,</span><span class="st_h">'mb_detect_encoding'</span><span class="sy0">,</span><span class="st_h">'mb_detect_order'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_encode_mimeheader'</span><span class="sy0">,</span><span class="st_h">'mb_encode_numericentity'</span><span class="sy0">,</span><span class="st_h">'mb_ereg'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_eregi'</span><span class="sy0">,</span><span class="st_h">'mb_eregi_replace'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_match'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_replace'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_ereg_search'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_search_getpos'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_search_getregs'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_ereg_search_init'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_search_pos'</span><span class="sy0">,</span><span class="st_h">'mb_ereg_search_regs'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_ereg_search_setpos'</span><span class="sy0">,</span><span class="st_h">'mb_get_info'</span><span class="sy0">,</span><span class="st_h">'mb_http_input'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_http_output'</span><span class="sy0">,</span><span class="st_h">'mb_internal_encoding'</span><span class="sy0">,</span><span class="st_h">'mb_language'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_list_encodings'</span><span class="sy0">,</span><span class="st_h">'mb_output_handler'</span><span class="sy0">,</span><span class="st_h">'mb_parse_str'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_preferred_mime_name'</span><span class="sy0">,</span><span class="st_h">'mb_regex_encoding'</span><span class="sy0">,</span><span class="st_h">'mb_regex_set_options'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_send_mail'</span><span class="sy0">,</span><span class="st_h">'mb_split'</span><span class="sy0">,</span><span class="st_h">'mb_strcut'</span><span class="sy0">,</span><span class="st_h">'mb_strimwidth'</span><span class="sy0">,</span><span class="st_h">'mb_stripos'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_stristr'</span><span class="sy0">,</span><span class="st_h">'mb_strlen'</span><span class="sy0">,</span><span class="st_h">'mb_strpos'</span><span class="sy0">,</span><span class="st_h">'mb_strrchr'</span><span class="sy0">,</span><span class="st_h">'mb_strrichr'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_strripos'</span><span class="sy0">,</span><span class="st_h">'mb_strrpos'</span><span class="sy0">,</span><span class="st_h">'mb_strstr'</span><span class="sy0">,</span><span class="st_h">'mb_strtolower'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mb_strtoupper'</span><span class="sy0">,</span><span class="st_h">'mb_strwidth'</span><span class="sy0">,</span><span class="st_h">'mb_substitute_character'</span><span class="sy0">,</span><span class="st_h">'mb_substr'</span><span class="sy0">,</span></span></span> <span class="st_h">'mb_substr_count'</span><span class="sy0">,</span><span class="st_h">'mcrypt_cbc'</span><span class="sy0">,</span><span class="st_h">'mcrypt_cfb'</span><span class="sy0">,</span><span class="st_h">'mcrypt_create_iv'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_decrypt'</span><span class="sy0">,</span><span class="st_h">'mcrypt_ecb'</span><span class="sy0">,</span><span class="st_h">'mcrypt_enc_get_algorithms_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_enc_get_block_size'</span><span class="sy0">,</span><span class="st_h">'mcrypt_enc_get_iv_size'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_enc_get_key_size'</span><span class="sy0">,</span><span class="st_h">'mcrypt_enc_get_modes_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_enc_get_supported_key_sizes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_enc_is_block_algorithm'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_enc_is_block_algorithm_mode'</span><span class="sy0">,</span><span class="st_h">'mcrypt_enc_is_block_mode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_enc_self_test'</span><span class="sy0">,</span><span class="st_h">'mcrypt_encrypt'</span><span class="sy0">,</span><span class="st_h">'mcrypt_generic'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_generic_deinit'</span><span class="sy0">,</span><span class="st_h">'mcrypt_generic_end'</span><span class="sy0">,</span><span class="st_h">'mcrypt_generic_init'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_get_block_size'</span><span class="sy0">,</span><span class="st_h">'mcrypt_get_cipher_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_get_iv_size'</span><span class="sy0">,</span><span class="st_h">'mcrypt_get_key_size'</span><span class="sy0">,</span><span class="st_h">'mcrypt_list_algorithms'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_list_modes'</span><span class="sy0">,</span><span class="st_h">'mcrypt_module_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_module_get_algo_block_size'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_module_get_algo_key_size'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_module_get_supported_key_sizes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_module_is_block_algorithm'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_module_is_block_algorithm_mode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mcrypt_module_is_block_mode'</span><span class="sy0">,</span><span class="st_h">'mcrypt_module_open'</span><span class="sy0">,</span></span></span> <span class="st_h">'mcrypt_module_self_test'</span><span class="sy0">,</span><span class="st_h">'mcrypt_ofb'</span><span class="sy0">,</span><span class="st_h">'md5'</span><span class="sy0">,</span><span class="st_h">'md5_file'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mdecrypt_generic'</span><span class="sy0">,</span><span class="st_h">'memcache_add'</span><span class="sy0">,</span><span class="st_h">'memcache_add_server'</span><span class="sy0">,</span></span></span> <span class="st_h">'memcache_close'</span><span class="sy0">,</span><span class="st_h">'memcache_connect'</span><span class="sy0">,</span><span class="st_h">'memcache_debug'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'memcache_decrement'</span><span class="sy0">,</span><span class="st_h">'memcache_delete'</span><span class="sy0">,</span><span class="st_h">'memcache_flush'</span><span class="sy0">,</span></span></span> <span class="st_h">'memcache_get'</span><span class="sy0">,</span><span class="st_h">'memcache_get_extended_stats'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'memcache_get_server_status'</span><span class="sy0">,</span><span class="st_h">'memcache_get_stats'</span><span class="sy0">,</span></span></span> <span class="st_h">'memcache_get_version'</span><span class="sy0">,</span><span class="st_h">'memcache_increment'</span><span class="sy0">,</span><span class="st_h">'memcache_pconnect'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'memcache_replace'</span><span class="sy0">,</span><span class="st_h">'memcache_set'</span><span class="sy0">,</span><span class="st_h">'memcache_set_compress_threshold'</span><span class="sy0">,</span></span></span> <span class="st_h">'memcache_set_server_params'</span><span class="sy0">,</span><span class="st_h">'memory_get_peak_usage'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'memory_get_usage'</span><span class="sy0">,</span><span class="st_h">'metaphone'</span><span class="sy0">,</span><span class="st_h">'mhash'</span><span class="sy0">,</span><span class="st_h">'mhash_count'</span><span class="sy0">,</span></span></span> <span class="st_h">'mhash_get_block_size'</span><span class="sy0">,</span><span class="st_h">'mhash_get_hash_name'</span><span class="sy0">,</span><span class="st_h">'mhash_keygen_s2k'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'method_exists'</span><span class="sy0">,</span><span class="st_h">'microtime'</span><span class="sy0">,</span><span class="st_h">'mime_content_type'</span><span class="sy0">,</span><span class="st_h">'min'</span><span class="sy0">,</span></span></span> <span class="st_h">'ming_keypress'</span><span class="sy0">,</span><span class="st_h">'ming_setcubicthreshold'</span><span class="sy0">,</span><span class="st_h">'ming_setscale'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ming_useconstants'</span><span class="sy0">,</span><span class="st_h">'ming_useswfversion'</span><span class="sy0">,</span><span class="st_h">'mkdir'</span><span class="sy0">,</span><span class="st_h">'mktime'</span><span class="sy0">,</span></span></span> <span class="st_h">'money_format'</span><span class="sy0">,</span><span class="st_h">'move_uploaded_file'</span><span class="sy0">,</span><span class="st_h">'msql'</span><span class="sy0">,</span><span class="st_h">'msql_affected_rows'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_close'</span><span class="sy0">,</span><span class="st_h">'msql_connect'</span><span class="sy0">,</span><span class="st_h">'msql_create_db'</span><span class="sy0">,</span><span class="st_h">'msql_createdb'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_data_seek'</span><span class="sy0">,</span><span class="st_h">'msql_db_query'</span><span class="sy0">,</span><span class="st_h">'msql_dbname'</span><span class="sy0">,</span><span class="st_h">'msql_drop_db'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_dropdb'</span><span class="sy0">,</span><span class="st_h">'msql_error'</span><span class="sy0">,</span><span class="st_h">'msql_fetch_array'</span><span class="sy0">,</span><span class="st_h">'msql_fetch_field'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_fetch_object'</span><span class="sy0">,</span><span class="st_h">'msql_fetch_row'</span><span class="sy0">,</span><span class="st_h">'msql_field_flags'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_field_len'</span><span class="sy0">,</span><span class="st_h">'msql_field_name'</span><span class="sy0">,</span><span class="st_h">'msql_field_seek'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_field_table'</span><span class="sy0">,</span><span class="st_h">'msql_field_type'</span><span class="sy0">,</span><span class="st_h">'msql_fieldflags'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_fieldlen'</span><span class="sy0">,</span><span class="st_h">'msql_fieldname'</span><span class="sy0">,</span><span class="st_h">'msql_fieldtable'</span><span class="sy0">,</span><span class="st_h">'msql_fieldtype'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_free_result'</span><span class="sy0">,</span><span class="st_h">'msql_freeresult'</span><span class="sy0">,</span><span class="st_h">'msql_list_dbs'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_list_fields'</span><span class="sy0">,</span><span class="st_h">'msql_list_tables'</span><span class="sy0">,</span><span class="st_h">'msql_listdbs'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_listfields'</span><span class="sy0">,</span><span class="st_h">'msql_listtables'</span><span class="sy0">,</span><span class="st_h">'msql_num_fields'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_num_rows'</span><span class="sy0">,</span><span class="st_h">'msql_numfields'</span><span class="sy0">,</span><span class="st_h">'msql_numrows'</span><span class="sy0">,</span><span class="st_h">'msql_pconnect'</span><span class="sy0">,</span></span></span> <span class="st_h">'msql_query'</span><span class="sy0">,</span><span class="st_h">'msql_regcase'</span><span class="sy0">,</span><span class="st_h">'msql_result'</span><span class="sy0">,</span><span class="st_h">'msql_select_db'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'msql_selectdb'</span><span class="sy0">,</span><span class="st_h">'msql_tablename'</span><span class="sy0">,</span><span class="st_h">'mssql_bind'</span><span class="sy0">,</span><span class="st_h">'mssql_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'mssql_connect'</span><span class="sy0">,</span><span class="st_h">'mssql_data_seek'</span><span class="sy0">,</span><span class="st_h">'mssql_execute'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mssql_fetch_array'</span><span class="sy0">,</span><span class="st_h">'mssql_fetch_assoc'</span><span class="sy0">,</span><span class="st_h">'mssql_fetch_batch'</span><span class="sy0">,</span></span></span> <span class="st_h">'mssql_fetch_field'</span><span class="sy0">,</span><span class="st_h">'mssql_fetch_object'</span><span class="sy0">,</span><span class="st_h">'mssql_fetch_row'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mssql_field_length'</span><span class="sy0">,</span><span class="st_h">'mssql_field_name'</span><span class="sy0">,</span><span class="st_h">'mssql_field_seek'</span><span class="sy0">,</span></span></span> <span class="st_h">'mssql_field_type'</span><span class="sy0">,</span><span class="st_h">'mssql_free_result'</span><span class="sy0">,</span><span class="st_h">'mssql_free_statement'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mssql_get_last_message'</span><span class="sy0">,</span><span class="st_h">'mssql_guid_string'</span><span class="sy0">,</span><span class="st_h">'mssql_init'</span><span class="sy0">,</span></span></span> <span class="st_h">'mssql_min_error_severity'</span><span class="sy0">,</span><span class="st_h">'mssql_min_message_severity'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mssql_next_result'</span><span class="sy0">,</span><span class="st_h">'mssql_num_fields'</span><span class="sy0">,</span><span class="st_h">'mssql_num_rows'</span><span class="sy0">,</span></span></span> <span class="st_h">'mssql_pconnect'</span><span class="sy0">,</span><span class="st_h">'mssql_query'</span><span class="sy0">,</span><span class="st_h">'mssql_result'</span><span class="sy0">,</span><span class="st_h">'mssql_rows_affected'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mssql_select_db'</span><span class="sy0">,</span><span class="st_h">'mt_getrandmax'</span><span class="sy0">,</span><span class="st_h">'mt_rand'</span><span class="sy0">,</span><span class="st_h">'mt_srand'</span><span class="sy0">,</span><span class="st_h">'mysql'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_affected_rows'</span><span class="sy0">,</span><span class="st_h">'mysql_client_encoding'</span><span class="sy0">,</span><span class="st_h">'mysql_close'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_connect'</span><span class="sy0">,</span><span class="st_h">'mysql_createdb'</span><span class="sy0">,</span><span class="st_h">'mysql_create_db'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_data_seek'</span><span class="sy0">,</span><span class="st_h">'mysql_dbname'</span><span class="sy0">,</span><span class="st_h">'mysql_db_name'</span><span class="sy0">,</span><span class="st_h">'mysql_db_query'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_dropdb'</span><span class="sy0">,</span><span class="st_h">'mysql_drop_db'</span><span class="sy0">,</span><span class="st_h">'mysql_errno'</span><span class="sy0">,</span><span class="st_h">'mysql_error'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_escape_string'</span><span class="sy0">,</span><span class="st_h">'mysql_fetch_array'</span><span class="sy0">,</span><span class="st_h">'mysql_fetch_assoc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_fetch_field'</span><span class="sy0">,</span><span class="st_h">'mysql_fetch_lengths'</span><span class="sy0">,</span><span class="st_h">'mysql_fetch_object'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_fetch_row'</span><span class="sy0">,</span><span class="st_h">'mysql_fieldflags'</span><span class="sy0">,</span><span class="st_h">'mysql_fieldlen'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_fieldname'</span><span class="sy0">,</span><span class="st_h">'mysql_fieldtable'</span><span class="sy0">,</span><span class="st_h">'mysql_fieldtype'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_field_flags'</span><span class="sy0">,</span><span class="st_h">'mysql_field_len'</span><span class="sy0">,</span><span class="st_h">'mysql_field_name'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_field_seek'</span><span class="sy0">,</span><span class="st_h">'mysql_field_table'</span><span class="sy0">,</span><span class="st_h">'mysql_field_type'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_freeresult'</span><span class="sy0">,</span><span class="st_h">'mysql_free_result'</span><span class="sy0">,</span><span class="st_h">'mysql_get_client_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_get_host_info'</span><span class="sy0">,</span><span class="st_h">'mysql_get_proto_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_get_server_info'</span><span class="sy0">,</span><span class="st_h">'mysql_info'</span><span class="sy0">,</span><span class="st_h">'mysql_insert_id'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_listdbs'</span><span class="sy0">,</span><span class="st_h">'mysql_listfields'</span><span class="sy0">,</span><span class="st_h">'mysql_listtables'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_list_dbs'</span><span class="sy0">,</span><span class="st_h">'mysql_list_fields'</span><span class="sy0">,</span><span class="st_h">'mysql_list_processes'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_list_tables'</span><span class="sy0">,</span><span class="st_h">'mysql_numfields'</span><span class="sy0">,</span><span class="st_h">'mysql_numrows'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_num_fields'</span><span class="sy0">,</span><span class="st_h">'mysql_num_rows'</span><span class="sy0">,</span><span class="st_h">'mysql_pconnect'</span><span class="sy0">,</span><span class="st_h">'mysql_ping'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_query'</span><span class="sy0">,</span><span class="st_h">'mysql_real_escape_string'</span><span class="sy0">,</span><span class="st_h">'mysql_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_selectdb'</span><span class="sy0">,</span><span class="st_h">'mysql_select_db'</span><span class="sy0">,</span><span class="st_h">'mysql_set_charset'</span><span class="sy0">,</span><span class="st_h">'mysql_stat'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysql_tablename'</span><span class="sy0">,</span><span class="st_h">'mysql_table_name'</span><span class="sy0">,</span><span class="st_h">'mysql_thread_id'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysql_unbuffered_query'</span><span class="sy0">,</span><span class="st_h">'mysqli_affected_rows'</span><span class="sy0">,</span><span class="st_h">'mysqli_autocommit'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_bind_param'</span><span class="sy0">,</span><span class="st_h">'mysqli_bind_result'</span><span class="sy0">,</span><span class="st_h">'mysqli_change_user'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_character_set_name'</span><span class="sy0">,</span><span class="st_h">'mysqli_client_encoding'</span><span class="sy0">,</span><span class="st_h">'mysqli_close'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_commit'</span><span class="sy0">,</span><span class="st_h">'mysqli_connect'</span><span class="sy0">,</span><span class="st_h">'mysqli_connect_errno'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_connect_error'</span><span class="sy0">,</span><span class="st_h">'mysqli_data_seek'</span><span class="sy0">,</span><span class="st_h">'mysqli_debug'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_disable_reads_from_master'</span><span class="sy0">,</span><span class="st_h">'mysqli_disable_rpl_parse'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_dump_debug_info'</span><span class="sy0">,</span><span class="st_h">'mysqli_embedded_server_end'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_embedded_server_start'</span><span class="sy0">,</span><span class="st_h">'mysqli_enable_reads_from_master'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_enable_rpl_parse'</span><span class="sy0">,</span><span class="st_h">'mysqli_errno'</span><span class="sy0">,</span><span class="st_h">'mysqli_error'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_escape_string'</span><span class="sy0">,</span><span class="st_h">'mysqli_execute'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_fetch_array'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch_assoc'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch_field'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_fetch_field_direct'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch_fields'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_fetch_lengths'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch_object'</span><span class="sy0">,</span><span class="st_h">'mysqli_fetch_row'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_field_count'</span><span class="sy0">,</span><span class="st_h">'mysqli_field_seek'</span><span class="sy0">,</span><span class="st_h">'mysqli_field_tell'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_free_result'</span><span class="sy0">,</span><span class="st_h">'mysqli_get_charset'</span><span class="sy0">,</span><span class="st_h">'mysqli_get_client_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_get_client_version'</span><span class="sy0">,</span><span class="st_h">'mysqli_get_host_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_get_metadata'</span><span class="sy0">,</span><span class="st_h">'mysqli_get_proto_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_get_server_info'</span><span class="sy0">,</span><span class="st_h">'mysqli_get_server_version'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_get_warnings'</span><span class="sy0">,</span><span class="st_h">'mysqli_info'</span><span class="sy0">,</span><span class="st_h">'mysqli_init'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_insert_id'</span><span class="sy0">,</span><span class="st_h">'mysqli_kill'</span><span class="sy0">,</span><span class="st_h">'mysqli_master_query'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_more_results'</span><span class="sy0">,</span><span class="st_h">'mysqli_multi_query'</span><span class="sy0">,</span><span class="st_h">'mysqli_next_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_num_fields'</span><span class="sy0">,</span><span class="st_h">'mysqli_num_rows'</span><span class="sy0">,</span><span class="st_h">'mysqli_options'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_param_count'</span><span class="sy0">,</span><span class="st_h">'mysqli_ping'</span><span class="sy0">,</span><span class="st_h">'mysqli_prepare'</span><span class="sy0">,</span><span class="st_h">'mysqli_query'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_real_connect'</span><span class="sy0">,</span><span class="st_h">'mysqli_real_escape_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_real_query'</span><span class="sy0">,</span><span class="st_h">'mysqli_report'</span><span class="sy0">,</span><span class="st_h">'mysqli_rollback'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_rpl_parse_enabled'</span><span class="sy0">,</span><span class="st_h">'mysqli_rpl_probe'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_rpl_query_type'</span><span class="sy0">,</span><span class="st_h">'mysqli_select_db'</span><span class="sy0">,</span><span class="st_h">'mysqli_send_long_data'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_send_query'</span><span class="sy0">,</span><span class="st_h">'mysqli_set_charset'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_set_local_infile_default'</span><span class="sy0">,</span><span class="st_h">'mysqli_set_local_infile_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_set_opt'</span><span class="sy0">,</span><span class="st_h">'mysqli_slave_query'</span><span class="sy0">,</span><span class="st_h">'mysqli_sqlstate'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_ssl_set'</span><span class="sy0">,</span><span class="st_h">'mysqli_stat'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_affected_rows'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_stmt_attr_get'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_attr_set'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_stmt_bind_param'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_bind_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_stmt_close'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_data_seek'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_errno'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_stmt_error'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_execute'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_fetch'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_stmt_field_count'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_free_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_stmt_get_warnings'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_init'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_stmt_insert_id'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_num_rows'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_stmt_param_count'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_prepare'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_reset'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_stmt_result_metadata'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_send_long_data'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_stmt_sqlstate'</span><span class="sy0">,</span><span class="st_h">'mysqli_stmt_store_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'mysqli_store_result'</span><span class="sy0">,</span><span class="st_h">'mysqli_thread_id'</span><span class="sy0">,</span><span class="st_h">'mysqli_thread_safe'</span><span class="sy0">,</span></span></span> <span class="st_h">'mysqli_use_result'</span><span class="sy0">,</span><span class="st_h">'mysqli_warning_count'</span><span class="sy0">,</span><span class="st_h">'natcasesort'</span><span class="sy0">,</span><span class="st_h">'natsort'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'new_xmldoc'</span><span class="sy0">,</span><span class="st_h">'next'</span><span class="sy0">,</span><span class="st_h">'ngettext'</span><span class="sy0">,</span><span class="st_h">'nl2br'</span><span class="sy0">,</span><span class="st_h">'nl_langinfo'</span><span class="sy0">,</span></span></span> <span class="st_h">'ntuser_getdomaincontroller'</span><span class="sy0">,</span><span class="st_h">'ntuser_getusergroups'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ntuser_getuserinfo'</span><span class="sy0">,</span><span class="st_h">'ntuser_getuserlist'</span><span class="sy0">,</span><span class="st_h">'number_format'</span><span class="sy0">,</span></span></span> <span class="st_h">'ob_clean'</span><span class="sy0">,</span><span class="st_h">'ob_deflatehandler'</span><span class="sy0">,</span><span class="st_h">'ob_end_clean'</span><span class="sy0">,</span><span class="st_h">'ob_end_flush'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ob_etaghandler'</span><span class="sy0">,</span><span class="st_h">'ob_flush'</span><span class="sy0">,</span><span class="st_h">'ob_get_clean'</span><span class="sy0">,</span><span class="st_h">'ob_get_contents'</span><span class="sy0">,</span></span></span> <span class="st_h">'ob_get_flush'</span><span class="sy0">,</span><span class="st_h">'ob_get_length'</span><span class="sy0">,</span><span class="st_h">'ob_get_level'</span><span class="sy0">,</span><span class="st_h">'ob_get_status'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ob_gzhandler'</span><span class="sy0">,</span><span class="st_h">'ob_iconv_handler'</span><span class="sy0">,</span><span class="st_h">'ob_implicit_flush'</span><span class="sy0">,</span></span></span> <span class="st_h">'ob_inflatehandler'</span><span class="sy0">,</span><span class="st_h">'ob_list_handlers'</span><span class="sy0">,</span><span class="st_h">'ob_start'</span><span class="sy0">,</span><span class="st_h">'ob_tidyhandler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'octdec'</span><span class="sy0">,</span><span class="st_h">'odbc_autocommit'</span><span class="sy0">,</span><span class="st_h">'odbc_binmode'</span><span class="sy0">,</span><span class="st_h">'odbc_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_close_all'</span><span class="sy0">,</span><span class="st_h">'odbc_columnprivileges'</span><span class="sy0">,</span><span class="st_h">'odbc_columns'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_commit'</span><span class="sy0">,</span><span class="st_h">'odbc_connect'</span><span class="sy0">,</span><span class="st_h">'odbc_cursor'</span><span class="sy0">,</span><span class="st_h">'odbc_data_source'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_do'</span><span class="sy0">,</span><span class="st_h">'odbc_error'</span><span class="sy0">,</span><span class="st_h">'odbc_errormsg'</span><span class="sy0">,</span><span class="st_h">'odbc_exec'</span><span class="sy0">,</span><span class="st_h">'odbc_execute'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_fetch_array'</span><span class="sy0">,</span><span class="st_h">'odbc_fetch_into'</span><span class="sy0">,</span><span class="st_h">'odbc_fetch_object'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_fetch_row'</span><span class="sy0">,</span><span class="st_h">'odbc_field_len'</span><span class="sy0">,</span><span class="st_h">'odbc_field_name'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_field_num'</span><span class="sy0">,</span><span class="st_h">'odbc_field_precision'</span><span class="sy0">,</span><span class="st_h">'odbc_field_scale'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_field_type'</span><span class="sy0">,</span><span class="st_h">'odbc_foreignkeys'</span><span class="sy0">,</span><span class="st_h">'odbc_free_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_gettypeinfo'</span><span class="sy0">,</span><span class="st_h">'odbc_longreadlen'</span><span class="sy0">,</span><span class="st_h">'odbc_next_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_num_fields'</span><span class="sy0">,</span><span class="st_h">'odbc_num_rows'</span><span class="sy0">,</span><span class="st_h">'odbc_pconnect'</span><span class="sy0">,</span><span class="st_h">'odbc_prepare'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_primarykeys'</span><span class="sy0">,</span><span class="st_h">'odbc_procedurecolumns'</span><span class="sy0">,</span><span class="st_h">'odbc_procedures'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_result'</span><span class="sy0">,</span><span class="st_h">'odbc_result_all'</span><span class="sy0">,</span><span class="st_h">'odbc_rollback'</span><span class="sy0">,</span><span class="st_h">'odbc_setoption'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'odbc_specialcolumns'</span><span class="sy0">,</span><span class="st_h">'odbc_statistics'</span><span class="sy0">,</span><span class="st_h">'odbc_tableprivileges'</span><span class="sy0">,</span></span></span> <span class="st_h">'odbc_tables'</span><span class="sy0">,</span><span class="st_h">'opendir'</span><span class="sy0">,</span><span class="st_h">'openlog'</span><span class="sy0">,</span><span class="st_h">'openssl_csr_export'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_csr_export_to_file'</span><span class="sy0">,</span><span class="st_h">'openssl_csr_get_public_key'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_csr_get_subject'</span><span class="sy0">,</span><span class="st_h">'openssl_csr_new'</span><span class="sy0">,</span><span class="st_h">'openssl_csr_sign'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_error_string'</span><span class="sy0">,</span><span class="st_h">'openssl_free_key'</span><span class="sy0">,</span><span class="st_h">'openssl_get_privatekey'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_get_publickey'</span><span class="sy0">,</span><span class="st_h">'openssl_open'</span><span class="sy0">,</span><span class="st_h">'openssl_pkcs12_export'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_pkcs12_export_to_file'</span><span class="sy0">,</span><span class="st_h">'openssl_pkcs12_read'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_pkcs7_decrypt'</span><span class="sy0">,</span><span class="st_h">'openssl_pkcs7_encrypt'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_pkcs7_sign'</span><span class="sy0">,</span><span class="st_h">'openssl_pkcs7_verify'</span><span class="sy0">,</span><span class="st_h">'openssl_pkey_export'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_pkey_export_to_file'</span><span class="sy0">,</span><span class="st_h">'openssl_pkey_free'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_pkey_get_details'</span><span class="sy0">,</span><span class="st_h">'openssl_pkey_get_private'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_pkey_get_public'</span><span class="sy0">,</span><span class="st_h">'openssl_pkey_new'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_private_decrypt'</span><span class="sy0">,</span><span class="st_h">'openssl_private_encrypt'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_public_decrypt'</span><span class="sy0">,</span><span class="st_h">'openssl_public_encrypt'</span><span class="sy0">,</span><span class="st_h">'openssl_seal'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_sign'</span><span class="sy0">,</span><span class="st_h">'openssl_verify'</span><span class="sy0">,</span><span class="st_h">'openssl_x509_checkpurpose'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_x509_check_private_key'</span><span class="sy0">,</span><span class="st_h">'openssl_x509_export'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'openssl_x509_export_to_file'</span><span class="sy0">,</span><span class="st_h">'openssl_x509_free'</span><span class="sy0">,</span></span></span> <span class="st_h">'openssl_x509_parse'</span><span class="sy0">,</span><span class="st_h">'openssl_x509_read'</span><span class="sy0">,</span><span class="st_h">'ord'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'output_add_rewrite_var'</span><span class="sy0">,</span><span class="st_h">'output_reset_rewrite_vars'</span><span class="sy0">,</span><span class="st_h">'overload'</span><span class="sy0">,</span></span></span> <span class="st_h">'outputdebugstring'</span><span class="sy0">,</span><span class="st_h">'pack'</span><span class="sy0">,</span><span class="st_h">'parse_ini_file'</span><span class="sy0">,</span><span class="st_h">'parse_str'</span><span class="sy0">,</span><span class="st_h">'parse_url'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'parsekit_compile_file'</span><span class="sy0">,</span><span class="st_h">'parsekit_compile_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'parsekit_func_arginfo'</span><span class="sy0">,</span><span class="st_h">'parsekit_opcode_flags'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'parsekit_opcode_name'</span><span class="sy0">,</span><span class="st_h">'passthru'</span><span class="sy0">,</span><span class="st_h">'pathinfo'</span><span class="sy0">,</span><span class="st_h">'pclose'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_add_bookmark'</span><span class="sy0">,</span><span class="st_h">'pdf_add_launchlink'</span><span class="sy0">,</span><span class="st_h">'pdf_add_locallink'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_add_nameddest'</span><span class="sy0">,</span><span class="st_h">'pdf_add_note'</span><span class="sy0">,</span><span class="st_h">'pdf_add_pdflink'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_add_thumbnail'</span><span class="sy0">,</span><span class="st_h">'pdf_add_weblink'</span><span class="sy0">,</span><span class="st_h">'pdf_arc'</span><span class="sy0">,</span><span class="st_h">'pdf_arcn'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_attach_file'</span><span class="sy0">,</span><span class="st_h">'pdf_begin_font'</span><span class="sy0">,</span><span class="st_h">'pdf_begin_glyph'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_begin_page'</span><span class="sy0">,</span><span class="st_h">'pdf_begin_pattern'</span><span class="sy0">,</span><span class="st_h">'pdf_begin_template'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_circle'</span><span class="sy0">,</span><span class="st_h">'pdf_clip'</span><span class="sy0">,</span><span class="st_h">'pdf_close'</span><span class="sy0">,</span><span class="st_h">'pdf_close_image'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_close_pdi'</span><span class="sy0">,</span><span class="st_h">'pdf_close_pdi_page'</span><span class="sy0">,</span><span class="st_h">'pdf_closepath'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_closepath_fill_stroke'</span><span class="sy0">,</span><span class="st_h">'pdf_closepath_stroke'</span><span class="sy0">,</span><span class="st_h">'pdf_concat'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_continue_text'</span><span class="sy0">,</span><span class="st_h">'pdf_create_gstate'</span><span class="sy0">,</span><span class="st_h">'pdf_create_pvf'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_curveto'</span><span class="sy0">,</span><span class="st_h">'pdf_delete'</span><span class="sy0">,</span><span class="st_h">'pdf_delete_pvf'</span><span class="sy0">,</span><span class="st_h">'pdf_encoding_set_char'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_end_font'</span><span class="sy0">,</span><span class="st_h">'pdf_end_glyph'</span><span class="sy0">,</span><span class="st_h">'pdf_end_page'</span><span class="sy0">,</span><span class="st_h">'pdf_end_pattern'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_end_template'</span><span class="sy0">,</span><span class="st_h">'pdf_endpath'</span><span class="sy0">,</span><span class="st_h">'pdf_fill'</span><span class="sy0">,</span><span class="st_h">'pdf_fill_imageblock'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_fill_pdfblock'</span><span class="sy0">,</span><span class="st_h">'pdf_fill_stroke'</span><span class="sy0">,</span><span class="st_h">'pdf_fill_textblock'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_findfont'</span><span class="sy0">,</span><span class="st_h">'pdf_fit_image'</span><span class="sy0">,</span><span class="st_h">'pdf_fit_pdi_page'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_fit_textline'</span><span class="sy0">,</span><span class="st_h">'pdf_get_apiname'</span><span class="sy0">,</span><span class="st_h">'pdf_get_buffer'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_get_errmsg'</span><span class="sy0">,</span><span class="st_h">'pdf_get_errnum'</span><span class="sy0">,</span><span class="st_h">'pdf_get_parameter'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_get_pdi_parameter'</span><span class="sy0">,</span><span class="st_h">'pdf_get_pdi_value'</span><span class="sy0">,</span><span class="st_h">'pdf_get_value'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_initgraphics'</span><span class="sy0">,</span><span class="st_h">'pdf_lineto'</span><span class="sy0">,</span><span class="st_h">'pdf_load_font'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_load_iccprofile'</span><span class="sy0">,</span><span class="st_h">'pdf_load_image'</span><span class="sy0">,</span><span class="st_h">'pdf_makespotcolor'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_moveto'</span><span class="sy0">,</span><span class="st_h">'pdf_new'</span><span class="sy0">,</span><span class="st_h">'pdf_open_ccitt'</span><span class="sy0">,</span><span class="st_h">'pdf_open_file'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_open_image'</span><span class="sy0">,</span><span class="st_h">'pdf_open_image_file'</span><span class="sy0">,</span><span class="st_h">'pdf_open_pdi'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_open_pdi_page'</span><span class="sy0">,</span><span class="st_h">'pdf_place_image'</span><span class="sy0">,</span><span class="st_h">'pdf_place_pdi_page'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_process_pdi'</span><span class="sy0">,</span><span class="st_h">'pdf_rect'</span><span class="sy0">,</span><span class="st_h">'pdf_restore'</span><span class="sy0">,</span><span class="st_h">'pdf_rotate'</span><span class="sy0">,</span><span class="st_h">'pdf_save'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_scale'</span><span class="sy0">,</span><span class="st_h">'pdf_set_border_color'</span><span class="sy0">,</span><span class="st_h">'pdf_set_border_dash'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_set_border_style'</span><span class="sy0">,</span><span class="st_h">'pdf_set_gstate'</span><span class="sy0">,</span><span class="st_h">'pdf_set_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_set_parameter'</span><span class="sy0">,</span><span class="st_h">'pdf_set_text_pos'</span><span class="sy0">,</span><span class="st_h">'pdf_set_value'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_setcolor'</span><span class="sy0">,</span><span class="st_h">'pdf_setdash'</span><span class="sy0">,</span><span class="st_h">'pdf_setdashpattern'</span><span class="sy0">,</span><span class="st_h">'pdf_setflat'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_setfont'</span><span class="sy0">,</span><span class="st_h">'pdf_setlinecap'</span><span class="sy0">,</span><span class="st_h">'pdf_setlinejoin'</span><span class="sy0">,</span><span class="st_h">'pdf_setlinewidth'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_setmatrix'</span><span class="sy0">,</span><span class="st_h">'pdf_setmiterlimit'</span><span class="sy0">,</span><span class="st_h">'pdf_setpolydash'</span><span class="sy0">,</span><span class="st_h">'pdf_shading'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_shading_pattern'</span><span class="sy0">,</span><span class="st_h">'pdf_shfill'</span><span class="sy0">,</span><span class="st_h">'pdf_show'</span><span class="sy0">,</span><span class="st_h">'pdf_show_boxed'</span><span class="sy0">,</span></span></span> <span class="st_h">'pdf_show_xy'</span><span class="sy0">,</span><span class="st_h">'pdf_skew'</span><span class="sy0">,</span><span class="st_h">'pdf_stringwidth'</span><span class="sy0">,</span><span class="st_h">'pdf_stroke'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pdf_translate'</span><span class="sy0">,</span><span class="st_h">'pdo_drivers'</span><span class="sy0">,</span><span class="st_h">'pfsockopen'</span><span class="sy0">,</span><span class="st_h">'pg_affected_rows'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_cancel_query'</span><span class="sy0">,</span><span class="st_h">'pg_clientencoding'</span><span class="sy0">,</span><span class="st_h">'pg_client_encoding'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_close'</span><span class="sy0">,</span><span class="st_h">'pg_cmdtuples'</span><span class="sy0">,</span><span class="st_h">'pg_connect'</span><span class="sy0">,</span><span class="st_h">'pg_connection_busy'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_connection_reset'</span><span class="sy0">,</span><span class="st_h">'pg_connection_status'</span><span class="sy0">,</span><span class="st_h">'pg_convert'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_copy_from'</span><span class="sy0">,</span><span class="st_h">'pg_copy_to'</span><span class="sy0">,</span><span class="st_h">'pg_dbname'</span><span class="sy0">,</span><span class="st_h">'pg_delete'</span><span class="sy0">,</span><span class="st_h">'pg_end_copy'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_errormessage'</span><span class="sy0">,</span><span class="st_h">'pg_escape_bytea'</span><span class="sy0">,</span><span class="st_h">'pg_escape_string'</span><span class="sy0">,</span><span class="st_h">'pg_exec'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_execute'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_all'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_all_columns'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_array'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_fetch_assoc'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_object'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_result'</span><span class="sy0">,</span><span class="st_h">'pg_fetch_row'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_fieldisnull'</span><span class="sy0">,</span><span class="st_h">'pg_fieldname'</span><span class="sy0">,</span><span class="st_h">'pg_fieldnum'</span><span class="sy0">,</span><span class="st_h">'pg_fieldprtlen'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_fieldsize'</span><span class="sy0">,</span><span class="st_h">'pg_fieldtype'</span><span class="sy0">,</span><span class="st_h">'pg_field_is_null'</span><span class="sy0">,</span><span class="st_h">'pg_field_name'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_field_num'</span><span class="sy0">,</span><span class="st_h">'pg_field_prtlen'</span><span class="sy0">,</span><span class="st_h">'pg_field_size'</span><span class="sy0">,</span><span class="st_h">'pg_field_table'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_field_type'</span><span class="sy0">,</span><span class="st_h">'pg_field_type_oid'</span><span class="sy0">,</span><span class="st_h">'pg_free_result'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_freeresult'</span><span class="sy0">,</span><span class="st_h">'pg_get_notify'</span><span class="sy0">,</span><span class="st_h">'pg_get_pid'</span><span class="sy0">,</span><span class="st_h">'pg_get_result'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_getlastoid'</span><span class="sy0">,</span><span class="st_h">'pg_host'</span><span class="sy0">,</span><span class="st_h">'pg_insert'</span><span class="sy0">,</span><span class="st_h">'pg_last_error'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_last_notice'</span><span class="sy0">,</span><span class="st_h">'pg_last_oid'</span><span class="sy0">,</span><span class="st_h">'pg_loclose'</span><span class="sy0">,</span><span class="st_h">'pg_locreate'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_loexport'</span><span class="sy0">,</span><span class="st_h">'pg_loimport'</span><span class="sy0">,</span><span class="st_h">'pg_loopen'</span><span class="sy0">,</span><span class="st_h">'pg_loread'</span><span class="sy0">,</span><span class="st_h">'pg_loreadall'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_lounlink'</span><span class="sy0">,</span><span class="st_h">'pg_lowrite'</span><span class="sy0">,</span><span class="st_h">'pg_lo_close'</span><span class="sy0">,</span><span class="st_h">'pg_lo_create'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_lo_export'</span><span class="sy0">,</span><span class="st_h">'pg_lo_import'</span><span class="sy0">,</span><span class="st_h">'pg_lo_open'</span><span class="sy0">,</span><span class="st_h">'pg_lo_read'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_lo_read_all'</span><span class="sy0">,</span><span class="st_h">'pg_lo_seek'</span><span class="sy0">,</span><span class="st_h">'pg_lo_tell'</span><span class="sy0">,</span><span class="st_h">'pg_lo_unlink'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_lo_write'</span><span class="sy0">,</span><span class="st_h">'pg_meta_data'</span><span class="sy0">,</span><span class="st_h">'pg_numfields'</span><span class="sy0">,</span><span class="st_h">'pg_numrows'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_num_fields'</span><span class="sy0">,</span><span class="st_h">'pg_num_rows'</span><span class="sy0">,</span><span class="st_h">'pg_options'</span><span class="sy0">,</span><span class="st_h">'pg_parameter_status'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_pconnect'</span><span class="sy0">,</span><span class="st_h">'pg_ping'</span><span class="sy0">,</span><span class="st_h">'pg_port'</span><span class="sy0">,</span><span class="st_h">'pg_prepare'</span><span class="sy0">,</span><span class="st_h">'pg_put_line'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_query'</span><span class="sy0">,</span><span class="st_h">'pg_query_params'</span><span class="sy0">,</span><span class="st_h">'pg_result'</span><span class="sy0">,</span><span class="st_h">'pg_result_error'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_result_error_field'</span><span class="sy0">,</span><span class="st_h">'pg_result_seek'</span><span class="sy0">,</span><span class="st_h">'pg_result_status'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_select'</span><span class="sy0">,</span><span class="st_h">'pg_send_execute'</span><span class="sy0">,</span><span class="st_h">'pg_send_prepare'</span><span class="sy0">,</span><span class="st_h">'pg_send_query'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_send_query_params'</span><span class="sy0">,</span><span class="st_h">'pg_set_client_encoding'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_set_error_verbosity'</span><span class="sy0">,</span><span class="st_h">'pg_setclientencoding'</span><span class="sy0">,</span><span class="st_h">'pg_trace'</span><span class="sy0">,</span></span></span> <span class="st_h">'pg_transaction_status'</span><span class="sy0">,</span><span class="st_h">'pg_tty'</span><span class="sy0">,</span><span class="st_h">'pg_unescape_bytea'</span><span class="sy0">,</span><span class="st_h">'pg_untrace'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pg_update'</span><span class="sy0">,</span><span class="st_h">'pg_version'</span><span class="sy0">,</span><span class="st_h">'php_egg_logo_guid'</span><span class="sy0">,</span><span class="st_h">'php_ini_loaded_file'</span><span class="sy0">,</span></span></span> <span class="st_h">'php_ini_scanned_files'</span><span class="sy0">,</span><span class="st_h">'php_logo_guid'</span><span class="sy0">,</span><span class="st_h">'php_real_logo_guid'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'php_sapi_name'</span><span class="sy0">,</span><span class="st_h">'php_strip_whitespace'</span><span class="sy0">,</span><span class="st_h">'php_uname'</span><span class="sy0">,</span><span class="st_h">'phpcredits'</span><span class="sy0">,</span></span></span> <span class="st_h">'phpdoc_xml_from_string'</span><span class="sy0">,</span><span class="st_h">'phpinfo'</span><span class="sy0">,</span><span class="st_h">'phpversion'</span><span class="sy0">,</span><span class="st_h">'pi'</span><span class="sy0">,</span><span class="st_h">'png2wbmp'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pop3_close'</span><span class="sy0">,</span><span class="st_h">'pop3_delete_message'</span><span class="sy0">,</span><span class="st_h">'pop3_get_account_size'</span><span class="sy0">,</span></span></span> <span class="st_h">'pop3_get_message'</span><span class="sy0">,</span><span class="st_h">'pop3_get_message_count'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pop3_get_message_header'</span><span class="sy0">,</span><span class="st_h">'pop3_get_message_ids'</span><span class="sy0">,</span></span></span> <span class="st_h">'pop3_get_message_size'</span><span class="sy0">,</span><span class="st_h">'pop3_get_message_sizes'</span><span class="sy0">,</span><span class="st_h">'pop3_open'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'pop3_undelete'</span><span class="sy0">,</span><span class="st_h">'popen'</span><span class="sy0">,</span><span class="st_h">'pos'</span><span class="sy0">,</span><span class="st_h">'posix_ctermid'</span><span class="sy0">,</span><span class="st_h">'posix_errno'</span><span class="sy0">,</span></span></span> <span class="st_h">'posix_getcwd'</span><span class="sy0">,</span><span class="st_h">'posix_getegid'</span><span class="sy0">,</span><span class="st_h">'posix_geteuid'</span><span class="sy0">,</span><span class="st_h">'posix_getgid'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'posix_getgrgid'</span><span class="sy0">,</span><span class="st_h">'posix_getgrnam'</span><span class="sy0">,</span><span class="st_h">'posix_getgroups'</span><span class="sy0">,</span></span></span> <span class="st_h">'posix_getlogin'</span><span class="sy0">,</span><span class="st_h">'posix_getpgid'</span><span class="sy0">,</span><span class="st_h">'posix_getpgrp'</span><span class="sy0">,</span><span class="st_h">'posix_getpid'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'posix_getppid'</span><span class="sy0">,</span><span class="st_h">'posix_getpwnam'</span><span class="sy0">,</span><span class="st_h">'posix_getpwuid'</span><span class="sy0">,</span><span class="st_h">'posix_getrlimit'</span><span class="sy0">,</span></span></span> <span class="st_h">'posix_getsid'</span><span class="sy0">,</span><span class="st_h">'posix_getuid'</span><span class="sy0">,</span><span class="st_h">'posix_get_last_error'</span><span class="sy0">,</span><span class="st_h">'posix_isatty'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'posix_kill'</span><span class="sy0">,</span><span class="st_h">'posix_mkfifo'</span><span class="sy0">,</span><span class="st_h">'posix_setegid'</span><span class="sy0">,</span><span class="st_h">'posix_seteuid'</span><span class="sy0">,</span></span></span> <span class="st_h">'posix_setgid'</span><span class="sy0">,</span><span class="st_h">'posix_setpgid'</span><span class="sy0">,</span><span class="st_h">'posix_setsid'</span><span class="sy0">,</span><span class="st_h">'posix_setuid'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'posix_strerror'</span><span class="sy0">,</span><span class="st_h">'posix_times'</span><span class="sy0">,</span><span class="st_h">'posix_ttyname'</span><span class="sy0">,</span><span class="st_h">'posix_uname'</span><span class="sy0">,</span><span class="st_h">'pow'</span><span class="sy0">,</span></span></span> <span class="st_h">'preg_grep'</span><span class="sy0">,</span><span class="st_h">'preg_last_error'</span><span class="sy0">,</span><span class="st_h">'preg_match'</span><span class="sy0">,</span><span class="st_h">'preg_match_all'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'preg_quote'</span><span class="sy0">,</span><span class="st_h">'preg_replace'</span><span class="sy0">,</span><span class="st_h">'preg_replace_callback'</span><span class="sy0">,</span><span class="st_h">'preg_split'</span><span class="sy0">,</span></span></span> <span class="st_h">'prev'</span><span class="sy0">,</span><span class="st_h">'print_r'</span><span class="sy0">,</span><span class="st_h">'printf'</span><span class="sy0">,</span><span class="st_h">'proc_close'</span><span class="sy0">,</span><span class="st_h">'proc_get_status'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'proc_open'</span><span class="sy0">,</span><span class="st_h">'proc_terminate'</span><span class="sy0">,</span><span class="st_h">'putenv'</span><span class="sy0">,</span><span class="st_h">'quoted_printable_decode'</span><span class="sy0">,</span></span></span> <span class="st_h">'quotemeta'</span><span class="sy0">,</span><span class="st_h">'rad2deg'</span><span class="sy0">,</span><span class="st_h">'radius_acct_open'</span><span class="sy0">,</span><span class="st_h">'radius_add_server'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'radius_auth_open'</span><span class="sy0">,</span><span class="st_h">'radius_close'</span><span class="sy0">,</span><span class="st_h">'radius_config'</span><span class="sy0">,</span></span></span> <span class="st_h">'radius_create_request'</span><span class="sy0">,</span><span class="st_h">'radius_cvt_addr'</span><span class="sy0">,</span><span class="st_h">'radius_cvt_int'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'radius_cvt_string'</span><span class="sy0">,</span><span class="st_h">'radius_demangle'</span><span class="sy0">,</span><span class="st_h">'radius_demangle_mppe_key'</span><span class="sy0">,</span></span></span> <span class="st_h">'radius_get_attr'</span><span class="sy0">,</span><span class="st_h">'radius_get_vendor_attr'</span><span class="sy0">,</span><span class="st_h">'radius_put_addr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'radius_put_attr'</span><span class="sy0">,</span><span class="st_h">'radius_put_int'</span><span class="sy0">,</span><span class="st_h">'radius_put_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'radius_put_vendor_addr'</span><span class="sy0">,</span><span class="st_h">'radius_put_vendor_attr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'radius_put_vendor_int'</span><span class="sy0">,</span><span class="st_h">'radius_put_vendor_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'radius_request_authenticator'</span><span class="sy0">,</span><span class="st_h">'radius_send_request'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'radius_server_secret'</span><span class="sy0">,</span><span class="st_h">'radius_strerror'</span><span class="sy0">,</span><span class="st_h">'rand'</span><span class="sy0">,</span><span class="st_h">'range'</span><span class="sy0">,</span></span></span> <span class="st_h">'rawurldecode'</span><span class="sy0">,</span><span class="st_h">'rawurlencode'</span><span class="sy0">,</span><span class="st_h">'read_exif_data'</span><span class="sy0">,</span><span class="st_h">'readdir'</span><span class="sy0">,</span><span class="st_h">'readfile'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'readgzfile'</span><span class="sy0">,</span><span class="st_h">'readlink'</span><span class="sy0">,</span><span class="st_h">'realpath'</span><span class="sy0">,</span><span class="st_h">'reg_close_key'</span><span class="sy0">,</span><span class="st_h">'reg_create_key'</span><span class="sy0">,</span></span></span> <span class="st_h">'reg_enum_key'</span><span class="sy0">,</span><span class="st_h">'reg_enum_value'</span><span class="sy0">,</span><span class="st_h">'reg_get_value'</span><span class="sy0">,</span><span class="st_h">'reg_open_key'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'reg_set_value'</span><span class="sy0">,</span><span class="st_h">'register_shutdown_function'</span><span class="sy0">,</span></span></span> <span class="st_h">'register_tick_function'</span><span class="sy0">,</span><span class="st_h">'rename'</span><span class="sy0">,</span><span class="st_h">'res_close'</span><span class="sy0">,</span><span class="st_h">'res_get'</span><span class="sy0">,</span><span class="st_h">'res_list'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'res_list_type'</span><span class="sy0">,</span><span class="st_h">'res_open'</span><span class="sy0">,</span><span class="st_h">'res_set'</span><span class="sy0">,</span><span class="st_h">'reset'</span><span class="sy0">,</span></span></span> <span class="st_h">'restore_error_handler'</span><span class="sy0">,</span><span class="st_h">'restore_include_path'</span><span class="sy0">,</span><span class="st_h">'rewind'</span><span class="sy0">,</span><span class="st_h">'rewinddir'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'rmdir'</span><span class="sy0">,</span><span class="st_h">'round'</span><span class="sy0">,</span><span class="st_h">'rsort'</span><span class="sy0">,</span><span class="st_h">'rtrim'</span><span class="sy0">,</span><span class="st_h">'runkit_class_adopt'</span><span class="sy0">,</span></span></span> <span class="st_h">'runkit_class_emancipate'</span><span class="sy0">,</span><span class="st_h">'runkit_constant_add'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'runkit_constant_redefine'</span><span class="sy0">,</span><span class="st_h">'runkit_constant_remove'</span><span class="sy0">,</span></span></span> <span class="st_h">'runkit_default_property_add'</span><span class="sy0">,</span><span class="st_h">'runkit_function_add'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'runkit_function_copy'</span><span class="sy0">,</span><span class="st_h">'runkit_function_redefine'</span><span class="sy0">,</span></span></span> <span class="st_h">'runkit_function_remove'</span><span class="sy0">,</span><span class="st_h">'runkit_function_rename'</span><span class="sy0">,</span><span class="st_h">'runkit_import'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'runkit_lint'</span><span class="sy0">,</span><span class="st_h">'runkit_lint_file'</span><span class="sy0">,</span><span class="st_h">'runkit_method_add'</span><span class="sy0">,</span></span></span> <span class="st_h">'runkit_method_copy'</span><span class="sy0">,</span><span class="st_h">'runkit_method_redefine'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'runkit_method_remove'</span><span class="sy0">,</span><span class="st_h">'runkit_method_rename'</span><span class="sy0">,</span><span class="st_h">'runkit_object_id'</span><span class="sy0">,</span></span></span> <span class="st_h">'runkit_return_value_used'</span><span class="sy0">,</span><span class="st_h">'runkit_sandbox_output_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'runkit_superglobals'</span><span class="sy0">,</span><span class="st_h">'runkit_zval_inspect'</span><span class="sy0">,</span><span class="st_h">'scandir'</span><span class="sy0">,</span><span class="st_h">'sem_acquire'</span><span class="sy0">,</span></span></span> <span class="st_h">'sem_get'</span><span class="sy0">,</span><span class="st_h">'sem_release'</span><span class="sy0">,</span><span class="st_h">'sem_remove'</span><span class="sy0">,</span><span class="st_h">'serialize'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'session_cache_expire'</span><span class="sy0">,</span><span class="st_h">'session_cache_limiter'</span><span class="sy0">,</span><span class="st_h">'session_commit'</span><span class="sy0">,</span></span></span> <span class="st_h">'session_decode'</span><span class="sy0">,</span><span class="st_h">'session_destroy'</span><span class="sy0">,</span><span class="st_h">'session_encode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'session_get_cookie_params'</span><span class="sy0">,</span><span class="st_h">'session_id'</span><span class="sy0">,</span><span class="st_h">'session_is_registered'</span><span class="sy0">,</span></span></span> <span class="st_h">'session_module_name'</span><span class="sy0">,</span><span class="st_h">'session_name'</span><span class="sy0">,</span><span class="st_h">'session_regenerate_id'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'session_register'</span><span class="sy0">,</span><span class="st_h">'session_save_path'</span><span class="sy0">,</span><span class="st_h">'session_set_cookie_params'</span><span class="sy0">,</span></span></span> <span class="st_h">'session_set_save_handler'</span><span class="sy0">,</span><span class="st_h">'session_start'</span><span class="sy0">,</span><span class="st_h">'session_unregister'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'session_unset'</span><span class="sy0">,</span><span class="st_h">'session_write_close'</span><span class="sy0">,</span><span class="st_h">'set_content'</span><span class="sy0">,</span></span></span> <span class="st_h">'set_error_handler'</span><span class="sy0">,</span><span class="st_h">'set_file_buffer'</span><span class="sy0">,</span><span class="st_h">'set_include_path'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'set_magic_quotes_runtime'</span><span class="sy0">,</span><span class="st_h">'set_socket_blocking'</span><span class="sy0">,</span><span class="st_h">'set_time_limit'</span><span class="sy0">,</span></span></span> <span class="st_h">'setcookie'</span><span class="sy0">,</span><span class="st_h">'setlocale'</span><span class="sy0">,</span><span class="st_h">'setrawcookie'</span><span class="sy0">,</span><span class="st_h">'settype'</span><span class="sy0">,</span><span class="st_h">'sha1'</span><span class="sy0">,</span><span class="st_h">'sha1_file'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'shell_exec'</span><span class="sy0">,</span><span class="st_h">'shmop_close'</span><span class="sy0">,</span><span class="st_h">'shmop_delete'</span><span class="sy0">,</span><span class="st_h">'shmop_open'</span><span class="sy0">,</span><span class="st_h">'shmop_read'</span><span class="sy0">,</span></span></span> <span class="st_h">'shmop_size'</span><span class="sy0">,</span><span class="st_h">'shmop_write'</span><span class="sy0">,</span><span class="st_h">'shm_attach'</span><span class="sy0">,</span><span class="st_h">'shm_detach'</span><span class="sy0">,</span><span class="st_h">'shm_get_var'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'shm_put_var'</span><span class="sy0">,</span><span class="st_h">'shm_remove'</span><span class="sy0">,</span><span class="st_h">'shm_remove_var'</span><span class="sy0">,</span><span class="st_h">'show_source'</span><span class="sy0">,</span><span class="st_h">'shuffle'</span><span class="sy0">,</span></span></span> <span class="st_h">'similar_text'</span><span class="sy0">,</span><span class="st_h">'simplexml_import_dom'</span><span class="sy0">,</span><span class="st_h">'simplexml_load_file'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'simplexml_load_string'</span><span class="sy0">,</span><span class="st_h">'sin'</span><span class="sy0">,</span><span class="st_h">'sinh'</span><span class="sy0">,</span><span class="st_h">'sizeof'</span><span class="sy0">,</span><span class="st_h">'sleep'</span><span class="sy0">,</span><span class="st_h">'smtp_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'smtp_cmd_data'</span><span class="sy0">,</span><span class="st_h">'smtp_cmd_mail'</span><span class="sy0">,</span><span class="st_h">'smtp_cmd_rcpt'</span><span class="sy0">,</span><span class="st_h">'smtp_connect'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'snmp_get_quick_print'</span><span class="sy0">,</span><span class="st_h">'snmp_get_valueretrieval'</span><span class="sy0">,</span><span class="st_h">'snmp_read_mib'</span><span class="sy0">,</span></span></span> <span class="st_h">'snmp_set_quick_print'</span><span class="sy0">,</span><span class="st_h">'snmp_set_valueretrieval'</span><span class="sy0">,</span><span class="st_h">'snmp2_get'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'snmp2_getnext'</span><span class="sy0">,</span><span class="st_h">'snmp2_real_walk'</span><span class="sy0">,</span><span class="st_h">'snmp2_set'</span><span class="sy0">,</span><span class="st_h">'snmp2_walk'</span><span class="sy0">,</span></span></span> <span class="st_h">'snmp3_get'</span><span class="sy0">,</span><span class="st_h">'snmp3_getnext'</span><span class="sy0">,</span><span class="st_h">'snmp3_real_walk'</span><span class="sy0">,</span><span class="st_h">'snmp3_set'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'snmp3_walk'</span><span class="sy0">,</span><span class="st_h">'snmpget'</span><span class="sy0">,</span><span class="st_h">'snmpgetnext'</span><span class="sy0">,</span><span class="st_h">'snmprealwalk'</span><span class="sy0">,</span><span class="st_h">'snmpset'</span><span class="sy0">,</span></span></span> <span class="st_h">'snmpwalk'</span><span class="sy0">,</span><span class="st_h">'snmpwalkoid'</span><span class="sy0">,</span><span class="st_h">'socket_accept'</span><span class="sy0">,</span><span class="st_h">'socket_bind'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_clear_error'</span><span class="sy0">,</span><span class="st_h">'socket_close'</span><span class="sy0">,</span><span class="st_h">'socket_connect'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_create'</span><span class="sy0">,</span><span class="st_h">'socket_create_listen'</span><span class="sy0">,</span><span class="st_h">'socket_create_pair'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_getopt'</span><span class="sy0">,</span><span class="st_h">'socket_getpeername'</span><span class="sy0">,</span><span class="st_h">'socket_getsockname'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_get_option'</span><span class="sy0">,</span><span class="st_h">'socket_get_status'</span><span class="sy0">,</span><span class="st_h">'socket_iovec_add'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_iovec_alloc'</span><span class="sy0">,</span><span class="st_h">'socket_iovec_delete'</span><span class="sy0">,</span><span class="st_h">'socket_iovec_fetch'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_iovec_free'</span><span class="sy0">,</span><span class="st_h">'socket_iovec_set'</span><span class="sy0">,</span><span class="st_h">'socket_last_error'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_listen'</span><span class="sy0">,</span><span class="st_h">'socket_read'</span><span class="sy0">,</span><span class="st_h">'socket_readv'</span><span class="sy0">,</span><span class="st_h">'socket_recv'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_recvfrom'</span><span class="sy0">,</span><span class="st_h">'socket_recvmsg'</span><span class="sy0">,</span><span class="st_h">'socket_select'</span><span class="sy0">,</span><span class="st_h">'socket_send'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_sendmsg'</span><span class="sy0">,</span><span class="st_h">'socket_sendto'</span><span class="sy0">,</span><span class="st_h">'socket_setopt'</span><span class="sy0">,</span><span class="st_h">'socket_set_block'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_set_blocking'</span><span class="sy0">,</span><span class="st_h">'socket_set_nonblock'</span><span class="sy0">,</span><span class="st_h">'socket_set_option'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'socket_set_timeout'</span><span class="sy0">,</span><span class="st_h">'socket_shutdown'</span><span class="sy0">,</span><span class="st_h">'socket_strerror'</span><span class="sy0">,</span></span></span> <span class="st_h">'socket_write'</span><span class="sy0">,</span><span class="st_h">'socket_writev'</span><span class="sy0">,</span><span class="st_h">'sort'</span><span class="sy0">,</span><span class="st_h">'soundex'</span><span class="sy0">,</span><span class="st_h">'spl_autoload'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'spl_autoload_call'</span><span class="sy0">,</span><span class="st_h">'spl_autoload_extensions'</span><span class="sy0">,</span></span></span> <span class="st_h">'spl_autoload_functions'</span><span class="sy0">,</span><span class="st_h">'spl_autoload_register'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'spl_autoload_unregister'</span><span class="sy0">,</span><span class="st_h">'spl_classes'</span><span class="sy0">,</span><span class="st_h">'spl_object_hash'</span><span class="sy0">,</span><span class="st_h">'split'</span><span class="sy0">,</span></span></span> <span class="st_h">'spliti'</span><span class="sy0">,</span><span class="st_h">'sprintf'</span><span class="sy0">,</span><span class="st_h">'sql_regcase'</span><span class="sy0">,</span><span class="st_h">'sqlite_array_query'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_busy_timeout'</span><span class="sy0">,</span><span class="st_h">'sqlite_changes'</span><span class="sy0">,</span><span class="st_h">'sqlite_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_column'</span><span class="sy0">,</span><span class="st_h">'sqlite_create_aggregate'</span><span class="sy0">,</span><span class="st_h">'sqlite_create_function'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_current'</span><span class="sy0">,</span><span class="st_h">'sqlite_error_string'</span><span class="sy0">,</span><span class="st_h">'sqlite_escape_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_exec'</span><span class="sy0">,</span><span class="st_h">'sqlite_factory'</span><span class="sy0">,</span><span class="st_h">'sqlite_fetch_all'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_fetch_array'</span><span class="sy0">,</span><span class="st_h">'sqlite_fetch_column_types'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_fetch_object'</span><span class="sy0">,</span><span class="st_h">'sqlite_fetch_single'</span><span class="sy0">,</span><span class="st_h">'sqlite_fetch_string'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_field_name'</span><span class="sy0">,</span><span class="st_h">'sqlite_has_more'</span><span class="sy0">,</span><span class="st_h">'sqlite_has_prev'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_last_error'</span><span class="sy0">,</span><span class="st_h">'sqlite_last_insert_rowid'</span><span class="sy0">,</span><span class="st_h">'sqlite_libencoding'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_libversion'</span><span class="sy0">,</span><span class="st_h">'sqlite_next'</span><span class="sy0">,</span><span class="st_h">'sqlite_num_fields'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_num_rows'</span><span class="sy0">,</span><span class="st_h">'sqlite_open'</span><span class="sy0">,</span><span class="st_h">'sqlite_popen'</span><span class="sy0">,</span><span class="st_h">'sqlite_prev'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_query'</span><span class="sy0">,</span><span class="st_h">'sqlite_rewind'</span><span class="sy0">,</span><span class="st_h">'sqlite_seek'</span><span class="sy0">,</span><span class="st_h">'sqlite_single_query'</span><span class="sy0">,</span></span></span> <span class="st_h">'sqlite_udf_decode_binary'</span><span class="sy0">,</span><span class="st_h">'sqlite_udf_encode_binary'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'sqlite_unbuffered_query'</span><span class="sy0">,</span><span class="st_h">'sqlite_valid'</span><span class="sy0">,</span><span class="st_h">'sqrt'</span><span class="sy0">,</span><span class="st_h">'srand'</span><span class="sy0">,</span><span class="st_h">'sscanf'</span><span class="sy0">,</span></span></span> <span class="st_h">'ssh2_auth_hostbased_file'</span><span class="sy0">,</span><span class="st_h">'ssh2_auth_none'</span><span class="sy0">,</span><span class="st_h">'ssh2_auth_password'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ssh2_auth_pubkey_file'</span><span class="sy0">,</span><span class="st_h">'ssh2_connect'</span><span class="sy0">,</span><span class="st_h">'ssh2_exec'</span><span class="sy0">,</span></span></span> <span class="st_h">'ssh2_fetch_stream'</span><span class="sy0">,</span><span class="st_h">'ssh2_fingerprint'</span><span class="sy0">,</span><span class="st_h">'ssh2_forward_accept'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ssh2_forward_listen'</span><span class="sy0">,</span><span class="st_h">'ssh2_methods_negotiated'</span><span class="sy0">,</span><span class="st_h">'ssh2_poll'</span><span class="sy0">,</span></span></span> <span class="st_h">'ssh2_publickey_add'</span><span class="sy0">,</span><span class="st_h">'ssh2_publickey_init'</span><span class="sy0">,</span><span class="st_h">'ssh2_publickey_list'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ssh2_publickey_remove'</span><span class="sy0">,</span><span class="st_h">'ssh2_scp_recv'</span><span class="sy0">,</span><span class="st_h">'ssh2_scp_send'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp'</span><span class="sy0">,</span></span></span> <span class="st_h">'ssh2_sftp_lstat'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_mkdir'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_readlink'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ssh2_sftp_realpath'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_rename'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_rmdir'</span><span class="sy0">,</span></span></span> <span class="st_h">'ssh2_sftp_stat'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_symlink'</span><span class="sy0">,</span><span class="st_h">'ssh2_sftp_unlink'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ssh2_shell'</span><span class="sy0">,</span><span class="st_h">'ssh2_tunnel'</span><span class="sy0">,</span><span class="st_h">'stat'</span><span class="sy0">,</span><span class="st_h">'stats_absolute_deviation'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_cdf_beta'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_binomial'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_cauchy'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_cdf_chisquare'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_exponential'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_f'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_cdf_gamma'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_laplace'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_logistic'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_cdf_negative_binomial'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_noncentral_chisquare'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_cdf_noncentral_f'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_noncentral_t'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_cdf_normal'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_poisson'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_t'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_cdf_uniform'</span><span class="sy0">,</span><span class="st_h">'stats_cdf_weibull'</span><span class="sy0">,</span><span class="st_h">'stats_covariance'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_dens_beta'</span><span class="sy0">,</span><span class="st_h">'stats_dens_cauchy'</span><span class="sy0">,</span><span class="st_h">'stats_dens_chisquare'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_dens_exponential'</span><span class="sy0">,</span><span class="st_h">'stats_dens_f'</span><span class="sy0">,</span><span class="st_h">'stats_dens_gamma'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_dens_laplace'</span><span class="sy0">,</span><span class="st_h">'stats_dens_logistic'</span><span class="sy0">,</span><span class="st_h">'stats_dens_normal'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_dens_pmf_binomial'</span><span class="sy0">,</span><span class="st_h">'stats_dens_pmf_hypergeometric'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_dens_pmf_negative_binomial'</span><span class="sy0">,</span><span class="st_h">'stats_dens_pmf_poisson'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_dens_t'</span><span class="sy0">,</span><span class="st_h">'stats_dens_uniform'</span><span class="sy0">,</span><span class="st_h">'stats_dens_weibull'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_harmonic_mean'</span><span class="sy0">,</span><span class="st_h">'stats_kurtosis'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_beta'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_rand_gen_chisquare'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_exponential'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_rand_gen_f'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_funiform'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_gamma'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_rand_gen_ipoisson'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_iuniform'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_rand_gen_noncenral_f'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_noncentral_chisquare'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_rand_gen_noncentral_t'</span><span class="sy0">,</span><span class="st_h">'stats_rand_gen_normal'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_rand_gen_t'</span><span class="sy0">,</span><span class="st_h">'stats_rand_getsd'</span><span class="sy0">,</span><span class="st_h">'stats_rand_ibinomial'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_rand_ibinomial_negative'</span><span class="sy0">,</span><span class="st_h">'stats_rand_ignlgi'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_rand_phrase_to_seeds'</span><span class="sy0">,</span><span class="st_h">'stats_rand_ranf'</span><span class="sy0">,</span><span class="st_h">'stats_rand_setall'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_skew'</span><span class="sy0">,</span><span class="st_h">'stats_standard_deviation'</span><span class="sy0">,</span><span class="st_h">'stats_stat_binomial_coef'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_stat_correlation'</span><span class="sy0">,</span><span class="st_h">'stats_stat_factorial'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_stat_independent_t'</span><span class="sy0">,</span><span class="st_h">'stats_stat_innerproduct'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stats_stat_paired_t'</span><span class="sy0">,</span><span class="st_h">'stats_stat_percentile'</span><span class="sy0">,</span><span class="st_h">'stats_stat_powersum'</span><span class="sy0">,</span></span></span> <span class="st_h">'stats_variance'</span><span class="sy0">,</span><span class="st_h">'strcasecmp'</span><span class="sy0">,</span><span class="st_h">'strchr'</span><span class="sy0">,</span><span class="st_h">'strcmp'</span><span class="sy0">,</span><span class="st_h">'strcoll'</span><span class="sy0">,</span><span class="st_h">'strcspn'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_bucket_append'</span><span class="sy0">,</span><span class="st_h">'stream_bucket_make_writeable'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_bucket_new'</span><span class="sy0">,</span><span class="st_h">'stream_bucket_prepend'</span><span class="sy0">,</span><span class="st_h">'stream_context_create'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_context_get_default'</span><span class="sy0">,</span><span class="st_h">'stream_context_get_options'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_context_set_default'</span><span class="sy0">,</span><span class="st_h">'stream_context_set_option'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_context_set_params'</span><span class="sy0">,</span><span class="st_h">'stream_copy_to_stream'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_encoding'</span><span class="sy0">,</span><span class="st_h">'stream_filter_append'</span><span class="sy0">,</span><span class="st_h">'stream_filter_prepend'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_filter_register'</span><span class="sy0">,</span><span class="st_h">'stream_filter_remove'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_get_contents'</span><span class="sy0">,</span><span class="st_h">'stream_get_filters'</span><span class="sy0">,</span><span class="st_h">'stream_get_line'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_get_meta_data'</span><span class="sy0">,</span><span class="st_h">'stream_get_transports'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_get_wrappers'</span><span class="sy0">,</span><span class="st_h">'stream_is_local'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_notification_callback'</span><span class="sy0">,</span><span class="st_h">'stream_register_wrapper'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_resolve_include_path'</span><span class="sy0">,</span><span class="st_h">'stream_select'</span><span class="sy0">,</span><span class="st_h">'stream_set_blocking'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_set_timeout'</span><span class="sy0">,</span><span class="st_h">'stream_set_write_buffer'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_socket_accept'</span><span class="sy0">,</span><span class="st_h">'stream_socket_client'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_socket_enable_crypto'</span><span class="sy0">,</span><span class="st_h">'stream_socket_get_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_socket_pair'</span><span class="sy0">,</span><span class="st_h">'stream_socket_recvfrom'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_socket_sendto'</span><span class="sy0">,</span><span class="st_h">'stream_socket_server'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_socket_shutdown'</span><span class="sy0">,</span><span class="st_h">'stream_supports_lock'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stream_wrapper_register'</span><span class="sy0">,</span><span class="st_h">'stream_wrapper_restore'</span><span class="sy0">,</span></span></span> <span class="st_h">'stream_wrapper_unregister'</span><span class="sy0">,</span><span class="st_h">'strftime'</span><span class="sy0">,</span><span class="st_h">'stripcslashes'</span><span class="sy0">,</span><span class="st_h">'stripos'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'stripslashes'</span><span class="sy0">,</span><span class="st_h">'strip_tags'</span><span class="sy0">,</span><span class="st_h">'stristr'</span><span class="sy0">,</span><span class="st_h">'strlen'</span><span class="sy0">,</span><span class="st_h">'strnatcasecmp'</span><span class="sy0">,</span></span></span> <span class="st_h">'strnatcmp'</span><span class="sy0">,</span><span class="st_h">'strpbrk'</span><span class="sy0">,</span><span class="st_h">'strncasecmp'</span><span class="sy0">,</span><span class="st_h">'strncmp'</span><span class="sy0">,</span><span class="st_h">'strpos'</span><span class="sy0">,</span><span class="st_h">'strrchr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'strrev'</span><span class="sy0">,</span><span class="st_h">'strripos'</span><span class="sy0">,</span><span class="st_h">'strrpos'</span><span class="sy0">,</span><span class="st_h">'strspn'</span><span class="sy0">,</span><span class="st_h">'strstr'</span><span class="sy0">,</span><span class="st_h">'strtok'</span><span class="sy0">,</span></span></span> <span class="st_h">'strtolower'</span><span class="sy0">,</span><span class="st_h">'strtotime'</span><span class="sy0">,</span><span class="st_h">'strtoupper'</span><span class="sy0">,</span><span class="st_h">'strtr'</span><span class="sy0">,</span><span class="st_h">'strval'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'str_ireplace'</span><span class="sy0">,</span><span class="st_h">'str_pad'</span><span class="sy0">,</span><span class="st_h">'str_repeat'</span><span class="sy0">,</span><span class="st_h">'str_replace'</span><span class="sy0">,</span><span class="st_h">'str_rot13'</span><span class="sy0">,</span></span></span> <span class="st_h">'str_split'</span><span class="sy0">,</span><span class="st_h">'str_shuffle'</span><span class="sy0">,</span><span class="st_h">'str_word_count'</span><span class="sy0">,</span><span class="st_h">'substr'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'substr_compare'</span><span class="sy0">,</span><span class="st_h">'substr_count'</span><span class="sy0">,</span><span class="st_h">'substr_replace'</span><span class="sy0">,</span><span class="st_h">'svn_add'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_auth_get_parameter'</span><span class="sy0">,</span><span class="st_h">'svn_auth_set_parameter'</span><span class="sy0">,</span><span class="st_h">'svn_cat'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_checkout'</span><span class="sy0">,</span><span class="st_h">'svn_cleanup'</span><span class="sy0">,</span><span class="st_h">'svn_client_version'</span><span class="sy0">,</span><span class="st_h">'svn_commit'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_diff'</span><span class="sy0">,</span><span class="st_h">'svn_export'</span><span class="sy0">,</span><span class="st_h">'svn_fs_abort_txn'</span><span class="sy0">,</span><span class="st_h">'svn_fs_apply_text'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_fs_begin_txn2'</span><span class="sy0">,</span><span class="st_h">'svn_fs_change_node_prop'</span><span class="sy0">,</span><span class="st_h">'svn_fs_check_path'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_fs_contents_changed'</span><span class="sy0">,</span><span class="st_h">'svn_fs_copy'</span><span class="sy0">,</span><span class="st_h">'svn_fs_delete'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_fs_dir_entries'</span><span class="sy0">,</span><span class="st_h">'svn_fs_file_contents'</span><span class="sy0">,</span><span class="st_h">'svn_fs_file_length'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_fs_is_dir'</span><span class="sy0">,</span><span class="st_h">'svn_fs_is_file'</span><span class="sy0">,</span><span class="st_h">'svn_fs_make_dir'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_fs_make_file'</span><span class="sy0">,</span><span class="st_h">'svn_fs_node_created_rev'</span><span class="sy0">,</span><span class="st_h">'svn_fs_node_prop'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_fs_props_changed'</span><span class="sy0">,</span><span class="st_h">'svn_fs_revision_prop'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_fs_revision_root'</span><span class="sy0">,</span><span class="st_h">'svn_fs_txn_root'</span><span class="sy0">,</span><span class="st_h">'svn_fs_youngest_rev'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_import'</span><span class="sy0">,</span><span class="st_h">'svn_info'</span><span class="sy0">,</span><span class="st_h">'svn_log'</span><span class="sy0">,</span><span class="st_h">'svn_ls'</span><span class="sy0">,</span><span class="st_h">'svn_repos_create'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_repos_fs'</span><span class="sy0">,</span><span class="st_h">'svn_repos_fs_begin_txn_for_commit'</span><span class="sy0">,</span></span></span> <span class="st_h">'svn_repos_fs_commit_txn'</span><span class="sy0">,</span><span class="st_h">'svn_repos_hotcopy'</span><span class="sy0">,</span><span class="st_h">'svn_repos_open'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'svn_repos_recover'</span><span class="sy0">,</span><span class="st_h">'svn_status'</span><span class="sy0">,</span><span class="st_h">'svn_update'</span><span class="sy0">,</span><span class="st_h">'symlink'</span><span class="sy0">,</span></span></span> <span class="st_h">'sys_get_temp_dir'</span><span class="sy0">,</span><span class="st_h">'syslog'</span><span class="sy0">,</span><span class="st_h">'system'</span><span class="sy0">,</span><span class="st_h">'tan'</span><span class="sy0">,</span><span class="st_h">'tanh'</span><span class="sy0">,</span><span class="st_h">'tempnam'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'textdomain'</span><span class="sy0">,</span><span class="st_h">'thread_get'</span><span class="sy0">,</span><span class="st_h">'thread_include'</span><span class="sy0">,</span><span class="st_h">'thread_lock'</span><span class="sy0">,</span></span></span> <span class="st_h">'thread_lock_try'</span><span class="sy0">,</span><span class="st_h">'thread_mutex_destroy'</span><span class="sy0">,</span><span class="st_h">'thread_mutex_init'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'thread_set'</span><span class="sy0">,</span><span class="st_h">'thread_start'</span><span class="sy0">,</span><span class="st_h">'thread_unlock'</span><span class="sy0">,</span><span class="st_h">'tidy_access_count'</span><span class="sy0">,</span></span></span> <span class="st_h">'tidy_clean_repair'</span><span class="sy0">,</span><span class="st_h">'tidy_config_count'</span><span class="sy0">,</span><span class="st_h">'tidy_diagnose'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'tidy_error_count'</span><span class="sy0">,</span><span class="st_h">'tidy_get_body'</span><span class="sy0">,</span><span class="st_h">'tidy_get_config'</span><span class="sy0">,</span></span></span> <span class="st_h">'tidy_get_error_buffer'</span><span class="sy0">,</span><span class="st_h">'tidy_get_head'</span><span class="sy0">,</span><span class="st_h">'tidy_get_html'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'tidy_get_html_ver'</span><span class="sy0">,</span><span class="st_h">'tidy_get_output'</span><span class="sy0">,</span><span class="st_h">'tidy_get_release'</span><span class="sy0">,</span></span></span> <span class="st_h">'tidy_get_root'</span><span class="sy0">,</span><span class="st_h">'tidy_get_status'</span><span class="sy0">,</span><span class="st_h">'tidy_getopt'</span><span class="sy0">,</span><span class="st_h">'tidy_is_xhtml'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'tidy_is_xml'</span><span class="sy0">,</span><span class="st_h">'tidy_parse_file'</span><span class="sy0">,</span><span class="st_h">'tidy_parse_string'</span><span class="sy0">,</span></span></span> <span class="st_h">'tidy_repair_file'</span><span class="sy0">,</span><span class="st_h">'tidy_repair_string'</span><span class="sy0">,</span><span class="st_h">'tidy_warning_count'</span><span class="sy0">,</span><span class="st_h">'time'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'timezone_abbreviations_list'</span><span class="sy0">,</span><span class="st_h">'timezone_identifiers_list'</span><span class="sy0">,</span></span></span> <span class="st_h">'timezone_name_from_abbr'</span><span class="sy0">,</span><span class="st_h">'timezone_name_get'</span><span class="sy0">,</span><span class="st_h">'timezone_offset_get'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'timezone_open'</span><span class="sy0">,</span><span class="st_h">'timezone_transitions_get'</span><span class="sy0">,</span><span class="st_h">'tmpfile'</span><span class="sy0">,</span></span></span> <span class="st_h">'token_get_all'</span><span class="sy0">,</span><span class="st_h">'token_name'</span><span class="sy0">,</span><span class="st_h">'touch'</span><span class="sy0">,</span><span class="st_h">'trigger_error'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'transliterate'</span><span class="sy0">,</span><span class="st_h">'transliterate_filters_get'</span><span class="sy0">,</span><span class="st_h">'trim'</span><span class="sy0">,</span><span class="st_h">'uasort'</span><span class="sy0">,</span></span></span> <span class="st_h">'ucfirst'</span><span class="sy0">,</span><span class="st_h">'ucwords'</span><span class="sy0">,</span><span class="st_h">'uksort'</span><span class="sy0">,</span><span class="st_h">'umask'</span><span class="sy0">,</span><span class="st_h">'uniqid'</span><span class="sy0">,</span><span class="st_h">'unixtojd'</span><span class="sy0">,</span><span class="st_h">'unlink'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'unpack'</span><span class="sy0">,</span><span class="st_h">'unregister_tick_function'</span><span class="sy0">,</span><span class="st_h">'unserialize'</span><span class="sy0">,</span><span class="st_h">'unset'</span><span class="sy0">,</span></span></span> <span class="st_h">'urldecode'</span><span class="sy0">,</span><span class="st_h">'urlencode'</span><span class="sy0">,</span><span class="st_h">'user_error'</span><span class="sy0">,</span><span class="st_h">'use_soap_error_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'usleep'</span><span class="sy0">,</span><span class="st_h">'usort'</span><span class="sy0">,</span><span class="st_h">'utf8_decode'</span><span class="sy0">,</span><span class="st_h">'utf8_encode'</span><span class="sy0">,</span><span class="st_h">'var_dump'</span><span class="sy0">,</span></span></span> <span class="st_h">'var_export'</span><span class="sy0">,</span><span class="st_h">'variant_abs'</span><span class="sy0">,</span><span class="st_h">'variant_add'</span><span class="sy0">,</span><span class="st_h">'variant_and'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'variant_cast'</span><span class="sy0">,</span><span class="st_h">'variant_cat'</span><span class="sy0">,</span><span class="st_h">'variant_cmp'</span><span class="sy0">,</span></span></span> <span class="st_h">'variant_date_from_timestamp'</span><span class="sy0">,</span><span class="st_h">'variant_date_to_timestamp'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'variant_div'</span><span class="sy0">,</span><span class="st_h">'variant_eqv'</span><span class="sy0">,</span><span class="st_h">'variant_fix'</span><span class="sy0">,</span><span class="st_h">'variant_get_type'</span><span class="sy0">,</span></span></span> <span class="st_h">'variant_idiv'</span><span class="sy0">,</span><span class="st_h">'variant_imp'</span><span class="sy0">,</span><span class="st_h">'variant_int'</span><span class="sy0">,</span><span class="st_h">'variant_mod'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'variant_mul'</span><span class="sy0">,</span><span class="st_h">'variant_neg'</span><span class="sy0">,</span><span class="st_h">'variant_not'</span><span class="sy0">,</span><span class="st_h">'variant_or'</span><span class="sy0">,</span></span></span> <span class="st_h">'variant_pow'</span><span class="sy0">,</span><span class="st_h">'variant_round'</span><span class="sy0">,</span><span class="st_h">'variant_set'</span><span class="sy0">,</span><span class="st_h">'variant_set_type'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'variant_sub'</span><span class="sy0">,</span><span class="st_h">'variant_xor'</span><span class="sy0">,</span><span class="st_h">'version_compare'</span><span class="sy0">,</span><span class="st_h">'virtual'</span><span class="sy0">,</span><span class="st_h">'vfprintf'</span><span class="sy0">,</span></span></span> <span class="st_h">'vprintf'</span><span class="sy0">,</span><span class="st_h">'vsprintf'</span><span class="sy0">,</span><span class="st_h">'wddx_add_vars'</span><span class="sy0">,</span><span class="st_h">'wddx_deserialize'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'wddx_packet_end'</span><span class="sy0">,</span><span class="st_h">'wddx_packet_start'</span><span class="sy0">,</span><span class="st_h">'wddx_serialize_value'</span><span class="sy0">,</span></span></span> <span class="st_h">'wddx_serialize_vars'</span><span class="sy0">,</span><span class="st_h">'win_beep'</span><span class="sy0">,</span><span class="st_h">'win_browse_file'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'win_browse_folder'</span><span class="sy0">,</span><span class="st_h">'win_create_link'</span><span class="sy0">,</span><span class="st_h">'win_message_box'</span><span class="sy0">,</span></span></span> <span class="st_h">'win_play_wav'</span><span class="sy0">,</span><span class="st_h">'win_shell_execute'</span><span class="sy0">,</span><span class="st_h">'win32_create_service'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'win32_delete_service'</span><span class="sy0">,</span><span class="st_h">'win32_get_last_control_message'</span><span class="sy0">,</span></span></span> <span class="st_h">'win32_ps_list_procs'</span><span class="sy0">,</span><span class="st_h">'win32_ps_stat_mem'</span><span class="sy0">,</span><span class="st_h">'win32_ps_stat_proc'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'win32_query_service_status'</span><span class="sy0">,</span><span class="st_h">'win32_scheduler_delete_task'</span><span class="sy0">,</span></span></span> <span class="st_h">'win32_scheduler_enum_tasks'</span><span class="sy0">,</span><span class="st_h">'win32_scheduler_get_task_info'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'win32_scheduler_run'</span><span class="sy0">,</span><span class="st_h">'win32_scheduler_set_task_info'</span><span class="sy0">,</span></span></span> <span class="st_h">'win32_set_service_status'</span><span class="sy0">,</span><span class="st_h">'win32_start_service'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'win32_start_service_ctrl_dispatcher'</span><span class="sy0">,</span><span class="st_h">'win32_stop_service'</span><span class="sy0">,</span></span></span> <span class="st_h">'wordwrap'</span><span class="sy0">,</span><span class="st_h">'xml_error_string'</span><span class="sy0">,</span><span class="st_h">'xml_get_current_byte_index'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_get_current_column_number'</span><span class="sy0">,</span><span class="st_h">'xml_get_current_line_number'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_get_error_code'</span><span class="sy0">,</span><span class="st_h">'xml_parse'</span><span class="sy0">,</span><span class="st_h">'xml_parser_create'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_parser_create_ns'</span><span class="sy0">,</span><span class="st_h">'xml_parser_free'</span><span class="sy0">,</span><span class="st_h">'xml_parser_get_option'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_parser_set_option'</span><span class="sy0">,</span><span class="st_h">'xml_parse_into_struct'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_character_data_handler'</span><span class="sy0">,</span><span class="st_h">'xml_set_default_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_element_handler'</span><span class="sy0">,</span><span class="st_h">'xml_set_end_namespace_decl_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_external_entity_ref_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_notation_decl_handler'</span><span class="sy0">,</span><span class="st_h">'xml_set_object'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_processing_instruction_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_start_namespace_decl_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_unparsed_entity_decl_handler'</span><span class="sy0">,</span><span class="st_h">'xmldoc'</span><span class="sy0">,</span><span class="st_h">'xmldocfile'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlrpc_decode'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_decode_request'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_encode'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlrpc_encode_request'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_get_type'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_is_fault'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlrpc_parse_method_descriptions'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlrpc_server_add_introspection_data'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_server_call_method'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlrpc_server_create'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_server_destroy'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlrpc_server_register_introspection_callback'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlrpc_server_register_method'</span><span class="sy0">,</span><span class="st_h">'xmlrpc_set_type'</span><span class="sy0">,</span><span class="st_h">'xmltree'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_end_attribute'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_end_cdata'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_end_comment'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_end_document'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_end_dtd'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_end_dtd_attlist'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_end_dtd_element'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_end_dtd_entity'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_end_element'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_end_pi'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_flush'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_full_end_element'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_open_memory'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_open_uri'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_output_memory'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_set_indent'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_set_indent_string'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_start_attribute'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_attribute_ns'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_start_cdata'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_comment'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_start_document'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_dtd'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_start_dtd_attlist'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_dtd_element'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_start_dtd_entity'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_element'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_start_element_ns'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_start_pi'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_text'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_write_attribute'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_attribute_ns'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_write_cdata'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_comment'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_write_dtd'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_dtd_attlist'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_write_dtd_element'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_dtd_entity'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xmlwriter_write_element'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_element_ns'</span><span class="sy0">,</span></span></span> <span class="st_h">'xmlwriter_write_pi'</span><span class="sy0">,</span><span class="st_h">'xmlwriter_write_raw'</span><span class="sy0">,</span><span class="st_h">'xpath_eval'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xpath_eval_expression'</span><span class="sy0">,</span><span class="st_h">'xpath_new_context'</span><span class="sy0">,</span><span class="st_h">'xpath_register_ns'</span><span class="sy0">,</span></span></span> <span class="st_h">'xpath_register_ns_auto'</span><span class="sy0">,</span><span class="st_h">'xptr_eval'</span><span class="sy0">,</span><span class="st_h">'xptr_new_context'</span><span class="sy0">,</span><span class="st_h">'yp_all'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'yp_cat'</span><span class="sy0">,</span><span class="st_h">'yp_errno'</span><span class="sy0">,</span><span class="st_h">'yp_err_string'</span><span class="sy0">,</span><span class="st_h">'yp_first'</span><span class="sy0">,</span></span></span> <span class="st_h">'yp_get_default_domain'</span><span class="sy0">,</span><span class="st_h">'yp_master'</span><span class="sy0">,</span><span class="st_h">'yp_match'</span><span class="sy0">,</span><span class="st_h">'yp_next'</span><span class="sy0">,</span><span class="st_h">'yp_order'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zend_current_obfuscation_level'</span><span class="sy0">,</span><span class="st_h">'zend_get_cfg_var'</span><span class="sy0">,</span><span class="st_h">'zend_get_id'</span><span class="sy0">,</span></span></span> <span class="st_h">'zend_loader_current_file'</span><span class="sy0">,</span><span class="st_h">'zend_loader_enabled'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zend_loader_file_encoded'</span><span class="sy0">,</span><span class="st_h">'zend_loader_file_licensed'</span><span class="sy0">,</span></span></span> <span class="st_h">'zend_loader_install_license'</span><span class="sy0">,</span><span class="st_h">'zend_loader_version'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zend_logo_guid'</span><span class="sy0">,</span><span class="st_h">'zend_match_hostmasks'</span><span class="sy0">,</span><span class="st_h">'zend_obfuscate_class_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'zend_obfuscate_function_name'</span><span class="sy0">,</span><span class="st_h">'zend_optimizer_version'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zend_runtime_obfuscate'</span><span class="sy0">,</span><span class="st_h">'zend_version'</span><span class="sy0">,</span><span class="st_h">'zip_close'</span><span class="sy0">,</span></span></span> <span class="st_h">'zip_entry_close'</span><span class="sy0">,</span><span class="st_h">'zip_entry_compressedsize'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zip_entry_compressionmethod'</span><span class="sy0">,</span><span class="st_h">'zip_entry_filesize'</span><span class="sy0">,</span><span class="st_h">'zip_entry_name'</span><span class="sy0">,</span></span></span> <span class="st_h">'zip_entry_open'</span><span class="sy0">,</span><span class="st_h">'zip_entry_read'</span><span class="sy0">,</span><span class="st_h">'zip_open'</span><span class="sy0">,</span><span class="st_h">'zip_read'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zlib_get_coding_type'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'DEFAULT_INCLUDE_PATH'</span><span class="sy0">,</span> <span class="st_h">'DIRECTORY_SEPARATOR'</span><span class="sy0">,</span> <span class="st_h">'E_ALL'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'E_COMPILE_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_COMPILE_WARNING'</span><span class="sy0">,</span> <span class="st_h">'E_CORE_ERROR'</span><span class="sy0">,</span></span></span> <span class="st_h">'E_CORE_WARNING'</span><span class="sy0">,</span> <span class="st_h">'E_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_NOTICE'</span><span class="sy0">,</span> <span class="st_h">'E_PARSE'</span><span class="sy0">,</span> <span class="st_h">'E_STRICT'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'E_USER_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_USER_NOTICE'</span><span class="sy0">,</span> <span class="st_h">'E_USER_WARNING'</span><span class="sy0">,</span> <span class="st_h">'E_WARNING'</span><span class="sy0">,</span></span></span> <span class="st_h">'ENT_COMPAT'</span><span class="sy0">,</span><span class="st_h">'ENT_QUOTES'</span><span class="sy0">,</span><span class="st_h">'ENT_NOQUOTES'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'false'</span><span class="sy0">,</span> <span class="st_h">'null'</span><span class="sy0">,</span> <span class="st_h">'PEAR_EXTENSION_DIR'</span><span class="sy0">,</span> <span class="st_h">'PEAR_INSTALL_DIR'</span><span class="sy0">,</span></span></span> <span class="st_h">'PHP_BINDIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_CONFIG_FILE_PATH'</span><span class="sy0">,</span> <span class="st_h">'PHP_DATADIR'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'PHP_EXTENSION_DIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_LIBDIR'</span><span class="sy0">,</span></span></span> <span class="st_h">'PHP_LOCALSTATEDIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_OS'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'PHP_OUTPUT_HANDLER_CONT'</span><span class="sy0">,</span> <span class="st_h">'PHP_OUTPUT_HANDLER_END'</span><span class="sy0">,</span></span></span> <span class="st_h">'PHP_OUTPUT_HANDLER_START'</span><span class="sy0">,</span> <span class="st_h">'PHP_SYSCONFDIR'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'PHP_VERSION'</span><span class="sy0">,</span> <span class="st_h">'true'</span><span class="sy0">,</span> <span class="st_h">'__CLASS__'</span><span class="sy0">,</span> <span class="st_h">'__FILE__'</span><span class="sy0">,</span> <span class="st_h">'__FUNCTION__'</span><span class="sy0">,</span></span></span> <span class="st_h">'__LINE__'</span><span class="sy0">,</span> <span class="st_h">'__METHOD__'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'%'</span><span class="sy0">,</span> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'%='</span><span class="sy0">,</span> <span class="st_h">'%'</span><span class="sy0">.</span><span class="st_h">'>'</span><span class="sy0">,</span> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'?'</span><span class="sy0">,</span> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'?='</span><span class="sy0">,</span> <span class="st_h">'?'</span><span class="sy0">.</span><span class="st_h">'>'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'('</span><span class="sy0">,</span> <span class="st_h">')'</span><span class="sy0">,</span> <span class="st_h">'['</span><span class="sy0">,</span> <span class="st_h">']'</span><span class="sy0">,</span> <span class="st_h">'{'</span><span class="sy0">,</span> <span class="st_h">'}'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'!'</span><span class="sy0">,</span> <span class="st_h">'@'</span><span class="sy0">,</span> <span class="st_h">'%'</span><span class="sy0">,</span> <span class="st_h">'&'</span><span class="sy0">,</span> <span class="st_h">'|'</span><span class="sy0">,</span> <span class="st_h">'/'</span><span class="sy0">,</span></span></span> <span class="st_h">'<'</span><span class="sy0">,</span> <span class="st_h">'>'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'='</span><span class="sy0">,</span> <span class="st_h">'-'</span><span class="sy0">,</span> <span class="st_h">'+'</span><span class="sy0">,</span> <span class="st_h">'*'</span><span class="sy0">,</span></span></span> <span class="st_h">'.'</span><span class="sy0">,</span> <span class="st_h">':'</span><span class="sy0">,</span> <span class="st_h">','</span><span class="sy0">,</span> <span class="st_h">';'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'CASE_SENSITIVE'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> GESHI_COMMENTS <span class="sy0">=></span> <span class="kw4">false</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="kw4">false</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="kw4">false</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> <span class="kw4">false</span><span class="sy0">,</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> <span class="kw4">false</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'STYLES'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #b1b100;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #000000; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'color: #990000;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">'color: #009900; font-weight: bold;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'COMMENTS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #666666; font-style: italic;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #666666; font-style: italic;'</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'color: #0000cc; font-style: italic;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">'color: #009933; font-style: italic;'</span><span class="sy0">,</span></span></span> <span class="st_h">'MULTI'</span> <span class="sy0">=></span> <span class="st_h">'color: #666666; font-style: italic;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'ESCAPE_CHAR'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #000099; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #000099; font-weight: bold;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #660099; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'color: #660099; font-weight: bold;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">'color: #006699; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="nu0">5</span> <span class="sy0">=></span> <span class="st_h">'color: #006699; font-weight: bold; font-style: italic;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">6</span> <span class="sy0">=></span> <span class="st_h">'color: #009933; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="st_h">'HARD'</span> <span class="sy0">=></span> <span class="st_h">'color: #000099; font-weight: bold;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'BRACKETS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #009900;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'STRINGS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #0000ff;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'HARD'</span> <span class="sy0">=></span> <span class="st_h">'color: #0000ff;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #cc66cc;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_NUMBER_OCT_PREFIX <span class="sy0">=></span> <span class="st_h">'color: #208080;'</span><span class="sy0">,</span></span></span> GESHI_NUMBER_HEX_PREFIX <span class="sy0">=></span> <span class="st_h">'color: #208080;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_NUMBER_FLT_SCI_ZERO <span class="sy0">=></span> <span class="st_h">'color:#800080;'</span><span class="sy0">,</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'METHODS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #004000;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #004000;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #339933;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #000000; font-weight: bold;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'REGEXPS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #000088;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'SCRIPT'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">5</span> <span class="sy0">=></span> <span class="st_h">''</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'URLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'http://www.php.net/{FNAMEL}'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">''</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'OOLANG'</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="st_h">'OBJECT_SPLITTERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'-&gt;'</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'::'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'REGEXPS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="co1">//Variables</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st0">"[<span class="es1">\\</span>$]+[a-zA-Z_<span class="es2">\x7f</span>-<span class="es2">\xff</span>][a-zA-Z0-9_<span class="es2">\x7f</span>-<span class="es2">\xff</span>]*"</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'STRICT_MODE_APPLIES'</span> <span class="sy0">=></span> GESHI_MAYBE<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'SCRIPT_DELIMITERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'?php'</span> <span class="sy0">=></span> <span class="st_h">'?'</span><span class="sy0">.</span><span class="st_h">'>'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'?'</span> <span class="sy0">=></span> <span class="st_h">'?'</span><span class="sy0">.</span><span class="st_h">'>'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'<'</span><span class="sy0">.</span><span class="st_h">'%'</span> <span class="sy0">=></span> <span class="st_h">'%'</span><span class="sy0">.</span><span class="st_h">'>'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'<script language="php">'</span> <span class="sy0">=></span> <span class="st_h">'</script>'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st0">"/(?P<start><<span class="es1">\\</span>?(?>php\b)?)(?:"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?>[^<span class="es1">\"</span>'?<span class="es1">\\</span>/<]+)|"</span><span class="sy0">.</span></span></span> <span class="st0">"<span class="es1">\\</span>?(?!>)|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?>'(?>[^'<span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>'|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span>\|<span class="es1">\\</span><span class="es1">\\</span>)*')|"</span><span class="sy0">.</span></span></span> <span class="st0">"(?><span class="es1">\"</span>(?>[^<span class="es1">\"</span><span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\"</span>|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span>|<span class="es1">\\</span><span class="es1">\\</span>)*<span class="es1">\"</span>)|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?><span class="es1">\\</span>/<span class="es1">\\</span>*(?>[^<span class="es1">\\</span>*]|(?!<span class="es1">\\</span>*<span class="es1">\\</span>/)<span class="es1">\\</span>*)*<span class="es1">\\</span>*<span class="es1">\\</span>/)|"</span><span class="sy0">.</span></span></span> <span class="st0">"<span class="es1">\\</span>/<span class="es1">\\</span>/(?>.*?(?:<span class="es1">\\</span>?>|$))|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"#(?>.*?(?:<span class="es1">\\</span>?>|$))|"</span><span class="sy0">.</span></span></span> <span class="st0">"<span class="es1">\\</span>/(?=[^*<span class="es1">\\</span>/])|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"<(?!<<)|"</span><span class="sy0">.</span></span></span> <span class="st0">"<<<(?P<phpdoc>\w+)\s.*?\s\k<phpdoc>"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">")*?(?P<end><span class="es1">\\</span>?>|\Z)/sm"</span><span class="sy0">,</span></span></span> <span class="nu0">5</span> <span class="sy0">=></span> <span class="st0">"/(?P<start><%)(?:"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?>[^<span class="es1">\"</span>'%<span class="es1">\\</span>/<]+)|"</span><span class="sy0">.</span></span></span> <span class="st0">"%(?!>)|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?>'(?>[^'<span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>'|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span>\|<span class="es1">\\</span><span class="es1">\\</span>)*')|"</span><span class="sy0">.</span></span></span> <span class="st0">"(?><span class="es1">\"</span>(?>[^<span class="es1">\\</span><span class="es1">\"</span><span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\"</span>|<span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span><span class="es1">\\</span>|<span class="es1">\\</span><span class="es1">\\</span>)*<span class="es1">\"</span>)|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"(?><span class="es1">\\</span>/<span class="es1">\\</span>*(?>[^<span class="es1">\\</span>*]|(?!<span class="es1">\\</span>*<span class="es1">\\</span>/)<span class="es1">\\</span>*)*<span class="es1">\\</span>*<span class="es1">\\</span>/)|"</span><span class="sy0">.</span></span></span> <span class="st0">"<span class="es1">\\</span>/<span class="es1">\\</span>/(?>.*?(?:%>|$))|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"#(?>.*?(?:%>|$))|"</span><span class="sy0">.</span></span></span> <span class="st0">"<span class="es1">\\</span>/(?=[^*<span class="es1">\\</span>/])|"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">"<(?!<<)|"</span><span class="sy0">.</span></span></span> <span class="st0">"<<<(?P<phpdoc>\w+)\s.*?\s\k<phpdoc>"</span><span class="sy0">.</span> +<span class="xtra li2"><span class="de2"> <span class="st0">")*?(?P<end>%>|\Z)/sm"</span><span class="sy0">,</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'HIGHLIGHT_STRICT_BLOCK'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">5</span> <span class="sy0">=></span> <span class="kw4">true</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'TAB_WIDTH'</span> <span class="sy0">=></span> <span class="nu0">4</span></span></span><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="sy1">?></span></pre></td></tr></tbody></table> + +<p>If you’re remotely familiar with <abbr title="PHP: HTML Preprocessor">PHP</abbr> (or even if you’re not), you can see that all that a language file consists of is +a glorified variable assignment. Easy! All a language file does is assign a variable <code class="highlighted php"><span class="re0">$language_data</span></code>. Though +still, there’s a lot of indices to that array… but this section is here to break each index down and explain it to you.</p> + +<h3 id="language-file-conventions">4.2 Language File Conventions</h3><div class="nav"><a href="#language-file-example">Previous</a> | <a href="#language-files">Top</a> | <a href="#language-file-sections">Next</a></div> + +<p>There are several conventions that are used in language files. For ease of use and readability, your language +files should obey the following rules:</p> + +<ul> +<li><strong>Indentation is <em>4 spaces</em>, not tabs:</strong> Use spaces! as editors continiously screw up tabs there should be +no tabs in your documents since it would look differently on every computer otherwise.</li> +<li><strong>Strings are in single quotes:</strong> Every string in a language file should be in single quotes (‘), unless you are +specifying a single quote as a quotemark or escape character, in which case they can be in double quotes for +readability; or if you are specifying a REGEXP (see below). This ensures that the language file can be loaded +as fast as possible by <abbr title="PHP: HTML Preprocessor">PHP</abbr> as unnecessary parsing can be avoided.</li> +<li><strong>Large arrays are multi-lined:</strong> An array with more than three or four values should be broken into multiple +lines. In any case, lines should not be wider than a full-screen window (about 100 chars per line max). +Don’t break the keywords arrays after every keyword.</li> +<li><strong>Ending brackets for multi-lined arrays on a new line:</strong> Also with a comma after them, unless the array is +the last one in a parent array. See the <abbr title="PHP: HTML Preprocessor">PHP</abbr> language file for examples of where to use commas.</li> +<li><strong>Use <abbr title="Generic Syntax Highlighter">GeSHi</abbr>’s constants:</strong> For capatalisation, regular expressions etc. use the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> constants, <em>not</em> +their actual values.</li> +<li><strong>Verbatim header format:</strong> Copy the file header verbatim from other language files and modify the values +afterwards. Don’t try to invent own header formats, as your languages else will fail validation!</li> +</ul> + +<p>There are more notes on each convention where it may appear in the language file sections below.</p> + +<h3 id="language-file-sections">4.3 Language File Sections</h3><div class="nav"><a href="#language-file-conventions">Previous</a> | <a href="#language-files">Top</a> | <a href="#language-file-header">Next</a></div> + +<p>This section will look at all the sections of a language file, and how they relate to the final highlighting result.</p> + +<h4 id="language-file-header">4.3.1 The Header</h4><div class="nav"><a href="#language-file-sections">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-start-indices">Next</a></div> + +<p>The <em>header</em> of a language file is the first lines with the big comment and the start of the variable +<code class="highlighted php"><span class="re0">$language_data</span></code>:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span>29 +<span class="xtra li2"><span class="de2">30</span></span>31 +<span class="xtra li2"><span class="de2">32</span></span>33 +<span class="xtra li2"><span class="de2">34</span></span>35 +<span class="xtra li2"><span class="de2">36</span></span>37 +<span class="xtra li2"><span class="de2">38</span></span>39 +<span class="xtra li2"><span class="de2">40</span></span>41 +<span class="xtra li2"><span class="de2">42</span></span>43 +</pre></td><td class="de1"><pre class="de1"><span class="kw2"><?php</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI">/*************************************************************************************</span></span></span><span class="coMULTI"> * <name-of-language-file.php></span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * ---------------------------------</span></span></span><span class="coMULTI"> * Author: <name> (<e-mail address>)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * Copyright: (c) 2008 <name> (<website URL>)</span></span></span><span class="coMULTI"> * Release Version: <GeSHi release></span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * Date Started: <date started></span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * <name-of-language> language file for GeSHi.</span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * <any-comments...></span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * CHANGES</span></span></span><span class="coMULTI"> * -------</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * <date-of-release> (<GeSHi release>)</span></span></span><span class="coMULTI"> * - First Release</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * TODO (updated <date-of-release>)</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * -------------------------</span></span></span><span class="coMULTI"> * <things-to-do></span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> *************************************************************************************</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * This file is part of GeSHi.</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * GeSHi is free software; you can redistribute it and/or modify</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * it under the terms of the GNU General Public License as published by</span></span></span><span class="coMULTI"> * the Free Software Foundation; either version 2 of the License, or</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * (at your option) any later version.</span></span></span><span class="coMULTI"> *</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * GeSHi is distributed in the hope that it will be useful,</span></span></span><span class="coMULTI"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></span></span><span class="coMULTI"> * GNU General Public License for more details.</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> * You should have received a copy of the GNU General Public License</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> * along with GeSHi; if not, write to the Free Software</span></span></span><span class="coMULTI"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span> +<span class="xtra li2"><span class="de2"><span class="coMULTI"> *</span></span></span><span class="coMULTI"> ************************************************************************************/</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="re0">$language_data</span> <span class="sy0">=</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a> <span class="br0">(</span></pre></td></tr></tbody></table> + +<p>The parts in angle brackets are the parts that you change for your language file. <strong>Everything else <em>must</em> remain the same!</strong></p> + +<p>Here are the parts you should change:</p> + +<ul> +<li><code><name-of-language-file.php></code> - This should become the name of your language file. Language file names are in +lower case and contain only alphanumeric characters, dashes and underscores. Language files end with .php (which +you should put with the name of your language file, eg language.php)</li> +<li><code><name></code> - Your name, or alias.</li> +<li><code><e-mail address></code> - Your e-mail address. If you want your language file included with <abbr title="Generic Syntax Highlighter">GeSHi</abbr> you <em>must</em> +include an e-mail address that refers to an inbox controlled by you.</li> +<li><code><website></code> - A URL of a website of yours (perhaps to a page that deals with your contribution to <abbr title="Generic Syntax Highlighter">GeSHi</abbr>, or +your home page/blog)</li> +<li><code><date-started></code> - The date you started working on the language file. If you can’t remember, guestimate.</li> +<li><code><name-of-language></code> - The name of the language you made this language file for (probably similar to +the language file name).</li> +<li><code><any-comments></code> - Any comments you have to make about this language file, perhaps on where you got the keywords for, +what dialect of the language this language file is for etc etc. If you don’t have any comments, remove the space for them.</li> +<li><code><date-of-release</code> - The date you released the language file to the public. If you simply send it to me for inclusion +in a new <abbr title="Generic Syntax Highlighter">GeSHi</abbr> and don’t release it, leave this blank, and I’ll replace it with the date of the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> release that +it is first added to.</li> +<li><code><GeSHi release></code> - This is the version of the release that will contain the changes you made. +So if you have version 1.0.8 of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> running this will be the next version to be released, e.g. 1.0.8.1.</li> +</ul> + +<p>Everything should remain the same.</p> + +<p><strong>Also:</strong> I’m not sure about the copyright on a new language file. I’m not a lawyer, could someone contact me about +whether the copyright for a new language file should be exclusivly the authors, or joint with me (if included in a +<abbr title="Generic Syntax Highlighter">GeSHi</abbr> release)?</p> + +<h4 id="language-file-start-indices">4.3.2 The First Indices</h4><div class="nav"><a href="#language-file-header">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-keywords">Next</a></div> + +<p>Here is an example from the php language file of the first indices:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span></pre></td><td class="de1"><pre class="de1"><span class="st_h">'LANG_NAME'</span> <span class="sy0">=></span> <span class="st_h">'PHP'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"><span class="st_h">'COMMENT_SINGLE'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'//'</span><span class="sy0">,</span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'#'</span><span class="br0">)</span><span class="sy0">,</span></span></span><span class="st_h">'COMMENT_MULTI'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'/*'</span> <span class="sy0">=></span> <span class="st_h">'*/'</span><span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"><span class="st_h">'CASE_KEYWORDS'</span> <span class="sy0">=></span> GESHI_CAPS_NO_CHANGE<span class="sy0">,</span></span></span><span class="st_h">'QUOTEMARKS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st0">"'"</span><span class="sy0">,</span> <span class="st_h">'"'</span><span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"><span class="st_h">'ESCAPE_CHAR'</span> <span class="sy0">=></span> <span class="st_h">'\\'</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>The first indices are the first few lines of a language file before the KEYWORDS index. These indices specify:</p> + +<ul> +<li><strong>‘LANG_NAME’</strong>: The name of the language. This name should be a human-readable version of the name +(e.g. <abbr title="Hypertext Markup Language">HTML</abbr> 4 (transitional) instead of html4trans)</li> +<li><strong>‘COMMENT_SINGLE’:</strong> An array of single-line comments in your language, indexed by integers starting +from 1. A single line comment is a comment that starts at the marker and goes until the end of the line. These +comments may be any length > 0, and since they can be styled individually, can be used for other things than comments +(for example the Java language file defines “import” as a single line comment). If you are making a language that +uses a ’ (apostrophe) as a comment (or in the comment marker somewhere), use double quotes. e.g.: “’”</li> +<li><strong>‘COMMENT_MULTI’:</strong> Used to specify multiline comments, an array in the form ‘OPEN’ => ‘CLOSE’. Unfortunately, +all of these comments you add here will be styled the same way (an area of improvement for <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.2.X). +These comment markers may be any length > 0.</li> +<li><strong>‘CASE_KEYWORDS’:</strong> Used to set whether the case of keywords should be changed automatically as they are found. +For example, in an SQL or BASIC dialect you may want all keywords to be upper case. The accepted values for this are:</li> +<li><code>GESHI_CAPS_UPPER</code>: Convert the case of all keywords to upper case.</li> +<li><code>GESHI_CAPS_LOWER</code>: Convert the case of all keywords to lower case.</li> +<li><code>GESHI_CAPS_NO_CHANGE</code>: Don’t change the case of any keyword.</li> +<li><strong>‘QUOTEMARKS’:</strong> Specifies the characters that mark the beginning and end of a string. This is another example +where if your language includes the ’ string delimiter you should use double quotes around it.</li> +<li><strong>‘ESCAPE_CHAR’:</strong> Specifies the escape character used in all strings. If your language does not have an escape +character then make this the empty string (<code>''</code>). This is not an array! If found, any character after an +escape character and the escape character itself will be highlighted differently, and the character after the +escape character cannot end a string.</li> +</ul> + +<p>In some language files you might see here other indices too, but those are dealt with later on.</p> + +<h4 id="language-file-keywords">4.3.3 Keywords</h4><div class="nav"><a href="#language-file-start-indices">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-symbols-case">Next</a></div> + +<p>Keywords will make up the bulk of a language file. In this part you add keywords for your language, including +inbuilt functions, data types, predefined constants etc etc.</p> + +<p>Here’s a (shortened) example from the php language file:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span>29 +<span class="xtra li2"><span class="de2">30</span></span>31 +<span class="xtra li2"><span class="de2">32</span></span>33 +<span class="xtra li2"><span class="de2">34</span></span>35 +<span class="xtra li2"><span class="de2">36</span></span>37 +<span class="xtra li2"><span class="de2">38</span></span>39 +<span class="xtra li2"><span class="de2">40</span></span></pre></td><td class="de1"><pre class="de1"><span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'as'</span><span class="sy0">,</span> <span class="st_h">'break'</span><span class="sy0">,</span> <span class="st_h">'case'</span><span class="sy0">,</span> <span class="st_h">'do'</span><span class="sy0">,</span> <span class="st_h">'else'</span><span class="sy0">,</span> <span class="st_h">'elseif'</span><span class="sy0">,</span> <span class="st_h">'endif'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'endswitch'</span><span class="sy0">,</span> <span class="st_h">'endwhile'</span><span class="sy0">,</span> <span class="st_h">'for'</span><span class="sy0">,</span> <span class="st_h">'foreach'</span><span class="sy0">,</span> <span class="st_h">'if'</span><span class="sy0">,</span> <span class="st_h">'include'</span><span class="sy0">,</span></span></span> <span class="st_h">'include_once'</span><span class="sy0">,</span> <span class="st_h">'require'</span><span class="sy0">,</span> <span class="st_h">'require_once'</span><span class="sy0">,</span> <span class="st_h">'return'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'switch'</span><span class="sy0">,</span> <span class="st_h">'while'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'&lt;/script>'</span><span class="sy0">,</span> <span class="st_h">'&lt;?'</span><span class="sy0">,</span> <span class="st_h">'&lt;?php'</span><span class="sy0">,</span> <span class="st_h">'&lt;script language='</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'?>'</span><span class="sy0">,</span> <span class="st_h">'class'</span><span class="sy0">,</span> <span class="st_h">'default'</span><span class="sy0">,</span> <span class="st_h">'DEFAULT_INCLUDE_PATH'</span><span class="sy0">,</span> <span class="st_h">'E_ALL'</span><span class="sy0">,</span></span></span> <span class="st_h">'E_COMPILE_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_COMPILE_WARNING'</span><span class="sy0">,</span> <span class="st_h">'E_CORE_ERROR'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'E_CORE_WARNING'</span><span class="sy0">,</span> <span class="st_h">'E_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_NOTICE'</span><span class="sy0">,</span> <span class="st_h">'E_PARSE'</span><span class="sy0">,</span></span></span> <span class="st_h">'E_USER_ERROR'</span><span class="sy0">,</span> <span class="st_h">'E_USER_NOTICE'</span><span class="sy0">,</span> <span class="st_h">'E_USER_WARNING'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'E_WARNING'</span><span class="sy0">,</span> <span class="st_h">'false'</span><span class="sy0">,</span> <span class="st_h">'function'</span><span class="sy0">,</span> <span class="st_h">'new'</span><span class="sy0">,</span> <span class="st_h">'null'</span><span class="sy0">,</span></span></span> <span class="st_h">'PEAR_EXTENSION_DIR'</span><span class="sy0">,</span> <span class="st_h">'PEAR_INSTALL_DIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_BINDIR'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'PHP_CONFIG_FILE_PATH'</span><span class="sy0">,</span> <span class="st_h">'PHP_DATADIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_EXTENSION_DIR'</span><span class="sy0">,</span></span></span> <span class="st_h">'PHP_LIBDIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_LOCALSTATEDIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_OS'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'PHP_OUTPUT_HANDLER_CONT'</span><span class="sy0">,</span> <span class="st_h">'PHP_OUTPUT_HANDLER_END'</span><span class="sy0">,</span></span></span> <span class="st_h">'PHP_OUTPUT_HANDLER_START'</span><span class="sy0">,</span> <span class="st_h">'PHP_SYSCONFDIR'</span><span class="sy0">,</span> <span class="st_h">'PHP_VERSION'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'true'</span><span class="sy0">,</span> <span class="st_h">'var'</span><span class="sy0">,</span> <span class="st_h">'__CLASS__'</span><span class="sy0">,</span> <span class="st_h">'__FILE__'</span><span class="sy0">,</span> <span class="st_h">'__FUNCTION__'</span><span class="sy0">,</span></span></span> <span class="st_h">'__LINE__'</span><span class="sy0">,</span> <span class="st_h">'__METHOD__'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_parser_create'</span><span class="sy0">,</span> <span class="st_h">'xml_parser_create_ns'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_parser_free'</span><span class="sy0">,</span> <span class="st_h">'xml_parser_get_option'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_parser_set_option'</span><span class="sy0">,</span> <span class="st_h">'xml_parse_into_struct'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_character_data_handler'</span><span class="sy0">,</span> <span class="st_h">'xml_set_default_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_element_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_end_namespace_decl_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_external_entity_ref_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_notation_decl_handler'</span><span class="sy0">,</span> <span class="st_h">'xml_set_object'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_processing_instruction_handler'</span><span class="sy0">,</span></span></span> <span class="st_h">'xml_set_start_namespace_decl_handler'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'xml_set_unparsed_entity_decl_handler'</span><span class="sy0">,</span> <span class="st_h">'yp_all'</span><span class="sy0">,</span> <span class="st_h">'yp_cat'</span><span class="sy0">,</span></span></span> <span class="st_h">'yp_errno'</span><span class="sy0">,</span> <span class="st_h">'yp_err_string'</span><span class="sy0">,</span> <span class="st_h">'yp_first'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'yp_get_default_domain'</span><span class="sy0">,</span> <span class="st_h">'yp_master'</span><span class="sy0">,</span> <span class="st_h">'yp_match'</span><span class="sy0">,</span> <span class="st_h">'yp_next'</span><span class="sy0">,</span></span></span> <span class="st_h">'yp_order'</span><span class="sy0">,</span> <span class="st_h">'zend_logo_guid'</span><span class="sy0">,</span> <span class="st_h">'zend_version'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'zlib_get_coding_type'</span></span></span> <span class="br0">)</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>You can see that the index ‘KEYWORDS’ refers to an array of arrays, indexed by positive integers. In each array, +there are some keywords (in the actual php language file there is in fact many more keywords in the array indexed by 3). +Here are some points to note about these keywords:</p> + +<ul> +<li><strong>Indexed by positive integers:</strong> Use nothing else! I may change this in 1.2.X, but for the 1.0.X series, +use positive integers only. Using strings here results in unnecessary overhead degrading performance when +highlighting code with your language file!</li> +<li><strong>Keywords sorted ascending:</strong> Keywords <em>should</em> be sorted in <em>ascending</em> order. This is mainly for +readability. An issue with versions before 1.0.8 has been solved, so the reverse sorting order +is no longer required and should thus be avoided. <abbr title="Generic Syntax Highlighter">GeSHi</abbr> itself sorts the keywords internally when +building some of its caches, so the order doesn’t matter, but makes things easier to read and maintain.</li> +<li><strong>Keywords are case sensitive (sometimes):</strong> If your language is case-sensitive, the correct casing of the +keywords is defined as the case of the keywords in these keyword arrays. If you check the java language file you +will see that everything is in exact casing. So if any of these keyword arrays are case sensitive, put the +keywords in as their correct case! (note that which groups are case sensitive and which are not is configurable, +see later on). If a keyword group is case insensitive, put the lowercase version of the keyword here +<strong>OR</strong> in case documentation links require a special casing (other than all lowercase or all uppercase) +the casing required for them use their casing.</li> +<li><strong>Keywords must be in <code class="highlighted php"><span class="kw3">htmlentities</span><span class="br0">(</span><span class="br0">)</span></code> form:</strong> All keywords should be written as if they had been +run through the php function <code class="highlighted php"><span class="kw3">htmlentities</span><span class="br0">(</span><span class="br0">)</span></code>. E.g, the keyword is <code class="highlighted html4strict"><span class="sc1">&lt;</span>foo<span class="sc1">&gt;</span></code>, not +<code class="highlighted html4strict"><span class="sc2"><foo></span></code></li> +<li><strong>Don’t use keywords to highlight symbols:</strong> Just don’t!!! It doesn’t work, and there is seperate support +for symbols since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.21.</li> +<li><strong>Markup Languages are special cases:</strong> Check the html4strict language file for an example: You need to tweak +the Parser control here to tell the surroundings of tagnames. In case of doubt, feel free to ask.</li> +</ul> + +<h4 id="language-file-symbols-case">4.3.4 Symbols and Case Sensitivity</h4><div class="nav"><a href="#language-file-keywords">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-styles">Next</a></div> + +<p>So you’ve put all the keywords for your language in? Now for a breather before we style them :). Symbols define +what symbols your language uses. These are things like colons, brackets/braces, and other such general punctuation. +No alphanumeric stuff belongs here, just the same as no symbols belong into the keywords section.</p> + +<p>As of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> version 1.0.7.21 the symbols section can be used in two ways:</p> + +<dl> +<dt>Flat usage:</dt> +<dd>This mode is the suggested way for existing language files and languages that only need few symbols where no +further differentiation is needed or desired. You simply put all the characters in an array under symbols as shown +in the first example below. All symbols in flat usage belong to symbol style group 0.</dd> + +<dt>Group usage:</dt> +<dd>This is a slightly more enhanced way to provide <abbr title="Generic Syntax Highlighter">GeSHi</abbr> symbol information. To use group you create several subarrays +each containing only a subset of the symbols to highlight. Every array will need to have an unique index thus +you can assign the appropriate styles later.</dd> +</dl> + +<p>Here’s an example for flat symbol usage</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +</pre></td><td class="de1"><pre class="de1"><span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'('</span><span class="sy0">,</span> <span class="st_h">')'</span><span class="sy0">,</span> <span class="st_h">'['</span><span class="sy0">,</span> <span class="st_h">']'</span><span class="sy0">,</span> <span class="st_h">'{'</span><span class="sy0">,</span> <span class="st_h">'}'</span><span class="sy0">,</span> <span class="st_h">'!'</span><span class="sy0">,</span> <span class="st_h">'@'</span><span class="sy0">,</span> <span class="st_h">'|'</span><span class="sy0">,</span> <span class="st_h">'&'</span><span class="sy0">,</span> <span class="st_h">'+'</span><span class="sy0">,</span> <span class="st_h">'-'</span><span class="sy0">,</span> <span class="st_h">'*'</span><span class="sy0">,</span> <span class="st_h">'/'</span><span class="sy0">,</span> <span class="st_h">'%'</span><span class="sy0">,</span> <span class="st_h">'='</span><span class="sy0">,</span> <span class="st_h">'<'</span><span class="sy0">,</span> <span class="st_h">'>'</span></span></span><span class="br0">)</span><span class="sy0">,</span></pre></td></tr></tbody></table> + +<p>which is not too different from the newly introduced group usage shown below:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span></pre></td><td class="de1"><pre class="de1"><span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'('</span><span class="sy0">,</span> <span class="st_h">')'</span><span class="sy0">,</span> <span class="st_h">'['</span><span class="sy0">,</span> <span class="st_h">']'</span><span class="sy0">,</span> <span class="st_h">'{'</span><span class="sy0">,</span> <span class="st_h">'}'</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'!'</span><span class="sy0">,</span> <span class="st_h">'@'</span><span class="sy0">,</span> <span class="st_h">'|'</span><span class="sy0">,</span> <span class="st_h">'&'</span><span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'+'</span><span class="sy0">,</span> <span class="st_h">'-'</span><span class="sy0">,</span> <span class="st_h">'*'</span><span class="sy0">,</span> <span class="st_h">'/'</span><span class="sy0">,</span> <span class="st_h">'%'</span><span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span><span class="st_h">'='</span><span class="sy0">,</span> <span class="st_h">'&lt;'</span><span class="sy0">,</span> <span class="st_h">'>'</span><span class="br0">)</span> +<span class="xtra li2"><span class="de2"><span class="br0">)</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>Please note that versions before 1.0.7.21 will silently ignore this setting.</p> + +<p>Also note that <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.7.21 itself had some bugs in Symbol highlighting that could cause + heavily scrambled code output.</p> + +</div> + +<p>The following case sensitivity group alludes to the keywords section: here you can set which keyword groups are case sensitive.</p> + +<p>In the <strong>‘CASE_SENSITIVE’</strong> group there’s a special key <code>GESHI_COMMENTS</code> which is used to set whether comments are +case sensitive or not (for example, BASIC has the REM statement which while not being case sensitive is still alphanumeric, and +as in the example given before about the Java language file using “import” as a single line comment, this can be +useful sometimes. <strong>true</strong> if comments are case sensitive, <strong>false</strong> otherwise. All of the other indices +correspond to indices in the <code>'KEYWORDS'</code> section (see above).</p> + +<h4 id="language-file-styles">4.3.5 Styles for your Language File</h4><div class="nav"><a href="#language-file-symbols-case">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-urls">Next</a></div> + +<p>This is the fun part! Here you get to choose the colours, fonts, backgrounds and anything else you’d like for your +language file.</p> + +<p>Here’s an example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +<span class="xtra li2"><span class="de2">28</span></span>29 +<span class="xtra li2"><span class="de2">30</span></span>31 +<span class="xtra li2"><span class="de2">32</span></span>33 +<span class="xtra li2"><span class="de2">34</span></span>35 +<span class="xtra li2"><span class="de2">36</span></span>37 +<span class="xtra li2"><span class="de2">38</span></span>39 +</pre></td><td class="de1"><pre class="de1"><span class="st_h">'STYLES'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #b1b100;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #000000; font-weight: bold;'</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'color: #000066;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'COMMENTS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">'color: #808080; font-style: italic;'</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">'color: #808080; font-style: italic;'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'MULTI'</span> <span class="sy0">=></span> <span class="st_h">'color: #808080; font-style: italic;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ESCAPE_CHAR'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #000099; font-weight: bold;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'BRACKETS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #66cc66;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'STRINGS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #ff0000;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #cc66cc;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'METHODS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #006600;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #66cc66;'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'REGEXPS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">'color: #0000ff;'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="st_h">'SCRIPT'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">''</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span><span class="sy0">,</span></pre></td></tr></tbody></table> + +<p>Note that all style rules should end with a semi-colon! This is important: <abbr title="Generic Syntax Highlighter">GeSHi</abbr> may add extra rules to the rules you +specify (and will do so if a user tries to change your styles on the fly), so the last semi-colon in any stylesheet +rule is important!</p> + +<p>All strings here should contain valid stylesheet declarations (it’s also fine to have the empty string).</p> + +<ul> +<li><strong>‘KEYWORDS’:</strong> This is an array, from keyword index to style. The index you use is the index you used in +the keywords section to specify the keywords belonging to that group.</li> +<li><strong>‘COMMENTS’:</strong> This is an array, from single-line comment index to style for that index. The index ‘MULTI’ is +used for multiline comments (and cannot be an array). COMMENT_REGEXP use the style given for their key as +if they were single-line comments.</li> +<li><strong>‘ESCAPE_CHAR’, ‘BRACKETS’ and ‘METHODS’:</strong> These are arrays with only one index: 0. You cannot add other indices to +these arrays.</li> +<li><strong>‘STRINGS’:</strong> This defines the various styles for the Quotemarks you defined earlier. If you don’t use +multiple styles for strings there’s only one index: 0. Please also add this index in case no strings are present.</li> +<li><strong>‘NUMBERS’:</strong> This sets the styles used to highlight numbers. The format used here depends on the format used to +set the formats of numbers to highlight. If you just used an integer (bitmask) for numbers, you have to either +specify one key with the respective constant, and\or include a key 0 as a default style. If you used an +array for the number markup, copy the keys used there and assign the styles accordingly.</li> +<li><strong>‘SYMBOLS’:</strong> This provides one key for each symbol group you defined above. If you used the flat usage +make sure you include a key for symbols group 0.</li> +<li><strong>‘REGEXPS’:</strong> This is an array with a style for each matching regex. Also, since 1.0.7.21, you can specify the +name of a function to be called, that will be given the text matched by the regex, each time a match is found. +Note that my testing found that <code>create_function</code> would not work with this due to a <abbr title="PHP: HTML Preprocessor">PHP</abbr> bug, so you have to +put the function definition at the top of the language file. Be sure to prefix the function name +with <code>geshi_[languagename]_</code> as to not conflict with other functions!</li> +<li><strong>‘SCRIPT’:</strong> For languages that use script delimiters, this is where you can style each block of script. For +example, <abbr title="Hypertext Markup Language">HTML</abbr> and <abbr title="Extensible Markup Language">XML</abbr> have blocks that begin with < and end with > (i.e. tags) and blocks that begin with & and +end with ; (i.e. character entities), and you can set a style to apply to each whole block. You specify the +delimiters for the blocks below. Note that many languages will not need this feature.</li> +</ul> + +<h4 id="language-file-urls">4.3.6 URLs for Functions</h4><div class="nav"><a href="#language-file-styles">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-numbers-support">Next</a></div> + +<p>This section lets you specify a url to visit for each keyword group. Useful for pointing functions at their online +manual entries.</p> + +<p>Here is an example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span></pre></td><td class="de1"><pre class="de1"><span class="st_h">'URLS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> <span class="st_h">'http://www.php.net/{FNAME}'</span><span class="sy0">,</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st_h">''</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>The indices of this array correspond to the keyword groups you specified in the keywords section. The string <code>{FNAME}</code> +marks where the name of the function is substituted in. So for the example above, if the keyword being highlighted is +“echo”, then the keyword will be a URL pointing to <code>http://www.php.net/echo</code>. Because some languages (Java!) don’t +keep a uniform URL for functions/classes, you may have trouble in creating a URL for that language (though look in the +java language file for a novel solution to it’s problem)</p> + +<h4 id="language-file-numbers-support">4.3.7 Number Highlighting Support</h4><div class="nav"><a href="#language-file-urls">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-oo-support">Next</a></div> + +<p>If your language supports different formats of numbers (e.g. integers and float representations) and you want +<abbr title="Generic Syntax Highlighter">GeSHi</abbr> to handle them differently you can select from a set of predefined formats.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span></pre></td><td class="de1"><pre class="de1"> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> +<span class="xtra li2"><span class="de2"> GESHI_NUMBER_INT_BASIC <span class="sy0">|</span> GESHI_NUMBER_INT_CSTYLE <span class="sy0">|</span> GESHI_NUMBER_BIN_PREFIX_0B <span class="sy0">|</span></span></span> GESHI_NUMBER_OCT_PREFIX <span class="sy0">|</span> GESHI_NUMBER_HEX_PREFIX <span class="sy0">|</span> GESHI_NUMBER_FLT_NONSCI <span class="sy0">|</span> +<span class="xtra li2"><span class="de2"> GESHI_NUMBER_FLT_NONSCI_F <span class="sy0">|</span> GESHI_NUMBER_FLT_SCI_SHORT <span class="sy0">|</span> GESHI_NUMBER_FLT_SCI_ZERO<span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>All the formats you want <abbr title="Generic Syntax Highlighter">GeSHi</abbr> to recognize are selected via a bitmask that is built by bitwise OR-ing the format constants. +When styling you use these constants to assign the proper styles. A style not assigned will automatically fallback to style group 0.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>For a complete list of formats supported by <abbr title="Generic Syntax Highlighter">GeSHi</abbr> have a look into the sources of geshi.php.</p> + +</div> + +<p>If you want to define your own formats for numbers or when you want to group the style for two or more formats you can use the array syntax.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +</pre></td><td class="de1"><pre class="de1"> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">1</span> <span class="sy0">=></span> GESHI_NUMBER_INT_BASIC <span class="sy0">|</span> GESHI_NUMBER_INT_CSTYLE<span class="sy0">,</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> GESHI_NUMBER_BIN_PREFIX_0B<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">3</span> <span class="sy0">=></span> GESHI_NUMBER_OCT_PREFIX<span class="sy0">,</span></span></span> <span class="nu0">4</span> <span class="sy0">=></span> GESHI_NUMBER_HEX_PREFIX<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">5</span> <span class="sy0">=></span> GESHI_NUMBER_FLT_NONSCI <span class="sy0">|</span> GESHI_NUMBER_FLT_NONSCI_F <span class="sy0">|</span> GESHI_NUMBER_FLT_SCI_SHORT <span class="sy0">|</span> GESHI_NUMBER_FLT_SCI_ZERO</span></span> <span class="br0">)</span><span class="sy0">,</span></pre></td></tr></tbody></table> + +<p>This creates 5 style groups 1..5 that will highlight each of the formats specified for each group. +Styling of these groups doesn’t use the constants but uses the indices you just defined.</p> + +<p>Instead of using those predefined constants you also can assign a PCRE that matches a number when using this advanced format.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>The extended format hasn’t been exhaustively been tested. So beware of bugs there.</p> + +</div> + +<h4 id="language-file-oo-support">4.3.8 Object Orientation Support</h4><div class="nav"><a href="#language-file-numbers-support">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-regexps">Next</a></div> + +<p>Now we’re reaching the most little-used section of a language file, which includes such goodies as object orientation +support and context support. <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can highlight methods and data fields of objects easily, all you need to do is to +tell it to do so and what the “splitter” is between object/method etc.</p> + +<p>Here’s an example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span></pre></td><td class="de1"><pre class="de1"><span class="st_h">'OOLANG'</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"><span class="st_h">'OBJECT_SPLITTER'</span> <span class="sy0">=></span> <span class="st_h">'-&gt;'</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>If your language has object orientation, the value of <code>'OOLANG'</code> is true, otherwise it is false. If it is object +orientated, in the <code>'OBJECT_SPLITTER'</code> value you put the <code>htmlentities()</code> version of the “splitter” between +objects and methods/fields. If it is not, then make this the empty string.</p> + +<h4 id="language-file-regexps">4.3.9 Using Regular Expressions</h4><div class="nav"><a href="#language-file-oo-support">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-strict-mode">Next</a></div> + +<p>Regular expressions are a good way to catch any other lexic that fits certain rules but can’t be listed as a keyword. +A good example is variables in <abbr title="PHP: HTML Preprocessor">PHP</abbr>: variables always start with either one or two “$” signs, then alphanumeric +characters (a simplification). This is easy to catch with regular expressions.</p> + +<p>And new to version 1.0.2, there is an advanced way of using regular expressions to catch certain things but highlight +only part of those things. This is particularly useful for languages like <abbr title="Extensible Markup Language">XML</abbr>.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>Regular expressions use the PCRE syntax (perl-style), <em>not</em> the <code class="highlighted php"><span class="kw3">ereg</span><span class="br0">(</span><span class="br0">)</span></code> style!</p> + +</div> + +<p>Here is an example (this time the <abbr title="PHP: HTML Preprocessor">PHP</abbr> file merged with the <abbr title="Extensible Markup Language">XML</abbr> file):</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +</pre></td><td class="de1"><pre class="de1"><span class="nu0">0</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> GESHI_SEARCH <span class="sy0">=></span> <span class="st_h">'(((xml:)?[a-z\-]+))(=)'</span><span class="sy0">,</span></span></span> GESHI_REPLACE <span class="sy0">=></span> <span class="st_h">'\\1'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_MODIFIERS <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> GESHI_BEFORE <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_AFTER <span class="sy0">=></span> <span class="st_h">'\\4'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"><span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> GESHI_SEARCH <span class="sy0">=></span> <span class="st_h">'(>/?[a-z0-9]*(>)?)'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_REPLACE <span class="sy0">=></span> <span class="st_h">'\\1'</span><span class="sy0">,</span></span></span> GESHI_MODIFIERS <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> GESHI_BEFORE <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span></span></span> GESHI_AFTER <span class="sy0">=></span> <span class="st_h">''</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span><span class="nu0">2</span> <span class="sy0">=></span> <span class="st0">"[<span class="es1">\\</span>$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*"</span></pre></td></tr></tbody></table> + +<p>As you can see there are two formats. One is the “simple” format used in <abbr title="Generic Syntax Highlighter">GeSHi</abbr> < 1.0.2, and the other is a more +advanced syntax. Firstly, the simple syntax:</p> + +<ul> +<li><strong>May be in double quotes:</strong> To make it easier for those who always place their regular expressions in double quotes, +you may place any regular expression here in double quotes if you wish.</li> +<li><strong>Don’t use curly brackets where possible:</strong> If you want to use curly brackets (<code>()</code>) then by all means give it a try, +but I’m not sure whether under some circumstances <abbr title="Generic Syntax Highlighter">GeSHi</abbr> may throw a wobbly. You have been warned! If you want to +use brackets, it would be better to use the advanced syntax.</li> +<li><strong>Don’t use the “everything” regex:</strong> (That’s the <code>.*?</code> regex). Use advanced syntax instead.</li> +</ul> + +<p>And now for advanced syntax, which gives you much more control over exactly what is highlighted:</p> + +<ul> +<li><strong>GESHI_SEARCH:</strong> This element specifies the regular expression to search for. If you plan to capture the output, +use brackets (<code>()</code>). See how in the first example above, most of the regular expression is in one set of brackets +(with the equals sign in other brackets). You should make sure that the part of the regular expression that is +supposed to match what is highlighted is in brackets.</li> +<li><strong>GESHI_REPLACE:</strong> This is what the stuff matched by the regular expression will be replaced with. If you’ve +grouped the stuff you want highlighted into brackets in the GESHI_SEARCH element, then you can use <code>\\number</code> +to match that group, where <code>number</code> is a number corresponding to how many open brackets are between the open +bracket of the group you want highlighted and the start of the GESHI_SEARCH string + 1. This may sound confusing, +and it probably is, but if you’re familiar with how <abbr title="PHP: HTML Preprocessor">PHP</abbr>’s regular expressions work you should understand. In the +example above, the opening bracket for the stuff we want highlighted is the very first bracket in the string, so +the number of brackets before that bracket and the start of the string is 0. So we add 1 and get our replacement +string of <code>\\1</code> <small>(whew!)</small>.</li> +</ul> + +<p>If you didn’t understand a word of that, make sure that there are brackets around the string in <code>GESHI_SEARCH</code> +and use <code>\\1</code> for <code>GESHI_REPLACE</code> ;)</p> + +<ul> +<li><strong>GESHI_MODIFIERS:</strong> Specify modifiers for your regular expression. If your regular expression includes the +everything matcher (<code>.*?</code>), then your modifiers should include “s” and “i” (e.g. use ‘si’ for this).</li> +<li><strong>GESHI_BEFORE:</strong>Specifies a bracket group that should appear before the highlighted match (this bracketed group will +not be highlighted). Use this if you had to match what you wanted by matching part of your regexp string to something +before what you wanted to highlight, and you don’t want that part to disappear in the highlighted result.</li> +<li><strong>GESHI_AFTER:</strong>Specifies a bracket group that should appear after the highlighted match (this bracketed group will +not be highlighted). Use this if you had to match what you wanted by matching part of your regexp string to something +after what you wanted to highlight, and you don’t want that part to disappear in the highlighted result.</li> +</ul> + +<p>Is that totally confusing? Here’s the test for if you’re an android or not: If you found that perfectly understandable +then you’re an android ;). Here’s a better example:</p> + +<p>Let’s say that I’m making a language, and variables in this language always start with a dollar sign ($), are always +written in lowercase letters and always end with an ampersand (&). eg:</p> + +<p><code class="highlighted php"><span class="re0">$foo</span><span class="sy0">&</span> <span class="sy0">=</span> <span class="st_h">'bar'</span></code></p> + +<p>I want to highlight <em>only the text between the $ and the &</em>. How do I do that? With simple regular expressions I can’t, +but with advanced, it’s relatively easy:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span></pre></td><td class="de1"><pre class="de1"><span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// search for a dollar sign, then one or more of the characters a-z, then an ampersand</span></span></span> GESHI_SEARCH <span class="sy0">=></span> <span class="st_h">'(\$)([a-z]+)(&)'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// we wanna highlight the characters, which are in the second bracketed group</span></span></span> GESHI_REPLACE <span class="sy0">=></span> <span class="st_h">'\\2'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// no modifiers, since we're not matching the "anything" regex</span></span></span> GESHI_MODIFIERS <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// before the highlighted characters should be the first</span></span></span> <span class="co1">// bracketed group (always a dollar sign in this example)</span> +<span class="xtra li2"><span class="de2"> GESHI_BEFORE <span class="sy0">=></span> <span class="st_h">'\\1'</span><span class="sy0">,</span></span></span> <span class="co1">// after the highlighted characters should be the third</span> +<span class="xtra li2"><span class="de2"> <span class="co1">// bracketed group (always an ampersand in this example)</span></span></span> GESHI_AFTER <span class="sy0">=></span> <span class="st_h">'\\3'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span></pre></td></tr></tbody></table> + +<p>So if someone tried to highlight using my language, all cases of <code>$foo&</code> would turn into:</p> + +<p><code class="highlighted html4strict">$<span class="sc2"><<span class="kw2">span</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">"color: blue;"</span>></span>foo<span class="sc2"><<span class="sy0">/</span><span class="kw2">span</span>><<span class="kw2">span</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">"color: green;"</span>></span><span class="sc1">&amp;</span><span class="sc2"><<span class="sy0">/</span><span class="kw2">span</span>></span></code></p> + +<p>(which would of course be viewed in a browser to get something like <code class="highlighted php"><span class="re0">$foo</span><span class="sy0">&</span></code>)</p> + +<h4 id="language-file-strict-mode">4.3.10 Contextual Highlighting and Strict Mode</h4><div class="nav"><a href="#language-file-regexps">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-parser-control">Next</a></div> + +<p>For languages like <abbr title="Hypertext Markup Language">HTML</abbr>, it’s good if we can highlight a tag (like <code class="highlighted html4strict"><span class="sc2"><<span class="kw2">a</span>></span></code> for example). But how do we stop +every single “a” in the source getting highlighted? What about for attributes? If I’ve got the word “colspan” in my +text I don’t want that highlighted! So how do you tell <abbr title="Generic Syntax Highlighter">GeSHi</abbr> not to highlight in that case? You do it with “Strict Blocks”.</p> + +<p>Here is an example:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span>13 +<span class="xtra li2"><span class="de2">14</span></span>15 +<span class="xtra li2"><span class="de2">16</span></span>17 +<span class="xtra li2"><span class="de2">18</span></span>19 +<span class="xtra li2"><span class="de2">20</span></span>21 +<span class="xtra li2"><span class="de2">22</span></span>23 +<span class="xtra li2"><span class="de2">24</span></span>25 +<span class="xtra li2"><span class="de2">26</span></span>27 +</pre></td><td class="de1"><pre class="de1"><span class="sy1"><?</span> <span class="coMULTI">/* ... */</span> +<span class="xtra li2"><span class="de2"><span class="st_h">'STRICT_MODE_APPLIES'</span> <span class="sy0">=></span> GESHI_MAYBE<span class="sy0">,</span></span></span><span class="st_h">'SCRIPT_DELIMITERS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'<?php'</span> <span class="sy0">=></span> <span class="st_h">'?>'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'<?'</span> <span class="sy0">=></span> <span class="st_h">'?>'</span></span></span> <span class="br0">)</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'<%'</span> <span class="sy0">=></span> <span class="st_h">'%>'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'<script language="php">'</span> <span class="sy0">=></span> <span class="st_h">'</script>'</span></span></span> <span class="br0">)</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="st0">"/(<\?(?:php)?)(?:'(?:[^'<span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>.)*?'|<span class="es1">\"</span>(?:[^<span class="es1">\"</span><span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>.)*?<span class="es1">\"</span>|\/\*(?!\*\/).*?\*\/|.)*?(\?>|\Z)/sm"</span><span class="sy0">,</span></span></span> <span class="nu0">5</span> <span class="sy0">=></span> <span class="st0">"/(<%)(?:'(?:[^'<span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>.)*?'|<span class="es1">\"</span>(?:[^<span class="es1">\"</span><span class="es1">\\</span><span class="es1">\\</span>]|<span class="es1">\\</span><span class="es1">\\</span>.)*?<span class="es1">\"</span>|\/\*(?!\*\/).*?\*\/|.)*?(%>|\Z)/sm"</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span><span class="sy0">,</span></span></span><span class="st_h">'HIGHLIGHT_STRICT_BLOCK'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">0</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="nu0">1</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">2</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="nu0">3</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="nu0">4</span> <span class="sy0">=></span> <span class="kw4">true</span><span class="sy0">,</span></span></span> <span class="nu0">5</span> <span class="sy0">=></span> <span class="kw4">true</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span><span class="coMULTI">/* ... */</span> <span class="sy1">?></span></pre></td></tr></tbody></table> + +<p>What is strict mode? Strict mode says that highlighting only occurs inside the blocks you specify. You can see from +the example above that highlighting will only occur if the source is inside <code class="highlighted php"><span class="kw2"><?php</span> <span class="sy0">...</span> <span class="sy1">?></span></code> (though note the +<code>GESHI_MAYBE</code>!). Here are some points about strict highlighting:</p> + +<ul> +<li><strong>‘STRICT_MODE_APPLIES’:</strong> This takes three values (all constants): + +<ul> +<li><code>GESHI_ALWAYS</code>: Strict mode always applies for all of the blocks you specify. Users of your language +file cannot turn strict mode off. This should be used for markup languages.</li> +<li><code>GESHI_NEVER</code>: Strict mode is never used. Users of your language file cannot turn strict mode on. Use this +value if there is no such thing as a block of code that would not be highlighted in your language +(most languages, like C, Java etc. use this because anything in a C file should be highlighted).</li> +<li><code>GESHI_MAYBE</code>: Strict mode *sometimes* applies. It defaults to “off”. Users can turn strict mode on if +they please. If strict mode is off then everything in the source will be highlighted, even things outside +the strict block markers. If strict mode is on then nothing outside strict block markers will be highlighted.</li> +</ul></li> +<li><strong>‘SCRIPT_DELIMITERS’:</strong> This is an array of script delimiters, in the format of the above. The indices are use in the +‘SCRIPT’ part of the styles section for highlighting everything in a strict block in a certain way. +For example, you could set up your language file to make the background yellow of any code inside a strict +block this way. The delimiters are in the form <code class="highlighted php"><span class="st_h">'OPEN'</span> <span class="sy0">=></span> <span class="st_h">'CLOSE'</span></code>. Delimiters can be of any +length > 0. Delimiters are <em>not</em> formatted as if they were run through <code class="highlighted php"><span class="kw3">htmlentities</span><span class="br0">(</span><span class="br0">)</span></code>!</li> +<li><strong>‘HIGHLIGHT_STRICT_BLOCK’:</strong> specifies whether any highlighting should go on inside each block. Most of +the time this should be true, but for example, in the <abbr title="Extensible Markup Language">XML</abbr> language file highlighting is turned off for +blocks beginning with <code class="highlighted html4strict"><span class="sc0"><!DOCTYPE</span></code> and ending with <code class="highlighted html4strict">></code>. However, you can still +style the overall block using the method described above, and the <abbr title="Extensible Markup Language">XML</abbr> language file does just that.</li> +</ul> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>The delimiters should be in <em>reverse alphabetical order</em>. Note that in the above example, <code class="highlighted php"><span class="kw2"><?php</span></code> + comes before <code class="highlighted php"><span class="sy1"><?</span></code>.</p> + +</div> + +<p>Since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 instead of specifying an array with starter and ender you may also provide a regular expression +that matches <em>the full block</em> you wish to highlight. If the regular expression match starts at the same position +as a previous array declaration the Regexp match is taken. This is to allow for a fall-back when a preg_match +doesn’t quite work as expected so you still get reasonably well results.</p> + +<p>If you didn’t get this, you might want to look into the <abbr title="PHP: HTML Preprocessor">PHP</abbr> or <abbr title="Hypertext Markup Language">HTML</abbr> language files as this feature is used there +to fix some issues that have been there for about 3 years.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>For <abbr title="PHP: HTML Preprocessor">PHP</abbr> versions <4.3.3 Strict Block Regexps are completely ignored due to problems in those version + that would cause loads of warning messages otherwise.</p> + +</div> + +<h4 id="language-file-parser-control">4.3.11 Special Parser Settings (Experimental)</h4><div class="nav"><a href="#language-file-strict-mode">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#language-file-tidying-up">Next</a></div> + +<p>Sometimes it is necessary for a language to render correctly to tweak some of the assumptions <abbr title="Generic Syntax Highlighter">GeSHi</abbr> usually makes to match the behaviour your language expects. +To achieve this there is an experimental section called <code class="highlighted php"><span class="st_h">'PARSER_CONTROL'</span></code> which is optional and should be used only if necessary. +With the help of this section some internal parameters of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> can be set which are not overrideable by the API and thus their use should be limited as much as possible.</p> + +<p>The syntax of the <strong>PARSER_CONTROL</strong> basically resembles an array structure simular to the one found in the rest of the language file. All subsections of the <strong>PARSER_CONTROL</strong> are optional. +If a given setting isn’t present the usual default values of <abbr title="Generic Syntax Highlighter">GeSHi</abbr> are used. +No validation of settings is performed for these settings. Also note that unknown settings are silently ignored.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>All <strong>PARSER_CONTROL</strong> settings are experimental and subject to change. + So if you need a special setting in a public language file you should consider requesting it upstream. + This is also the reason why documentation on these settings will only cover broad usage information as the underlying implementation might change without further notice.</p> + +</div> + +<p>One of the most common reasons why you might want to use the <strong>PARSER_CONTROL</strong> settings is to tweak what characters are allowed to surround a keyword. +Usually <abbr title="Generic Syntax Highlighter">GeSHi</abbr> checks for a fixed set of characters like brackets and common symbols that denote the word boundary for a keyword. +If this set conflicts with your language (e.g. - is allowed inside a keyword) or you want to limit the usage of a keyword to certain areas (e.g. for <abbr title="Hypertext Markup Language">HTML</abbr> tag names only match after <) you can change those conditions here.</p> + +<p>Keyword boundary rules can either be set globally (directly within the PARSER_CONTROL’s KEYWORDS section or on a per-group basis. +E.g. the following sample from the <abbr title="Hypertext Markup Language">HTML</abbr> language file sets different settings for keyword matching only for Keyword Group 2 and leaves the other groups alone.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span></pre></td><td class="de1"><pre class="de1"> <span class="st_h">'PARSER_CONTROL'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="nu0">2</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'DISALLOWED_BEFORE'</span> <span class="sy0">=></span> <span class="st_h">'(?<=&lt;|&lt;\/)'</span><span class="sy0">,</span></span></span> <span class="st_h">'DISALLOWED_AFTER'</span> <span class="sy0">=></span> <span class="st_h">'(?=\s|\/|&gt;)'</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span></pre></td></tr></tbody></table> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>The name <code class="highlighted php"><span class="st_h">'DISALLOWED_BEFORE'</span></code> and <code class="highlighted php"><span class="st_h">'DISALLOWED_AFTER'</span></code> might sound confusing at first, since they don’t define what to prevent, but what to match in order to find a keyword. + The reason for this strange naming is based in the original implementation of this feature when Nigel implemented this in the old parser statically. + When this implementation was brought out via the <strong>PARSER_CONTROL</strong> settings the original naming wasn’t altered since at that time this really was a blacklist of characters. + Later on this implementation was changed from a blacklist of characters to a part of a PCRE regexp, but leaving the name. + The naming might be subject to change though.</p> + +</div> + +<p>Another option you can change since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8.3 is whether to treat spaces within keywords as literals (only a single space as given) or if the space should match any whitespace at that location. +The following code will enable this behaviour for the whole keyword set. As said above you can choose to enable this for single keyword groups only though.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +</pre></td><td class="de1"><pre class="de1"> <span class="st_h">'PARSER_CONTROL'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'KEYWORDS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'SPACE_AS_WHITESPACE'</span> <span class="sy0">=></span> <span class="kw4">true</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span><span class="sy0">,</span></pre></td></tr></tbody></table> + +<p>Another option of interest might be disabling certain features for a given language. +This might come in handy if the language file you are working on doesn’t support a given function or highlighting certain aspects won’t work properly or would interfere with custom implementations using regular expressions.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +<span class="xtra li2"><span class="de2">8</span></span>9 +<span class="xtra li2"><span class="de2">10</span></span>11 +<span class="xtra li2"><span class="de2">12</span></span></pre></td><td class="de1"><pre class="de1"> <span class="st_h">'PARSER_CONTROL'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ENABLE_FLAGS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'ALL'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'NUMBERS'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span></span></span> <span class="st_h">'METHODS'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'SCRIPT'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span></span></span> <span class="st_h">'SYMBOLS'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'ESCAPE_CHAR'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span></span></span> <span class="st_h">'BRACKETS'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'STRINGS'</span> <span class="sy0">=></span> GESHI_NEVER<span class="sy0">,</span></span></span> <span class="br0">)</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span></pre></td></tr></tbody></table> + +<p>Inside the <code class="highlighted php"><span class="st_h">'ENABLE_FLAGS'</span></code> section follows an array of <code class="highlighted php"><span class="st_h">'name'</span><span class="sy0">=></span>value</code> pairs. +Valid names are the sections below the <code class="highlighted php"><span class="st_h">'STYLES'</span></code> section (well, not exactly, but you can look there for what the features are called inside <abbr title="Generic Syntax Highlighter">GeSHi</abbr>). +Valid values are the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> constants <code class="highlighted php">GESHI_NEVER</code> (don’t process this feature), <code class="highlighted php">GESHI_ALWAYS</code> (always process this feature, ignore the user) and <code class="highlighted php">GESHI_MAYBE</code> (listen to the user if he want’s this highlighted). +The value <code class="highlighted php">GESHI_MAYBE</code> is the default one and thus needs not to be set explicitely.</p> + +<p>Another setting available through the <strong>PARSER_CONTROL</strong> settings is the possibility to limit the allowed characters before an single line comment.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +</pre></td><td class="de1"><pre class="de1"> <span class="st_h">'PARSER_CONTROL'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'COMMENTS'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'DISALLOWED_BEFORE'</span> <span class="sy0">=></span> <span class="st_h">'$'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span></pre></td></tr></tbody></table> + +<p>With the current implementation the DISALLOWED_BEFORE COMMENT-specific setting is a list of characters. But this is subject to change.</p> + +<div class="note"> + +<div class="note-header">Note:</div> + +<p>There is no <code class="highlighted php"><span class="st_h">'DISALLOWED_AFTER'</span></code> setting with the <code class="highlighted php"><span class="st_h">'COMMENTS'</span></code>-<strong>PARSER_CONTROL</strong>.</p> + +</div> + +<p>Another <strong>PARSER_CONTROL</strong> setting for the environment around certain syntactic constructs refers to the handling of object-oriented languages.</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +<span class="xtra li2"><span class="de2">4</span></span>5 +<span class="xtra li2"><span class="de2">6</span></span>7 +</pre></td><td class="de1"><pre class="de1"> <span class="st_h">'PARSER_CONTROL'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'OOLANG'</span> <span class="sy0">=></span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">(</span></span></span> <span class="st_h">'MATCH_BEFORE'</span> <span class="sy0">=></span> <span class="st_h">''</span><span class="sy0">,</span> +<span class="xtra li2"><span class="de2"> <span class="st_h">'MATCH_AFTER'</span> <span class="sy0">=></span> <span class="st_h">'[a-zA-Z_][a-zA-Z0-9_]*'</span><span class="sy0">,</span></span></span> <span class="st_h">'MATCH_SPACES'</span> <span class="sy0">=></span> <span class="st_h">'[\s]*'</span> +<span class="xtra li2"><span class="de2"> <span class="br0">)</span></span></span> <span class="br0">)</span></pre></td></tr></tbody></table> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>Please note that the settings discussed in this section are experimental and might be changed, removed or altered in their meaning at any time.</p> + +</div> + +<h4 id="language-file-tidying-up">4.3.12 Tidying Up</h4><div class="nav"><a href="#language-file-parser-control">Previous</a> | <a href="#language-file-sections">Top</a> | <a href="#lang-validation">Next</a></div> + +<p>All language files should end with:</p> + +<table class="php geshicode"><thead><tr><td colspan="2" class="head">PHP code</td></tr></thead><tbody><tr class="li1"><td class="ln"><pre class="de1">1 +<span class="xtra li2"><span class="de2">2</span></span>3 +</pre></td><td class="de1"><pre class="de1"><span class="br0">)</span><span class="sy0">;</span> +<span class="xtra li2"><span class="de2"> </span></span><span class="sy1">?></span></pre></td></tr></tbody></table> + +<p>That is the string content <code class="highlighted php"><span class="st0">"<span class="es1">\n</span>);<span class="es1">\n</span>?><span class="es1">\n</span>"</span></code>.</p> + +<div class="caution"> + +<div class="caution-header">Caution:</div> + +<p>Make sure that there is EXACTLY one linebreak character at the end. If you accidentially include more + you might end up with messages like “Headers already sent”.</p> + +</div> + +<h3 id="lang-validation">4.4 Validating your language file</h3><div class="nav"><a href="#language-file-tidying-up">Previous</a> | <a href="#language-files">Top</a> | <a href="#method-constant-reference">Next</a></div> + +<p>Since <abbr title="Generic Syntax Highlighter">GeSHi</abbr> 1.0.8 there is a new script <code>langcheck.php</code> in the contrib directory that scans all +language files it finds in the geshi/ subdirectory of the <abbr title="Generic Syntax Highlighter">GeSHi</abbr> installation for mistakes.</p> + +<p>Please make sure that your language does not contain any mistakes that this script shows you when sending in +your language file for inclusion into the official release as this saves work for us when including your file. +Also you can be sure your language file will work as expected once your language file validates correctly.</p> + +<p>Please note that not all of the language files shipped with <abbr title="Generic Syntax Highlighter">GeSHi</abbr> are fully valid yet, but we’re working on it +and are happy about every patch we get!</p> + +<h2 id="method-constant-reference">5 Method/Constant Reference</h2><div class="nav"><a href="#lang-validation">Previous</a></div> + +<p>I’m afraid I have been lying for a little while about this now! Since 1.0.7 I have been including a phpdoc API for +the sourcecode in the <a href="api/index.html">api</a> directory, but have forgot to update the documentation! However, it is available, +and may assist you in coding, especially for plugin coders.</p> + +<hr /> + +<p>That’s all, folks!</p> + +<p>I’ve improved the documentation greatly from version 1.0.1, but there may still be problems with it, or it may still +be confusing for you. Or perhaps I was just plain wrong about one point! If so, contact me and I’ll do my best to sort it out.</p> + +<p>In case you were wondering, I’ve finished development of the 1.0.X thread of <abbr title="Generic Syntax Highlighter">GeSHi</abbr>. The only releases I’ll make in this +thread will be of the bug-fix/add language files type. In particular, version 1.0.2 was a “concept” release - testing +how far I could take the highlighting idea (as well as ideas from others).</p> + +<p>I’m planning a code rewrite for 1.2.X, which will be based on a new engine - a “psuedo-tokenizer” engine. Hopefully +it will massively reduce the server load and time taken (by almost eliminating regexps), while providing +superior highlighting. But fear not! The interface and method names should all remain the same ^_^ (though I can’t +say the same for language files!)</p> + +<p>And finally, a couple of people have been asking me: how did you generate that documentation? The amazing answer is: my +brain. And yes, it took a long time, and I don’t recommend doing it this way. And yes, you can borrow the styles if +you like, though flick me an e-mail if you do.</p> + +<p>Anyway, enough blather from me. Get <abbr title="Generic Syntax Highlighter">GeSHi</abbr> working for you already! :D</p> + +<div class="header"> + +<dl> +<dt>Authors:</dt> +<dd>© 2004 - 2007 <a href="mailto:nigel@geshi.org">Nigel McNie</a></dd> + +<dd>© 2007 - 2012 <a href="mailto:BenBE@geshi.org">Benny Baumann</a></dd> + +<dd>© 2008 - 2009 <a href="mailto:mail@milianw.de">Milian Wolff</a></dd> + +<dt><abbr title="Generic Syntax Highlighter">GeSHi</abbr> Website:</dt> +<dd><a href="http://qbnz.com/highlighter">http://qbnz.com/highlighter</a></dd> +</dl> + +</div> + +<div class="footnotes"> +<hr /> +<ol> + +<li id="fn:xhtml-strict"> +<p>The PRE header (see <a href="#the-code-container">The Code Container</a>) is not valid <abbr title="Hypertext Markup Language">HTML</abbr>, you might want +to use one of the other header types instead. <a href="#fnref:xhtml-strict" rev="footnote">↩</a></p> +</li> + +<li id="fn:php-version-note"> +<p>Support is granted for <abbr title="PHP: HTML Preprocessor">PHP</abbr> 4.3.0 and above, but especially 4.3.x cannot be guaranteed to +work due to a lack of test systems. If you are forced to use such old <abbr title="PHP: HTML Preprocessor">PHP</abbr> versions complain at your hoster or +contact us if you find compatibility issues so we can try to resolve them. It’s only <abbr title="PHP: HTML Preprocessor">PHP</abbr> 4.4.X and above that +is verified to work. <a href="#fnref:php-version-note" rev="footnote">↩</a></p> +</li> + +<li id="fn:phpbb-note"> +<p>I am no longer working on this MOD, however if someone else wants to they can contact me for more +information. <a href="#fnref:phpbb-note" rev="footnote">↩</a></p> +</li> + +<li id="fn:plugin-only"> +<p>Available as plugin only. In addition, some of the other entries mentioned +here may only have <abbr title="Generic Syntax Highlighter">GeSHi</abbr> available as a plugin. <a href="#fnref:plugin-only" rev="footnote">↩</a></p> +</li> + +</ol> +</div> + </body> +</html>
\ No newline at end of file diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt b/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt new file mode 100644 index 00000000..e0f38ff6 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt @@ -0,0 +1,1741 @@ +[NOTE: This documentation has simply been copy-pasted from the HTML form and is NOT up to date, I recommend you +read that instead] + +GeSHi Documentation +Version 1.0.7.22 + +Author: Nigel McNie, Benny Baumann +Copyright: © 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann +Email: nigel@geshi.org, BenBE@omorphia.de +GeSHi Website: http://qbnz.com/highlighter + +This is the documentation for GeSHi - Generic Syntax Highlighter. The most modern version of this document is available on the web - go to http://qbnz.com/highlighter/documentation.php to view it. + +Any comments, questions, confusing points? Please contact me! I need all the information I can get to make the use of GeSHi and everything related to it (including this documentation) a breeze. +Contents + + * 1. Introduction + o 1.1 Features + o 1.2 About GeSHi + o 1.3 Credits + o 1.4 Feedback + * 2. The Basics + o 2.1 Getting GeSHi + o 2.2 Installing GeSHi + + 2.2.1 Requirements + + 2.2.2 Extracting GeSHi + + 2.2.3 Installation + o 2.3 Basic Usage + * 3. Advanced Features + o 3.1 The Code Container + o 3.2 Line Numbers + + 3.2.1 Enabling Line Numbers + + 3.2.2 Styling Line Numbers + + 3.2.3 Choosing a Start Number + o 3.3 Using CSS Classes + + 3.3.1 Enabling CSS Classes + + 3.3.2 Setting the CSS Class/ID + + 3.3.3 Getting the Stylesheet + + 3.3.4 Using an External Stylesheet + o 3.4 Changing Styles + + 3.4.1 The Overall Styles + + 3.4.2 Line Number Styles + + 3.4.3 Setting Keyword Styles + + 3.4.4 Setting Comment Styles + + 3.4.5 Setting Other Styles + o 3.5 Case Sensitivity and Auto Casing + + 3.5.1 Auto Caps/Nocaps + + 3.5.2 Setting Case Sensitivity + o 3.6 Changing the Source/Language/Path/Charset + + 3.6.1 Changing the Source Code + + 3.6.2 Changing the Language + + 3.6.3 Changing the Path + + 3.6.4 Changing the Character Set + + 3.6.5 Using load_from_file to change the language and source code + o 3.7 Error Handling + o 3.8 Disabling Styling of Some Lexics + o 3.9 Setting the Tab Width + o 3.10 Using Strict Mode + o 3.11 Adding/Removing Keywords + + 3.11.1 Adding a Keyword + + 3.11.2 Removing a Keyword + + 3.11.3 Adding a Keyword Group + + 3.11.4 Removing a Keyword Group + o 3.12 Headers and Footers for your code + + 3.12.1 Keyword Substitution + + 3.12.2 Setting Header Content + + 3.12.3 Setting Footer Content + + 3.12.4 Styling Header Content + + 3.12.5 Styling Footer Content + o 3.13 Keyword URLs + + 3.13.1 Setting a URL for a Keyword Group + + 3.13.2 Disabling URLs for a Keyword Group + + 3.13.3 Disabling all URLs for Keywords + + 3.13.4 Styling Links + + 3.13.5 Setting the Link Target + o 3.14 Using Contextual Importance + o 3.15 Highlighting Special Lines "Extra" + + Specifying the Lines to Highlight Extra + + Styles for the Highlighted Lines + o 3.16 Adding IDs to Each Line + o 3.17 Getting the Time of Styling + * 4 Language Files + o 4.1 An Example Language File + o 4.2 Language File Conventions + o 4.3 Language File Sections + + 4.3.1 The Header + + 4.3.2 The First Indices + + 4.3.3 Keywords + + 4.3.4 Symbols and Case Sensitivity + + 4.3.5 Styles for your Language Files + + 4.3.6 URLs for Functions + + 4.3.7 Object Orientation Support + + 4.3.8 Using Regular Expressions + + 4.3.9 Contextual Highlighting and Strict Mode + + 4.3.10 Tidying Up + * 5 Method/Constant Reference + +1: Introduction +Top | Contents | Next | Previous + +GeSHi is exactly what the acronym stands for: a Generic Syntax Highlighter. As long as you have a language file for almost any computer language - whether it be a scripting language, object orientated, markup or anything in between - GeSHi can highlight it! GeSHi is extremely customisable - the same source can be highlighted multiple times in multiple ways - the same source even with a different language. GeSHi outputs XHTML strict compliant code*, and can make use of CSS to save on the amount of output. And what is the cost for all of this? You need PHP. That's all! + +*Most of the time. Some languages do not output XHTML strict code, and using line numbers with the PRE header is not legal either. These problems will be fixed in 1.2. +1.1: Features +Top | Contents | Next | Previous + +Here are some of the standout features of GeSHi: + + * Programmed in PHP: GeSHi is coded entirely in PHP. This means that where ever you have PHP, you can have GeSHi! Almost any free webhost supports PHP, and GeSHi works fine with PHP > 4.3.0*. + * Support for many languages: GeSHi comes with about 100 languages, including PHP, HTML, CSS, Java, C, Lisp, XML, Perl, Python, ASM and many more! + * XHTML compliant output: GeSHi produces XHTML compliant output, using stylesheets, so you need not worry about GeSHi ruining your claims to perfection in the standards department ;) + * Highly customisable: GeSHi allows you to change the style of the output on the fly, use CSS classes or not, use an external stylesheet or not, use line numbering, change the case of output keywords... the list goes on and on! + * Flexible: Unfortunately, GeSHi is quite load/time intensive for large blocks of code. However, you want speed? Turn off any features you don't like, pre-make a stylesheet and use CSS classes to reduce the amount of output and more - it's easy to strike a balance that suits you. + +This is just a taste of what you get with GeSHi - the best syntax highlighter for the web in the world! + +*Support is granted for PHP 4.3.0 and above, but especially 4.3.x cannot be guaranteed to work due to a lack of test systems. If you are forced to use such old PHP versions complain at your hoster or contact us if you find compatibility issues so we can try to resolve them. It's only PHP 4.4.X and above that is verified to work. +1.2: About GeSHi +Top | Contents | Next | Previous + +GeSHi started as a mod for the phpBB forum system, to enable highlighting of more languages than the available (which can be roughly estimated to exactly 0 ;)). However, it quickly spawned into an entire project on its own. But now it has been released, work continues on a mod for phpBB* - and hopefully for many forum systems, blogs and other web-based systems. + +*I am no longer working on this MOD, however if someone else wants to they can contact me for more information. + +Several systems are using GeSHi now, including: + + * Dokuwiki - An advanced wiki engine + * gtk.php.net - Their manual uses GeSHi for syntax highlighting + * WordPress - A powerful blogging system* + * PHP-Fusion - A constantly evovling CMS + * SQL Manager - A Postgres DBAL + * Mambo - A popular open source CMS + * MediaWiki - A leader in Wikis* + * TikiWiki - A megapowerful Wiki/CMS + * TikiPro - Another powerful Wiki based on Tikiwiki + * RWeb - A site-building tool + +* Available as plugin only. In addition, some of the other entries mentioned here may only have GeSHi available as a plugin. + +GeSHi is the original work of Nigel McNie. The project was later handed over to Benny Baumann. Others have helped with aspects of GeSHi also, they're mentioned in the THANKS file. +1.3: Credits +Top | Contents | Next | Previous + +Many people have helped out with GeSHi, whether by creating language files, submitting bug reports, suggesting new ideas or simply pointing out a new idea or something I'd missed. All of these people have helped to build a better GeSHi, you can see them in the THANKS file. + +Do you want your name on this list? Why not make a language file, or submit a valid bug? Or perhaps help me with an added feature I can't get my head around, or suggest a new feature, or even port GeSHi to anothe language? There's lots you can do to help out, and I need it all :) +1.4: Feedback +Top | Contents | Next | Previous + +I need your feedback! ANYthing you have to say is fine, whether it be a query, congratulations, a bug report or complaint, I don't care! I want to make this software the best it can be, and I need your help! You can contact me in the following ways: + + * E-mail: nigel@geshi.org + * Forums: Sourceforge.net Forums or GeSHi home forums + +Remember, any help I am grateful for :) +2: The Basics +Top | Contents | Next | Previous + +In this section, you'll learn a bit about GeSHi, how it works and what it uses, how to install it and how to use it to perform basic highlighting. +2.1: Getting GeSHi +Top | Contents | Next | Previous + +If you're reading this and don't have GeSHi, that's a problem ;). So, how do you get your hands on it? Visit http://qbnz.com/highlighter/downloads.php to obtain the latest version. +2.2: Installing GeSHi +Top | Contents | Next | Previous + +Installing GeSHi is a snap, even for those most new to PHP. There's no tricks involved. Honest! +2.2.1: Requirements +Top | Contents | Next | Previous + +GeSHi requires the following to be installable: + + * PHP. It's untested with anything other below 4.4.X. I hope to extend this range soon. I see no reason why it won't work with any version of PHP above 4.3.0. + * Approximately 2 megabytes of space. The actual script is small - around 150K - but most of the size comes from the large number of language files (over 100!). If you're pushed for space, make sure you don't upload to your server the docs/ or contrib/ directory, and you may want to leave out any language files that don't take your fancy either. + +As you can see, the requirements are very small. If GeSHi does NOT work for you in a particular version of PHP, let me know why and I'll fix it. + +Packages come in .zip, .tar.gz and .tar.bz2 format, so there's no complaining about whether it's available for you. *nix users probably want .tar.gz or .tar.bz2 and windows users probably want .zip. +2.2.2: Extracting GeSHi +Top | Contents | Next | Previous + +To extract GeSHi in Linux (.tar.gz): + + 1. Open a shell + 2. cd to the directory where the archive lies + 3. Type tar -xzvf [filename] where [filename] is the name of the archive (typically GeSHi-1.X.X.tar.gz) + 4. GeSHi will be extracted to its own directory + +To extract GeSHi in Windows (.zip): + + 1. Open Explorer + 2. Navigate to the directory where the archive lies + 3. Extract the archive. The method you use will depend on your configuration. Some people can right-click upon the archive and select "Extract" from there, others may have to drag the archive and drop it upon an extraction program. + +To extract from .zip you'll need an unzipping program - unzip in Linux, or Winzip, Winrar or similar for Windows. +2.2.3: Installation +Top | Contents | Next | Previous + +GeSHi is nothing more than a PHP class with related language support files. Those of you familiar with PHP can then guess how easy the installation will be: simply copy it into your include path somewhere. You can put it wherever you like in this include path. I recommend that you put the language files in a subdirectory of your include path too - perhaps the same subdirectory that geshi.php is in. Remember this path for later. + +If you don't know what an include path is, don't worry. Simply copy GeSHi to your webserver. So for example, say your site is at http://mysite.com/myfolder, you can copy GeSHi to your site so the directory structure is like this: + +http://mysite.com/myfolder/geshi/[language files] +http://mysite.com/myfolder/geshi.php + +Or you can put it in any subdirectory you like: + +http://mysite.com/myfolder/includes/geshi/[language files] +http://mysite.com/myfolder/includes/geshi.php + +Caution: + +When using GeSHi on a live site, the only directory required is the geshi/ subdirectory. Both contrib/ and docs/ are worthless, and furthermore, as some people discovered, one of the files in contrib had a security hole (fixed as of 1.0.7.3). I suggest you delete these directories from any live site they are on. +2.3: Basic Usage +Top | Contents | Next | Previous + +Use of GeSHi is very easy. Here's a simple example: +// +// Include the GeSHi library +// +include_once('geshi.php'); + +// +// Define some source to highlight, a language to use +// and the path to the language files +// +$source = '$foo = 45; +for ( $i = 1; $i < $foo; $i++ ) +{ + echo "$foo<br />\n"; + --$foo; +}'; +$language = 'php'; +// +// Create a GeSHi object +// +$geshi =& new GeSHi($source, $language); + +// +// And echo the result! +// +echo $geshi->parse_code(); + +As you can see, there's only three really important lines: +include_once('geshi.php'); + +This line includes the GeSHi class for use +$geshi = new GeSHi($source, $language); + +This line creates a new GeSHi object, holding the source and the language you want to use for highlighting. +echo $geshi->parse_code(); + +This line spits out the result :) + +So as you can see, simple usage of GeSHi is really easy. Just create a new GeSHi object and get the code! + +Since version 1.0.2, there is a function included with GeSHi called geshi_highlight. This behaves exactly as the php function highlight_string behaves - all you do is pass it the language you want to use to highlight and the path to the language files as well as the source. Here are some examples: +// Simply echo the highlighted code +geshi_highlight($source, 'php', $path); + +// Get the code back, for use later +$code = geshi_highlight($source, 'java', $path, true) + +// Check if there is an error with parsing this code +ob_start(); +$result = geshi_highlight($source, 'perl', $path); +$code = ob_get_contents(); +ob_end_clean(); +if ( !$result ) +{ + // There was an error with highlighting... +} +else +{ + // All OK :) +} + +However, these are really simple examples and doesn't even begin to cover all the advanced features of GeSHi. If you want to learn more, continue on to section 3: Advanced Features. +3: Advanced Features +Top | Contents | Next | Previous + +This section documents the advanced features of GeSHi - strict mode, using CSS classes, changing styles on the fly, disabling highlighting of some things and more. + +In this section there are many code snippets. For all of these, you should assume that the GeSHi library has been included, and a GeSHi object has been created and is referenced by the variable $geshi. Normally, the source, language and path used are arbitary. +3.1 The Code Container +Top | Contents | Next | Previous + +The Code Container has a fundamental effect on the layout of your code before you even begin to style. What is the Code Container? It's the bit of markup that goes around your code to contain it. By default your code is surrounded by a <pre>, but you can also specify a <div>. + +The <pre> header is the default. If you're familiar with HTML you'll know that whitespace is rendered "as is" by a <pre> element. The advantage for you is that if you use <pre> the whitespace you use will appear pretty much exactly how it is in the source, and what's more GeSHi won't have to add a whole lot of <br />'s and non-breaking spaces ( ) to your code to indent it. This saves you source code (and your valuable visitors waiting time and your bandwidth). + +But if you don't like <pre> or it looks stupid in your browser no matter what styles you try to apply to it or something similar, you might want to use a <div> instead. A <div> will result in more source - GeSHi will have to insert whitespace markup - but in return you can wrap long lines of code that would otherwise have your browser's horizontal scrollbar appear. Of course with <div> you can *not* wrap lines if you please. The highlighter demo at the GeSHi home page uses the <div> approach for this reason. + +At this stage there isn't an option to wrap the code in <code> tags (unless you use the function geshi_highlight), partly because of the inconsistent and unexpected ways stuff in <code> tags is highlighted. Besides, <code> is an inline element. But this may become an option in future versions. + +As of GeSHi 1.0.7.2 there is a new header type, that specifies that the code should not be wrapped in anything at all. + +Another requested addition has been made in GeSHi 1.0.7.20 to force GeSHi to create a block around the highlighted source even if this wasn't necessary, thus styles that are applied to the output of GeSHi can directly influence the code only even if headers and footers are present. + +To change/set the header to use, you call the set_header_type() method: +$geshi->set_header_type(GESHI_HEADER_DIV); +// or... +$geshi->set_header_type(GESHI_HEADER_PRE); // or... +$geshi->set_header_type(GESHI_HEADER_NONE); + +Those are the only three arguments you should pass to set_header_type. Passing anything else may cause inconsistencies in what is used as the Code Container (although it *should* simply use a <pre>). Better not to risk it. +Note: + +GESHI_HEADER_DIV, GESHI_HEADER_PRE and GESHI_HEADER_NONE are constants, so don't put them in strings! +Caution: + +The default styles for the <pre> and <div> will be different, especially if you use line numbers!. I have found that a <pre> results in code that is smaller than for that of a <div>, you should rectify this difference by using set_overall_style() if you need to. But be aware of this difference for if you are changing the header type! +3.2: Line Numbers +Top | Contents | Next | Previous + +GeSHi has the ability to add line numbers to your code (see the demo available at http://qbnz.com/highlighter/demo.php to see what can be achieved). Line numbers are a great way to make your code look professional, especially if you use the fancy line numbers feature. +3.2.1: Enabling Line Numbers +Top | Contents | Next | Previous + +To highlight a source with line numbers, you call the enable_line_numbers() method: +$geshi->enable_line_numbers($flag); + +Where $flag is one of the following: + + * GESHI_NORMAL_LINE_NUMBERS - Use normal line numbering + * GESHI_FANCY_LINE_NUMBERS - Use fancy line numbering + * GESHI_NO_LINE_NUMBERS - Disable line numbers (default) + +Normal line numbers means you specify a style for them, and that style gets applied to all of them. Fancy line numbers means that you can specify a different style for each nth line number. You change the value of n (default 5): +$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 37); + +The second parameter is not used in any other mode. Setting it to 0 is the same as simply using normal line numbers. Setting it to 1 applies the fancy style to every line number. +Note: + +The values above are CONSTANTS - so don't put them in strings! +3.2.2 Styling Line Numbers +Top | Contents | Next | Previous + +As of GeSHi 1.0.2, line numbers are added by the use of ordered lists. This solves the old issues of line number styles inheriting from styles meant for the code. Also, this solves an important issue about selecting code. For example, line numbers look nice, but when you go to select the code in your browser to copy it? You got the line numbers too! Not such a good thing, but thankfully this issue is now solved. What is the price? Unfortunately the whole way that styles are inherited/used has changed for those of you who were familiar with 1.0.1, and there is quite a bit more HTML involved. So think carefully about these things before you enable line numbers. + +Now, onto how to style line numbers: + +Styles are set for line numbers using the set_line_style() method: +$geshi->set_line_style('background: #fcfcfc;'); + +If you're using Fancy Line Numbers mode, you pass a second string for the style of the nth line number: +$geshi->set_line_style('background: #fcfcfc;', 'background: #f0f0f0;'); + +The second style will have no effect if you're not using Fancy Line Numbers mode. + +By default, the styles you pass overwrite the current styles. Add a boolean "true" after the styles you specify to combine them with the current styles: +$geshi->set_line_style('background: red;', true); +// or, for fancy line numbers +$geshi->set_line_style('background: red;', 'background: blue;', true); +Note: + +Due to a bug with Firefox the issue that should have been fixed with 1.0.2 has reappeared in another form as Firefox includes extra text\markup into plaintext versions of webpage copies. This can sometimes be useful (actually it's used to get the plaintext version of this documentation), but more often is quite annoying. Best practice so far is to either not use line numbers, or offer the visitor of your page a plaintext version of your source. To learn more have a look at the SF.net BugTracker Issue #1651996. This will hopefully be fixed in GeSHi version 1.2 or as soon as Firefox provides webdevelopers with adequate ways to control this feature - whichever comes first! +Caution: + +When you set line number styles, the code will inherit those styles! This is the main issue to come out of the 1.0.2 release. If you want your code to be styled in a predictable manner, you'll have to call the set_code_style() method to rectify this problem. + +Note also that you cannot apply background colours to line numbers unless you use set_overall_style(). Here's how you'd style: + + 1. Use set_overall_style() to style the overall code block. For example, you can set the border style/colour, any margins and padding etc. using this method. In addition: set the background colour for all the line numbers using this method. + 2. Use set_line_style() to style the foreground of the line numbers. For example, you can set the colour, weight, font, padding etc. of the line numbers using this method. + 3. Use set_code_style() to explicitly override the styles you set for line numbers using set_line_style. For example, if you'd set the line numbers to be bold (or even if you'd only set the fancy line number style to be bold), and you didn't actually want your code to be bold, you'd make sure that font-weight: normal; was in the stylesheet rule you passed to set_code_style + +This is the one major change from GeSHi 1.0.1 - make sure you become familiar with this, and make sure that you check any code you have already styled with 1.0.1 when you upgrade to make sure nothing bad happens to it. +3.2.3: Choosing a Start Number +Top | Contents | Next | Previous + +As of GeSHi 1.0.2, you can now make the line numbers start at any number, rather than just 1. This feature is useful if you're highlighting code from a file from around a certain line number in that file, as an additional guide to those who will view the code. You set the line numbers by calling the start_line_numbers_at() method: +$geshi->start_line_numbers_at($number); + +$number must be a positive integer (or zero). If it is not, GeSHi will convert it anyway. + +If you have not enabled line numbers, this will have no effect. +Caution: + +Although I'd like GeSHi to have XHTML strict compliance, this feature will break compliancy (however transitional compliancy remains). This is because the only widely supported way to change the start value for line numbers is by using the start="number" attribute of the <ol> tag. Although CSS does provide a mechanism for doing this, it is only supported in Opera versions 7.5 and above (not even Firefox supports this). +3.3: Using CSS Classes +Top | Contents | Next | Previous + +Using CSS to highlight your code instead of in-lining the styles is a definate bonus. Not only is it more compliant (the w3c is deprecating the style attribute in XHTML 2.0) but it results in far less outputted code - up to a whopping 90% saving - which makes a *huge* difference to those unlucky of us on modems! +3.3.1: Enabling CSS Classes +Top | Contents | Next | Previous + +By default, GeSHi doesn't use the classes, so it's easy just to whack out some highlighted code if you need without worrying about stylesheets. However, if you're a bit more organised about it, you should use the classes ;). To turn the use of classes on, you call the enable_classes() method: +$geshi->enable_classes(); + +If you want to turn classes OFF for some reason later: +$geshi->enable_classes(false); + +If classes are enabled when parse_code() is called, then the resultant source will use CSS classes in the output, otherwise it will in-line the styles. The advantages of using classes are great - the reduction in source will be very noticeable, and what's more you can use one stylesheet for several different highlights on the same page. In fact, you can even use an external stylesheet and link to that, saving even more time and source (because stylesheets are cached by browsers). +Note: + +There have been problems with inline styles and the Symbol Highlighting added in 1.0.7.21. If you can you should therefore turn CSS classes ON to avoid those issues. +Caution: + +This should be the very first method you call after creating a new GeSHi object! That way, various other methods can act upon your choice to use classes correctly. In theory, you could call this method just before parsing the code, but this may result in unexpected behaviour. +3.3.2: Setting the CSS class and ID +Top | Contents | Next | Previous + +You can set an overall CSS class and id for the code. This is a good feature that allows you to use the same stylesheet for many different snippets of code. You call set_overall_class() and set_overall_id to accomplish this: +$geshi->set_overall_class('mycode'); +$geshi->set_overall_id('dk48ck'); + +The default classname is the name of the language being used. This means you can use just the one stylesheet for all sources that use the same language, and incidentally means that you probably won't have to call these methods too often. + +CSS IDs are supposed to be unique, and you should use them as such. Basically, you can specify an ID for your code and then use that ID to highlight that code in a unique way. You'd do this for a block of code that you expressly wanted to be highlighted in a different way (see the section below on gettting the stylesheet for your code for an example). +3.3.3: Getting the stylesheet for your code +Top | Contents | Next | Previous + +The other half of using CSS classes is getting the stylesheet for use with the classes. GeSHi makes it very easy to get a stylesheet for your code, with one easy method call: +$geshi->enable_classes(); + +// Here we have code that will spit out a header for +// a stylesheet. For example: + +echo '<html> +<head><title>Code</title> +<style type="text/css"> +<!--'; + +// Echo out the stylesheet for this code block + +echo $geshi->get_stylesheet(); + +// And continue echoing the page + +echo '--> +</style></head> +<body>'; + +The get_stylesheet() method gets the stylesheet for your code in one easy call. All you need to do is output it in the correct place. As you can also see, you don't even have to enable class usage to get the stylesheet nessecary either - however not enabling classes but using the stylesheet may result in problems later. + +By default, get_stylesheet() tries to echo the least amount of code possible. Although currently it doesn't check to see if a certain lexic is even in the source, you can expect this feature in the future. At least for the present however, if you explicitly disable the highlighting of a certain lexic, or disable line numbers, the related CSS will not be outputted. This may be a bad thing for you perhaps you're going to use the stylesheet for many blocks of code, some with line numbers, others with some lexic enabled where this source has it disabled. Or perhaps you're building an external stylesheet and want all lexics included. So to get around this problem, you do this: +$geshi->get_stylesheet(false); + +This turns economy mode off, and all of the stylesheet will be outputted regardless. + +Now lets say you have several snippets of code, using the same language. In most of them you don't mind if they're highlighted the same way (in fact, that's exactly what you want) but in one of them you'd like the source to be highlighted differently. Here's how you can do that: +// assume path is the default "geshi/" relative to the current directory +$geshi1 = new GeSHi($source1, $lang); +$geshi2 = new GeSHi($source2, $lang); +$geshi3 = new GeSHi($source3, $lang); + +// Turn classes on for all sources +$geshi1->enable_classes(); +$geshi2->enable_classes(); +$geshi3->enable_classes(); + +// Make $geshi3 unique +$geshi3->set_overall_id('different'); + +// +// Methods are called on $geshi3 to change styles... +// + +echo '<html> +<head><title>Code</title> +<style type="text/css"> +<!-- +'; + +// Get the nessecary stylesheets +echo $geshi1->get_stylesheet(); +echo $geshi3->get_stylesheet(); + +echo '--> +</style></head> +<body>'; + + +echo 'Code snippet 1:'; +echo $geshi1->parse_code(); +echo 'Code snippet 2 (same highlighting as 1):'; +echo $geshi2->parse_code(); +echo 'Code snippet 3 (DIFFERENT highlighting):'; +echo $geshi3->parse_code(); + +echo '</body></html>'; + +Before version 1.0.2, you needed to set the class of the code you wanted to be unique to the empty string. This limitation has been removed in version 1.0.2 - if you set the ID of a block of code, all styling will be done based on that ID alone. +3.3.4: Using an External Stylesheet +Top | Contents | Next | Previous + +An external stylesheet can reduce even more the amount of code needed to highlight some source. However there are some drawbacks with this. To use an external stylesheet, it's up to you to link it in to your document, normally with the following HTML: +<html> +<head> +<link rel="stylesheet" type="text/css" href="url_to_stylesheet.css" /> + +In your external stylesheet you put CSS declarations for your code. Then just make sure you're using the correct class (use set_overall_class() to ensure this) and this should work fine. + +This method is great if you don't mind the source always being highlighted the same (in particular, if you're making a plugin for a forum/wiki/other system, using an external stylesheet is a good idea!). It saves a small amount of code and your bandwidth, and it's relatively easy to just change the stylesheet should you need to. However, using this will render the methods that change the styles of the code useless, because of course the stylesheet is no longer being dynamically generated. You can still disable highlighting of certain lexics dynamically, however. +Note: + +As of version 1.0.2, GeSHi comes with a contrib/ directory, which in it contains a "wizard" script for creating a stylesheet. Although this script is by no means a complete solution, it will create the necessary rules for the basic lexics - comments, strings for example. Things not included in the wizard include regular expressions for any language that uses them (PHP and XML are two languages that use them), and keyword-link styles. However, this script should take some of the tedium out of the job of making an external stylesheet. Expect a much better version of this script in version 1.2! +3.4: Changing Styles +Top | Contents | Next | Previous + +One of the more powerful features of GeSHi is the ability to change the style of the output dynamically. Why be chained to the boring styles the language authors make up? You can change almost every single aspect of highlighted code - and can even say whether something is to be highlighted at all. + +If you're confused about "styles", you probably want to have a quick tutorial in them so you know what you can do with them. Checkout the homepage of CSS at http://www.w3.org/Style/CSS. +3.4.1: The Overall Styles +Top | Contents | Next | Previous + +The code outputted by GeSHi is either in a <div> or a <pre> (see the section entitled "The Code Container"), and this can be styled. +$geshi->set_overall_style('... styles ...'); + +Where styles is a string containing valid CSS declarations. By default, these styles overwrite the current styles, but you can change this by adding a second parameter: +$geshi->set_overall_style('color: blue;', true); + +The default styles "shine through" wherever anything isn't highlighted. Also, you can apply more advanced styles, like position: (fixed|relative) etc, because a <div>/<pre> is a block level element. +Note: + +Remember that a <div> will by default have a larger font size than a <pre>, as discussed in the section "The Code Container". +3.4.2: Line Number Styles +Top | Contents | Next | Previous + +You may wish to refer to the section Styling Line Numbers before reading this section. + +As of version 1.0.2, the way line numbers are generated is different, so therefore the way that they are styled is different. In particular, now you cannot set the background style of the fancy line numbers to be different from that of the normal line numbers. + +Line number styles are set by using the method set_line_style: +$geshi->set_line_style($style1, $style2); + +$style1 is the style of the line numbers by default, and $style2 is the style of the fancy line numbers. +Caution: + +Things have changed since 1.0.1! This note is very important - please make sure you check this twice before complaining about line numbers! + +Because of the way that ordered lists are done in HTML, there really isn't normally a way to style the actual numbers in the list. I've cheated somewhat with GeSHi - I've made it possible to use CSS to style the foreground of the line numbers. So therefore, you can change the color, font size and type, and padding on them. If you want to have a pretty background, you must use set_overall_style() to do this, and use set_code_style() to style the actual code! This is explained in the section above: Styling Line Numbers. + +In addition, the styles for fancy line numbers is now the difference between the normal styles and the styles you want to achieve. For example, in GeSHi prior to 1.0.2 you may have done this to style line numbers: +$geshi->set_line_style('color: red; font-weight: bold;', 'color: green; font-weight: bold'); + +Now you instead can do this: +$geshi->set_line_style('color: red; font-weight: bold;', 'color: green;'); + +The font-weight: bold; will automatically carry through to the fancy styles. This is actually a small saving in code - but the difference may be confusing for anyone using 1.0.1 at first. +3.4.3: Setting Keyword Styles +Top | Contents | Next | Previous + +Perhaps the most regular change you will make will be to the styles of a keyword set. In order to change the styles for a particular set, you'll have to know what the set is called first. Sets are numbered from 1 up. Typically, set 1 contains keywords like if, while, do, for, switch etc, set 2 contains null, false, true etc, set 3 contains function inbuilt into the language (echo, htmlspecialchars etc. in PHP) and set 4 contains data types and similar variable modifiers: int, double, real, static etc. However these things are not fixed, and you should check the language file to see what key you want. Having a familiarity with a language file is definately a plus for using it. + +To change the styles for a keyword set, call the set_keyword_group_style() method: +$geshi->set_keyword_group_style($group, $styles); + +Where $group is the group to change the styles for and $styles is a string containing the styles to apply to that group. + +By default, the styles you pass overwrite the current styles. Add a boolean true after the styles you specify to combine them with the current styles: +$geshi->set_keyword_group_style(3, 'color: white;', true); +3.4.4: Setting Comment Styles +Top | Contents | Next | Previous + +To change the styles for a comment group, call the set_comments_style() method: +$geshi->set_comments_style($group, $styles); + +Where $group is either a number corresponding to a single-line comment, or the string 'MULTI' to specify multiline comments: +$geshi->set_comments_style(1, 'font-style: italic;'); +$geshi->set_comments_style('MULTI', 'display: hidden;'); + +By default, the styles you pass overwrite the current styles. Add a boolean true after the styles you specify to combine them with the current styles: +$geshi->set_comments_style(1, 'font-weight: 100;', true); +Note: + +In 1.0.7.22 a new kind of Comments called "COMMENT_REGEXP" has been added. Those are handled by setting single line comment styles. +3.4.5: Setting Other Styles +Top | Contents | Next | Previous + +GeSHi can highlight many other aspects of your source other than just keywords and comments. Strings, Numbers, Methods and Brackets among other things can all also be highlighted. Here are the related methods: +$geshi->set_escape_characters_style($styles[, $preserve_defaults]); +$geshi->set_symbols_style($styles[, $preserve_defaults]); +$geshi->set_strings_style($styles[, $preserve_defaults]); +$geshi->set_numbers_style($styles[, $preserve_defaults]); +$geshi->set_methods_style($key, $styles[, $preserve_defaults]); +$geshi->set_regexps_style($key, $styles[, $preserve_defaults]); + +$styles is a string containing valid stylesheet declarations, while $preserve_defaults should be set to true if you want your styles to be merged with the previous styles. In the case of set_methods_style, you should select a group to set the styles of, check the language files for the number used for each "object splitter". + +Like this was possible for set_method_style a new parameter has been introduced for set_symbols_style too which allows you to select the group of symbols for which you'd like to change your style. $geshi->set_symbols_style($styles[, $preserve_defaults[, $group]]); +If the third parameter is not given, group 0 is assumed. Furthermore you should note that any changes to group 0 are also reflected in the bracket style, i.e. a pass-through call to set_bracket_style is made. +3.5: Case Sensitivity and Auto Casing +Top | Contents | Next | Previous + +Controlling the case of the outputted source is an easy job with GeSHi. You can control which keywords are converted in case, and also control whether keywords are checked in a case sensitive manner. +3.5.1: Auto-Caps/Nocaps +Top | Contents | Next | Previous + +Auto-Caps/Nocaps is a nifty little feature that capitalises or lowercases automatically certain lexics when they are styled. I dabble in QuickBASIC, a dialect of BASIC which is well known for it's capatalisation, and SQL is another language well known for using caps for readability. + +To change what case lexics are rendered in, you call the set_case_keywords() method: +$geshi->set_case_keywords($caps_modifier); + +The valid values to pass to this method are: + + * GESHI_CAPS_NO_CHANGE - Don't change the case of any lexics, leave as they are found + * GESHI_CAPS_UPPER - Uppercase all lexics found + * GESHI_CAPS_LOWER - Lowercase all lexics found + +Caution: + +When I say "lexic", I mean "keywords". Any keyword in any keyword array will be modified using this option! This is one small area of inflexibility I hope to fix in 1.2.X. + +I suspect this will only be used to specify GESHI_CAPS_NO_CHANGE to turn off autocaps for languages like SQL and BASIC variants, like so: +$geshi = new GeSHi($source, 'sql'); +$geshi->set_case_keywords(GESHI_CAPS_NO_CHANGE); // don't want keywords capatalised + +All the same, it can be used for some interesting effects: +$geshi = new GeSHi($source, 'java'); +// Anyone who's used java knows how picky it is about CapitalLetters... +$geshi->set_case_keywords(GESHI_CAPS_LOWER); +// No *way* the source will look right now ;) +3.5.2: Setting Case Sensitivity +Top | Contents | Next | Previous + +Some languages, like PHP, don't mind what case function names and keywords are in, while others, like Java, depend on such pickiness to maintain their bad reputations ;). In any event, you can use the set_case_sensitivity to change the case sensitiveness of a particular keyword group from the default: +$geshi->set_case_sensitivity($key, $sensitivity); + +Where $key is the key of the group for which you wish to change case sensitivness for (see the language file for that language), and $sensitivity is a boolean value - true if the keyword is case sensitive, and false if not. +3.6: Changing the Source, Language, Config Options +Top | Contents | Next | Previous + +What happens if you want to change the source to be highlighted on the fly, or the language. Or if you want to specify any of those basic fields after you've created a GeSHi object? Well, that's where these methods come in. +3.6.1: Changing the Source Code +Top | Contents | Next | Previous + +To change the source code, you call the set_source() method: +$geshi->set_source($newsource); + +Example: +$geshi = new GeSHi($source1, 'php'); + +// Method calls to specify various options... + +$code1 = $geshi->parse_code(); + +$geshi->set_source($source2); +$code2 = $geshi->parse_code(); +3.6.2: Changing the Language +Top | Contents | Next | Previous + +What happens if you want to change the language used for highlighting? Just call set_language(): +$geshi->set_language('newlanguage'); + +Example: +$geshi = new GeSHi($source, 'php'); + +$code = $geshi->parse_code(); + +// Highlight GeSHi's output +$geshi->set_source($code); +$geshi->set_language('html4strict'); +$geshi->enable_classes(false); +echo $geshi->parse_code(); +Note: + +Names are case-insensitive - they will be converted to lower case to match a language file however. So if you're making a language file, remember it should have a name in lower case. +Note: + +What you pass to this method is the name of a language file, minus the .php extension. If you're writing a plugin for a particular application, it's up to you to somehow convert user input into a valid language name. +Caution: + +GeSHi include()s the language file, so be careful to make sure that users can't pass some wierd language name to include any old script! GeSHi tries to strip non-valid characters out of a language name, but you should always do this your self anyway. In particular, language files are always lower-case, with either alphanumeric characters, dashes or underscores in their name. + +At the very least, strip "/" characters out of a language name. +3.6.3: Changing the Language Path +Top | Contents | Next | Previous + +What happens if all of a sudden you want to use language files from a different directory from the current language file location? You call the set_language_path() method: +$geshi->set_language_path($newpath); + +It doesn't matter whether the path has a trailing slash after it or not - only that it points to a valid folder. If it doesn't, that's your tough luck ;) +3.6.4: Changing the Character Set +Top | Contents | Next | Previous +Note: + +As of GeSHi 1.0.7.18, you don't need to use this, as htmlspecialchars is not being used due to a security flaw in it (that is unpatched in even the most recent PHP4 versions, and in PHP5 < 5.2). As long as you set the encoding properly with a php header() call, your foreign characters will be displayed correctly. + +As of version 1.0.3, you can use the method set_encoding to specify the character set that your source is in. Valid names are those names that are valid for the PHP function htmlentities(): +$geshi->set_encoding($encoding); + +There is a table of valid strings for $encoding at the php.net manual linked to above. If you do not specify an encoding, or specify an invalid encoding, the character set used is ISO-8859-1. +Using load_from_file to Change the Language and Source Code +Top | Contents | Next | Previous + +As of GeSHi 1.0.5, you can use the method load_from_file to load the source code and language from a file. Simply pass this method a file name and it will attempt to load the source and set the language. +$geshi->load_from_file($file_name, $lookup); + +$file_name is the file name to use, and $lookup is an optional parameter that contains a lookup array to use for deciding which language to choose. You can use this to override GeSHi's default lookup array, which may not contain the extension of the file you're after, or perhaps does have your extension but under a different language. The lookup array is of the form: + +array( + * 'lang_name' => array('extension', 'extension', ...), + * 'lang_name' ... + * ); + +Also, you can use the method get_language_name_from_extension if you need to convert a file extension to a valid language name. This method will return the empty string if it could not find a match in the lookup, and like load_from_file it accepts an optional second parameter that contains a lookup array. +3.7: Error Handling +Top | Contents | Next | Previous + +What happens if you try to highlight using a language that doesn't exist? Or if GeSHi can't read a required file? The results you get may be confusing. You may check your code over and over, and never find anything wrong. GeSHi provides ways of finding out if GeSHi itself found anything wrong with what you tried to do. After highlighting, you can call the error() method: +$geshi = new GeSHi('hi', 'thisLangIsNotSupported'); + +echo $geshi->error(); // echoes error message + +The error message you will get will look like this: + + GeSHi Error: GeSHi could not find the language thisLangIsNotSupported (using path geshi/) (code 2) + +The error outputted will be the last error GeSHi came across, just like how mysql_error() works. +3.8: Disabling styling of some Lexics +Top | Contents | Next | Previous + +One disadvantage of GeSHi is that for large source files using complex languages, it can be quite slow with every option turned on. Although future releases will concentrate on the speed/resource side of highlighting, for now you can gain speed increases by disabling some of the highlighting options. This is done by using a series of set_*_highlighting methods: + + * set_keyword_group_highlighting($group, $flag): Sets whether a particular $group of keywords is to be highlighted or not. Consult the necessary language file(s) to see what $group should be for each group (typically a positive integer). $flag is false if you want to disable highlighting of this group, and true if you want to re-enable higlighting of this group. If you disable a keyword group then even if the keyword group has a related URL one will not be generated for that keyword. + * set_comments_highlighting($group, $flag): Sets whether a particular $group of comments is to be highlighted or not. Consult the necessary language file(s) to see what $group should be for each group (typically a positive integer, or the string 'MULTI' for multiline comments. $flag is false if you want to disable highlighting of this group, and true if you want to re-enable highlighting of this group. + * set_regexps_highlighting($regexp, $flag): Sets whether a particular $regexp is to be highlighted or not. Consult the necessary language file(s) to see what $regexp should be for each regexp (typically a positive integer, or the string 'MULTI' for multiline comments. $flag is false if you want to disable highlighting of this group, and true if you want to re-enable highlighting of this group. + * The following methods: + o set_escape_characters_highlighting($flag) + o set_symbols_highlighting($flag) + o set_strings_highlighting($flag) + o set_numbers_highlighting($flag) + o set_methods_highlighting($flag) + Work on their respective lexics (e.g. set_methods_highlighting will disable/enable highlighting of methods). For each method, if $flag is false then the related lexics will not be highlighted at all (this means no HTML will surround the lexic like usual, saving on time and bandwidth. + +In case all highlighting should be disabled or reenabled GeSHi provides two methods called disable_highlighting() and enable_highlighting($flag). The optional paramter $flag has been added in 1.0.7.21 and specifies the desired state, i.e. true (default) to turn all highlighting on, or false to turn all highlighting off. Since 1.0.7.21 the method disnable_highlighting() has become deprecated. +3.9: Setting the Tab Width +Top | Contents | Next | Previous + +If you're using the <pre> header, tabs are handled automatically by your browser, and in general you can count on good results. However, if you're using the <div> header, you may want to specify a tab width explicitly. + +Note that tabs created in this fashion won't be like normal tabs - there won't be "tab-stops" as such, instead tabs will be replaced with the specified number of spaces. + +To change the tab width, you call the set_tab_width() method: +$geshi->set_tab_width($width); + +Where $width is the width in spaces that you'd like tabs to be. +3.10: Using Strict Mode +Top | Contents | Next | Previous + +Some languages like to get tricky, and jump in and out of the file that they're in. For example, the vast majority of you reading this will have used a PHP file. And you know that PHP code is only executed if it's within delimiters like <?php and ?> (there are others of course...). So what happens if you do the following in a php file? +<img src="<?php echo rand(1, 100) ?>" /> + +Well normally using GeSHi with PHP, or using a bad highlighter, you'll end up with this: +<img src="<?php echo rand(1, 100) ?>" /> + +What a mess! Especially if you're being slack about where you're putting your quotes, you could end up with the rest of your file as bright red. Fortunately, you can tell GeSHi to be "strict" about just when it highlights and when it does not, using the enable_strict_mode method: +$geshi->enable_strict_mode($mode); + +Where $mode is true or not specified to enable strict mode, or false to disable strict mode if you've already turned it and don't want it now. + +Here's the result: much better! +<img src="<?php echo rand(1, 100) ?>" /> +3.11: Adding/Removing Keywords +Top | Contents | Next | Previous + +Lets say that you're working on a large project, with many files, many classes and many functions. Perhaps also you have the source code on the web and highlighted by GeSHi, perhaps as a front end to CVS, as a learning tool, something to refer to, whatever. Well, why not highlight the names of the functions and classes *your* project uses, as well as the standard functions and classes? Or perhaps you're not interested in highlighting certain functions, and would like to remove them? Or maybe you don't mind if an entire function group goes west in the interest of speed? GeSHi can handle all of this! +3.11.1: Adding a Keyword +Top | Contents | Next | Previous + +If you want to add a keyword to an existing keyword group, you use the add_keyword method: +$geshi->add_keyword($key, $word); + +Where $key is the index of the group of keywords you want to add this keyword to, and $word is the word to add. + +This implies knowledge of the language file to know the correct index. +Note: + +Keywords should contain at least two alphabetical characters (lower or upper case letters only). This is to enable GeSHi to work much faster by not bothering to try to detect keywords in parts of your source where there is no alphabetical characters. +3.11.2: Removing a Keyword +Top | Contents | Next | Previous + +Perhaps you want to remove a keyword from an existing group. Maybe you don't use it and want to save yourself some time. Whatever the reason, you can remove it using the remove_keyword method: +$geshi->remove_keyword($key, $word); + +Where $key is the index of the gropu of keywords that you want to remove this keyword from, and $word is the word to remove. + +This implies knowledge of the language file to know the correct index - most of the time the keywords you'll want to remove will be in group 3, but this is not guaranteed and you should check the language file first. + +This function is silent - if the keyword is not in the group you specified, nothing awful will happen ;) +3.11.3: Adding a Keyword Group +Top | Contents | Next | Previous + +Lets say for your big project you have several main functions and classes that you'd like highlighted. Why not add them as their own group instead of having them highlighted the same way as other keywords? Then you can make them stand out, and people can instantly see which functions and classes are user defined or inbuilt. Furthermore, you could set the URL for this group to point at the API documentation of your project. + +You add a keyword group by using the add_keyword_group method: +$geshi->add_keyword_group($key, $styles, $case_sensitive, $words); + +Where $key is the key that you want to use to refer to this group, $styles is the styles that you want to use to style this group, $case_sensitive is true or false depending on whether you want this group of keywords to be case sensitive or not and $words is an array of words (or a string) of which words to add to this group. For example: +$geshi->add_keyword_group(10, 'color: #600000;', false, array('myfunc_1', 'myfunc_2', 'myfunc_3')); + +Adds a keyword group referenced by index 10, of which all keywords in the group will be dark red, each keyword can be in any case and which contains the keywords "myfunc_1", "myfunc_2" and "myfunc_3". + +After creating such a keyword group, you may call other GeSHi methods on it, just as you would for any other keyword group. +Caution: + +If you specify a $key for which there is already a keyword group, the old keyword group will be overwritten! Most language files don't use numbers larger than 5, so I recommend you play it safe and use a number like 10 or 42. +3.11.4: Removing a Keyword Group +Top | Contents | Next | Previous + +Perhaps you *really* need speed? Why not just remove an entire keyword group? GeSHi won't have to loop through each keyword checking for its existance, saving much time. You remove a keyword group by using the remove_keyword_group method: +$geshi->remove_keyword_group($key); + +Where $key is the key of the group you wish to remove. This implies knowleged of the language file. +3.12: Headers and Footers for Your Code +Top | Contents | Next | Previous + +So you want to add some special information to the highlighted source? GeSHi can do that too! You can specify headers and footers for your code, style them, and insert information from the highlighted source into your header or footer. +3.12.1: Keyword Substitution +Top | Contents | Next | Previous + +In your header and footer, you can put special keywords that will be replaced with actual configuration values for this GeSHi object. The keywords you can use are: + + * <TIME> or {TIME}: Is replaced by the time it took for the parse_code method - i.e., how long it took for your code to be highlighted. The time is returned to three decimal places. + * <LANGUAGE> or {LANGUAGE}: Is replaced by a nice, friendly version of the language name used to highlight this code. + * <VERSION> or {VERSION}: The GeSHi version used to highlight the code. + +3.12.2: Setting Header Content +Top | Contents | Next | Previous + +The header for your code is a <div>, which is inside the containing block. Therefore, it is affected by the method set_overall_style, and should contain the sort of HTML that belongs in a <div>. You may use any HTML you like, and format it as an HTML document. You should use valid HTML - convert to entities any quotemarks or angle brackets you want displayed. You set the header content using the method set_header_content: +$geshi->set_header_content($content); + +Where $content is the HTML you want to use for the header. +3.12.3: Setting Footer Content +Top | Contents | Next | Previous + +The footer for your code is a <div>, which is inside the containing block. Therefore, it is affected by the method set_overall_style, and should contain the sort of HTML that belongs in a <div>. You may use any HTML you like, and format it as an HTML document. You should use valid HTML - convert to entities any quotemarks or angle brackets you want displayed. You set the footer content using the method set_footer_content: +$geshi->set_footer_content($content); + +Where $content is the HTML you want to use for the footer. +3.12.4: Styling Header Content +Top | Contents | Next | Previous + +You can apply styles to the header content you have set with the set_header_content_style: +$geshi->set_header_content_style($styles); + +Where $styles is the stylesheet declarations you want to use to style the header content. +3.12.5: Styling Footer Content +Top | Contents | Next | Previous + +You can apply styles to the footer content you have set with the set_footer_content_style: +$geshi->set_footer_content_style($styles); + +Where $styles is the stylesheet declarations you want to use to style the footer content. +3.13: Keyword URLs +Top | Contents | Next | Previous + +As of version 1.0.2, GeSHi allows you to specify a URL for keyword groups. This URL is used by GeSHi to convert the keywords in that group into URLs to appropriate documentation. And using add_keyword_group you can add functions and classes from your own projects and use the URL functionality to provide a link to your own API documentation. +3.13.1: Setting a URL for a Keyword Group +Top | Contents | Next | Previous + +To set the URL to be used for a keyword group, you use the set_url_for_keyword_group method: +$geshi->set_url_for_keyword_group($group, $url); + +Where $group is the keyword group you want to assign the URL for, and $url is the URL for this group of keywords. + +You may be wondering how to make each keyword in the group point to the correct URL. You do this by putting {FNAME} in the URL at the correct place. For example, PHP makes it easy by linking www.php.net/function-name to the documentation for that function, so the URL used is http://www.php.net/{FNAME}. + +Of course, when you get to a language like Java, that puts its class documentation in related folders, it gets a little trickier to work out an appropriate URL (see the Java language file!). I hope to provide some kind of redirection service at the GeSHi website in the future. +Note: + +As of Version 1.0.7.21 there have been added two more symbols you can use to link to functions. {FNAMEL} will generate the lowercase version of the keyword, {FNAMEU} will generate the upper-case version. {FNAME} will provide the keyword as specified in the language file. +3.13.2: Disabling a URL for a Keyword Group +Top | Contents | Next | Previous + +It's easy to disable a URL for a keyword group: Simply use the method set_url_for_keyword_group to pass an empty string as the URL: +$geshi->set_url_for_keyword_group($group, ''); +3.13.3 Disabling all URLs for Keywords +Top | Contents | Next | Previous + +As of GeSHi 1.0.7.18, you can disable all URL linking for keywords: +$geshi->enable_keyword_links(false); +3.13.4: Styling Links +Top | Contents | Next | Previous + +You can also style the function links. You can style their default status, hovered, active and visited status. All of this is controlled by one method, set_link_styles: +$geshi->set_link_styles($mode, $styles); + +Where $mode is one of four values: + + * GESHI_LINK: The default style of the links. + * GESHI_HOVER: The style of the links when they have focus (the mouse is hovering over them). + * GESHI_ACTIVE: The style of the links when they are being clicked. + * GESHI_VISITED: The style of links that the user has already visited. + +And $styles is the stylesheet declarations to apply to the links. +3.13.5: Setting the Link Target +Top | Contents | Next | Previous + +Perhaps you want to set the target of link attributes, so the manual pages open in a new window? Use the set_link_target method: +$geshi->set_link_target($target, $styles); + +Where $target is any valid (X)HTML target value - _blank or _top for example. +3.14: Using Contextual Importance +Top | Contents | Next | Previous +Caution: + +This functionality is not only buggy, but is proving very hard to implement in 1.1.X. Therefore, this functionality may well be removed in 1.2.0. You are hereby warned! +3.15: Highlighting Special Lines "Extra" +Top | Contents | Next | Previous + +An alternative (and more stable) method of highlighting code that is important is to use extra highlighting by line. Although you may not know what line numbers contain the important lines, if you do this method is a much more flexible way of making important lines stand out. +3.15.1: Specifying the Lines to Highlight Extra +Top | Contents | Next | Previous + +To specify which lines to highlight extra, you past an array containing the line numbers to highlight_lines_extra: +$geshi->highlight_lines_extra($array); + +The array could be in the form array(2, 3, 4, 7, 12, 344, 4242), made from a DB query, generated from looking through the source for certain important things and working out what line those things are... however you get the line numbers, the array should simply be an array of integers. + +Here's an example, using the same source as before: +// +// Here we go again! This time we'll simply highlight the 8th line +// +$source = 'public int[][] product ( n, m ) +{ + int [][] ans = new int[n][m]; + for ( int i = 0; i < n; i++ ) + { + for ( int j = 0; i < m; j++ ) + { + ans[i][j] = i * j; + } + } + return ans; +}'; + +$geshi = new GeSHi($source, 'java'); + +$geshi->highlight_lines_extra(array(8)); +echo $geshi->parse_code(); + +Which produces: +public int[][] product ( n, m ) +{ + int [][] ans = new int[n][m]; + for ( int i = 0; i < n; i++ ) + { + for ( int j = 0; i < m; j++ ) + { + ans[i][j] = i * j; + } + } + return ans; +} + +What's more, as you can see the code on a highlighted line is still actually highlighted itself. +Note: + +As you can see, this is a little buggy, but that is because of HTML laws (code elements should not contain div elements). This works just fine if you use line numbers. +3.15.2: Styles for the Highlighted Lines +Top | Contents | Next | Previous + +Again as with contextual importance, you're not chained to the yellow theme that is the default. You can use the set_highlight_lines_extra_style method: +$geshi->set_highlight_lines_extra_style($styles); + +Where $styles is the stylesheet declarations that you want to apply to highlighted lines. +3.16: Adding IDs to Each Line +Top | Contents | Next | Previous + +Perhaps you're a javascript junkie? GeSHi provides a way to give each line an ID so you can access that line with javascript, or perhaps just by plain CSS (though if you want to access lines by CSS you should use the method in the previous section). To enable IDs you call the enable_ids method: +$geshi->enable_ids($flag); + +Where $flag is true or not present to enable IDs, and false to disable them again if you need. + +The ID generated is in the form {overall-css-id}-{line-number}. So for example, if you set the overall CSS id to be "mycode", then the IDs for each line would by "mycode-1", "mycode-2" etc. If there is no CSS ID set, then one is made up in the form geshi-[4 random characters], but this is not so useful for if you want to do javascript manipulation. +3.17: Getting the Time of Styling +Top | Contents | Next | Previous + +Once you've called parse_code, you can get the time it took to run the highlighting by calling the get_time method: +$geshi = new GeSHi($source, $language, $path); + +$code = mysql_real_escape_string($geshi->parse_code()); +$time = $geshi->get_time(); + +// do something with it +mysql_query("INSERT INTO code VALUES ('$code', '$time')"); +4: Language Files +Top | Contents | Next | Previous + +So now you know what features GeSHi offers, and perhaps you've even meddled with the source. Or perhaps you'd like a language file for language X but it doesn't seem to be supported? Rubbish! GeSHi will highlight anything, what do you think I coded this for? ^_^ You'll just have to learn how to make a language file yourself. And I promise it's not too hard - and if you're here you're in the right place! +4.1: An Example Language File +Top | Contents | Next | Previous + +Let's begin by looking at an example language file - the language file for the first language ever supported, PHP. + +<?php +/************************************************************************************* + * php.php + * -------- + * Author: Nigel McNie (nigel@geshi.org) + * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) + * Release Version: 1.0.2 + * CVS Revision Version: $Revision: 1195 $ + * Date Started: 2004/06/20 + * Last Modified: $Date: 2008-06-08 19:44:08 +0200 (So, 08. Jun 2008) $ + * + * PHP language file for GeSHi. + * + * CHANGES + * ------- + * 2004/XX/XX (1.0.2) + * - Added URL support + * - Added extra constants + * 2004/08/05 (1.0.1) + * - Added support for symbols + * 2004/07/14 (1.0.0) + * - First Release + * + * TODO (updated 2004/07/14) + * ------------------------- + * * Make sure the last few function I may have missed + * (like eval()) are included for highlighting + * * Split to several files - php4, php5 etc + * + ************************************************************************************* + * + * This file is part of GeSHi. + * + * GeSHi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * GeSHi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GeSHi; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + ************************************************************************************/ + +$language_data = array ( + 'LANG_NAME' => 'PHP', + 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), + 'COMMENT_MULTI' => array('/*' => '*/'), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array("'", '"'), + 'ESCAPE_CHAR' => '\\', + 'KEYWORDS' => array( + 1 => array( + 'include', 'require', 'include_once', 'require_once', + 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', 'endif', 'switch', 'case', 'endswitch', + 'return', 'break' + ), + 2 => array( + 'null', '__LINE__', '__FILE__', + 'false', '<?php', '?>', '<?', + '<script language=', '</script>', + 'true', 'var', 'default', + 'function', 'class', 'new', + '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', + 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', + 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', + 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', + 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', + 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', + 'E_USER_WARNING', 'E_USER_NOTICE', 'E_ALL' + ), + 3 => array( + 'zlib_get_coding_type','zend_version','zend_logo_guid','yp_order','yp_next', + 'yp_match','yp_master','yp_get_default_domain','yp_first','yp_errno','yp_err_string', + 'yp_cat','yp_all','xml_set_unparsed_entity_decl_handler','xml_set_start_namespace_decl_handler','xml_set_processing_instruction_handler','xml_set_object', + 'xml_set_notation_decl_handler','xml_set_external_entity_ref_handler','xml_set_end_namespace_decl_handler','xml_set_element_handler','xml_set_default_handler','xml_set_character_data_handler', + 'xml_parser_set_option','xml_parser_get_option','xml_parser_free','xml_parser_create_ns','xml_parser_create','xml_parse_into_struct', + 'xml_parse','xml_get_error_code','xml_get_current_line_number','xml_get_current_column_number','xml_get_current_byte_index','xml_error_string', + 'wordwrap','wddx_serialize_vars','wddx_serialize_value','wddx_packet_start','wddx_packet_end','wddx_deserialize', + 'wddx_add_vars','vsprintf','vprintf','virtual','version_compare','var_export', + 'var_dump','utf8_encode','utf8_decode','usort','usleep','user_error', + 'urlencode','urldecode','unserialize','unregister_tick_function','unpack','unlink', + 'unixtojd','uniqid','umask','uksort','ucwords','ucfirst', + 'uasort','trim','trigger_error','touch','token_name','token_get_all', + 'tmpfile','time','textdomain','tempnam','tanh','tan', + 'system','syslog','symlink','substr_replace','substr_count','substr', + 'strval','strtr','strtoupper','strtotime','strtolower','strtok', + 'strstr','strspn','strrpos','strrev','strrchr','strpos', + 'strncmp','strncasecmp','strnatcmp','strnatcasecmp','strlen','stristr', + 'stripslashes','stripcslashes','strip_tags','strftime','stream_wrapper_register','stream_set_write_buffer', + 'stream_set_timeout','stream_set_blocking','stream_select','stream_register_wrapper','stream_get_meta_data','stream_filter_prepend', + 'stream_filter_append','stream_context_set_params','stream_context_set_option','stream_context_get_options','stream_context_create','strcspn', + 'strcoll','strcmp','strchr','strcasecmp','str_word_count','str_shuffle', + 'str_rot13','str_replace','str_repeat','str_pad','stat','sscanf', + 'srand','sqrt','sql_regcase','sprintf','spliti','split', + 'soundex','sort','socket_writev','socket_write','socket_strerror','socket_shutdown', + 'socket_setopt','socket_set_timeout','socket_set_option','socket_set_nonblock','socket_set_blocking','socket_set_block', + 'socket_sendto','socket_sendmsg','socket_send','socket_select','socket_recvmsg','socket_recvfrom', + 'socket_recv','socket_readv','socket_read','socket_listen','socket_last_error','socket_iovec_set', + 'socket_iovec_free','socket_iovec_fetch','socket_iovec_delete','socket_iovec_alloc','socket_iovec_add','socket_getsockname', + 'socket_getpeername','socket_getopt','socket_get_status','socket_get_option','socket_create_pair','socket_create_listen', + 'socket_create','socket_connect','socket_close','socket_clear_error','socket_bind','socket_accept', + 'sleep','sizeof','sinh','sin','similar_text','shuffle', + 'show_source','shmop_write','shmop_size','shmop_read','shmop_open','shmop_delete', + 'shmop_close','shm_remove_var','shm_remove','shm_put_var','shm_get_var','shm_detach', + 'shm_attach','shell_exec','sha1_file','sha1','settype','setlocale', + 'setcookie','set_time_limit','set_socket_blocking','set_magic_quotes_runtime','set_include_path','set_file_buffer', + 'set_error_handler','session_write_close','session_unset','session_unregister','session_start','session_set_save_handler', + 'session_set_cookie_params','session_save_path','session_register','session_regenerate_id','session_name','session_module_name', + 'session_is_registered','session_id','session_get_cookie_params','session_encode','session_destroy','session_decode', + 'session_cache_limiter','session_cache_expire','serialize','sem_remove','sem_release','sem_get', + 'sem_acquire','rtrim','rsort','round','rmdir','rewinddir', + 'rewind','restore_include_path','restore_error_handler','reset','rename','register_tick_function', + 'register_shutdown_function','realpath','readlink','readgzfile','readfile','readdir', + 'read_exif_data','rawurlencode','rawurldecode','range','rand','rad2deg', + 'quotemeta','quoted_printable_decode','putenv','proc_open','proc_close','printf', + 'print_r','prev','preg_split','preg_replace_callback','preg_replace','preg_quote', + 'preg_match_all','preg_match','preg_grep','pow','posix_uname','posix_ttyname', + 'posix_times','posix_strerror','posix_setuid','posix_setsid','posix_setpgid','posix_setgid', + 'posix_seteuid','posix_setegid','posix_mkfifo','posix_kill','posix_isatty','posix_getuid', + 'posix_getsid','posix_getrlimit','posix_getpwuid','posix_getpwnam','posix_getppid','posix_getpid', + 'posix_getpgrp','posix_getpgid','posix_getlogin','posix_getgroups','posix_getgrnam','posix_getgrgid', + 'posix_getgid','posix_geteuid','posix_getegid','posix_getcwd','posix_get_last_error','posix_errno', + 'posix_ctermid','pos','popen','pi','phpversion','phpinfo', + 'phpcredits','php_uname','php_sapi_name','php_logo_guid','php_ini_scanned_files','pg_update', + 'pg_untrace','pg_unescape_bytea','pg_tty','pg_trace','pg_setclientencoding','pg_set_client_encoding', + 'pg_send_query','pg_select','pg_result_status','pg_result_seek','pg_result_error','pg_result', + 'pg_query','pg_put_line','pg_port','pg_ping','pg_pconnect','pg_options', + 'pg_numrows','pg_numfields','pg_num_rows','pg_num_fields','pg_meta_data','pg_lowrite', + 'pg_lounlink','pg_loreadall','pg_loread','pg_loopen','pg_loimport','pg_loexport', + 'pg_locreate','pg_loclose','pg_lo_write','pg_lo_unlink','pg_lo_tell','pg_lo_seek', + 'pg_lo_read_all','pg_lo_read','pg_lo_open','pg_lo_import','pg_lo_export','pg_lo_create', + 'pg_lo_close','pg_last_oid','pg_last_notice','pg_last_error','pg_insert','pg_host', + 'pg_getlastoid','pg_get_result','pg_get_pid','pg_get_notify','pg_freeresult','pg_free_result', + 'pg_fieldtype','pg_fieldsize','pg_fieldprtlen','pg_fieldnum','pg_fieldname','pg_fieldisnull', + 'pg_field_type','pg_field_size','pg_field_prtlen','pg_field_num','pg_field_name','pg_field_is_null', + 'pg_fetch_row','pg_fetch_result','pg_fetch_object','pg_fetch_assoc','pg_fetch_array','pg_fetch_all', + 'pg_exec','pg_escape_string','pg_escape_bytea','pg_errormessage','pg_end_copy','pg_delete', + 'pg_dbname','pg_copy_to','pg_copy_from','pg_convert','pg_connection_status','pg_connection_reset', + 'pg_connection_busy','pg_connect','pg_cmdtuples','pg_close','pg_clientencoding','pg_client_encoding', + 'pg_cancel_query','pg_affected_rows','pfsockopen','pclose','pathinfo','passthru', + 'parse_url','parse_str','parse_ini_file','pack','overload','output_reset_rewrite_vars', + 'output_add_rewrite_var','ord','openssl_x509_read','openssl_x509_parse','openssl_x509_free','openssl_x509_export_to_file', + 'openssl_x509_export','openssl_x509_checkpurpose','openssl_x509_check_private_key','openssl_verify','openssl_sign','openssl_seal', + 'openssl_public_encrypt','openssl_public_decrypt','openssl_private_encrypt','openssl_private_decrypt','openssl_pkey_new','openssl_pkey_get_public', + 'openssl_pkey_get_private','openssl_pkey_free','openssl_pkey_export_to_file','openssl_pkey_export','openssl_pkcs7_verify','openssl_pkcs7_sign', + 'openssl_pkcs7_encrypt','openssl_pkcs7_decrypt','openssl_open','openssl_get_publickey','openssl_get_privatekey','openssl_free_key', + 'openssl_error_string','openssl_csr_sign','openssl_csr_new','openssl_csr_export_to_file','openssl_csr_export','openlog', + 'opendir','octdec','ob_start','ob_list_handlers','ob_implicit_flush','ob_iconv_handler', + 'ob_gzhandler','ob_get_status','ob_get_level','ob_get_length','ob_get_flush','ob_get_contents', + 'ob_get_clean','ob_flush','ob_end_flush','ob_end_clean','ob_clean','number_format', + 'nl_langinfo','nl2br','ngettext','next','natsort','natcasesort', + 'mysql_unbuffered_query','mysql_thread_id','mysql_tablename','mysql_table_name','mysql_stat','mysql_selectdb', + 'mysql_select_db','mysql_result','mysql_real_escape_string','mysql_query','mysql_ping','mysql_pconnect', + 'mysql_numrows','mysql_numfields','mysql_num_rows','mysql_num_fields','mysql_listtables','mysql_listfields', + 'mysql_listdbs','mysql_list_tables','mysql_list_processes','mysql_list_fields','mysql_list_dbs','mysql_insert_id', + 'mysql_info','mysql_get_server_info','mysql_get_proto_info','mysql_get_host_info','mysql_get_client_info','mysql_freeresult', + 'mysql_free_result','mysql_fieldtype','mysql_fieldtable','mysql_fieldname','mysql_fieldlen','mysql_fieldflags', + 'mysql_field_type','mysql_field_table','mysql_field_seek','mysql_field_name','mysql_field_len','mysql_field_flags', + 'mysql_fetch_row','mysql_fetch_object','mysql_fetch_lengths','mysql_fetch_field','mysql_fetch_assoc','mysql_fetch_array', + 'mysql_escape_string','mysql_error','mysql_errno','mysql_dropdb','mysql_drop_db','mysql_dbname', + 'mysql_db_query','mysql_db_name','mysql_data_seek','mysql_createdb','mysql_create_db','mysql_connect', + 'mysql_close','mysql_client_encoding','mysql_affected_rows','mysql','mt_srand','mt_rand', + 'mt_getrandmax','move_uploaded_file','money_format','mktime','mkdir','min', + 'microtime','method_exists','metaphone','memory_get_usage','md5_file','md5', + 'mbsubstr','mbstrrpos','mbstrpos','mbstrlen','mbstrcut','mbsplit', + 'mbregex_encoding','mberegi_replace','mberegi','mbereg_search_setpos','mbereg_search_regs','mbereg_search_pos', + 'mbereg_search_init','mbereg_search_getregs','mbereg_search_getpos','mbereg_search','mbereg_replace','mbereg_match', + 'mbereg','mb_substr_count','mb_substr','mb_substitute_character','mb_strwidth','mb_strtoupper', + 'mb_strtolower','mb_strrpos','mb_strpos','mb_strlen','mb_strimwidth','mb_strcut', + 'mb_split','mb_send_mail','mb_regex_set_options','mb_regex_encoding','mb_preferred_mime_name','mb_parse_str', + 'mb_output_handler','mb_language','mb_internal_encoding','mb_http_output','mb_http_input','mb_get_info', + 'mb_eregi_replace','mb_eregi','mb_ereg_search_setpos','mb_ereg_search_regs','mb_ereg_search_pos','mb_ereg_search_init', + 'mb_ereg_search_getregs','mb_ereg_search_getpos','mb_ereg_search','mb_ereg_replace','mb_ereg_match','mb_ereg', + 'mb_encode_numericentity','mb_encode_mimeheader','mb_detect_order','mb_detect_encoding','mb_decode_numericentity','mb_decode_mimeheader', + 'mb_convert_variables','mb_convert_kana','mb_convert_encoding','mb_convert_case','max','mail', + 'magic_quotes_runtime','ltrim','lstat','long2ip','log1p','log10', + 'log','localtime','localeconv','linkinfo','link','levenshtein', + 'lcg_value','ksort','krsort','key_exists','key','juliantojd', + 'join','jewishtojd','jdtounix','jdtojulian','jdtojewish','jdtogregorian', + 'jdtofrench','jdmonthname','jddayofweek','is_writeable','is_writable','is_uploaded_file', + 'is_subclass_of','is_string','is_scalar','is_resource','is_real','is_readable', + 'is_object','is_numeric','is_null','is_nan','is_long','is_link', + 'is_integer','is_int','is_infinite','is_float','is_finite','is_file', + 'is_executable','is_double','is_dir','is_callable','is_bool','is_array', + 'is_a','iptcparse','iptcembed','ip2long','intval','ini_set', + 'ini_restore','ini_get_all','ini_get','ini_alter','in_array','import_request_variables', + 'implode','image_type_to_mime_type','ignore_user_abort','iconv_set_encoding','iconv_get_encoding','iconv', + 'i18n_mime_header_encode','i18n_mime_header_decode','i18n_ja_jp_hantozen','i18n_internal_encoding','i18n_http_output','i18n_http_input', + 'i18n_discover_encoding','i18n_convert','hypot','htmlspecialchars','htmlentities','html_entity_decode', + 'highlight_string','highlight_file','hexdec','hebrevc','hebrev','headers_sent', + 'header','gzwrite','gzuncompress','gztell','gzseek','gzrewind', + 'gzread','gzputs','gzpassthru','gzopen','gzinflate','gzgetss', + 'gzgets','gzgetc','gzfile','gzeof','gzencode','gzdeflate', + 'gzcompress','gzclose','gregoriantojd','gmstrftime','gmmktime','gmdate', + 'glob','gettype','gettimeofday','gettext','getservbyport','getservbyname', + 'getrusage','getrandmax','getprotobynumber','getprotobyname','getopt','getmyuid', + 'getmypid','getmyinode','getmygid','getmxrr','getlastmod','getimagesize', + 'gethostbynamel','gethostbyname','gethostbyaddr','getenv','getdate','getcwd', + 'getallheaders','get_resource_type','get_required_files','get_parent_class','get_object_vars','get_meta_tags', + 'get_magic_quotes_runtime','get_magic_quotes_gpc','get_loaded_extensions','get_included_files','get_include_path','get_html_translation_table', + 'get_extension_funcs','get_defined_vars','get_defined_functions','get_defined_constants','get_declared_classes','get_current_user', + 'get_class_vars','get_class_methods','get_class','get_cfg_var','get_browser','fwrite', + 'function_exists','func_num_args','func_get_args','func_get_arg','ftruncate','ftp_systype', + 'ftp_ssl_connect','ftp_size','ftp_site','ftp_set_option','ftp_rmdir','ftp_rename', + 'ftp_rawlist','ftp_quit','ftp_pwd','ftp_put','ftp_pasv','ftp_nlist', + 'ftp_nb_put','ftp_nb_get','ftp_nb_fput','ftp_nb_fget','ftp_nb_continue','ftp_mkdir', + 'ftp_mdtm','ftp_login','ftp_get_option','ftp_get','ftp_fput','ftp_fget', + 'ftp_exec','ftp_delete','ftp_connect','ftp_close','ftp_chdir','ftp_cdup', + 'ftok','ftell','fstat','fsockopen','fseek','fscanf', + 'frenchtojd','fread','fputs','fpassthru','fopen','fnmatch', + 'fmod','flush','floor','flock','floatval','filetype', + 'filesize','filepro_rowcount','filepro_retrieve','filepro_fieldwidth','filepro_fieldtype','filepro_fieldname', + 'filepro_fieldcount','filepro','fileperms','fileowner','filemtime','fileinode', + 'filegroup','filectime','fileatime','file_get_contents','file_exists','file', + 'fgetss','fgets','fgetcsv','fgetc','fflush','feof', + 'fclose','ezmlm_hash','extract','extension_loaded','expm1','explode', + 'exp','exif_thumbnail','exif_tagname','exif_read_data','exif_imagetype','exec', + 'escapeshellcmd','escapeshellarg','error_reporting','error_log','eregi_replace','eregi', + 'ereg_replace','ereg','end','easter_days','easter_date','each', + 'doubleval','dngettext','dl','diskfreespace','disk_total_space','disk_free_space', + 'dirname','dir','dgettext','deg2rad','defined','define_syslog_variables', + 'define','decoct','dechex','decbin','debug_zval_dump','debug_backtrace', + 'deaggregate','dcngettext','dcgettext','dba_sync','dba_replace','dba_popen', + 'dba_optimize','dba_open','dba_nextkey','dba_list','dba_insert','dba_handlers', + 'dba_firstkey','dba_fetch','dba_exists','dba_delete','dba_close','date', + 'current','ctype_xdigit','ctype_upper','ctype_space','ctype_punct','ctype_print', + 'ctype_lower','ctype_graph','ctype_digit','ctype_cntrl','ctype_alpha','ctype_alnum', + 'crypt','create_function','crc32','count_chars','count','cosh', + 'cos','copy','convert_cyr_string','constant','connection_status','connection_aborted', + 'compact','closelog','closedir','clearstatcache','class_exists','chunk_split', + 'chr','chown','chop','chmod','chgrp','checkdnsrr', + 'checkdate','chdir','ceil','call_user_method_array','call_user_method','call_user_func_array', + 'call_user_func','cal_to_jd','cal_info','cal_from_jd','cal_days_in_month','bzwrite', + 'bzread','bzopen','bzflush','bzerrstr','bzerror','bzerrno', + 'bzdecompress','bzcompress','bzclose','bindtextdomain','bindec','bind_textdomain_codeset', + 'bin2hex','bcsub','bcsqrt','bcscale','bcpow','bcmul', + 'bcmod','bcdiv','bccomp','bcadd','basename','base_convert', + 'base64_encode','base64_decode','atanh','atan2','atan','assert_options', + 'assert','asort','asinh','asin','arsort','array_walk', + 'array_values','array_unshift','array_unique','array_sum','array_splice','array_slice', + 'array_shift','array_search','array_reverse','array_reduce','array_rand','array_push', + 'array_pop','array_pad','array_multisort','array_merge_recursive','array_merge','array_map', + 'array_keys','array_key_exists','array_intersect_assoc','array_intersect','array_flip','array_filter', + 'array_fill','array_diff_assoc','array_diff','array_count_values','array_chunk','array_change_key_case', + 'apache_setenv','apache_response_headers','apache_request_headers','apache_note','apache_lookup_uri','apache_get_version', + 'apache_child_terminate','aggregation_info','aggregate_properties_by_regexp','aggregate_properties_by_list','aggregate_properties','aggregate_methods_by_regexp', + 'aggregate_methods_by_list','aggregate_methods','aggregate','addslashes','addcslashes','acosh', + 'acos','abs','_','echo', 'print', 'global', 'static', 'exit', 'array', 'empty', 'eval', 'isset', 'unset', 'die' + ) + ), + 'SYMBOLS' => array( + '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => false, + 2 => false, + 3 => false, + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #b1b100;', + 2 => 'color: #000000; font-weight: bold;', + 3 => 'color: #000066;' + ), + 'COMMENTS' => array( + 1 => 'color: #808080; font-style: italic;', + 2 => 'color: #808080; font-style: italic;', + 'MULTI' => 'color: #808080; font-style: italic;' + ), + 'ESCAPE_CHAR' => array( + 0 => 'color: #000099; font-weight: bold;' + ), + 'BRACKETS' => array( + 0 => 'color: #66cc66;' + ), + 'STRINGS' => array( + 0 => 'color: #ff0000;' + ), + 'NUMBERS' => array( + 0 => 'color: #cc66cc;' + ), + 'METHODS' => array( + 0 => 'color: #006600;' + ), + 'SYMBOLS' => array( + 0 => 'color: #66cc66;' + ), + 'REGEXPS' => array( + 0 => 'color: #0000ff;' + ), + 'SCRIPT' => array( + 0 => '', + 1 => '', + 2 => '', + 3 => '' + ) + ), + 'URLS' => array( + 1 => '', + 2 => '', + 3 => 'http://www.php.net/{FNAME}', + 4 => '' + ), + 'OOLANG' => true, + 'OBJECT_SPLITTER' => '->', + 'REGEXPS' => array( + 0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*" + ), + 'STRICT_MODE_APPLIES' => GESHI_MAYBE, + 'SCRIPT_DELIMITERS' => array( + 0 => array( + '<?php' => '?>' + ), + 1 => array( + '<?' => '?>' + ), + 2 => array( + '<%' => '%>' + ), + 3 => array( + '<script language="php">' => '</script>' + ) + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + 0 => true, + 1 => true, + 2 => true, + 3 => true + ) +); + +?> + +If you're remotely familiar with PHP (or even if you're not), you can see that all that a language file consists of is a glorified variable assignment. Easy! All a language file does is assign a variable $language_data. Though still, there's a lot of indices to that array... but this section is here to break each index down and explain it to you. +4.2: Language File Conventions +Top | Contents | Next | Previous + +There are several conventions that are used in language files. For ease of use and readability, your language files should obey the following rules: + + * Indentation is in tabs, not spaces: Use tabs! There's no excuse for using spaces in this day and age, where almost every good editor allows you to change the tab width. Tabs also take up less space, and ensure proper alignment. When you indent, use tabs, and if your editor converts tabs to spaces, tell it not to. + * Strings are in single quotes: Every string in a language file should be in single quotes ('), unless you are specifying a single quote as a quotemark or escape character, in which case they can be in double quotes for readability; or if you are specifying a REGEXP (see below) + * Large arrays are multi-lined: An array with more than three or four values should be broken into multiple lines. In any case, lines should not be wider than a full-screen window (about 100 chars per line max). + * Ending brackets for multi-lined arrays on a new line: Also with a comma after them, unless the array is the last one in a parent array. See the PHP language file for examples of where to use commas. + * Use GeSHi's constants: For capatalisation, regular expressions etc. use the GeSHi constants, not their actual values. + +There are more notes on each convention where it may appear in the language file sections below. +4.3: Language File Sections +Top | Contents | Next | Previous + +This section will look at all the sections of a language file, and how they relate to the final highlighting result. +4.3.1: The Header +Top | Contents | Next | Previous + +The header of a language file is the first lines with the big comment and the start of the variable $language_data: + +<?php +/************************************************************************************* + * <name-of-language-file.php> + * --------------------------------- + * Author: <name> (<e-mail address>) + * Copyright: (c) 2004 <name> (<website URL>) + * Release Version: 1.0.0 + * CVS Revision Version: $Revision: 1195 $ + * Date Started: <date started> + * Last Modified: $Date: 2008-06-08 19:44:08 +0200 (So, 08. Jun 2008) $ + * + * <name-of-language> language file for GeSHi. + * + * <any-comments...> + * + * CHANGES + * ------- + * <date-of-release> (1.0.0) + * - First Release + * + * TODO (updated <date-of-release>) + * ------------------------- + * <things-to-do> + * + ************************************************************************************* + * + * This file is part of GeSHi. + * + * GeSHi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * GeSHi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GeSHi; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + ************************************************************************************/ + +$language_data = array ( + +The parts in angle brackets are the parts that you change for your language file. Everything else *must* remain the same! + +Here are the parts you should change: + + * <name-of-language-file.php> - This should become the name of your language file. Language file names are in lower case and contain only alphanumeric characters, dashes and underscores. Language files end with .php (which you should put with the name of your language file, eg language.php) + * <name> - Your name, or alias. + * <e-mail address> - Your e-mail address. If you want your language file included with GeSHi you must include an e-mail address that refers to an inbox controlled by you. + * <website> - A URL of a website of yours (perhaps to a page that deals with your contribution to GeSHi, or your home page/blog) + * <date-started> - The date you started working on the language file. If you can't remember, guestimate. + * <name-of-language> - The name of the language you made this language file for (probably similar to the language file name). + * <any-comments> - Any comments you have to make about this language file, perhaps on where you got the keywords for, what dialect of the language this language file is for etc etc. If you don't have any comments, remove the space for them. + * <date-of-release - The date you released the language file to the public. If you simply send it to me for inclusion in a new GeSHi and don't release it, leave this blank, and I'll replace it with the date of the GeSHi release that it is first added to. + +Everything should remain the same, including $Revision: 1195 $ and $Date: 2008-06-08 19:44:08 +0200 (So, 08. Jun 2008) $ (I know these may look funny but they have their purpose for those of you who don't know about SVN). + +Also: I'm not sure about the copyright on a new language file. I'm not a lawyer, could someone contact me about whether the copyright for a new language file should be exclusivly the authors, or joint with me (if included in a GeSHi release)? +4.3.2: The First Indices +Top | Contents | Next | Previous + +Here is an example from the php language file of the first indices: + + 'LANG_NAME' => 'PHP', + 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), + 'COMMENT_MULTI' => array('/*' => '*/'), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array("'", '"'), + 'ESCAPE_CHAR' => '\\', + +The first indices are the first few lines of a language file before the KEYWORDS index. These indices specify: + + * 'LANG_NAME': The name of the language. This name should be a human-readable version of the name (e.g. HTML 4 (transitional) instead of html4trans) + * 'COMMENT_SINGLE': An array of single-line comments in your language, indexed by integers starting from 1. A single line comment is a comment that starts at the marker and goes until the end of the line. These comments may be any length > 0, and since they can be styled individually, can be used for other things than comments (for example the Java language file defines "import" as a single line comment). If you are making a language that uses a ' (apostrophe) as a comment (or in the comment marker somewhere), use double quotes. e.g.: "'" + * 'COMMENT_MULTI': Used to specify multiline comments, an array in the form 'OPEN' => 'CLOSE'. Unfortunately, all of these comments you add here will be styled the same way (an area of improvement for GeSHi 1.2.X). These comment markers may be any length > 0. + * 'CASE_KEYWORDS': Used to set whether the case of keywords should be changed automatically as they are found. For example, in an SQL or BASIC dialect you may want all keywords to be upper case. The accepted values for this are: + o GESHI_CAPS_UPPER: Convert the case of all keywords to upper case. + o GESHI_CAPS_LOWER: Convert the case of all keywords to lower case. + o GESHI_CAPS_NO_CHANGE: Don't change the case of any keyword. + * 'QUOTEMARKS': Specifies the characters that mark the beginning and end of a string. This is another example where if your language includes the ' string delimiter you should use double quotes around it. + * 'ESCAPE_CHAR': Specifies the escape character used in all strings. If your language does not have an escape character then make this the empty string (''). This is not an array! If found, any character after an escape character and the escape character itself will be highlighted differently, and the character after the escape character cannot end a string. + +4.3.3: Keywords +Top | Contents | Next | Previous + +Keywords will make up the bulk of a language file. In this part you add keywords for your language, including inbuilt functions, data types, predefined constants etc etc. + +Here's a (shortened) example from the php language file: + + 'KEYWORDS' => array( + 1 => array( + 'include', 'require', 'include_once', 'require_once', + 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', 'endif', 'switch', 'case', 'endswitch', + 'return', 'break' + ), + 2 => array( + 'null', '__LINE__', '__FILE__', + 'false', '<?php', '?>', '<?', + '<script language=', '</script>', + 'true', 'var', 'default', + 'function', 'class', 'new', + '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', + 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', + 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', + 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', + 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', + 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', + 'E_USER_WARNING', 'E_USER_NOTICE', 'E_ALL' + ), + 3 => array( + 'zlib_get_coding_type','zend_version','zend_logo_guid','yp_order','yp_next', + 'yp_match','yp_master','yp_get_default_domain','yp_first','yp_errno','yp_err_string', + 'yp_cat','yp_all','xml_set_unparsed_entity_decl_handler','xml_set_start_namespace_decl_handler','xml_set_processing_instruction_handler','xml_set_object', + 'xml_set_notation_decl_handler','xml_set_external_entity_ref_handler','xml_set_end_namespace_decl_handler','xml_set_element_handler','xml_set_default_handler','xml_set_character_data_handler', + 'xml_parser_set_option','xml_parser_get_option','xml_parser_free','xml_parser_create_ns','xml_parser_create','xml_parse_into_struct' + ) + ), + +You can see that the index 'KEYWORDS' refers to an array of arrays, indexed by positive integers. In each array, there are some keywords (in the actual php language file there is in fact many more keywords in the array indexed by 3). Here are some points to note about these keywords: + + * Indexed by positive integers: Use nothing else! I may change this in 1.2.X, but for the 1.0.X series, use positive integers only. + * Keywords sorted in reverse: Keywords *should* be sorted in reverse order. I know that many of the language files I've made do not follow this rule, but that's because I made the files before I discovered the following issue with GeSHi: If you have two keywords, as and ascfor example, then when GeSHi encounters the "as" keyword it will be highlighted even if the "as" is part of "asc". I would get GeSHi to reverse-sort keyword arrays, but there's no harm in you doing this yourself and saving some processing time. At the least (and in fact this is sufficient) you should swap any keywords you come across that would be caught by this issue. + * Keywords are case sensitive (sometimes): If your language is case-sensitive, the correct casing of the keywords is defined as the case of the keywords in these keyword arrays. If you check the java language file you will see that everything is in exact casing. So if any of these keyword arrays are case sensitive, put the keywords in as their correct case! (note that which groups are case sensitive and which are not is configurable, see later on) + * Keywords must be in htmlentities() form: All keywords should be written as if they had been run through the php function htmlentities(). E.g, the keyword is <foo>, not <foo> + * Don't use keywords to highlight symbols: Just don't. It doesn't work, and there will be seperate support for symbols later. + * Markup Languages are special cases: Check the html4strict language file for an example: keywords have to be specified twice for opening tags and twice for each closing tag. + +4.3.4: Symbols and Case Sensitivity +Top | Contents | Next | Previous + +So you've put all the keywords for your language in? Now for a breather before we style them :). Symbols define what symbols your language uses, these are things like colons, brackets/braces, and other such general punctuation, and case sensitivity alludes to the previous section: here you can set which keyword groups are case sensitive. + +As of GeSHi version 1.0.7.21 the symbols section is used in two ways: + + * Flat usage: + This mode is the suggested way for existing language files and languages that only need few symbols where no further differentiation is needed or desired. You simply put all the characters in an array under symbols as shown in the first example below. All symbols in flat usage belong to symbol style group 0. + * Group usage: + This is a slightly more enhanced way to provide GeSHi symbol information. To use group you create several subarrays each containing only a subset of the symbols to highlight. Every array will need to have an unique index thus you can assign the appropriate styles later. + +Here's an example for flat symbol usage + + 'SYMBOLS' => array( + '(', ')', '[', ']', '{', '}', '!', '@', '|', '&', '+', '-', '*', '/', '%', '=', '<', '>' + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => false, + 2 => false, + 3 => false, + ), + +which is not too different from the newly introduced group usage shown below: + + 'SYMBOLS' => array( + 0 => array('(', ')', '[', ']', '{', '}'), + 1 => array('!', '@', '|', '&'), + 2 => array('+', '-', '*', '/', '%'), + 3 => array('=', '<', '>') + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => false, + 2 => false, + 3 => false, + ), + + * 'SYMBOLS': An array of the symbols, or - as of 1.0.7.21 - an array of symbol groups, used in your language. Please note that versions before 1.0.7.21 will silently ignore this setting. + * 'CASE_SENSITIVE': Note the GESHI_COMMENTS! This is used to set whether comments are case sensitive or not (for example, BASIC has the REM statement which while not being case sensitive is still alphanumeric, and as in the example given before about the Java language file using "import" as a single line comment, this can be useful sometimes. true if comments are case sensitive, false otherwise. All of the other indices correspond to indices in the 'KEYWORDS' section (see above). + +4.3.5: Styles for your Language File +Top | Contents | Next | Previous + +This is the fun part! Here you get to choose the colours, fonts, backgrounds and anything else you'd like for your language file. + +Here's an example: + + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #b1b100;', + 2 => 'color: #000000; font-weight: bold;', + 3 => 'color: #000066;' + ), + 'COMMENTS' => array( + 1 => 'color: #808080; font-style: italic;', + 2 => 'color: #808080; font-style: italic;', + 'MULTI' => 'color: #808080; font-style: italic;' + ), + 'ESCAPE_CHAR' => array( + 0 => 'color: #000099; font-weight: bold;' + ), + 'BRACKETS' => array( + 0 => 'color: #66cc66;' + ), + 'STRINGS' => array( + 0 => 'color: #ff0000;' + ), + 'NUMBERS' => array( + 0 => 'color: #cc66cc;' + ), + 'METHODS' => array( + 0 => 'color: #006600;' + ), + 'SYMBOLS' => array( + 0 => 'color: #66cc66;' + ), + 'REGEXPS' => array( + 0 => 'color: #0000ff;' + ), + 'SCRIPT' => array( + 0 => '', + 1 => '', + 2 => '', + 3 => '' + ) + ), + +Note that all style rules should end with a semi-colon! This is important: GeSHi may add extra rules to the rules you specify (and will do so if a user tries to change your styles on the fly), so the last semi-colon in any stylesheet rule is important. + +All strings here should contain valid stylesheet declarations (it's also find to have the empty string). + + * 'KEYWORDS': This is an array, from keyword index to style. The index you use is the index you used in the keywords section to specify the keywords belonging to that group. + * 'COMMENTS': This is an array, from single-line comment index to style for that index. The index 'MULTI' is used for multiline comments (and cannot be an array) + * 'ESCAPE_CHAR' down to 'SYMBOLS': These are arrays with only one index: 0. You cannot add other indices to these arrays. + * 'REGEXPS':This is an array with a style for each matching regex. Also, since 1.0.7.21, you can specify the name of a function to be called, that will be given the text matched by the regex, each time a match is found. Note that my testing found that create_function would not work with this due to a PHP bug, so you have to put the function definition at the top of the language file. Be sure to prefix the function name with geshi_[languagename]_ as to not conflict with other functions! + * 'SCRIPT': For languages that use script delimiters, this is where you can style each block of script. For example, HTML and XML have blocks that begin with < and end with > (i.e. tags) and blocks that begin with & and end with ; (i.e. character entities), and you can set a style to apply to each whole block. You specify the delimiters for the blocks below. Note that many languages will not need this feature. + +4.3.6: URLs for Functions +Top | Contents | Next | Previous + +This section lets you specify a url to visit for each keyword group. Useful for pointing functions at their online manual entries. + +Here is an example: + + 'URLS' => array( + 1 => '', + 2 => '', + 3 => 'http://www.php.net/{FNAME}', + 4 => '' + ), + +The indices of this array correspond to the keyword groups you specified in the keywords section. The string {FNAME} marks where the name of the function is substituted in. So for the example above, if the keyword being highlighted is "echo", then the keyword will be a URL pointing to http://www.php.net/echo. Because some languages (Java!) don't keep a uniform URL for functions/classes, you may have trouble in creating a URL for that language (though look in the java language file for a novel solution to it's problem) +4.3.7: Object Orientation Support +Top | Contents | Next | Previous + +Now we're reaching the most little-used section of a language file, which includes such goodies as object orientation support and context support. GeSHi can highlight methods and data fields of objects easily, all you need to do is to tell it to do so and what the "splitter" is between object/method etc. + +Here's an example: + + 'OOLANG' => true, + 'OBJECT_SPLITTER' => '->', + +If your language has object orientation, the value of 'OOLANG' is true, otherwise it is false. If it is object orientated, in the 'OBJECT_SPLITTER' value you put the htmlentities() version of the "splitter" between objects and methods/fields. If it is not, then make this the empty string. +4.3.8: Using Regular Expressions +Top | Contents | Next | Previous + +Regular expressions are a good way to catch any other lexic that fits certain rules but can't be listed as a keyword. A good example is variables in PHP: variables always start with either one or two "$" signs, then alphanumeric characters (a simplification). This is easy to catch with regular expressions. + +And new to version 1.0.2, there is an advanced way of using regular expressions to catch certain things but highlight only part of those things. This is particularly useful for languages like XML. +Caution: + +Regular expressions use the PCRE syntax (perl-style), not the ereg() style! + +Here is an example (this time the PHP file merged with the XML file): + + 0 => array( + GESHI_SEARCH => '(((xml:)?[a-z\-]+))(=)', + GESHI_REPLACE => '\\1', + GESHI_MODIFIERS => '', + GESHI_BEFORE => '', + GESHI_AFTER => '\\4' + ), + 1 => array( + GESHI_SEARCH => '(>/?[a-z0-9]*(>)?)', + GESHI_REPLACE => '\\1', + GESHI_MODIFIERS => '', + GESHI_BEFORE => '', + GESHI_AFTER => '' + ), + 2 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*" + +As you can see there are two formats. One is the "simple" format used in GeSHi < 1.0.2, and the other is a more advanced syntax. Firstly, the simple syntax: + + * May be in double quotes: To make it easier for those who always place their regular expressions in double quotes, you may place any regular expression here in double quotes if you wish. + * Don't use curly brackets where possible: If you want to use curly brackets (()) then by all means give it a try, but I'm not sure whether under some circumstances GeSHi may throw a wobbly. You have been warned! If you want to use brackets, it would be better to use the advanced syntax. + * Don't use the "everything" regex: (That's the .*? regex). Use advanced syntax instead. + +And now for advanced syntax, which gives you much more control over exactly what is highlighted: + + * GESHI_SEARCH: This element specifies the regular expression to search for. If you plan to capture the output, use brackets (()). See how in the first example above, most of the regular expression is in one set of brackets (with the equals sign in other brackets). You should make sure that the part of the regular expression that is supposed to match what is highlighted is in brackets. + * GESHI_REPLACE: This is what the stuff matched by the regular expression will be replaced with. If you've grouped the stuff you want highlighted into brackets in the GESHI_SEARCH element, then you can use \\number to match that group, where number is a number corresponding to how many open brackets are between the open bracket of the group you want highlighted and the start of the GESHI_SEARCH string + 1. This may sound confusing, and it probably is, but if you're familiar with how PHP's regular expressions work you should understand. In the example above, the opening bracket for the stuff we want highlighted is the very first bracket in the string, so the number of brackets before that bracket and the start of the string is 0. So we add 1 and get our replacement string of \\1 (whew!). + + If you didn't understand a word of that, make sure that there are brackets around the string in GESHI_SEARCH and use \\1 for GESHI_REPLACE ;) + * GESHI_MODIFIERS: Specify modifiers for your regular expression. If your regular expression includes the everything matcher (.*?), then your modifiers should include "s" and "i" (e.g. use 'si' for this). + * GESHI_BEFORE:Specifies a bracket group that should appear before the highlighted match (this bracketed group will not be highlighted). Use this if you had to match what you wanted by matching part of your regexp string to something before what you wanted to highlight, and you don't want that part to disappear in the highlighted result. + * GESHI_AFTER:Specifies a bracket group that should appear after the highlighted match (this bracketed group will not be highlighted). Use this if you had to match what you wanted by matching part of your regexp string to something after what you wanted to highlight, and you don't want that part to disappear in the highlighted result. + +Is that totally confusing? Here's the test for if you're an android or not: If you found that perfectly understandable then you're an android ;). Here's a better example: + +Let's say that I'm making a language, and variables in this language always start with a dollar sign ($), are always written in lowercase letters and always end with an ampersand (&). eg: +$foo& = 'bar' + +I want to highlight only the text between the $ and the &. How do I do that? With simple regular expressions I can't, but with advanced, it's relatively easy: + + 1 => array( + GESHI_SEARCH => '(\$)([a-z]+)(&)', // search for a dollar sign, then one or more of the characters a-z, then an ampersand + GESHI_REPLACE => '\\2', // we wanna highlight the characters, which are in the second bracketed group + GESHI_MODIFIERS => '', // no modifiers, since we're not matching the "anything" regex + GESHI_BEFORE => '\\1', // before the highlighted characters should be the first bracketed group (always a dollar sign in this example) + GESHI_AFTER => '\\3' // after the highlighted characters should be the third bracketed group (always an ampersand in this example) + ), + +So if someone tried to highlight using my language, all cases of $foo& would turn into: +$<span style="color: blue;">foo</span>& + +(which would of course be viewed in a browser to get something like $foo&) +4.3.9: Contextual Highlighting and Strict Mode +Top | Contents | Next | Previous + +For languages like HTML, it's good if we can highlight a tag (like <a> for example). But how do we stop every single "a" in the source getting highlighted? What about for attributes? If I've got the word "colspan" in my text I don't want that highlighted! So how do you tell GeSHi not to highlight in that case? You do it with "Strict Blocks". + +Here is an example: + + 'STRICT_MODE_APPLIES' => GESHI_MAYBE, + 'SCRIPT_DELIMITERS' => array( + 0 => array( + '<?php' => '?>' + ), + 1 => array( + '<?' => '?>' + ), + 2 => array( + '<%' => '%>' + ), + 3 => array( + '<script language="php">' => '</script>' + ) + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + 0 => true, + 1 => true, + 2 => true, + 3 => true + ) + +What is strict mode? Strict mode says that highlighting only occurs inside the blocks you specify. You can see from the example above that highlighting will only occur if the source is inside <?php ... ?> (though note the GESHI_MAYBE!). Here are some points about strict highlighting: + + * 'STRICT_MODE_APPLIES': This takes three values (all constants): + o GESHI_ALWAYS: Strict mode always applies for all of the blocks you specify. Users of your language file cannot turn strict mode off. This should be used for markup languages. + o GESHI_NEVER: Strict mode is never used. Users of your language file cannot turn strict mode on. Use this value if there is no such thing as a block of code that would not be highlighted in your language (most languages, like C, Java etc. use this because anything in a C file should be highlighted). + o GESHI_MAYBE: Strict mode *sometimes* applies. It defaults to "off". Users can turn strict mode on if they please. If strict mode is off then everything in the source will be highlighted, even things outside the strict block markers. If strict mode is on the nothing outside strict block markers will be highlighted. + * SCRIPT_DELIMITERS: This is an array of script delimiters, in the format of the above. The indices are use in the 'SCRIPT' part of the styles section for highlighting everything in a strict block in a certain way. For example, you could set up your language file to make the background yellow of any code inside a strict block this way. The delimiters are in the form 'OPEN' => 'CLOSE'. Delimiters can be of any length > 0. Delimiters are not formatted as if they were run through htmlentities()! + * 'HIGHLIGHT_STRICT_BLOCK': specifies whether any highlighting should go on inside each block. Most of the time this should be true, but for example, in the XML language file highlighting is turned off for blocks beginning with <!DOCTYPE and ending with >. However, you can still style the overall block using the method described above, and the XML language file does just that. + +Note: + +The delimiters should be in reverse alphabetical order. Note that in the above example, <?php comes before <?. +4.3.10: Tidying Up +Top | Contents | Next | Previous + +All language files should end with: + +); + +?> + +5: Method/Constant Reference +Top | Contents | Next | Previous + +I'm afraid I have been lying for a little while about this now! Since 1.0.7 I have been including a phpdoc API for the sourcecode in the api directory, but have forgot to update the documentation! However, it is available, and may assist you in coding, especially for plugin coders. + +That's all, folks! + +I've improved the documentation greatly from version 1.0.1, but there may still be problems with it, or it may still be confusing for you. Or perhaps I was just plain wrong about one point! If so, contact me and I'll do my best to sort it out. + +In case you were wondering, I've finished development of the 1.0.X thread of GeSHi. The only releases I'll make in this thread will be of the bug-fix/add language files type. In particular, version 1.0.2 was a "concept" release - testing how far I could take the highlighting idea (as well as ideas from others). + +I'm planning a code rewrite for 1.2.X, which will be based on a new engine - a "psuedo-tokenizer" engine. Hopefully it will massively reduce the server load and time taken (by almost eliminating regexps), while providing superior highlighting. But fear not! The interface and method names should all remain the same ^_^ (though I can't say the same for language files!) + +And finally, a couple of people have been asking me: how did you generate that documentation? The amazing answer is: my brain. And yes, it took a long time, and I don't reccommend doing it this way. And yes, you can borrow the styles if you like, though flick me an e-mail if you do. + +Anyway, enough blather from me. Get GeSHi working for you already! :D + +Nigel McNie +nigel@geshi.org +http://qbnz.com/highlighter/ + diff --git a/extensions/SyntaxHighlight_GeSHi/geshi/docs/phpdoc.ini b/extensions/SyntaxHighlight_GeSHi/geshi/docs/phpdoc.ini new file mode 100644 index 00000000..a55bc337 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/geshi/docs/phpdoc.ini @@ -0,0 +1,90 @@ +;; phpDocumentor parse configuration file +;; +;; This file is designed to cut down on repetitive typing on the command-line or web interface +;; You can copy this file to create a number of configuration files that can be used with the +;; command-line switch -c, as in phpdoc -c default.ini or phpdoc -c myini.ini. The web +;; interface will automatically generate a list of .ini files that can be used. +;; +;; default.ini is used to generate the online manual at http://www.phpdoc.org/docs +;; +;; ALL .ini files must be in the user subdirectory of phpDocumentor with an extension of .ini +;; +;; Copyright 2002, Greg Beaver <cellog@users.sourceforge.net> +;; +;; WARNING: do not change the name of any command-line parameters, phpDocumentor will ignore them + +[Parse Data] +;; title of all the documentation +;; legal values: any string +title = GeSHi 1.0.8 + +;; parse files that start with a . like .bash_profile +;; legal values: true, false +hidden = false + +;; show elements marked @access private in documentation by setting this to on +;; legal values: on, off +parseprivate = off + +;; parse with javadoc-like description (first sentence is always the short description) +;; legal values: on, off +javadocdesc = off + +;; add any custom @tags separated by commas here +;; legal values: any legal tagname separated by commas. +customtags = note + +;; This is only used by the XML:DocBook/peardoc2 converter +defaultcategoryname = Documentation + +;; what is the main package? +;; legal values: alphanumeric string plus - and _ +defaultpackagename = core + +;; output any parsing information? set to on for cron jobs +;; legal values: on +;quiet = on + +;; parse a PEAR-style repository. Do not turn this on if your project does +;; not have a parent directory named "pear" +;; legal values: on/off +;pear = on + +;; where should the documentation be written? +;; legal values: a legal path +target = api + +;; limit output to the specified packages, even if others are parsed +;; legal values: package names separated by commas +;packageoutput = package1,package2 + +;; comma-separated list of files to parse +;; legal values: paths separated by commas +filename = ../geshi.php + +;; comma-separated list of directories to parse +;; legal values: directory paths separated by commas +;directory = /path1,/path2,.,..,subdirectory +;directory = /home/jeichorn/cvs/pear +;directory = geshi + +;; template base directory (the equivalent directory of <installdir>/phpDocumentor) +;templatebase = /path/to/my/templates + +;; comma-separated list of files, directories or wildcards ? and * (any wildcard) to ignore +;; legal values: any wildcard strings separated by commas +;ignore = /path/to/ignore*,*list.php,myfile.php,subdirectory/ +ignore = /*.svn/* + +;; comma-separated list of Converters to use in outputformat:Convertername:templatedirectory format +;; legal values: HTML:frames:default,HTML:frames:l0l33t,HTML:frames:phpdoc.de,HTML:frames:phphtmllib, +;; HTML:frames:earthli, +;; HTML:frames:DOM/default,HTML:frames:DOM/l0l33t,HTML:frames:DOM/phpdoc.de, +;; HTML:frames:DOM/phphtmllib,HTML:frames:DOM/earthli +;; HTML:Smarty:default,HTML:Smarty:PHP,HTML:Smarty:HandS +;; PDF:default:default,CHM:default:default,XML:DocBook/peardoc2:default +output=HTML:frames:earthli + +;; turn this option on if you want highlighted source code for every file +;; legal values: on/off +sourcecode = on |