---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/support/wiki/en/static-markup/source.md
  - https://yandex.ru/support/wiki/ru/static-markup/source.md
  - href: en/static-markup/source.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: "Source code formatting in Yandex\_Wiki"
description: "In this tutorial, you will learn about the methods of formatting a source code snippet in\_your text."
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/en/llms.txt


# Source code formatting in the old editor


{% list tabs %}

- New editor

   For information on code formatting in the new editor, see [Formatting text](https://yandex.ru/support/wiki/en/wysiwyg/text-format.md#src-wysiwyg).

- Old editor

   * To highlight a source code snippet, such as a function name, in the text, wrap it in back quotes (``` ` ```).

   * To format multiple source code lines, paste three back quotes (` ``` `) in the row preceding the code block and the row following the code block.

   Example:

   * ```
        Function `exit()`
      ```

      {% cut "Result" %}

      Function `exit()`

      {% endcut %}

   * ```
            Start of a code snippet
            ```
            <?
            phpinfo();
            $s = "Hello, World!\n";
            print $s;
            ```
            End of the code snippet

      ```

      {% cut "Result" %}

      Start of the code snippet
      ```
      <?
      phpinfo();
      $s = "Hello, World!\n";
      print $s;
      ```
      End of the code snippet

      {% endcut %}

   #### See also

   [Highlighting code syntax in the old editor](https://yandex.ru/support/wiki/en/static-markup/highlight.md)

{% endlist %}
