Current Version V1.0
SMF Better PHP is a small mod designed for SMF Forums, that improved on the standard formatting of PHP code within PHP BBC tags, the standard formatting applied by SMF 2.0 leaves the php code looking like coloured text with no seperation from the main post.
SMF Better PHP improves this by enclosing the php code in a Quote Style box and making the text bold to stand out better.
Standard PHP Highlighting:<?
//Comment for Hello World
echo "Hello World";
?>
With "Better PHP"(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages.dth-scripts.com%2FScript_Images%2Fphpafter.jpg&hash=eee7b5131af617f1e6bae9682a14d518a112e056)
- View "Better PHP" in use (http://dth-scripts.com/Forum/index.php?topic=13.msg15#new)
- Download (http://custom.simplemachines.org/mods/index.php?mod=2229)
Planned Features for V1.1.
- Select All link
- Copy to clipboard link
Good mod. Congratulations.
hmmm, Nice idea.
but when you use php code in a standard code box you will get the same result
<?phpecho ($some['code'], ' here);?>
Quote from: ♪ JohnCcCcCc ♫ on October 20, 2009, 11:40:20 AM
hmmm, Nice idea.
but when you use php code in a standard code box you will get the same result
<?phpecho ($some['code'], ' here);?>
yes but that means typing 2 seperate lots of tags, this allows the lot to be done throught 1 set of tags.
I only added code tags ??? to that though
If your talking about <?php and ?>
I suppose this will save a lot of time getting partial PHP code :)
at the end of they day its down to personal preferance, not everyone knows that Code will highlight PHP plus for Code to highlight php it must containg the open and close tags.
Well nice addition, nice mod
Congratulations on your 1st mod, keep up the modding :D
Nice idea ;)
From what css file can I find the phpcode class?
Quote from: Hiver101 on November 04, 2009, 09:10:38 AM
From what css file can I find the phpcode class?
I didnt look at the code but i presume that he is using this php function:
http://www.php.net/manual/en/function.highlight-string.php
Rewards
not updated ?
may i take over this mod .?
Feel free, i would update it but i don't have the time.