2013-07-02, 06:39 PM
I've got this regex;
and this html output;
but it doesn't simply render the input twice on either side... for an input like so;
it produces a load of crap in the actual html.
any ideas? I want it to technically render the code inputted on the left on the right to visually show how code works.
\[rcode\](.*?)\[/rcode\]
and this html output;
<div style="width:45%; display:inline-table;">$1</div><div style="width:45%; display:inline-table;">$1</div>
but it doesn't simply render the input twice on either side... for an input like so;
<div class="progress">
<div class="bar" style="width: 60%;">
</div>
</div>
it produces a load of crap in the actual html.
<div style="width:45%; display:inline-table;"><div class="progress"><div class="bar" style="width: 60%;"></div></div></div><div style="width:45%; display:inline-table;"><div class="progress"><div class="bar" style="width: 60%;"></div></div></div>
any ideas? I want it to technically render the code inputted on the left on the right to visually show how code works.