Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 10 Years, 8 Months, 1 Week ago [pre] formatting
#1
Solved: 10 Years, 8 Months, 1 Week ago
Is there anyway to add [pre] formatting? I've seen some at BBcodes explained, but the code doesn't work, and that's not exactly what I want anyways.

I want it to act as <pre> in HTML. Anyway to get this without activating HTML for all users?
#2
Solved: 10 Years, 8 Months, 1 Week ago
Yes, you can create a simple MyCode.

Admin CP -> Configuration -> MyCode -> Add New MyCode

For Regular Expression, use:
\[pre\](.*?)\[/pre\]

And for Replacement, use:
<pre>$1</pre>
My GitHub | Galaxies Realm

Please do not PM me for support; use the forum instead
#3
Solved: 10 Years, 8 Months, 1 Week ago
hmmm... i used this and it worked great in backend... but in front end it adds a blank extra line between each line of code... Any ideas?
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)