Vetur supports syntax highlighting for the following languages:
Vetur supports syntax highlighting for vue directives (e.g. v-if
or :attribute=
) and vue interpolations (e.g. {{variable}}
).
The supported attribute string literals are '
and "
. Vetur does not support the `
backtick literal, as it makes things more complex and there is no observed benefit of using it.
Vetur does not support explicitly adding the default language:
Preprocessors are also not languages, so <script lang="babel">
would be invalid as well.
Vetur provides a setting vetur.grammar.customBlocks
that defaults to:
You can
Change vetur.grammar.customBlocks
, for example:
Run the command "Vetur: Generate grammar from vetur.grammar.customBlocks
Restart VS Code to get syntax highlighting for custom blocks.
Valid language value for custom blocks:
lang
values in the support table.md | yaml | json | php | graphql
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4