Simple BBCode support added to comments

Filed under: Site management by Hari
Posted at 22:18 IST (last updated: 10 Jul 2009 @ 22:20 IST)
In order to enhance your commenting experience on this blog, I've added limited BBCode support to my blog software (bold, italic, code/fixed width, quote).

The quote functionality works for all selected text on the page. So if you wish to quote a comment or part of the post, you can simply select it and click the quote button: quote

A full refresh will be required to update the JavaScript on your browser because a cached version will already be loaded in your browser if you've visited this blog in the past.

Hope you enjoy the new feature. Let me have your feedback. Do you want any more formatting codes for comments? (except clickable URL links of course)

9 comment(s)

Leave a comment »
  1. Just a bit of testing

    Is it bold and italic

    You may delete this entry

    Comment by wim sturkenboom (visitor) on 12 Jul 2009 @ 22:16 IST #
  2. Yes, it works

    Comment by wim sturkenboom (visitor) on 12 Jul 2009 @ 22:16 IST #
  3. Thanks a lot, Wim, for testing the comments section. Appreciate your taking time to help me out. :D

    Comment by Hari (blog owner) on 12 Jul 2009 @ 22:20 IST #
  4. Does it allow more than one block of formatting?

    bold and beautiful

    Comment by Noam (visitor) on 13 Jul 2009 @ 01:33 IST #
  5. Thanks for testing Noam. Here's my attempt
    This is a test of incorrectly [B]nested bold tags[/b]

    Works as expected.

    Comment by Hari (blog owner) on 13 Jul 2009 @ 08:31 IST #
  6. bold and beautiful

    It quotes happily but you have to manually readd the bbcode to the quote.This is a bit of code

    This may become quoted code

    Very nice indeed 8-)

    Comment by Ray (visitor) on 13 Jul 2009 @ 23:37 IST #
  7. Thanks Ray. Yes, when you select text and quote, only the plain text is quoted. No formatting is copied over. Hope that explains it. It's to prevent arbitrary HTML from being introduced into comments.

    Comment by Hari (blog owner) on 14 Jul 2009 @ 06:24 IST #
  8. Bearing in mind that this is a scratch build blog hosting system, I am incredibly impressed by all it does!

    Comment by Ray (visitor) on 14 Jul 2009 @ 23:50 IST #
  9. Bearing in mind that this is a scratch build blog hosting system, I am incredibly impressed by all it does!

    Thanks Ray. It took me a couple of weeks to code the base files. After that I've been making small bug-fixes, corrections and enhancements. 8-)

    Comment by Hari (blog owner) on 15 Jul 2009 @ 07:09 IST #

Leave a comment

First-time comments on this blog are moderated.
Your name*
Email ID*
(wont' be published)
Website
Your comments*
(No HTML allowed)
:-) :-D :biggrin: :-P ;-) 8-) :-( :mad: |-| :oops: :-/ :-| :roll:
bold italic quote code
Code* captcha Enter the code you see in the image
* required fields