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.renanmarks.net">blog do renan</a>blog do renan
    Ê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>", "<blockcode>".
    • Language specific syntax highlighting tags: "<c>" for C source code, "<cpp>" for C++ source code, "<css>" for CSS source code, "<drupal6>" for Drupal 6 source code, "<html>" for HTML source code, "<java>" for Java source code, "<javascript>" for Javascript source code, "<jquery>" for jQuery source code, "<php>" for PHP source code, "<python>" for Python source code, "<ruby>" for Ruby source code, "<sql>" for SQL 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++), "css" (for CSS), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "java" (for Java), "javascript" (for Javascript), "jquery" (for jQuery), "php" (for PHP), "python" (for Python), "ruby" (for Ruby), "sql" (for SQL), "text" (for Text).
    • Os estilos de tags permitidos são: <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.
    • A title can be added to a code block with the attribute "title".

    Defaults:

    • Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
    • Default line numbering: normal 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.
"Se debugar é o processo de remover bugs, programar deve ser o processo de colocá-los." Drupal theme by Kiwi Themes.