SyntaxHighlighter in phpBB

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.

This entry was posted in Flex. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

6 Comments

  1. Posted January 14, 2008 at 9:47 pm | Permalink

    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

  2. Posted January 17, 2008 at 9:54 pm | Permalink

    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

  3. Posted January 18, 2008 at 10:48 pm | Permalink

    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.

  4. Posted January 18, 2008 at 10:53 pm | Permalink

    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

  5. Posted January 21, 2008 at 1:52 am | Permalink

    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.

  6. Simon
    Posted April 26, 2009 at 6:27 pm | Permalink

    Thanks for your great work.

    Any chance of updating this to work with SyntaxHighligher 2.0?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Pages

  • Categories

  • Archives