diff --git a/docs/content/4.plugins/1.built-in/shiki.md b/docs/content/4.plugins/1.built-in/shiki.md index 9ef4539b..05335972 100644 --- a/docs/content/4.plugins/1.built-in/shiki.md +++ b/docs/content/4.plugins/1.built-in/shiki.md @@ -196,6 +196,22 @@ const x: number = 42 ``` ```` +### Inline code + +Inline code is highlighted when it declares a language with the attributes syntax. `lang` wins over `language`: + +```markdown +The type is `Ref`{lang="ts-type"} and the component is ``{lang="vue-html"}. +``` + +Two fragment languages ship out of the box: `ts-type` tokenizes through the TypeScript grammar seeded with `let a:`, and `vue-html` through the Vue grammar seeded with `