harrydowning / yaml-embedded-languages

A VS Code syntax extension for embedded language highlighting in YAML
MIT License
27 stars 5 forks source link
javascript syntax-highlighting vscode vscode-extension yaml
# YAML Embedded Languages ![GitHub License](https://img.shields.io/github/license/harrydowning/yaml-embedded-languages?style=for-the-badge) ![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/harrydowning.yaml-embedded-languages?style=for-the-badge) ![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/harrydowning.yaml-embedded-languages?style=for-the-badge&color=rebeccapurple)

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.

Example yaml file showing syntax highlighting

Built-In Languages

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

Requirements

None

Extension Settings

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).

Known Issues

See Issues

Contribution Notes

See CONTRIBUTING

Release Notes

See CHANGELOG