javascriptcursus/php/geshi/docs/api/geshi/core/GeSHi.html

<?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 &lt;<a href="mailto:nigel@geshi.org">nigel@geshi.org</a>&gt;, Benny Baumann &lt;BenBE@omorphia.de&gt;</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>&nbsp;<span class="var-name">$source</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$language</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$styles</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$case_sensitive</span> = <span class="var-default">true</span>], [<span class="var-type">array</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$flag</span>, [<span class="var-type">int</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$extension</span>, [<span class="var-type">array</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$lines</span>, [<span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$file_name</span>, [<span class="var-type">array</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>, [<span class="var-type">bool</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$language</span>, [<span class="var-type"></span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style1</span>, [<span class="var-type">string|boolean</span>&nbsp;<span class="var-name">$style2</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$type</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type"></span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>], [<span class="var-type">int</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$group</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$source</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$language</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$styles</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$case_sensitive</span> = <span class="var-default">true</span>], [<span class="var-type">array</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$flag</span>, [<span class="var-type">int</span>&nbsp;<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>&nbsp;<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>&nbsp;<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-&gt;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>&nbsp;<span class="var-name">$extension</span>, [<span class="var-type">array</span>&nbsp;<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-&gt;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>&nbsp;<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>&nbsp;<span class="var-name">$lines</span>, [<span class="var-type">string</span>&nbsp;<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>&nbsp;<span class="var-name">$file_name</span>, [<span class="var-type">array</span>&nbsp;<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>&nbsp;<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 &amp; 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-&gt;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 &amp;lt;span&amp;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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>, [<span class="var-type">bool</span>&nbsp;<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-&gt;parse_code() was already called once, for the current language, you have to manually call @see GeSHi-&gt;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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<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 &quot;div&quot;.This means more source code but more control over tab width and line-wrapping. GESHI_HEADER_PRE means that a &quot;pre&quot; 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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$language</span>, [<span class="var-type"></span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style1</span>, [<span class="var-type">string|boolean</span>&nbsp;<span class="var-name">$style2</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<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 &quot;normal&quot;</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 &quot;fancy&quot;, 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 &quot;fancy&quot; 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>&nbsp;<span class="var-name">$type</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<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>&nbsp;<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 &quot;object splitter&quot; - 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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<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>&nbsp;<span class="var-name">$key</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$style</span>, [<span class="var-type"></span>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$style</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$preserve_defaults</span> = <span class="var-default">false</span>], [<span class="var-type">int</span>&nbsp;<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>&nbsp;<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>&nbsp;<span class="var-name">$group</span>, <span class="var-type">string</span>&nbsp;<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>&nbsp;<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 &quot;start&quot; attribute to the &amp;lt;ol&amp;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>&nbsp;<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>

Resultaat

Made by Thijs Aarnoudse