Hari's Corner

Humour, comics, tech, law, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and then

Simple BBCode support added to comments

Filed under: Site management by Hari
Posted on Fri, Jul 10, 2009 at 22:18 IST (last updated: Fri, Jul 10, 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)

  1. Just a bit of testing

    Is it bold and italic

    You may delete this entry

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

    Comment by wim sturkenboom (visitor) on Sun, Jul 12, 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 Sun, Jul 12, 2009 @ 22:20 IST #
  4. Does it allow more than one block of formatting?

    bold and beautiful

    Comment by Noam (visitor) on Mon, Jul 13, 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 Mon, Jul 13, 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 Mon, Jul 13, 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 Tue, Jul 14, 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 Tue, Jul 14, 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 Wed, Jul 15, 2009 @ 07:09 IST #

Comments closed

The blog owner has closed further commenting on this entry.