highlightjs / vue-plugin

Highlight.js Vue Plugin
BSD 3-Clause "New" or "Revised" License
201 stars 27 forks source link

How using component locally with setup script #13

Closed Hunlongyu closed 3 years ago

Hunlongyu commented 3 years ago

how using component locally with setup script

image

it working, but very strange

joshgoebel commented 3 years ago

What is strange?

Hunlongyu commented 3 years ago
  1. The eighth line is not highlighted,vs code use volar
  2. Tag names are long and complex
joshgoebel commented 3 years ago

The eighth line is not highlighted,vs code use volar

This is related to your editor and that you aren't using the variable later (at a glance)... nothing to do with our library.

Tag names are long and complex

This is documented in the README: https://github.com/highlightjs/vue-plugin#using-component-locally

joshgoebel commented 3 years ago

Closing due to inactivity.