ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
highlight (string $a_code) | |
Static Public Member Functions | |
static | getInstance (string $a_lang) |
static | getSupportedLanguages () |
Get supported languages (keys are internal values, values are for representation) More... | |
static | isSupported (string $a_lang) |
Is language supported? More... | |
static | getNewLanguageId (string $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 (string $a_lang) | |
Protected Attributes | |
string | $lang |
Static Protected Attributes | |
static array | $langs |
static array | $v51_map |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Syntax highlighter wrapper class
Definition at line 24 of file class.ilSyntaxHighlighter.php.
|
protected |
Definition at line 61 of file class.ilSyntaxHighlighter.php.
|
static |
Definition at line 66 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
static |
Get new language id (for an old one)
Definition at line 91 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
static |
Get supported languages (keys are internal values, values are for representation)
Definition at line 75 of file class.ilSyntaxHighlighter.php.
|
static |
Get supported languages (keys are ILIAS <= 5.1 internal values, values are for representation)
Definition at line 100 of file class.ilSyntaxHighlighter.php.
References $langs.
Referenced by ilPCSourceCodeGUI\getProgLangOptions().
ilSyntaxHighlighter::highlight | ( | string | $a_code | ) |
Definition at line 113 of file class.ilSyntaxHighlighter.php.
|
static |
Is language supported?
Definition at line 83 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
|
protected |
Definition at line 59 of file class.ilSyntaxHighlighter.php.
|
staticprotected |
Definition at line 39 of file class.ilSyntaxHighlighter.php.
Referenced by getSupportedLanguagesV51().
|
staticprotected |
Definition at line 53 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::C = "c" |
Definition at line 28 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::CPP = "cpp" |
Definition at line 29 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::DELPHI = "delphi" |
Definition at line 34 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::HTML = "html4strict" |
Definition at line 30 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::JAVA = "java" |
Definition at line 26 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::LATEX = "latex" |
Definition at line 33 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::PHP = "php" |
Definition at line 27 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::VISUAL_BASIC = "vb" |
Definition at line 32 of file class.ilSyntaxHighlighter.php.
const ilSyntaxHighlighter::XML = "xml" |
Definition at line 31 of file class.ilSyntaxHighlighter.php.