ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Syntax highlighter wrapper class. More...
Public Member Functions | |
highlight ($a_code) | |
Highlight code. More... | |
Static Public Member Functions | |
static | getInstance ($a_lang) |
Get instance. More... | |
static | getSupportedLanguages () |
Get supported languages (keys are internal values, values are for representation) More... | |
static | isSupported ($a_lang) |
Is language supported? More... | |
static | getNewLanguageId ($a_old_lang_id) |
Get new language id (for an old one) More... | |
static | getSupportedLanguagesV51 () |
Get supported languages (keys are ILIAS <= 5.1 internal values, values are for representation) More... | |
Data Fields | |
const | JAVA = "java" |
const | PHP = "php" |
const | C = "c" |
const | CPP = "cpp" |
const | HTML = "html4strict" |
const | XML = "xml" |
const | VISUAL_BASIC = "vb" |
const | LATEX = "latex" |
const | DELPHI = "delphi" |
Protected Member Functions | |
__construct ($a_lang) | |
Constructor. More... | |
Protected Attributes | |
$lang | |
Static Protected Attributes | |
static | $langs |
static | $v51_map |
Syntax highlighter wrapper class.
Definition at line 12 of file class.ilSyntaxHighlighter.php.
|
protected |
Constructor.
string | $a_lang | language constant |
Definition at line 58 of file class.ilSyntaxHighlighter.php.
|
static |
Get instance.
string | $a_lang | language constant |
Definition at line 69 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
static |
Get new language id (for an old one)
string | $a_old_lang_id |
Definition at line 102 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
static |
Get supported languages (keys are internal values, values are for representation)
return string[]
Definition at line 80 of file class.ilSyntaxHighlighter.php.
References $langs.
|
static |
Get supported languages (keys are ILIAS <= 5.1 internal values, values are for representation)
return string[]
Definition at line 118 of file class.ilSyntaxHighlighter.php.
References $langs.
Referenced by ilPCSourceCodeGUI\getProgLangOptions().
ilSyntaxHighlighter::highlight | ( | $a_code | ) |
Highlight code.
string | $a_code |
Definition at line 139 of file class.ilSyntaxHighlighter.php.
References $geshi.
|
static |
Is language supported?
string | $a_lang |
Definition at line 91 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
protected |
Definition at line 50 of file class.ilSyntaxHighlighter.php.
|
staticprotected |
Definition at line 27 of file class.ilSyntaxHighlighter.php.
Referenced by getSupportedLanguages(), and getSupportedLanguagesV51().
|
staticprotected |
Definition at line 41 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::C = "c" |
Definition at line 16 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::CPP = "cpp" |
Definition at line 17 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::DELPHI = "delphi" |
Definition at line 22 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::HTML = "html4strict" |
Definition at line 18 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::JAVA = "java" |
Definition at line 14 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::LATEX = "latex" |
Definition at line 21 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::PHP = "php" |
Definition at line 15 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::VISUAL_BASIC = "vb" |
Definition at line 20 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::XML = "xml" |
Definition at line 19 of file class.ilSyntaxHighlighter.php.