From 034b7bfd821d7e18fdfbedec2de44b48585cab9f Mon Sep 17 00:00:00 2001 From: timhanlon Date: Fri, 17 Jan 2025 18:54:26 +1100 Subject: [PATCH] feat: syntax highlighting (#10) * feat: template highlighting * feat: syntax highlighting --- README.md | 4 + package.json | 1 + playground/nuxt.config.ts | 4 + pnpm-lock.yaml | 336 ++++++++++++++++++ src/module.ts | 8 + src/runtime/components/OpenInEditorButton.vue | 1 + src/runtime/components/TemplateView.vue | 23 +- src/runtime/variables.css | 3 +- 8 files changed, 365 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 3e1385c..4e4ba63 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,10 @@ See [launch-editor](https://github.com/yyx990803/launch-editor/#supported-editor Note: this does not currently work in the playground, due to `nuxt dev playground` overriding the `rootDir`. +## Syntax Highlighting + +Syntax highlighting is provided by [Nuxt Shiki](https://github.com/nuxt-modules/shiki), and can be configured via the `shiki` key in your `nuxt.config.ts`. +