[Request] Line break - MyCode
#1
I would like to know if there is any line break code available.
Let's say something like HTML's <br /> tag. It could be something like [br].
I just can't use "Enter" key to force a line break in my case. (I can explain you more if needed.)

Thanks.
Reply
#2
Sorry I've deleted my previous post.

Do you mean "line" break just like <br/> tag in HTML ?
Reply
#3
(2010-12-27, 04:44 PM)Yaldaram Wrote: Sorry I've deleted my previous post.

Do you mean "line" break just like <br/> tag in HTML ?
Yes that's what I mean.Big Grin
Thanks for your quick reply too!
Reply
#4
Why not press "Enter" key to break the lines ?
Try this;
Regular Expression:
\[(.*?)\]

Replacement:
<br />

Usage:
[br]
Reply
#5
Cool, works like a charm.
Thank you again!
Reply
#6
Thanks.
Reply
#7
(2010-12-27, 04:48 PM)Yaldaram Wrote: Why not press "Enter" key to break the lines ?

I was wondering the same thing. Seems like this would waste resources, granted it would be very little but still, in some cases each bit counts.
Reply
#8
(2010-12-27, 04:48 PM)Yaldaram Wrote: Why not press "Enter" key to break the lines ?
Try this;
Regular Expression:
\[(.*?)\]

Replacement:
<br />

Usage:
[br]

That Regular Expression is incorrect.

\[br\]
Is the correct regex for this. The regex you posted will insert a line break after ANYTHING in [] brackets.
Reply
#9
@Dylan M.
Yes, I just noticed that my [img] tag wasn't working.
That fixed the problem.
Also, I don't use "Enter" because I can't; I'm making a default subject for "Contact Us" link by using a URL (private.php?action=send blah&subject=..)Big Grin

That's all..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)