GeSHi Syntax Highlighter

Status

saint

IPVP.ORG
Premium
Feedback score
2
Posts
86
Reactions
87
Resources
0
Please enable code syntax highlighting. Currently the only code that we are able to highlight is HTML and PHP (and standard text in a CODE box) and it would be a great tool if we were able to highlight other languages such as JAVA or YAML.

PHP Highlighting Example (via. Wikipedia):
PHP:
function getAdder($x) {
    return function($y) use ($x) {
        return $x + $y;
    };
}

$adder = getAdder(8);
echo $adder(2); // prints "10"

Currently we have no way to format JAVA other than entering it in a standard CODE box. There is a XenForo addon that takes care of this, it can be found here: https://xenforo.com/community/resources/geshi-syntax-highlighter.89/

It allows us to add args to the CODE box such as the following:
Code:
[CODE="java"]

If you do decide to install this addon, please enable line numbers by going to Home -> Options -> Messages -> Show Line Numbers in Parsed BBCode in your admin panel.
 
Type
Suggestion
Status
Denied
Status
Top