Skip to content

BB‐Codes

Heiko August edited this page Mar 17, 2024 · 3 revisions

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.

BB-Codes, enabled with bbcode = 1

  • [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

BB-Codes, enabled with bbcode_code = 1

  • [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

BB-Codes, enabled with bbcode_color = 1

BB-Codes, enabled with bbcode_img = 1

  • [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

BB-Codes, enabled with bbcode_size = 1

  • [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

BB-Codes, enabled with bbcode_tex = 1

  • [tex]formula[/tex] for mathematic and scientific formulas