BBcode Reference ================ [h3]Text Decoration[/h3] [table] [tr] [th]BBcode syntax[/th][th]Rendered text[/th] [/tr] [tr] [td][nobb][b]bold[/b][/nobb][/td][td]bold[/td] [/tr] [tr] [td][nobb][i]italic[/i][/nobb][/td][td]italic[/td] [/tr] [tr] [td][nobb][u]underlined[/u][/nobb][/td][td]underlined[/td] [/tr] [tr] [td][nobb][s]strike[/s][/nobb][/td][td]strike[/td] [/tr] [tr] [td][nobb]super[sup]script[/sup][/nobb][/td][td]superscript[/td] [/tr] [tr] [td][nobb]sub[sub]script[/sub][/nobb][/td][td]subscript[/td] [/tr] [tr] [td][nobb][color=red]red[/color][/nobb][/td][td]red[/td] [/tr] [tr] [td][nobb][hl]highlighted[/hl][/nobb][/td][td]highlighted[/td] [/tr] [tr] [td][nobb][font=courier]some text[/font][/nobb][/td][td]some text[/td] [/tr] [tr] [td][nobb][quote]quote[/quote][/nobb][/td][td]
quote
[/td] [/tr] [tr] [td][nobb][quote=Author]Author? Me? No, no, no...[/quote][/nobb][/td] [td]Author wrote:
Author? Me? No, no, no...
[/td] [/tr] [tr] [td][nobb][size=small]small text[/size]  [size=xx-large]xx-large text[/size]  [size=20]20px exactly[/size] ' [/nobb] Size options include: [b]xx-small, small, medium, large, xx-large[/b][/td] [td]small text
xx-large text
20px exactly[/td] [/tr] [tr] [td][nobb]Add a horizontal bar [hr] Like this[/nobb][/td] [td]Add a horizontal bar


Like this[/td] [/tr] [tr] [td][nobb]This is [center]centered[/center] text[/nobb][/td] [td] This is
centered

text [/td] [/tr] [/table]

Code blocks

Code can be rendered generically in a block or inline format (depending on if there are new line characters in the text), or you can specify a supported language for enhanced syntax highlighting. Syntax highlighting requires a suitable rendering addon. Supported languages depend on the addon but [i]may[/i] include include php, css, mysql, sql, abap, diff, html, perl, ruby, vbscript, avrc, dtd, java, xml, cpp, python, javascript, js, json, sh . If a rendering addon is not installed or an unsupported language is specified, the output for syntax highlighted code blocks is the same as the block format code tag. [table] [tr] [th]BBcode syntax[/th][th]Output[/th] [/tr] [tr] [td][nobb][code]function bbcode() { }[/code][/nobb][/td][td]function bbcode() { }[/td] [/tr] [tr] [td][nobb][code=php] function bbcode() { $variable = true; if ( $variable ) { echo "true"; } } [/code][/nobb][/td] [td] function bbcode() { $variable = true; if ( $variable ) { echo "true"; } } [/td] [/tr] [tr] [td][nobb][nobb]This is how [i]you[/i] can [u]show[/u] how to use [hl]BBcode[/hl] syntax[/nobb][/nobb][/td] [td][nobb]This is how [i]you[/i] can [u]show[/u] how to use [hl]BBcode[/hl] syntax[/nobb][/td] [/tr][/table] [h3]Lists[/h3] [table] [tr] [th]BBcode syntax[/th][th]Rendered list[/th] [/tr] [tr] [td][nobb] [ul]\ [*] First list element [*] Second list element [/ul][/nobb][/td] [td][/td] [/tr] [tr] [td][nobb] [ol]\ [*] First list element [*] Second list element [/ol][/nobb][/td] [td][/td] [/tr] [tr] [td][nobb] [list=A]\ [*] First list element [*] Second list element [/list][/nobb] The list type options are 1, i, I, a, A.[/td] [td][/td] [/tr] [/table] [h3]Tables[/h3] [table] [tr] [th]BBcode syntax[/th][th]Rendered table[/th] [/tr] [tr] [td][nobb][table border=0]\ [tr][th]Header 1[/th][th]Header 2[/th][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [/table][/nobb] [/td] [td]
Header 1Header 2
ContentContent
ContentContent
[/td] [/tr] [tr] [td][nobb][table border=1]\ [tr][th]Header 1[/th][th]Header 2[/th][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [/table][/nobb][/td] [td]
Header 1Header 2
ContentContent
ContentContent
[/td] [/tr] [tr] [td][nobb][table]\ [tr][th]Header 1[/th][th]Header 2[/th][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [tr][td]Content[/td][td]Content[/td][/tr]\ [/table][/nobb][/td] [td]
Header 1Header 2
ContentContent
ContentContent
[/td] [/tr] [/table]

Links and Embedded Content

[table] [tbody] [tr][th]BBcode syntax[/th][th]Output[/th][/tr] [tr][td][nobb][video]video URL[/video]
[video poster="image.jpg"]video URL[/video]
[audio]audio URL[/audio]
[/nobb][/td] [td][/td][/tr] [tr][td][nobb][url=https://zotlabs.com]Zotlabs[/url][/nobb][/td] [td]Zotlabs[/td] [/tr] [tr] [td][nobb]An image [img]https://example.org/image.jpg[/img] in some text [/nobb][/td] [td]An image
Image/photo
in some text[/td] [/tr] [tr] [td][nobb]An image with alt text [img alt="photo description"]https://example.org/image.jpg[/img][/nobb][/td] [td]An image with alt text
photo description[/td] [/tr] [/tbody] [/table]

$Projectname specific codes

[table] [tbody] [tr][th]BBcode syntax[/th][th]Output[/th][/tr] [tr][td][nobb]Magic-auth version of [url] tag [zrl=https://macgirvin.com]Identity-aware link[/zrl][/nobb][/td] [td][/td][/tr] [tr] [td]Magic-auth version of [img] tag [nobb][zmg]https://hubzilla.org/some/photo.jpg[/zmg][/nobb] [/td][td]Image is only viewable by those authenticated and with permission.[/td] [/tr] [tr] [td]Observer-dependent output: [nobb][observer=1]Text to display if observer IS authenticated[/observer][/nobb] [/td][td][/td] [/tr] [tr] [td] [nobb][observer=0]Text to display if observer IS NOT authenticated[/observer][/nobb][/td] [td][/td] [/tr] [tr] [td][nobb][observer.language=en]Text to display if observer language is English[/observer][/nobb][/td] [td][/td] [/tr] [tr] [td][nobb][observer.language!=de]Text to display if observer language is not German[/observer][/nobb][/td] [td][/td] [/tr] [tr] [td][nobb][observer.url][/nobb][/td] [td]channel URL of observer[/td] [/tr] [tr] [td][nobb][observer.baseurl][/nobb][/td] [td]website of observer[/td] [/tr] [tr] [td][nobb][observer.name][/nobb][/td] [td]name of observer[/td] [/tr] [tr] [td][nobb][observer.webname][/nobb][/td] [td]short name in the url of the observer[/td] [/tr] [tr] [td][nobb][observer.address][/nobb][/td] [td]address (fediverse-id) of observer[/td] [/tr] [tr] [td][nobb][observer.photo][/nobb][/td] [td]profile photo of observer[/td] [/tr] [tr] [td][nobb]What is a spoiler? [spoiler]Text you want to hide.[/spoiler][/nobb][/td] [td] What is a spoiler? [/td] [/tr] [tr] [td][nobb][rpost=title]Text to post[/rpost][/nobb] The observer will be returned to their home hub to enter a post with the specified title and body. Both are optional[/td] [td][baseurl]/rpost?f=&title=title&body=Text+to+post[/td] [/tr] [tr] [td]Generate QR code This requires the qrator addon. [nobb][qr]text to post[/qr][/nobb][/td] [td][/td] [/tr] [tr] [td]This requires a suitable map addon such as openstreetmap. [nobb][map][/nobb][/td] [td]Generate an inline map using the current browser coordinates of the poster, if browser location is enabled[/td] [/tr] [tr] [td]This requires a suitable map addon such as openstreetmap. [nobb][map=latitude,longitude][/nobb][/td] [td]Generate a map using global coordinates.[/td][/tr] [tr] [td]This requires a suitable map addon such as openstreetmap. [nobb][map]Place Name[/map][/nobb][/td] [td] Generate a map for a given named location. The first matching location is returned. For instance "Sydney" will usually return Sydney, Australia and not Sydney, Nova Scotia, Canada unless the more precise location is specified. It is highly recommended to use the post preview utility to ensure you have the correct location before submitting the post. [/td] [/tr] [tr] [td][nobb][&​copy;][/nobb][/td] [td] © [/td] [/tr] [/tbody][/table]