Dicas de composição

  • Endereços de páginas de internet e emails viram links automaticamente.
  • Tags HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

    Este site permite que você use HTML. Embora aprender todos os detalhes de HTML possa parecer um pouco difícil, aprender algumas poucas "tags" HTML, as mais básicas, é fácil. Esta tabela apresenta exemplos de cada tag habilitada neste site.

    Para maiores informações, consulte as especificações do HTML, da W3C, ou então use algum site de busca para achar algum outro site que fale sobre HTML.

    Descrição da TagVocê EscreveVocê Terá
    Âncoras são usadas para criar links para outras páginas.<a href="http://www.treewy.com">Treewy</a>Treewy
    Ênfase<em>Ênfase</em>Ênfase
    Negrito<strong>Negrito</strong>Negrito
    Citação<cite>Citação</cite>Citação
    Código-fonte de programação<code>Codificado</code>Codificado
    Lista não ordenada - use <li> no começo de cada item da lista<ul> <li>Primeiro item</li> <li>Segundo item</li> </ul>
    • Primeiro item
    • Segundo item
    Lista ordenada - use <li> para iniciar cada item da lista<ol> <li>Primeiro item</li> <li>Segundo item</li> </ol>
    1. Primeiro item
    2. Segundo item
    Listas de verbetes são similares a outras listas HTML. <dl> inicia a lista de verbetes, <dt> inicia o verbete e <dd> inicia a descrição do verbete.<dl> <dt>Primeiro termo</dt> <dd>Primeira definição</dd> <dt>Segundo termo</dt> <dd>Definição 2</dd> </dl>
    Primeiro termo
    Primeira definição
    Segundo termo
    Definição 2

    A maioria dos caracteres, inclusive os pouco usados, podem ser inseridos nenhum problema.

    Se você encontrar algum problema, tente usar entidades HTML de caractere. Um exemplo comum é &amp; para o caractere "e comercial", &. Para uma lista completa das entidades veja a página entidades HTML (em inglês). Alguns dos caracteres disponíveis são:

    Descrição do caractereVocê EscreveVocê Terá
    "E" comercial&amp;&
    Maior que&gt;>
    Menor que&lt;<
    Aspas&quot;"
  • Quebras de linhas e parágrafos são automaticamente reconhecidos. As tags de quebra de linha, <br />, de parágrafo, <p>, e de fim de parágrafo, <p>, são inseridas automaticamente. Se os parágrafos não forem reconhecidos, basta inserir algumas linhas em branco.
  • Syntax highlighting of source code can be enabled with the following tags:

    • Generic syntax highlighting tags: "<code>".
    • Language specific syntax highlighting tags: "<c>" for C source code, "<cpp>" for C++ source code, "<drupal5>" for Drupal 5 source code, "<drupal6>" for Drupal 6 source code, "<java>" for Java source code, "<javascript>" for Javascript source code, "<php>" for PHP source code, "<python>" for Python source code, "<ruby>" for Ruby source code.

    Options and tips:

    • The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language, class. The possible values are: "c" (for C), "cpp" (for C++), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "java" (for Java), "javascript" (for Javascript), "php" (for PHP), "python" (for Python), "ruby" (for Ruby).
    • The supported tag styles are: <foo>, [foo].
    • Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
    • If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.

    Defaults:

    • Default highlighting mode for generic syntax highlighting tags: the default language used for syntax highlighting is "php".
    • Default line numbering: no line numbers.

    Examples:

    You typeYou get
    <code>foo = "bar";</code>Inline code with the default syntax highlighting mode.
    <code>
    foo = "bar";
    baz = "foz";
    </code>
    Code block with the default syntax highlighting mode.
    <code lang="javascript" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Javascript source code
    and normal line numbers.
    <code language="javascript" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Javascript source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
    <c>
    foo = "bar";
    baz = "foz";
    </c>
    Code block with syntax highlighting for C source code.
    <c start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    <c>
    Code block with syntax highlighting for C source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
toolbar powered by www.iconcy.com