BBCode Reference

Bold

[b]Bold Text[/b]
Bold Text

Italic

[i]Italic Text[/i]
Italic Text

Underline

[u]Underlined Text[/u]
Underlined Text

Strikethrough

[s]Strikethrough Text[/s]
Strikethrough Text

Color

[color=red]Red Text[/color]
Red Text

Font

[font=serif]Serif Text[/font]
Serif Text

Shadow

[shadow=red]Red Shadow Text[/shadow]
Red Shadow Text

Size

[size=7]Size 7 Text[/size]
Size 7 Text

Superscript

Sup [sup]Superscript Text[/sup]
Sup Superscript Text

Subscript

Sub [sub]Subscript Text[/sub]
Sub Subscript Text

Horizontal Rule

[hr]

Left

[left]Left Text[/left]
Left Text

Center

[center]Centered Text[/center]
Centered Text

Right

[right]Right Text[/right]
Right Text

Quote

[quote=Example]Quoted Text[/quote]
Example said: Quoted Text

Url

[url=https://google.com]Link Text[/url]
Link Text

Image

[img]https://placehold.co/400[/img]
https://placehold.co/400

Code

[code=python]
class ThreadModelForm(forms.ModelForm):
    class Meta:
        model = Thread
        fields = (
            "title",
            "content",
        )
        widgets = {
            "title": forms.TextInput(attrs={"autofocus": True, "class": "pw-input"}),
            "content": BBCodeEditorWidget(),
        }
[/code]

class ThreadModelForm(forms.ModelForm):
    class Meta:
        model = Thread
        fields = (
            "title",
            "content",
        )
        widgets = {
            "title": forms.TextInput(attrs={"autofocus": True, "class": "pw-input"}),
            "content": BBCodeEditorWidget(),
        }

Spoiler

[spoiler=Title]Content[/spoiler]
TitleContent

Ordered List

[ol][li]Item 1[/li][li]Item 2[/li][/ol]
  1. Item 1
  2. Item 2

Unordered List

[ul][li]Item 1[/li][li]Item 2[/li][/ul]
  • Item 1
  • Item 2

Escape

[escape][b]Escaped bbcode[/b][/escape]
[b]Escaped bbcode[/b]