Skip to main content
Distribuir contenido

Compose tips

  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Etiquetas HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

    Este sitio admite contenido HTML. Aprender todo el HTML es una tarea ardua e intimidante, pero aprender unas cuantas «etiquetas» HTML básicas es muy sencillo. Esta tabla proporciona ejemplos para cada etiqueta que está activa en el sitio.

    Para más información, puede ver las especificaciones HTML de W3C o usar su motor de búsqueda favorito para buscar otros sitios que traten sobre HTML.

    Descripción de la etiquetaTecleaObtiene
    Las anclas se usan para hacer enlaces a otras páginas.<a href="http://nestor.profesional.co.cr">Nestor's Development and Personal Articles</a>Nestor's Development and Personal Articles
    Enfatizado<em>Enfatizado</em>Enfatizado
    Fuerte<strong>Fuerte</strong>Fuerte
    Citado<cite>Citado</cite>Citado
    Texto codificado que se usa para mostrar código fuente de programación<code>Codificado</code>Codificado
    Lista desordenada: use <li> para comenzar cada elemento de la lista<ul> <li>Primer elemento</li> <li>Segundo elemento</li> </ul>
    • Primer elemento
    • Segundo elemento
    Lista ordenada: utilice <li> para comenzar cada elemento de la lista<ol> <li>Primer elemento</li> <li>Segundo elemento</li> </ol>
    1. Primer elemento
    2. Segundo elemento
    Las listas de definiciones son similares a otras listas HTML. <dl> da comienzo a la lista de definiciones, <dt> da comienzo a cada término definido y <dd> da comienzo a la descripción de la definición.<dl> <dt>Primer término</dt> <dd>Primera definición</dd> <dt>Segundo término</dt> <dd>Segunda definición</dd> </dl>
    Primer término
    Primera definición
    Segundo término
    Segunda definición

    Los caracteres menos habituales se pueden introducir directamente sin mayor complicación.

    Si tiene problemas, intente usar entidades de caracteres HTML. Un ejemplo de esto es &amp;, que se usa para conseguir el carácter &. Tiene una lista completa de las entidades HTML en la página de entidades. Entre los caracteres disponibles están:

    Descripción del carácterTecleaObtiene
    Ampersand&amp;&
    Mayor que&gt;>
    Menor que&lt;<
    Comillas&quot;"
  • Las líneas y los párrafos se reconocen automáticamente. Las etiquetas <br /> para el salto de línea y <p> y </p> para abrir y cerrar el párrafo se insertan automáticamente. Si los párrafos no se reconocen, simplemente añada unas cuantas líneas vacías.
  • 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, "<drupal>" for Drupal 6 source code, "<html>" for HTML source code, "<java>" for Java source code, "<javascript>" for Javascript source code, "<sql>" for MySQL source code, "<objc>" for Objective-C 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++), "css" (for CSS), "drupal" (for Drupal 6), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "java" (for Java), "javascript" (for Javascript), "mysql" (for MySQL), "objc" (for Objective-C), "php" (for PHP), "python" (for Python), "ruby" (for Ruby), "sql" (for MySQL).
    • 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: when no language attribute is specified, no syntax highlighting will be done.
    • 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="html4strict" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for HTML source code
    and normal line numbers.
    <code language="html4strict" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for HTML 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.