After adding AS3 support to SyntaxHighlighter, I got hooked on it.
I offered to setup a forum at work, and after some time debating between phpBB and Vanilla, I decided upon the latest phpBB 3.
After getting it all setup, one of the most annoying things was how code blocks looked when posted. The default code block in phpBB allows for only php syntax. So I got to work on adding in SyntaxHighlighter.
It was surprisingly harder than I thought. I ended up having to manipulate some of the underlying php code of the forum to get it to function 100% (before doing that, the forum would always adjust the code to show up on one single line).
To make it easier for other people, I’ve created a phpBB SyntaxHighlighter mod.
As I said above, this was built for phpBB 3, not 2.
Please update me here or at the phpBB forum if you find any bugs or have any requests.
Nice work, I’ve been looking for a mod like this for sometime and it was very easy to install. thaks for taking the trouble to release this publicly
Also I do have one question does it highlight the code in appropriate colours cause I got everything working but I don’t see any colours
Thanks
Hashi
I posted a couple of comments on your forum to hopefully help you resolve the issue:
http://forum.digitalundergroundcoders.com/viewtopic.php?f=41&t=53&start=0&st=0&sk=t&sd=a
Hi,
Thank you very much for your time taken to help me.
I had those lines before and I had to remove that as It gave an error. Today I managed to fix that the problem was with the comment lines
When I removed that It works now. I don’t know what I did wrong there. but with those lines on It doesn’t work.
I still have a problem
the highlighter mod doesn’t seem to be replacing the spaces. If you have a look at the code here
http://forum.digitalundergroundcoders.com/viewtopic.php?f=33&t=39
I have followed the instructions as it was on the install.xml
I hope you could help me
Thank you very much
Hashi
That’s really strange.
Its working, as far as highlighting the code, but unfortunately seems to be replacing the spaces with question marks.
I’ve not seen that before.
Are you using the final version of phpbb 3?
What other mods do you have installed?
Are you using the SyntaxHighlighter code included with the mod?
Any details you can provide will help.
Thanks for your great work.
Any chance of updating this to work with SyntaxHighligher 2.0?