highlightjs-vue
Highlight Single-File Components of Vue.js Framework
Last updated 6 years ago by lissette.ibnz .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install highlightjs-vue 
SYNC missed versions from official npm registry.

highlight.js syntax definition for Vue.

Support for single-file Vue.js 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:

<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:

var hljs = require("highlightjs");
var hljsDefineVue = require("highlightjs-vue");

hljsDefineVue(hljs);
hljs.initHighlightingOnLoad();

License

License: CC0-1.0

Current Tags

  • 1.0.0-beta                                ...           developt (6 years ago)
  • 1.0.0                                ...           latest (6 years ago)

2 Versions

  • 1.0.0                                ...           6 years ago
  • 1.0.0-beta                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |