Bbcode

BBCode (Bulletin Board Code) is a lightweight markup language used to format messages in many Internet forum software.

It was first introduced in 1998. The available "tags" of BBCode are usually indicated by square brackets ([ and ]) surrounding a keyword, and are parsed before being translated into HTML.

Tags

Example in HTML/CSS BBCode Output
<b>bolded textb>,
<strong>bolded textstrong> or
<span style="font-weight: bold;">bolded textspan>
[b]bolded text[/b] bolded text
<i>italicized texti>,
<em>italicized textem> or
<span style="font-style: italic;">italicized textspan>
[i]italicized text[/i] italicized text
<ins>underlined textins> or
<span style="text-decoration: underline;">underlined textspan>
[u]underlined text[/u] underlined text
<del>strikethrough textdel> or
<span style="text-decoration: line-through;">strikethrough textspan>
[s]strikethrough text[/s] strikethrough text
<a href="https://en.wikipedia.org">https://en.wikipedia.orga>
<a href="https://en.wikipedia.org">English Wikipediaa>
[url]https://en.wikipedia.org[/url]
[url=https://en.wikipedia.org]English Wikipedia[/url]
https://en.wikipedia.org
English Wiki
<img src="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png" alt="This is just an example" /> [img alt="This is just an example" ]https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[/img] Bbcode 
<img src="Smileys/Face-smile.svg" alt=":-)"> :) or [:-)]
This would be another way to use the [img]url_img[/img] and must be pre-configured by the forum administrator.
(This and other emoticons, depending on the variant. Most BBCodes do not enclose emoticons in square brackets, leading to frequent accidental usage.)
Bbcode 
(Specific image and size vary.)
<blockquote><p>quoted textp>blockquote>
(Usually implemented in more advanced ways.)
[quote]quoted text[/quote]
[quote="author"]quoted text[/quote]
(including optional author)
Using a Wikipedia template:

quoted text

quoted text

— author
<pre>monospaced textpre> [code]monospaced text[/code] monospaced text
<span style="font-size:30px">Large Textspan> or
<span style="font-size:85%">Smaller Textspan>
[style size="30px"]Large Text[/style]
[style size="85"]Smaller Text[/style]
(The unit of measurement varies with each BBCode variant and could represent pixels, points, or relative HTML sizes.)
Large Text
Smaller Text
<span style="color:fuchsia;">Text in fuchsiaspan> or
<span style="color:#FF00FF;">Text in fuchsiaspan>
[style color="fuchsia"]Text in fuchsia[/style] or
[style color=#FF00FF]Text in fuchsia[/style] or
[color=#FF00FF]Text in fuchsia[/color]
(Both HTML color names and hexadecimal color values are generally supported, although on some boards, you must omit the # from selecting a hexadecimal color.)
Text in fuchsia
<ul>   <li>Entry Ali>   <li>Entry Bli> ul>  <ol>   <li>Entry 1li>   <li>Entry 2li> ol> 
[list]   [*]Entry A   [*]Entry B [/list]  [list=1]   [*]Entry 1   [*]Entry 2 [/list] 

Some message boards do not need the square brackets around the markers.

(Many variants for li and /li, list types – unordered and ordered, with different bullets or counter formats – etc.)

  • Entry A
  • Entry B
  1. Entry 1
  2. Entry 2
<table> <tr>   <td>table cell 1td>   <td>table cell 2td> tr> <tr>   <td>table cell 3td>   <td>table cell 4td> tr> table> 
[table] [tr]   [td]table cell 1[/td]   [td]table cell 2[/td] [/tr] [tr]   [td]table cell 3[/td]   [td]table cell 4[/td] [/tr] [/table] 

(Some variants for thead, rules, etc.)

table cell 1 table cell 2
table cell 3 table cell 4
Source:

Implementation

BBCode is typically implemented by applying a series of regular expression string-replace operations upon the input. Because regular expressions are limited in analyzing the structure of text input, this has the artifact that any non-hierarchical BBCode input will be transformed into invalid non-hierarchical HTML without error.[citation needed]

Applying traditional parsing techniques is made difficult by ambiguities in the markup, such as in [quote=[b]text[/b][/quote], where the input can either be interpreted as "text" quoted from someone called [b, or the bolded text "text" surrounded by [quote= and [/quote], i.e. [quote=text[/quote].

See also

References

Tags:

Bbcode TagsBbcode ImplementationBbcodeBracketHTMLInternet forumLightweight markup languageParsing

🔥 Trending searches on Wiki English:

Newcastle United F.C.Raindrop cakeMeghan, Duchess of SussexJioCinemaDua LipaVikram (actor)Sydney Brown (American football)Andrew TateMain PageBlake LivelySylvester StalloneAustin ReavesPedro PascalRyan Reynolds2023 Sudan conflictIce SpiceBook Review Index1337xIOS2020 NFL DraftWhitney HoustonUnited Arab EmiratesElliot GraingeAnjelica HustonWaco siegeKobe BryantCreed IIINeymarLa LigaTom HanksDavid GyasiSteven YeunShubman GillIt's Always Sunny in PhiladelphiaBenito MussoliniMacOSPhilippinesBluesky SocialSean CliffordArmored CoreMaliRachel McAdamsEd SheeranEvil Dead RiseSingaporeMatthew McConaugheyCourteney CoxAzerbaijanSouth SudanBeetlejuice (entertainer)Bill HaderLady GagaCeline DionFernando AlonsoFormula OneJohn Wick (film)Dasara (film)Vladimir PutinLindsay Lohan2023 Southeast Asian GamesAl PacinoDead Island 2ZendayaJoe BidenList of Black Mirror episodesBen AffleckAre You There God? It's Me, Margaret. (film)Barbara Young (actress)Microsoft WindowsPathu ThalaRajaraja IFacebookPan Am Flight 73The BeatlesBrazilOshi no KoNicole KidmanAnnamarie Tendler🡆 More