Does anyone know how to make the following mycodes?
Border around text, highlight text?
eg:
[border=red]Red Border around my text[/border]
and
[hl=black]Black highlight[/hl]
For the first one, try this:
Regular expression:
\[border=([a-zA-Z]*|\#?[0-9a-fA-F]{6})\](.*?)\[/border\]
Replacement:
<span style="border: 1px solid $1;">$2</span>
For the second:
Regular expression:
\[hl=([a-zA-Z]*|\#?[0-9a-fA-F]{6})\](.*?)\[/hl\]
Replacement:
<span style="background-color: $1;">$2</span>
ZiNga BuRgA Wrote:For the first one, try this:
Regular expression:
\[border=([a-zA-Z]*|\#?[0-9a-fA-F]{6})\](.*?)\[/border\]
Replacement:
<span style="border: 1px solid $1;">$2</span>
For the second:
Regular expression:
\[hl=([a-zA-Z]*|\#?[0-9a-fA-F]{6})\](.*?)\[/hl\]
Replacement:
<span style="background-color: $1;">$2</span>
just little comment about the 2nd code you provide mate.
I think he want to use <h1> tag
if that right so he can use this Replacement
<h1 style="background-color:$1;">$2</h1>
Wow thanks man! they both work
Any chance of a youtube embedded MyCode?