Skip to content

Commit

Permalink
CC
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Mar 30, 2024
1 parent a2819b4 commit f9ea8c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions classes/admin_setting_highlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class admin_setting_highlight extends \admin_setting {
/**
* Not a setting, just text
*
* @param string $name
* @param string $visiblename
* @param string $description
* @param string $name Name of the setting.
* @param string $visiblename Visible name of the setting.
* @param string $description Description of the setting.
*/
public function __construct($name, $visiblename, $description) {
$this->nosave = true;
Expand Down
6 changes: 4 additions & 2 deletions classes/toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ private function enlighterjs_init($config) {
$data = new stdClass();
$data->thejs = new moodle_url(self::ENLIGHTERJSJS);
$data->thecss = new moodle_url(self::ENLIGHTERJSCSSPRE . $config->enlighterjsstyle . self::ENLIGHTERJSCSSPOST);
$data->theinit = "EnlighterJS.init('pre code', 'code', {theme: '" . $config->enlighterjsstyle . "', indent : 4, collapse: true});";
$data->theinit = "EnlighterJS.init('pre code', 'code', {theme: '" .
$config->enlighterjsstyle . "', indent : 4, collapse: true});";

return $data;
}
Expand All @@ -345,7 +346,8 @@ private function enlighterjs_init($config) {
private function syntaxhighlighter_init($config) {
$data = new stdClass();
$data->thejs = new moodle_url(self::SYNTAXHIGHLIGHTERJS);
$data->thecss = new moodle_url(self::SYNTAXHIGHLIGHTERCSSPRE . $config->syntaxhighlighterstyle . self::SYNTAXHIGHLIGHTERCSSPOST);
$data->thecss = new moodle_url(self::SYNTAXHIGHLIGHTERCSSPRE .
$config->syntaxhighlighterstyle . self::SYNTAXHIGHLIGHTERCSSPOST);

return $data;
}
Expand Down

0 comments on commit f9ea8c9

Please sign in to comment.