It's not new, it's been there since the textarea went transparent on the main window.
Note that anyone using this to harass people (ie, continuing with a rich text activity after they are asked to stop) will probably end up banned.
Here's what you have. These aren't canon yet, so if you're making a client, maybe hold off on implementing them until we're sure of the exact syntax, but I'd love feedback:
[blink]some text here[/blink] [marquee]some text here[/marquee]
These were implemented simply because people asked me not to. Not tested - please do check them out yourselves!
[b] bold text [/b] [i] italic text [/i] [u] underlined text [/u]
I'm a little proud of the underlining, given I had to do it from scratch: I feel it scales rather well with the font sizes.
So far, so BBcode.
It gets a bit funkier next, though, because I was aiming for something that could be parsed consistently without having to tokenise in funky ways (like HTML does) by having the parameters in the tag. So the first parameter is "everything from the tag until the next square ']' brace".
So:
[/] or [\] - do-nothings. They won't display, but they count as a terminating square brace. (In fact, secretly, several closing tags act like this, and will close any opening tag: [/img], [/size], [/face], [/fg] and [/bg] are all interchangeable with [/].) [size]NN[/size] - Set the font size in points for the following text. Default is 12, max is large, but should scale to the window. In practice, it doesn't. [face]name[/face] - The font faces that will definitely work are listed below. [fg][/fg] - Foreground colour (see below for list) [bg][/bg] - Background colour Font faces: Serif SansSerif Monospaced Dialog DialogInput Note you cannot use names like "Times New Roman" as not all systems have these fonts. You cannot use names like Font and background colours: black blue cyan darkGray/darkgray/darkGrey/darkgrey gray/grey green lightGray/lightgray/lightGrey/lightgrey magenta orange pink red white yellow transparent/tx/none/octarine (octarine will eventually be its own colour, but for the moment is the same as "none") The following things don't work, so far as I know, at all - they're in as "things I'll do at some point", but aren't fully working yet. But feel free to play with them anyway. [center]centred text[/center] - you think I should allow UK spelling for this too? [left]left aligned text[/left] [right]right aligned text[/right] [url]link[/]link text[/url] - this one works, except for the tiny problem that the link is not clickable. Rats. [img][/img] And if you read this far, well done! Here's something for you to paste just for fun, into the client[fg]red[size]18[/]r[fg]orange[size]24[/]a[fg]yellow[size]28[/]i[fg]green[size]32[/]n[fg]cyan[size]28[/]b[fg]blue[size]24[/]o[fg]magenta[size]18[/]w












Re: What do you think of this Rich Text, then?
Here's what you have. These aren't canon yet, so if you're making a client, maybe hold off on implementing them until we're sure of the exact syntax, but I'd love feedback:
These were implemented simply because people asked me not to. Not tested - please do check them out yourselves!
LOL! this is what happens when i try blink:
(bikkit!)some text here(what duck?)
and this is what happened when i tried marquee:
(he didn't look mad, but he never did)some text here(The knuckles! the horible knuckles!)
that was soooo bloody random i nearly wet myself laughing
i just copied and pasted exactly what dewi put in that quote box up there
+++divide by cucumber error+++please reinstall universe and reboot+++