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

  • To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.
  • Допустимые HTML-теги: <a href hreflang class> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <pre type class> <p> <br>

  • Подсветка синтаксиса исходного кода может быть активирована используя следующие теги:

      Generic syntax highlighting tags: <code>, <blockcode>, <pre>.
    • Language specific syntax highlighting tags:<bash> for Bash source code, <css> for CSS source code, <html> for HTML5 source code, <js> for Javascript source code, <php> for PHP source code, <sass> for Sass source code, <sql> for SQL source code, <yml> for YAML source code
    • Исходный PHP-код также может быть заключён в <?php ... ?> или <% ... %>, но дополнительные опции, такие как нумерация строк, будут недоступны.

    Опции и советы:

    • 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), "css" (for CSS), "html" (for HTML5), "html5" (for HTML5), "javascript" (for Javascript), "js" (for Javascript), "php" (for PHP), "sass" (for Sass), "sql" (for SQL), "yaml" (for YAML), "yml" (for YAML).
    • 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".

    Стандартно:

    • Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
    • Default line numbering: нормальная нумерация строк.
  • HTML-теги не обрабатываются и показываются как обычный текст
  • Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple of blank lines.
  • Адреса веб-страниц и email-адреса преобразовываются в ссылки автоматически.