# highlightjs-vue

> Highlight Single-File Components of Vue.js Framework

Latest version **1.0.0** (published 2019-11-18) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install highlightjs-vue
pnpm add highlightjs-vue
yarn add highlightjs-vue
bun add highlightjs-vue
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-11-18 |
| First published | 2019-11-18 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Sara Lissette |
| Maintainers | lissette.ibnz |
| Keywords | highlight, hljs, vue.js, vue |

## Links

- npm: https://www.npmjs.com/package/highlightjs-vue
- Repository: https://github.com/highlightjs/highlightjs-vue
- Homepage: https://github.com/highlightjs/highlightjs-vue#readme
- Issues: https://github.com/highlightjs/highlightjs-vue/issues
- npm.io page: https://npm.io/package/highlightjs-vue

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-11-18
- 1.0.0-beta (developt) — 2019-11-18

## README

`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

[![License: CC0-1.0](https://img.shields.io/badge/License-CC0%201.0-lightgrey.svg)](http://creativecommons.org/publicdomain/zero/1.0/)

---
_Source: https://npm.io/package/highlightjs-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
