BB Code

Explanation

BB code is a set of tags based on the HTML language that you may already be familiar with. They allow you to add formatting to your messages in the same way as HTML does, but have a simpler syntax and will never break the layout of the pages you are viewing. The ability to use BB code is set on a forum-by-forum basis by the administrator, so you should check the forum rules when you post a new message.

Below is a list of the BB code tags you can use to format your messages.

Lista de Códigos vB

  1. Bold / Italic / Sublinhado
  2. Cores
  3. Tamanho
  4. Fonte
  5. Destaque
  6. Left / Right / Center
  7. Recorte
  8. Email
  9. Hiperligação
  10. Thread Linking
  11. Post Linking
  12. Bulleted Lists / Advanced Lists
  13. Imagens
  14. Videos
  15. Código
  16. Código PHP
  17. Código HTML
  18. Quote
  19. Stop BB Code Parsing
  20. Anexo
Incorrect BB Code Usage:
  • [url] www.example.com [/url] - don't put spaces between the bracketed code and the text you are applying the code to.
  • [email]myname@domain.com[email] - the end brackets must include a forward slash ([/email])

Bold / Italic / Sublinhado

Com os códigos [b], [i] e [u] você pode criar texto em bold, italic e sublinhado.

    • [b]valor[/b]
    • [i]valor[/i]
    • [u]valor[/u]
    Use
    • [b]texto em bold[/b]
    • [i]texto em italic[/i]
    • [u]texto sublinhado[/u]
    Exemplo de Uso
    • texto em bold
    • texto em italic
    • texto sublinhado
    Como fica

Cores

As tags [color] permitem-lhe que altere as cores do seu texto.

  • [color=Opção]valor[/color]
    Use
  • [color=blue]este texto é azul[/color]
    Exemplo de Uso
  • este texto é azul
    Como fica

Tamanho

A tag [size] permite-lhe escolher o tamanho do texto.

  • [size=Opção]valor[/size]
    Use
  • [size=+2]texto duas vezes superior ao normal[/size]
    Exemplo de Uso
  • texto duas vezes superior ao normal
    Como fica

Fonte

A tag [font] permite-lhe alterar a fonte do seu texto.

  • [font=Opção]valor[/font]
    Use
  • [font=courier]texto usando a fonte courier[/font]
    Exemplo de Uso
  • texto usando a fonte courier
    Como fica

Left / Right / Center

As tags [left], [right] e [center] permitem-lhe escolher o alinhamento do texto.

    • [left]valor[/left]
    • [center]valor[/center]
    • [right]valor[/right]
    Use
    • [left]texto alinhado à esquerda[/left]
    • [center]texto alinhado ao centro[/center]
    • [right]texto alinhado à direita[/right]
    Exemplo de Uso
  • texto alinhado à esquerda
    texto alinhado ao centro
    texto alinhado à direita
    Como fica

Recorte

A tag [indent] permite-lhe recortar o texto.

  • [indent]valor[/indent]
    Use
  • [indent]este texto é recortado[/indent]
    Exemplo de Uso
  • este texto é recortado
    Como fica

Email

A tag [email] permite-lhe criar um link a um endereço de email. Pode também criar um parâmetro adicional para dar um 'nome' ao seu link.

Hiperligação

A tag [url] permite-lhe a ligação a outros websites e ficheiros. Pode ainda incluir um parâmetro adicional com o 'nome' do seu link.

Thread Linking

The [thread] tag allows you to link to threads by specifying the thread id. You can include an optional parameter to 'name' your link.

    • [thread]threadid[/thread]
    • [thread=threadid]valor[/thread]
    Use
    • [thread]42918[/thread]
    • [thread=42918]Click Me![/thread]
    (Note: The threadid/postid is just an example and may not link to a valid thread/post.)
    Exemplo de Uso
  • Como fica

Post Linking

The [post] tag allows you to link to posts by specifying the post id. You can include an optional parameter to 'name' your link.

Bulleted Lists

The [list] tag allows you to create simple, bulleted lists without specifying an option. Within the value portion, each bullet is denoted by the [*] tag.

  • [list]valor[/list]
    Use
  • [list]
    [*]list item 1
    [*]list item 2
    [/list]
    Exemplo de Uso
    • list item 1
    • list item 2
    Como fica

Advanced Lists

The [list] tag allows you to create advanced lists by specifying an option. The option should have a value of 1 (for a numbered list) or A (for an alphabetic with capital letters list) or a (for an alphabetic with lowercase letters list) or I (for a numbered with capital Roman numeral list) or i (for a numbered with small Roman numeral list).

  • [list=Opção]valor[/list]
    Use
  • [list=1]
    [*]list item 1
    [*]list item 2
    [/list]

    [list=A]
    [*]list item 1
    [*]list item 2
    [/list]

    [list=a]
    [*]list item 1
    [*]list item 2
    [/list]
    Exemplo de Uso
    1. list item 1
    2. list item 2
    1. list item 1
    2. list item 2
    1. list item 1
    2. list item 2
    Como fica

Imagens

A tag [img] permite que você coloque imagens nas suas mensagens. Também pode combinar esta tag com um [url] para criar links em imagens.

  • [img]valor[/img]
    Use
    • [img]http://www.mercedistas.pt/images/statusicon/forum_new-48.png[/img] (Sem ligação)
    • [url=http://www.example.com] [img]http://www.mercedistas.pt/images/statusicon/forum_new-48.png[/img] [/url] (Com ligação)
    Exemplo de Uso
    • (Sem ligação)
    • (Com ligação)
    Como fica

Videos

The [video] tag allows you to embed videos from various video services within your posts.

  • [video]valor[/video]
    Use
    • [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/video]
    Exemplo de Uso
    Como fica

Código

The [code] tag switches to a fixed-width (monospace) font and preserves all spacing.

  • [code]valor[/code]
    Use
  • [code]
    <script type="text/javascript">
    <!--
        alert("Hello world!");
    //-->
    </script>
    [/code]
    Exemplo de Uso
  • Código:
    <script type="text/javascript">
    <!--
    	alert("Hello world!");
    //-->
    </script>
    Como fica

Código PHP

The [php] tag performs the same function as the [code] tag, but also adds syntax highlighting for PHP code. Although it is designed for PHP, it may correctly highlight some other C-like languages.

  • [php]valor[/php]
    Use
  • [php]
    $myvar = 'Hello World!';
    for ($i = 0; \$i < 10; \$i++)
    {
        echo $myvar . "\n";
    }
    [/php]
    Exemplo de Uso
  • Código PHP :
    $myvar 'Hello World!';
    for (
    $i 0$i 10$i++)
    {
        echo 
    $myvar "\n";

    Como fica

Código HTML

The [html] tag allows you to perform syntax highlighting for HTML code.

  • [html]valor[/html]
    Use
  • [html]
    <img src="image.gif" alt="image" />
    <a href="testing.html" target="_blank">Testing</a>
    [/html]
    Exemplo de Uso
  • Código HTML:
    <img src="image.gif" alt="image" />
    <a href="testing.html" target="_blank">Testing</a>
    Como fica

Quote

The [quote] tag allows you to attribute text to someone else.

    • [quote]Quote[/quote]
    • [quote=Nome]valor[/quote]
    Use
    • [quote]Lorem ipsum dolor sit amet[/quote]
    • [quote=John Doe]Lorem ipsum dolor sit amet[/quote]
    • [quote=John Doe;141705]Lorem ipsum dolor sit amet[/quote]
    Exemplo de Uso
    • Lorem ipsum dolor sit amet
    • Quote Mensagem Original de John Doe
      Lorem ipsum dolor sit amet
    • Quote Mensagem Original de John Doe Ver Mensagem
      Lorem ipsum dolor sit amet
    Como fica

Destaque

A tag [highlight] permite-lhe destacar o seu texto.

  • Use
    [highlight]valor[/highlight]
  • Exemplo de Uso
    [highlight]este texto está destacado[/highlight]
  • Como fica
    este texto está destacado

Stop BB Code Parsing

The [noparse] tag allows you to stop the parsing of BB code.

  • [noparse][b]valor[/b][/noparse]
    Use
  • [noparse][b]Lorem ipsum dolor sit amet[/b][/noparse]
    Exemplo de Uso
  • [b]Lorem ipsum dolor sit amet[/b]
    Como fica

Anexo

The [attach] tag allows you to display an attachment in your post rather than at the bottom. It will only display attachments that belong to the post in which it is utilized.

  • [attach]attachmentid[/attach]
    Use
  • [attach]12345[/attach]
    Exemplo de Uso
  • Como fica
Site Fácil
Hospedagem de sites // Criar Site Grátis // Domínios