2018-01-09, 01:16 AM
Hi,
I created this custom mycode to basically use it to highlight certain lines of text.
\[div=(.*)\](.*?)\[/div\]
<div style="background-color: $1;">$2</div>
If I use it once in a thread, it works fine.
I use it like [div=color]text[/div].
The issue I'm having is when I use it multiple times, it either won't show either div box at all, or it will not show the first one and print the second one like [div=color;">. If it's in a quote tag it will end the quote there as well.
I created this custom mycode to basically use it to highlight certain lines of text.
\[div=(.*)\](.*?)\[/div\]
<div style="background-color: $1;">$2</div>
If I use it once in a thread, it works fine.
I use it like [div=color]text[/div].
The issue I'm having is when I use it multiple times, it either won't show either div box at all, or it will not show the first one and print the second one like [div=color;">. If it's in a quote tag it will end the quote there as well.