I really, really like this mod, and I am messing around with it. So far, I did some changes, including being able to change the colors, the font and other things in a CSS class.
<?
$this->settings = array(
S_NONE => array('<span class=".S_NONE">',"</span>"),
S_KEYWORD => array('<span class=".S_KEYWORD">',"</span>"),
S_IDENTIFIER => array('<span class=".S_IDENTIFIER">',"</span>"),
S_NUMBER => array('<span class=".S_NUMBER">',"</span>"),
S_STRING => array('<span class=".S_STRING">',"</span>"),
S_STRING2 => array('<span class=".S_STRING2">',"</span>"),
S_SYMBOL => array('<span class=".S_SYMBOL">',"</span>"),
S_NUMBER => array('<span class=".S_NUMBER">',"</span>"),
S_OBJECT => array('<span class=".S_OBJECT">',"</span>"),
S_COMMENT1 => array('<span class=".S_COMMENT1">',"</span>"),
S_COMMENT2 => array('<span class=".S_COMMENT2">',"</span>"),
S_COMMENT3 => array('<span class=".S_COMMENT3">',"</span>"),
S_DIRECTIVE => array('<span class=".S_DIRECTIVE">',"</span>")
);
?>
I also am looking to some other stuff in RAFB's script which also does multi-syntax highlighting, and has some features on that I would like to add in this script as well such as the line numbers when outputted.
Since I am new to PHP, and I do learn from example, I have a question regarding the loops... for instance, when I wanted to highlight "(bleh)" and just wanted the parenthesis to be a different color but not the text inside of it, how is this done?
Thanks for all your hard work and helping newbies like me
Jack