Подсказки по редактированию

  • Адреса страниц и электронной почты автоматически преобразуются в ссылки.
  • Allowed HTML tags: <a> <em> <b> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <h2> <h3> <h4> <table> <tr> <td> <th>

  • Строки и параграфы распознаются автоматически. Теги переноса строки <br />, параграфа <p> и закрытия параграфа </p> вставляются автоматически. Если параграфы не распознаны, просто добавьте пару пустых строк.
  • 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. The possible values are: "abap" (for ABAP), "actionscript" (for ActionScript), "ada" (for Ada), "apache" (for Apache Log), "applescript" (for AppleScript), "asm" (for ASM), "asp" (for ASP), "autoit" (for AutoIt), "bash" (for Bash), "basic4gl" (for Basic4GL), "blitzbasic" (for BlitzBasic), "bnf" (for bnf), "c" (for C), "c_mac" (for C (Mac)), "caddcl" (for CAD DCL), "cadlisp" (for CAD Lisp), "cfdg" (for CFDG), "cfm" (for ColdFusion), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "csharp" (for C#), "css" (for CSS), "d" (for D), "delphi" (for Delphi), "diff" (for Diff), "div" (for DIV), "dos" (for DOS), "dot" (for dot), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "eiffel" (for Eiffel), "fortran" (for Fortran), "freebasic" (for FreeBasic), "genero" (for genero), "gml" (for GML), "groovy" (for Groovy), "haskell" (for Haskell), "html4strict" (for HTML), "idl" (for Uno Idl), "ini" (for INI), "inno" (for Inno), "io" (for Io), "java" (for Java), "java5" (for Java(TM) 2 Platform Standard Edition 5.0), "javascript" (for Javascript), "latex" (for LaTeX), "lisp" (for Lisp), "lua" (for Lua), "m68k" (for Motorola 68000 Assembler), "matlab" (for Matlab M), "mirc" (for mIRC Scripting), "mpasm" (for Microchip Assembler), "mysql" (for MySQL), "nsis" (for NSIS), "objc" (for Objective C), "ocaml" (for OCaml), "ocaml-brief" (for OCaml), "oobas" (for OpenOffice.org Basic), "oracle8" (for Oracle 8 SQL), "pascal" (for Pascal), "per" (for per), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP), "plsql" (for PL/SQL), "python" (for Python), "qbasic" (for QBasic/QuickBASIC), "rails" (for Rails), "reg" (for Microsoft Registry), "robots" (for robots.txt), "ruby" (for Ruby), "sas" (for SAS), "scheme" (for Scheme), "sdlbasic" (for sdlBasic), "smalltalk" (for Smalltalk), "smarty" (for Smarty), "sql" (for SQL), "tcl" (for TCL), "text" (for Text), "thinbasic" (for thinBasic), "tsql" (for T-SQL), "vb" (for Visual Basic), "vbnet" (for vb.net), "vhdl" (for VHDL), "visualfoxpro" (for Visual Fox Pro), "winbatch" (for Winbatch), "xml" (for XML), "xpp" (for X++), "z80" (for ZiLOG Z80 Assembler).
    • 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.
    • Beside the tag style "<foo>" it is also possible to use "[foo]".

    Defaults:

    • Default highlighting mode for generic syntax highlighting tags: the default language used for syntax highlighting is "php".
    • 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="java" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Java source code
    and normal line numbers.
    <code language="java" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for Java source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.

Вход в систему

Последние комментарии