Highlight.js: Add Vue Single File Component (.vue) highlighting.

Created on 25 Jun 2019  路  4Comments  路  Source: highlightjs/highlight.js

It shouldn't be too difficult to add since a Vue SFC basically looks like this:

<template>
VALID HTML HERE
</template>

<script>
VALID JAVASCRIPT HERE
</script>

<style>
VALID CSS HERE
</style>

The only thing to note would be that you can do e.g. <script lang="ts"> and <style lang="scss"> and such.

Most helpful comment

@marcoscaceres I think this can be closed now yes since we have:

https://github.com/highlightjs/highlightjs-vue/

All 4 comments

We need a maintainer for VueJS :(

@marcoscaceres I think this can be closed now yes since we have:

https://github.com/highlightjs/highlightjs-vue/

It isn't yet publish to NPM, but it can be installed using

npm i https://github.com/highlightjs/highlightjs-vue.git
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rarst picture Rarst  路  8Comments

Martii picture Martii  路  7Comments

gka picture gka  路  7Comments

Lestoroer picture Lestoroer  路  7Comments

Suyash2810 picture Suyash2810  路  8Comments