Emacs: Xah BBCode mode

By Xah Lee. Date: . Last updated: .

xbbcode-mode.el is a emacs major mode for editing BBCode. (BBCode is a lightweight markup language used in online forums.).

Usage and Features

emacs xbbcode-mode

To start the mode, type Alt+x xbbcode-mode. Once you are in bbcode mode, all bbcode tags will be syntax colored.


When you are in xbbcode mode, there is a graphical menu named BBCode.

Inserting Tags

Press Ctrl+c Ctrl+t to change the word under cursor into a tag. The command name is xbbcode-insert-tag.

BBCode Reference

Press Ctrl+c Ctrl+h to show a list of commonly used bbcode tags. (command name is xbbcode-show-bbcode-help.)

Here's a example of output:



[quote="mary"]i didn't do it[/quote]

[code]x = 5
print x



[color=red][size=20]Want to Save Money?[/size][/color]

[*]A list of items
[*]with bullets.

[*]numbered first item
[*]second item

[*]first item. Ordered by a, b, c etc.
[*]second tiem.

phpbb.com BBCode Guide

Buy xbbcode-mode Now

Download the mode for $3. Use the paypal button below. In the comment field, put “emacs xbbcode mode”. I'll email you the download link. Make sure your email address is included and correct.

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial