We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.
tag I get a bunch of html entities. I realize this is semi-intended at one point because of upgrading, but at this point can the old tags & their corresponding behavior be dismantled? It is confusing for users :D
[php]
$this->test();
I don't know where in the code this is implemented. It may be a part of the same library we are using to add all the other tags. I'll look into it when I get a minute. Have I mentioned the phpBB codebase is psychotic?
with [syntax=php] right here, making me look as though I'm comparing [syntax=php] with [syntax=php]. While not a huge deal right now, who knows if it could be in the future. What if I was writing code that used an array with php as a key?
[syntax=php]$languages = array(
'asp' => 'okay',
'php' => 'awesome',
);
echo "PHP is $languages[php]";[/syntax]
it'll match the latter part. The only exception would be what I just wrote, putting a fully matched tag in code tags (not a big deal in my opinion).
IMO if you weigh the two choices, its clear we should do it. What's more embarrassing making it look like the wrong tag, or making it look like our community writes non compiling PHP code, heh..
I took a brief look at the code and it appears that it uses the language such php, css, html, ini etc to look for a corresponding parser which is located as a file on disk based on the language name. I'm not able to spend much time on that right now so if anyone else wants to have a look feel free. I believe the geshi code for phpBB is easy to find.
Maybe you could attach the message_parser.php file in case somebody could take a look at it, also will help to know which phpbb mod was installed to implement Geshi... was bbGeshi_0.7.5 ?