Skip to content

Help make the extensions Marketplace better for everyone. Take this survey!

| Marketplace
Sign in
Visual Studio Code>Programming Languages>YAML Embedded LanguagesNew to Visual Studio Code? Get it now.
YAML Embedded Languages

YAML Embedded Languages

harrydowning

|
300 installs
| (1) | Free
Support for syntax highlighting within YAML block-scalars.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAML Embedded Languages

Features #

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

Example yaml file showing syntax highlighting

Built-In Languages #

The following list shows all valid identifiers for the built-in languages:

  • c
  • clojure
  • coffee
  • cpp or c++
  • csharp
  • css
  • diff
  • dockerfile
  • dosbatch
  • fsharp
  • go
  • groovy
  • html
  • java
  • javascript or js
  • json
  • tex or latex
  • lua
  • makefile
  • markdown
  • objc
  • perl
  • pip or requirements
  • powershell
  • properties
  • python or py
  • r
  • regex
  • ruby
  • rust
  • scss
  • shaderlab
  • shell
  • slim
  • sql
  • swift
  • typescript or ts
  • tsx
  • xml
  • yaml (Yes, YAML within YAML!)

Requirements #

None

Extension Settings #

Name Description
yaml-embedded-languages.include Allows the user to include their own languages by providing an object where each key defines the language identifier with regex and the corresponding value specifies the language TextMate scopeName. This can be used to add any other language, which could be from another extension. This also allows the user to override any language identifiers currently used for the built-in languages.

Known Issues #

See Issues

Contribution Notes #

See CONTRIBUTING

Release Notes #

See CHANGELOG

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft