|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilSyntaxHighlighter: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" |
| const | PYTHON = "python" |
| const | CSS = "css" |
| const | JAVASCRIPT = "javascript" |
| const | SQL = "sql" |
| const | BASH = "bash" |
| const | POWERSHELL = "powershell" |
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 26 of file class.ilSyntaxHighlighter.php.
|
protected |
Definition at line 76 of file class.ilSyntaxHighlighter.php.
|
static |
Definition at line 81 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
Here is the caller graph for this function:
|
static |
Get new language id (for an old one)
Definition at line 106 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
Here is the caller graph for this function:
|
static |
Get supported languages (keys are internal values, values are for representation)
Definition at line 90 of file class.ilSyntaxHighlighter.php.
|
static |
Get supported languages (keys are ILIAS <= 5.1 internal values, values are for representation)
Definition at line 115 of file class.ilSyntaxHighlighter.php.
References $langs.
Referenced by ilPCSourceCodeGUI\getProgLangOptions().
Here is the caller graph for this function:| ilSyntaxHighlighter::highlight | ( | string | $a_code | ) |
Definition at line 128 of file class.ilSyntaxHighlighter.php.
|
static |
Is language supported?
Definition at line 98 of file class.ilSyntaxHighlighter.php.
Referenced by ilPCSourceCode\highlightText().
Here is the caller graph for this function:
|
protected |
Definition at line 74 of file class.ilSyntaxHighlighter.php.
|
staticprotected |
Definition at line 47 of file class.ilSyntaxHighlighter.php.
Referenced by getSupportedLanguagesV51().
|
staticprotected |
Definition at line 68 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::BASH = "bash" |
Definition at line 41 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::C = "c" |
Definition at line 30 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::CPP = "cpp" |
Definition at line 31 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::CSS = "css" |
Definition at line 38 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::DELPHI = "delphi" |
Definition at line 36 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::HTML = "html4strict" |
Definition at line 32 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::JAVA = "java" |
Definition at line 28 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::JAVASCRIPT = "javascript" |
Definition at line 39 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::LATEX = "latex" |
Definition at line 35 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::PHP = "php" |
Definition at line 29 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::POWERSHELL = "powershell" |
Definition at line 42 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::PYTHON = "python" |
Definition at line 37 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::SQL = "sql" |
Definition at line 40 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::VISUAL_BASIC = "vb" |
Definition at line 34 of file class.ilSyntaxHighlighter.php.
| const ilSyntaxHighlighter::XML = "xml" |
Definition at line 33 of file class.ilSyntaxHighlighter.php.