---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/support/wiki/en/formatter.md
  - https://yandex.ru/support/wiki/ru/formatter.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/en/llms.txt

# Blocks with special formatting

<!-- source: en/_includes/formatter-alert.md -->
{% note warning "" %}

Specially formatted blocks work in both dynamic tables and pages built with the legacy editor. For information on working with diagrams in the new editor, see [Formatting text](https://yandex.ru/support/wiki/en/wysiwyg/diagrams.md).

<!-- source: en/_includes/old-editor-note.md -->
You can no longer create pages using the old editor. However, you can easily convert any existing pages from the legacy editor to the new editor format. For more information, see [Switching a page to the new editor format](https://yandex.ru/support/wiki/en/page-management/convert-page.md).
<!-- endsource: en/_includes/old-editor-note.md -->

{% endnote %}
<!-- endsource: en/_includes/formatter-alert.md -->

You can use block formating to present text as a block with a specified formatting. For example, you can [highlight syntax](https://yandex.ru/support/wiki/en/static-markup/highlight.md) in the source code, add a fragment of boxed text, or set up the [width and position](https://yandex.ru/support/wiki/en/static-markup/wrappers.md) of a block on your page.

Wiki also supports markup of [mathematical formulas](https://yandex.ru/support/wiki/en/static-markup/formulas.md) and special languages for visualizing [diagrams](https://yandex.ru/support/wiki/en/static-markup/diagram.md).

To add a special formatting block to a page created in the old editor, use the following markup:

```
%%(<format> <parameters>)
A text fragment, software code, or data markup in a specified format
%%
```

For example:

```
%%(php width=300 border="2px solid red")
<?
phpinfo();
$s = "Hello, World!\n";
print $s;
%%
```

## Block formatting {#format}

To add special formatting to your text, specify a value for the `<format>` field in the block's markup:

| Format | Description |
------ | -----
| `wacko` | Plain text. |
| Programming language.<br>For example: `C`, `Python`, or `Java` | Code in the specified programming language. View the list of supported languages in [Supported programming languages](static-markup/highlight.md#formatters-name). |
| `csv` | [Data in CSV format](static-markup/csv.md). |
| `math` | [Mathematical formula using text markup](static-markup/formulas.md). |
| Diagram type:<ul><li>`graphviz`</li><li>`blockdiag`</li><li>`seqdiag`</li></ul> | [Diagram in text markup](static-markup/diagram.md). |
| `comment` | Comments: Text that will not be displayed on your page. |

## Block parameters {#params}

The list of available parameters depends on the selected block format.

These parameters are supported for all formats: `wrapper`, `align`, `width`, and `border`. For parameter descriptions, see [Borders, width, and alignment of blocks](https://yandex.ru/support/wiki/en/static-markup/wrappers.md).

#### See also

* [Inserting code with syntax highlighting](https://yandex.ru/support/wiki/en/static-markup/highlight.md)

* [Inserting data in CSV format](https://yandex.ru/support/wiki/en/static-markup/csv.md)

* [Inserting formulas](https://yandex.ru/support/wiki/en/static-markup/formulas.md)

* [Inserting diagrams and flowcharts](https://yandex.ru/support/wiki/en/static-markup/diagram.md)

* [Setting up block borders, width, and alignment](https://yandex.ru/support/wiki/en/static-markup/wrappers.md)
