Hi! Do you remember blogs? Well, this used to be one. Now it just serves as an archive for my multiple Twitter accounts.
New gadget on the blog: a live comment preview (via Binary Bonsai).
I’m out of time to finish the script because I must go to the supermarket, but it works. Ah, regexps…
Besides, it makes me want to edit my code so that simple HTML tags are accepted in comments. Well, it’ll keep me busy for an hour or two.
P.S. There you go. Simple tags are accepted (<b>, <i>…) but I failed to configure the regexps right for <a href>, so we’ll see about that later. It’s already something. And it’s nice. I find it so cute to see the little bit of text below the form being updated while I type.
And I did write <b> and <i>, not <em> nor <strong>. I’m not using those because I think they’re absurd (when you want to write in bold, you mean to write in bold, not to write “strong”), so I’m not going to let you use them here when you have no control over stylesheets and the definition of <em> and <strong>.
P.S. By popular request, I added a checkbox to deactivate the preview if it’s too slow on your computer. The option is saved in a cookie.