PDA

View Full Version : Help: Multiple formatting in a BBcode


aburisha
11-28-2019, 10:25 AM
I have tried to make a BBcode that would, with one code, turn a given written thing into dark red+bold+underlined+font size 20. The way to do so, as I understand from my little information about it, is to do the actual formatting in a post then turn on the coding icon and copy the code, then go to BBcode in admin panel and insert it there. This has not worked with me.


The way I did it was as follows:


Title: BD1
BB Code Tag Name: BD1
Replacement : {param}
Example: [BD1]text[BD1]


Could you please help?

Dave
11-28-2019, 11:46 AM
I'm not entirely sure if you can put BBCode into the replacement as it renders it as raw HTML (with the variables replaced)

Maybe something like the following is what you need for the replacement:
<span style="color: darkred; font-weight: bold; text-decoration: underline; font-size: 20px;">{param}</span>