Full index

Package indexes


a d e g h l o p r s
a
top
Method add_keyword
Adds a keyword to a keyword group for highlighting
Method add_keyword_group
Creates a new keyword group
d
top
Method disable_highlighting
Disables all highlighting
e
top
Method enable_classes
Sets whether CSS classes should be used to highlight the source. Default is off, calling this method with no arguments will turn it on
Method enable_highlighting
Enables all highlighting
Method enable_ids
GeSHi::enable_ids() in geshi.php
Whether CSS IDs should be added to each line
Method enable_important_blocks
Sets whether context-important blocks are highlighted
Method enable_inner_code_block
Sets whether to force a surrounding block around the highlighted code or not
Method enable_keyword_links
Turns linking of keywords on or off.
Method enable_line_numbers
Sets whether line numbers should be displayed.
Method enable_multiline_span
Sets wether spans and other HTML markup generated by GeSHi can span over multiple lines or not. Defaults to true to reduce overhead.
Method enable_strict_mode
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.
Method error
GeSHi::error() in geshi.php
Returns an error message associated with the last GeSHi operation, or false if no error has occured
g
top
Method GeSHi
GeSHi::GeSHi() in geshi.php
Creates a new GeSHi object, with source and language
Class GeSHi
GeSHi in geshi.php
The GeSHi Class.
Page geshi.php
geshi.php in geshi.php
Constant GESHI_ACTIVE
GESHI_ACTIVE in geshi.php
Links in the source in the :active state
Constant GESHI_CAPS_LOWER
GESHI_CAPS_LOWER in geshi.php
Leave keywords found as the case that they are
Constant GESHI_CAPS_NO_CHANGE
Lowercase keywords found
Constant GESHI_CAPS_UPPER
GESHI_CAPS_UPPER in geshi.php
Uppercase keywords found
Constant GESHI_END_IMPORTANT
GESHI_END_IMPORTANT in geshi.php
The ender for important parts of the source
Constant GESHI_FANCY_LINE_NUMBERS
Use fancy line numbers when building the result
Constant GESHI_HEADER_DIV
GESHI_HEADER_DIV in geshi.php
Use a "div" to surround the source
Constant GESHI_HEADER_NONE
GESHI_HEADER_NONE in geshi.php
Use nothing to surround the source
Constant GESHI_HEADER_PRE
GESHI_HEADER_PRE in geshi.php
Use a "pre" to surround the source
Constant GESHI_HEADER_PRE_TABLE
Use a "table" to surround the source:
Constant GESHI_HEADER_PRE_VALID
Use a pre to wrap lines when line numbers are enabled or to wrap the whole code.
Function geshi_highlight
geshi_highlight() in geshi.php
Easy way to highlight stuff. Behaves just like highlight_string
Constant GESHI_HOVER
GESHI_HOVER in geshi.php
Links in the source in the :hover state
Constant GESHI_LANG_ROOT
GESHI_LANG_ROOT in geshi.php
The language file directory for GeSHi
Constant GESHI_LINK
GESHI_LINK in geshi.php
Links in the source in the :link state
Constant GESHI_NORMAL_LINE_NUMBERS
Use normal line numbers when building the result
Constant GESHI_NO_LINE_NUMBERS
Use no line numbers when building the result
Constant GESHI_ROOT
GESHI_ROOT in geshi.php
The root directory for GeSHi
Constant GESHI_SECURITY_PARANOID
Tells GeSHi to be paranoid about security settings
Constant GESHI_START_IMPORTANT
The starter for important parts of the source
Constant GESHI_VERSION
GESHI_VERSION in geshi.php
The version of this GeSHi file
Constant GESHI_VISITED
GESHI_VISITED in geshi.php
Links in the source in the :visited state
Method get_language_name
Gets a human-readable language name (thanks to Simon Patterson for the idea :))
Method get_language_name_from_extension
Given a file extension, this method returns either a valid geshi language name, or the empty string if it couldn't be found
Method get_multiline_span
Get current setting for multiline spans, see GeSHi->enable_multiline_span().
Method get_real_tab_width
Returns the tab width to use, based on the current language and user preference
Method get_stylesheet
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
Method get_time
GeSHi::get_time() in geshi.php
Gets the time taken to parse the code
h
top
Method highlight_lines_extra
Specifies which lines to highlight extra
l
top
Method load_from_file
Given a file name, this method loads its contents in, and attempts
o
top
Method optimize_keyword_group
compile optimized regexp list for keyword group
p
top
Method parse_code
GeSHi::parse_code() in geshi.php
Returns the code in $this->source, highlighted and surrounded by the nessecary HTML.
r
top
Method remove_keyword
Removes a keyword from a keyword group
Method remove_keyword_group
Removes a keyword group
s
top
Method set_brackets_highlighting
Turns highlighting on/off for brackets
Method set_brackets_style
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
Method set_case_keywords
Sets the case that keywords should use when found. Use the constants:
Method set_case_sensitivity
Sets whether a set of keywords are checked for in a case sensitive manner
Method set_code_style
Sets the style for the actual code. This should be a string
Method set_comments_highlighting
Turns highlighting on/off for comment groups
Method set_comments_style
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
Method set_encoding
Sets the encoding used for htmlspecialchars(), for international support.
Method set_escape_characters_highlighting
Turns highlighting on/off for escaped characters
Method set_escape_characters_style
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
Method set_footer_content
Sets the content of the footer block
Method set_footer_content_style
Sets the style for the footer content
Method set_header_content
Sets the content of the header block
Method set_header_content_style
Sets the style for the header content
Method set_header_type
Sets the type of header to be used.
Method set_highlight_lines_extra_style
Sets the style for extra-highlighted lines
Method set_important_styles
Sets styles for important parts of the code
Method set_keyword_group_highlighting
Turns highlighting on/off for a keyword group
Method set_keyword_group_style
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
Method set_language
Sets the language for this object
Method set_language_path
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.
Method set_line_ending
Sets the line-ending
Method set_line_style
Sets the styles for the line numbers.
Method set_link_styles
Sets styles for links in code
Method set_link_target
Sets the target for links in code
Method set_methods_highlighting
Turns highlighting on/off for methods
Method set_methods_style
Sets the styles for methods. $key is a number that references the
Method set_numbers_highlighting
Turns highlighting on/off for numbers
Method set_numbers_style
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
Method set_overall_class
Sets the overall classname for this block of code. This class can then be used in a stylesheet to style this object's output
Method set_overall_id
Sets the overall id for this block of code. This id can then be used in a stylesheet to style this object's output
Method set_overall_style
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
Method set_regexps_highlighting
Turns highlighting on/off for regexps
Method set_regexps_style
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
Method set_source
GeSHi::set_source() in geshi.php
Sets the source code for this object
Method set_strings_highlighting
Turns highlighting on/off for strings
Method set_strings_style
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
Method set_symbols_highlighting
Turns highlighting on/off for symbols
Method set_symbols_style
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
Method set_tab_width
Sets how many spaces a tab is substituted for
Method set_url_for_keyword_group
Sets the base URL to be used for keywords
Method set_use_language_tab_width
Sets whether or not to use tab-stop width specifed by language
Method start_line_numbers_at
Sets what number line numbers should start at. Should be a positive integer, and will be converted to one.
a d e g h l o p r s