BB‐Codes - My-Little-Forum/mylittleforum GitHub Wiki
BB-Codes in My Little Forum
Supplied BB codes
My Little Forum provides a number of BB-Codes. One has to activate the conversion of BB-Code in the forum settings with setting bbcode
to 1
. This enables a set of basic BB-Codes for formatting text and insert links in the entries with an additional linktext. Some further BB-Codes are hidden behind additional settings.
For some of the BB-Codes the forum software provides a UI to insert them in the posting text. The UI provides the necessary buttons and displays them beside the text area to insert the posting text. There is currently no similar UI for the signature form.
bbcode = 1
BB-Codes, enabled with [b][/b]
for bold text[i][/i]
for italic text[u][/u]
for underlined text[link][/link]
or[url][/url]
for links,
use it as[link]URL[/link]
or[link=URL]linktext[/link]
(or with[url]
instead of[link]
)[ins][/ins]
for marking subsequently inserted text, introduced with PR #699[del][/del]
for marking subsequently deleted text, introduced with PR #699[s][/s]
for marking text with a strike through line (similar to[del]
), introduced with PR #699
bbcode_code = 1
BB-Codes, enabled with [code][/code]
for codeblocks,
it's possible to add a coding language to the opening tag, in example[code=html]
(has to be activated sel[inlinecode][/inlinecode]
for code snippets like$variable = value;
inside a text block
bbcode_color = 1
BB-Codes, enabled with [color=#963][/color]
for coloured text with a set of allowed colours (link to the status of version 20220803.1).
bbcode_img = 1
BB-Codes, enabled with [img]URL[/img]
for displaying an image[img=left]URL[/img]
for displaying an image, text content floating around on the right side of the image[img=right]URL[/img]
for displaying an image, text content floating around on the left side of the image[img=thumbnail]URL[/img]
for displaying thumbnail of an image[img=thumbnail-left]URL[/img]
for displaying thumbnail of an image, text content floating around on the right side of the image[img=thumbnail-right]URL[/img]
for displaying thumbnail of an image, text content floating around on the left side of the image
bbcode_size = 1
BB-Codes, enabled with [size=small][/size]
for text with a smaller font size than the default text[size=large][/size]
for text with a larger font size than the default text
bbcode_tex = 1
BB-Codes, enabled with - [tex]formula[/tex] for mathematic and scientific formulas