Jump to content


Photo

Module: BBCode Text Formatter


  • Please log in to reply
2 replies to this topic

#1 ryan

ryan

    Hero Member

  • Administrators
  • 5,753 posts
  • 3102

  • LocationAtlanta, GA

Posted 23 July 2012 - 05:57 PM

We already have Markdown and Textile text formatters, so I thought we should have BBCode too. BBCode is a good text formatter to use when you'll be outputting untrusted user-supplied input. I think it's also a little simpler and more widely understood than Markdown and Textile, since it is used by many forums (including the ProcessWire forum, before we switched to IP.Board). More about the BBCode format can be found here: http://en.wikipedia.org/wiki/BBCode

This module uses the NBBC Library to handle BBCode parsing. I selected this one because it seems to be really well documented and also includes it's own set of smileys, for those that like that sort of thing. ::)

To install, clone it from the TextformatterBBCode GitHub page or download the ZIP file.

#2 Martijn Geerts

Martijn Geerts

    Sr. Member

  • Members
  • PipPipPipPip
  • 373 posts
  • 168

Posted 23 July 2012 - 06:02 PM

O0 :)

#3 Pete

Pete

    Administrator

  • Administrators
  • 1,753 posts
  • 652

  • LocationChester, England

Posted 24 July 2012 - 01:17 AM

Nice addition - could be very useful for user comment fields.

You can still type bbcode into these forums too by the way, just the editor makes it a little pointless really.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users