Add custom bbcode tags into BBcode lite
I have installed BBcode lite, and I want to add my own custom bbcode tag, I tried making my own plugin to allow [tex][/tex], though I can still not fully understand the preg_replace() function. Would be greatly appriciated with some help.
What I am trying to achieve is:
[tex]some code here[/tex]…
The code in between the tags get’s converted to <img class=”latex-image” src=”/path/image.cgi?#code goes here with urlencoding#” alt=”" />
If it’s not too complicated to make the standard plugin to put code tags from the bbcode tags into additional pre tags when outputted, that would be great too.
[code] tags into additional pre tags when outputted, that would be great too.
You must be logged in to reply to this topic.