Skip to content

Commit

Permalink
Fixes to UCC highlighting in Seven Towers
Browse files Browse the repository at this point in the history
Also, adding a dark theme for it.
  • Loading branch information
marzojr committed Apr 27, 2024
1 parent 79ff556 commit 5d54f0c
Show file tree
Hide file tree
Showing 8 changed files with 708 additions and 291 deletions.
4 changes: 2 additions & 2 deletions seventowers/code.inc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
function parse_code($source, $lines = false)
{
$geshi = new GeSHi($source, 'ucc');
$geshi->enable_classes();
$geshi->enable_classes(true);
if ($lines)
{
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);
Expand Down Expand Up @@ -133,7 +133,7 @@
}
else
$code = $source;
return $code;
return '<span class="ucc">' . $code . '</span>';
}

function code_file($file, $block = true, $lines = false, $offset = 0, $out = true)
Expand Down
2 changes: 1 addition & 1 deletion seventowers/content/usecode.dat
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ If you wisely don't use Windows, you will have to compile your own binary."
"NAME" => $filename,
"EXT" => $ext,
"TITLE" => $finfo["TITLE"],
"BLURBNFO" => $finfo["README"],
"BLURBNFO" => "",//$finfo["README"],
"DIR" => $dir
);
}
Expand Down
Loading

0 comments on commit 5d54f0c

Please sign in to comment.