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.
The following list shows all valid identifiers for the built-in languages:
Language | Identifier |
---|---|
bat | bat |
bibtex | bibtex |
c | c |
clojure | clojure |
coffeescript | coffee |
cpp | cpp , c++ |
csharp | csharp , c# |
css | css |
cuda-cpp | cuda |
dart | dart |
diff | diff |
dockercompose | dockercompose |
dockerfile | dockerfile |
fsharp | fsharp , f# |
go | go |
groovy | groovy |
handlebars | handlebars |
hlsl | hlsl |
html | html |
ini | ini |
jade | jade |
java | java |
javascript | js , javascript |
javascriptreact | jsx |
json | json |
jsonc | jsonc |
jsonl | jsonl |
julia | julia |
latex | latex |
less | less |
log | log |
lua | lua |
makefile | make , makefile |
markdown | markdown |
markdown-math | math |
objective-c | objc |
objective-cpp | objcpp |
perl | perl |
php | php |
pip-requirements | pip , requirements |
powerfx* | powerfx |
powershell | powershell |
properties | properties |
python | py , python |
r | r |
raku | raku |
razor | razor |
regex* | regex |
restructuredtext | rst |
ruby | ruby |
rust | rust |
scss | scss |
shaderlab | shaderlab |
shellscript | shell |
sql | sql |
swift | swift |
tex | tex |
typescript | ts , typescript |
typescriptreact | tsx |
vb | vb |
xml | xml |
xsl | xsl |
yaml | yaml |
*Not a valid VS Code language
None
Name | Description |
---|---|
yaml-embedded-languages.include |
Allows the user to include their own languages, the languages of other extensions, or aliases for existing languages. Use the key to define the language identifier with regex. Use the value to specify the language TextMate scopeName . By default the language identifier will be used as the language name. To change this, an object can be specified with the properties name and scopeName (required). |
See Issues
See CONTRIBUTING
See CHANGELOG