Actually HTML has a wonderful way to do spoilers, an example
is below. Highlight it if you actually need an explanation
of the trick.
Spoiler
The trick is that you write a table with the font and the
background color the same. When someone highlight's it
they can read the spoiler, but otherwise they cannot.
In this case I did it like this:
<table><tr><td bgcolor=#000000><font color=#000000>
put text here and then
</font><td></tr></table>
Unfortunately links show through because the rules for
the HTML here don't include (that I saw at least) a way
to control the color of an HREF. Which is why the link
is down there and not in here. :-)
| |
Wish I could claim it was my idea, but one of the folks
at IWETHEY
(namely CRConrad) came up with it. | [reply] [d/l] |
| [reply] [d/l] |
| [reply] [d/l] |
| [reply] |
Just so folks know should they stumble on this node there is now support for <spoiler> tags in PM. They can be configured to render just like this too. :-) IOW, please DONT follow the advice here from tilly, just use the correct tags.
---
$world=~s/war/peace/g
| [reply] |
Bravo (or brava, depending...). My solution was different,
but could (and should) have been optimized into yours. Mine
uses the notion that any matching string looks like a series
of strings like "11..1100..00" concatenated, with a string of
1's at the end. (Or vice-versa, with 0's...) But yours is
far simpler -- in fact, it states the very fact: if there's
a 1 (or 0) at both ends, the string will succeed. Oh, and
no backreferences, but that's ok.
Here's mine. It seems like even more of a behemoth now...
/^((1+0+)*1+|(0+1+)*0+)$/
"Ewww," Tom said sheepishly.
$_="goto+F.print+chop;\n=yhpaj";F1:eval | [reply] [d/l] |