php bbcode in 4.1

  • App
    WoltLab Suite Forum

    So while asking for support here, I learned something "interesting" (to say the least). WBB has no php bb code. I find that interesting as I've never come across any forum development that lacked this.


    You support code bbcode



    But seem to lack php bbcode


    [php]<?php


    // Show all information, defaults to INFO_ALL
    phpinfo();


    ?>[/php]


    I use php bbcode VERY often because it's easier to read and follow along. For starters the color scheme breaks things down and it's not just a mesh of raw code to weed through.


    It would be VERY nice if you added this in 4.1

    • Official Post

    The [code]-BBCode attempts to guess the correct syntax highlighter, e.g. if it encounters <?php it will select the proper highlighter. You can bypass this by explicitly providing a highlighter, e.g. [code=php].

    Alexander Ebert
    Senior Developer WoltLab® GmbH

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!