Compose tips
Etiquetas HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <img>
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 etiqueta | Teclea | Obtiene |
| Las anclas se usan para hacer enlaces a otras páginas. | <a href="http://tetosoft.com/drupal">tetosoft.com</a> | tetosoft.com |
| 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> | - Primer elemento
- 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
|
| De forma predefinida, las etiquetas de saltos de líneas se añaden automáticamente, aunque puede usar esta etiqueta para añadir algunos saltos adicionales. Usar esta etiqueta es diferente, porque no se usa con un par de apertura y cierre como las demás. Use el « /» extra en la etiqueta para mantener la compatibilidad con XHTML 1.0. | Texto con <br />salto de línea | Texto con salto de línea |
| No hay ayuda disponible para la etiqueta img. |
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 &, 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ácter | Teclea | Obtiene |
| Ampersand | & | & |
| Mayor que | > | > |
| Menor que | < | < |
| Comillas | " | " |
- 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.
- Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
Syntax highlighting of source code can be enabled with the following tags: - Generic syntax highlighting tags: "
<code>", "<blockcode>".
- Language specific syntax highlighting tags: .
- PHP source code can also be enclosed in <?php ... ?> or <% ... %>, but additional options like line numbering are not possible here.
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: "
bash" (for Bash), "c" (for C), "cpp" (for C++), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html4strict" (for HTML), "java" (for Java), "javascript" (for Javascript), "mysql" (for MySQL), "php" (for PHP), "python" (for Python), "ruby" (for Ruby), "sql" (for SQL), "text" (for Text), "vb" (for Visual Basic), "vbnet" (for vb.net).
- 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 type | You 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="python" linenumbers="normal"> foo = "bar"; baz = "foz"; </code> | Code block with syntax highlighting for Python source code and normal line numbers. |
<code language="python" start="23" fancy="7"> foo = "bar"; baz = "foz"; </code> | Code block with syntax highlighting for Python source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
|
Comentarios recientes
hace 4 semanas 13 horas
hace 4 semanas 3 días
hace 10 semanas 4 días
hace 11 semanas 1 día
hace 21 semanas 2 días
hace 38 semanas 10 horas
hace 38 semanas 4 días
hace 41 semanas 5 días
hace 41 semanas 5 días
hace 47 semanas 16 horas