Built-in BBCode tagsΒΆ
Django-precise-bbcode comes with some built-in BBCode tags that you can use to render any content based on bbcodes. The built-in bbcodes are as follows:
BBCode |
Function |
Options |
Examples |
---|---|---|---|
|
creates bold text |
[b]bold text[/b] |
|
|
creates italic text |
[i]italice text[/i] |
|
|
creates underlined text |
[u]underlined text[/u] |
|
|
creates striked text |
[s]striked text[/s] |
|
|
creates an unordered list |
1: ordered list 01: ordered list (leading zero) a: ordered list (lower alpha) A: ordered list (upper alpha) i: ordered list (lower roman) I: ordered list (upper roman) |
[list][*]one[*]two[/list] [list=1][*]one[*]two[/list] |
|
creates a list item |
[list][*]one[*]two[/list] |
|
|
retains all formatting |
[code][b]example[/b][/code] |
|
|
creates a blockquote |
[quote]quoted string[/quote] |
|
|
creates a centered block |
[center]example[/center] |
|
|
changes the colour of a text |
[color=red]red text[/color] [color=#FFFFFF]white text[/color] |
|
|
creates a URL |
[url]http://example.com[/url] [url=http://example.com]text[/url] |
|
|
displays an image |
[img]http://xyz.com/logo.png[/img] |