|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#32
|
||||
|
||||
|
preg_replace('/\[php(=.+?)?\]/', '[highlight=php]',$post_fetched_from_the_database_to_be_displayed)
? Just before it goes to the bbcode escaping function.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#33
|
||||
|
||||
|
Quote:
If we do this, this is going to remove the PHP code block names used in many posts. Example: http://forums.devshed.com/suggestio...cks-275116.html We can do this only if all moderators are agreeing to this. |
|
#34
|
|||||
|
|||||
|
php Code:
? Thaminda: It doesn't escape [ highlight ] within itself Edit: Code finished. Last edited by LinuxPenguin : August 25th, 2006 at 11:07 AM. |
|
#35
|
||||
|
||||
|
We have created a short bbcode for HIGHLIGHT, now you can use HL instead of typing long highlight word. This works same way like HIGHLIGHT bbcode.
[ HL=language name ] Your code [ /HL ] for example, to put a php code you can enter [ HL=PHP ] Your php code [ /HL ] |
|
#36
|
||||
|
||||
|
__________________
Get A Supplier LLC | Hilarious Comic --- Pretty much retired from the forum. I will get back on every now and then, and maybe answer a few questions. |
![]() |
| Viewing: Dev Shed Forums > Forum Information > Suggestions & Feedback > Syntax highlighting enhancements |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|