详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
34 lines
1.0 KiB
Markdown
34 lines
1.0 KiB
Markdown
`highlight.js` syntax definition for Vue.
|
|
|
|
Support for single-file [Vue.js](https://vuejs.org/) components.
|
|
The files with `.vue` extension allow to write html, javascript/typescript and styles in the same file.
|
|
|
|
### Usage
|
|
|
|
Simply include the `highlight.js` script package in your webpage or node app, load up this module and apply it to `hljs`.
|
|
|
|
If you're not using a build system and just want to embed this in your webpage:
|
|
|
|
```html
|
|
<script src="https://cdn.jsdelivr.net/npm/highlightjs"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/highlightjs-vue"></script>
|
|
<script>
|
|
hljs.registerLanguage("vue", window.hljsDefineVue);
|
|
hljs.initHighlightingOnLoad();
|
|
</script>
|
|
```
|
|
|
|
If you're using webpack / rollup / browserify / node:
|
|
|
|
```javascript
|
|
var hljs = require("highlightjs");
|
|
var hljsDefineVue = require("highlightjs-vue");
|
|
|
|
hljsDefineVue(hljs);
|
|
hljs.initHighlightingOnLoad();
|
|
```
|
|
|
|
### License
|
|
|
|
[](http://creativecommons.org/publicdomain/zero/1.0/)
|