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
xbbcode-mode

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

Menu

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:

[b]bold[/b]
[i]italic[/i]
[u]underline[/u]
[s]strike-thru[/s]

[url]http://example.com/[/url]
[quote]something[/quote]
[img]http://example.com/cat.jpg[/img]
[email]mary@example.com[/email]

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

[code]x = 5
print x
[/code]

[size=20]Features[/size]

[color=#FF0000]red[/color]
[color=FF0000]red[/color]
[color=red]red[/color]
[color=blue]blue[/color]

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

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

[list=1]
[*]numbered first item
[*]second item
[/list]

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

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.

Patreon me $5 patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs

If you have a question, put $5 at patreon and message me.