Home | History | Annotate | Download | only in geshi

Lines Matching refs:geshi

3  * GeSHi - Generic Syntax Highlighter
5 * The GeSHi class for Generic Syntax Highlighting. Please refer to the
12 * This file is part of GeSHi.
14 * GeSHi is free software; you can redistribute it and/or modify
19 * GeSHi is distributed in the hope that it will be useful,
25 * along with GeSHi; if not, write to the Free Software
28 * @package geshi
30 * @author Nigel McNie <nigel@geshi.org>, Benny Baumann <BenBE@omorphia.de>
37 // GeSHi Constants
43 /** The version of this GeSHi file */
46 // Define the root directory for the GeSHi code tree
48 /** The root directory for GeSHi */
51 /** The language file directory for GeSHi
53 define('GESHI_LANG_ROOT', GESHI_ROOT . 'geshi' . DIRECTORY_SEPARATOR);
55 // Define if GeSHi should be paranoid about security
57 /** Tells GeSHi to be paranoid about security settings */
115 define('GESHI_START_IMPORTANT', '<BEGIN GeSHi>');
117 define('GESHI_END_IMPORTANT', '<END GeSHi>');
126 disabled by {@link GeSHi->enable_strict_mode()} */
187 @see GeSHi->optimize_regexp_list()
193 @see GeSHi->optimize_regexp_list()
233 /** GeSHi could not open a file for reading (generally a language file) */
235 /** The header type passed to {@link GeSHi->set_header_type()} was invalid */
237 /** The line number type passed to {@link GeSHi->enable_line_numbers()} was invalid */
243 * The GeSHi Class.
245 * Please refer to the documentation for GeSHi 1.0.X that is available
249 * @package geshi
250 * @author Nigel McNie <nigel@geshi.org>, Benny Baumann <BenBE@omorphia.de>
253 class GeSHi {
293 GESHI_ERROR_NO_SUCH_LANG => 'GeSHi could not find the language {LANGUAGE} (using path {PATH})',
578 * Creates a new GeSHi object, with source and language
588 * {@link GeSHi->set_language_path()}
591 function GeSHi($source = '', $language = '', $path = '') {
602 * Returns an error message associated with the last GeSHi operation,
620 return "<br /><strong>GeSHi Error:</strong> $msg (code {$this->error})<br />";
694 * geshi.php, NOT geshi.php itself.
818 * GeSHi documentation for more information about this.
888 * Sets wether spans and other HTML markup generated by GeSHi can
901 * Get current setting for multiline spans, see GeSHi->enable_multiline_span().
1319 * Given a file extension, this method returns either a valid geshi language
1459 * Note: if you set this to false and @see GeSHi->parse_code() was already called once,
1460 * for the current language, you have to manually call @see GeSHi->optimize_keyword_group()
1657 * @todo REMOVE THIS SHIZ FROM GESHI!
2309 // is really the engine of GeSHi (along with the method
2424 $string = "<span$string_attributes>" . GeSHi::hsc($char);
2516 GeSHi::hsc($this->language_data['ESCAPE_CHAR']);
3714 $this->overall_id = 'geshi-' . substr(md5(microtime()), 0, 4);
4232 " * GeSHi Dynamically Generated Stylesheet\n".
4236 " * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n" .
4237 " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n".
4242 " * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n" .
4243 " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n".
4587 } // End Class GeSHi
4603 $geshi = new GeSHi($string, $language, $path);
4604 $geshi->set_header_type(GESHI_HEADER_NONE);
4607 return '<code>' . $geshi->parse_code() . '</code>';
4610 echo '<code>' . $geshi->parse_code() . '</code>';
4612 if ($geshi->error()) {