BBCodes

This website supports all official BBCodes and various unofficial BBCodes (called shortcodes). All supported codes are listed and explained below, and the official ones are also explained at http://www.bbcode.org/reference.php. The BBPress (bbp) shortcodes are explained at https://codex.bbpress.org/shortcodes/.

BBCodes and Shortcodes are special tags that look like HTML tags, but they use square-brackets. For example, to make a word bold, enclose it with [b]. So, the opening tag is [b] and the closing tag is [/b]. All closing tags are the same as the opening tag, but with a back-slash and without parameters. All shortcodes and BBCodes follow the pattern [code]TEXT[/code] and are case-insensitive.

Various BBCodes and shortcodes are briefly documented or listed below. To see the action/result of HTML5 elements and shortcodes, check out http://dcjtech.info/html-and-shortcodes-formatting/.


Font-formatting

  • b - bold
  • i - italic
  • u - underline
  • s - strike-through/line-through
  • size=# - specify size using a number ([size=12]TEXT[/size])
  • subscript
  • superscript
  • color=* - specify color using standard HTML names or hex-codes
  • center - centered text alignment
  • justify - justified alignment
  • left - left-aligned text
  • right - right-aligned text
  • reverse - reverse the text ([reverse]This text is reversed.[/reverse] = This text is reversed.)

Lists and Tables

  • li - list item; use with one of the list BBCodes
  • list - variant of [ul]; unordered list
  • ol - ordered list (with numbers)
  • ul - unordered list (bullet-point)
  • table - rows of a table
  • tbody - table body
  • thead - table header
  • tfoot - table footer
  • th - table header (cell)
  • td - table content/data (cell)
  • tr - table cells that make a row

Table example -

[table]
[tr]
[th]HEADER 1[/th]
[th]HEADER 2[/th]
[/tr]
[tr]
[td]ITEM 1[/td]
[td]VALUE 1[/td]
[/tr]
[tr]
[td]ITEM 2[/td]
[td]VALUE 2[/td]
[/tr]
[tr]
[td]ITEM 3[/td]
[td]VALUE 3[/td]
[/tr]
[/table]

Quotes and Embedded Data

  • abbr - Show meaning of abbreviations (HTML)
  • email - Email hyperlink ([email=EMAIL]text[/email])
  • freesound - Embed Freesound content by ID ([freesound]ID[/freesound] || [freesound=large]ID[/freesound])
  • gvideo - Embed Google-Video content by ID ([gvideo]ID[/gvideo])
  • img - show image [img]url-to-image[/img]; declare size [img=WxH]url[/img]
  • quote - quotation box surrounding text
  • quote=NAME - attach a name to a quotation
  • url - hyperlink
  • url=LINK - make text contain a hyperlink ([url=LINK]Click me[/url])
  • vimeo - Embed Vimeo content by ID ([vimeo]ID[/vimeo])
  • youtube - Embed Youtube content by ID ([youtube]ID[/youtube])

Source Code Display

Use the following shortcodes to distinguish source code from regular text and use syntax highlighting.

  • asm - Assembly
  • avrasm - AVR-Assembler
  • c - C programming; use "cpp" for C++
  • code - generic single-line/in-line code; same as the "code" HTML tag
  • codegroup - group multiple codes together (such as [html] and [css])
  • cpp - C++ programming; use "c" for C
  • csharp - C#
  • css - Cascading Style Sheets
  • cython
  • diff
  • html
  • ini - ini and conf files
  • java
  • javascript
  • js - alias for "javascript"
  • json
  • kbd - keyboard key-presses ([kbd]Ctrl[/kbd]+[kbd]S[/kbd])
  • lua
  • matlab
  • md - markdown
  • no-highlight - multi-line code without syntax highlighting; same as the "pre" HTML tag
  • nsis
  • php
  • python
  • raw - Display raw code and shortcodes with generic highlighting
  • ruby
  • rust
  • shell - Linux/Unix shell scripting and terminal
  • sql - SQLite Queries
  • squirrel
  • VHDL
  • xml

BBPress Shortcodes

  • bbp-forum-index - show the whole forum index
  • bbp-forum-form - show the "new forum" form
  • bbp-single-forum id=ID - show the topics of a specific forum (by ID)
  • bbp-topic-index - show the 15 newest topics
  • bbp-topic-forum - show the "new topic" form
  • bbp-topic-form forum_id=ID - show the "new topic" form for a specific forum
  • bbp-single-topic id=ID - show a specific topic
  • bbp-reply-form - show the reply form
  • bbp-single-reply id=ID - show a specific reply
  • bbp-topic-tags - show a tag cloud
  • bbp-single-tag id=ID - list all topics related to the specified tag ID
  • bbp-single-view id="*" - show a list of topics that have "no-replies" or are "popular"
  • bbp-search - search bar
  • bbp-search-form - search form
  • bbp-login - login form
  • bbp-register - registration form
  • bbp-lost-pass - lost-password form

Misc Shortcodes

  • clientip - Display the client's IP address ([ip/] = 54.224.155.169)
  • hr - Horizontal ruler (line - [hr/])
  • paypal-donation - DCJTech Paypal donation button
  • useragent - Display the useragent ([useragent/] = CCBot/2.0 (http://commoncrawl.org/faq/))
  • WpProQuiz # - Quiz (found at http://dcjtech.info/quizzes/)
  • WpProQuiz_toplist # - Quiz leaderboard