Syntax highlighting of source code can be enabled with the following tags:
[code]", "[blockcode]".[c]" for C source code, "[cpp]" for C++ source code, "[drupal6]" for Drupal 6 source code, "[javascript]" for Javascript source code, "[php]" for PHP source code, "[python]" for Python source code.Options and tips:
bash" (for Bash), "c" (for C), "cpp" (for C++), "drupal6" (for Drupal 6), "html4strict" (for HTML), "javascript" (for Javascript), "mysql" (for MySQL), "php" (for PHP), "python" (for Python), "sql" (for SQL), "vim" (for Vim Script).Defaults:
Examples:
| You type | You get |
|---|---|
[code]foo = "bar";[/code] | Inline code with the default syntax highlighting mode. |
[code] | Code block with the default syntax highlighting mode. |
[code lang="sql" linenumbers="normal"] | Code block with syntax highlighting for SQL source code and normal line numbers. |
[code language="sql" start="23" fancy="7"] | Code block with syntax highlighting for SQL source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
[c] | Code block with syntax highlighting for C source code. |
[c start="23" fancy="7"] | Code block with syntax highlighting for C source code, line numbers starting from 23 and highlighted line numbers every 7th line. |
Commentaires récents
il y a 12 semaines 6 jours
il y a 1 an 29 semaines
il y a 1 an 29 semaines
il y a 2 an 31 semaines
il y a 2 an 39 semaines
il y a 2 an 39 semaines
il y a 2 an 39 semaines
il y a 2 an 40 semaines
il y a 2 an 42 semaines
il y a 2 an 42 semaines