Skip to content

Space in [!code …] markers

In the page source there must be exactly one space after !code in comments (// [!code focus], // [!code ++], etc.), otherwise VitePress may not recognize the directive.

In the examples below in this guide, an extra space (two spaces in a row) is intentional so that, when building this documentation, the construct is not treated as real highlighting inside an already rendered code block.