Tech News
← Back to articles

VSCode extension for syntax highlighting multi-line YAML strings

read original related products more articles

YAML Embedded Languages

Features

Syntax highlighting within YAML block-scalars for 50+ built-in languages and the ability to add highlighting for any other language with the yaml-embedded-languages.include configuration setting.

Usage

To highlight a single block, place a comment with the language identifier next to the block identifier.

example : | # highlighted

To highlight all blocks from a point onwards, place a comment with the extension name followed by the language identifier.

# yaml-embedded-languages: example : | highlighted

To stop highlighting blocks place a comment with the extension name.

# yaml-embedded-languages example : | not highlighted

... continue reading