-
GeSHi
-
Creates a new GeSHi object, with source and language
-
GeSHi
-
The GeSHi Class.
-
geshi.php
-
-
GESHI_ACTIVE
-
Links in the source in the :active state
-
GESHI_CAPS_LOWER
-
Leave keywords found as the case that they are
-
GESHI_CAPS_NO_CHANGE
-
Lowercase keywords found
-
GESHI_CAPS_UPPER
-
Uppercase keywords found
-
GESHI_END_IMPORTANT
-
The ender for important parts of the source
-
GESHI_FANCY_LINE_NUMBERS
-
Use fancy line numbers when building the result
-
GESHI_HEADER_DIV
-
Use a "div" to surround the source
-
GESHI_HEADER_NONE
-
Use nothing to surround the source
-
GESHI_HEADER_PRE
-
Use a "pre" to surround the source
-
GESHI_HEADER_PRE_TABLE
-
Use a "table" to surround the source:
-
GESHI_HEADER_PRE_VALID
-
Use a pre to wrap lines when line numbers are enabled or to wrap the whole code.
-
geshi_highlight
-
Easy way to highlight stuff. Behaves just like highlight_string
-
GESHI_HOVER
-
Links in the source in the :hover state
-
GESHI_LANG_ROOT
-
The language file directory for GeSHi
-
GESHI_LINK
-
Links in the source in the :link state
-
GESHI_NORMAL_LINE_NUMBERS
-
Use normal line numbers when building the result
-
GESHI_NO_LINE_NUMBERS
-
Use no line numbers when building the result
-
GESHI_ROOT
-
The root directory for GeSHi
-
GESHI_SECURITY_PARANOID
-
Tells GeSHi to be paranoid about security settings
-
GESHI_START_IMPORTANT
-
The starter for important parts of the source
-
GESHI_VERSION
-
The version of this GeSHi file
-
GESHI_VISITED
-
Links in the source in the :visited state
-
get_language_name
-
Gets a human-readable language name (thanks to Simon Patterson for the idea :))
-
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
-
get_multiline_span
-
Get current setting for multiline spans, see GeSHi->enable_multiline_span().
-
get_real_tab_width
-
Returns the tab width to use, based on the current language and user preference
-
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
-
get_time
-
Gets the time taken to parse the code
-
set_brackets_highlighting
-
Turns highlighting on/off for brackets
-
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
-
set_case_keywords
-
Sets the case that keywords should use when found. Use the constants:
-
set_case_sensitivity
-
Sets whether a set of keywords are checked for in a case sensitive manner
-
set_code_style
-
Sets the style for the actual code. This should be a string
-
set_comments_highlighting
-
Turns highlighting on/off for comment groups
-
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
-
set_encoding
-
Sets the encoding used for htmlspecialchars(), for international support.
-
set_escape_characters_highlighting
-
Turns highlighting on/off for escaped characters
-
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
-
set_footer_content
-
Sets the content of the footer block
-
set_footer_content_style
-
Sets the style for the footer content
-
set_header_content
-
Sets the content of the header block
-
set_header_content_style
-
Sets the style for the header content
-
set_header_type
-
Sets the type of header to be used.
-
set_highlight_lines_extra_style
-
Sets the style for extra-highlighted lines
-
set_important_styles
-
Sets styles for important parts of the code
-
set_keyword_group_highlighting
-
Turns highlighting on/off for a keyword group
-
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
-
set_language
-
Sets the language for this object
-
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.
-
set_line_ending
-
Sets the line-ending
-
set_line_style
-
Sets the styles for the line numbers.
-
set_link_styles
-
Sets styles for links in code
-
set_link_target
-
Sets the target for links in code
-
set_methods_highlighting
-
Turns highlighting on/off for methods
-
set_methods_style
-
Sets the styles for methods. $key is a number that references the
-
set_numbers_highlighting
-
Turns highlighting on/off for numbers
-
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
-
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
-
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
-
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
-
set_regexps_highlighting
-
Turns highlighting on/off for regexps
-
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
-
set_source
-
Sets the source code for this object
-
set_strings_highlighting
-
Turns highlighting on/off for strings
-
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
-
set_symbols_highlighting
-
Turns highlighting on/off for symbols
-
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
-
set_tab_width
-
Sets how many spaces a tab is substituted for
-
set_url_for_keyword_group
-
Sets the base URL to be used for keywords
-
set_use_language_tab_width
-
Sets whether or not to use tab-stop width specifed by language
-
start_line_numbers_at
-
Sets what number line numbers should start at. Should be a positive integer, and will be converted to one.