Closed arneesh closed 3 years ago
language="js"
should be language="javascript"
Why? Pretty sure the component supports aliass just fine.
Thanks for the quick response guys. @Trinovantes I tried that as well. Wasn't working either...
Can you provide a repo?
edit: I suspect you're not importing a theme CSS e.g. import 'highlight.js/styles/stackoverflow-light.css'
Ah, yes that was the issue. Thanks for the help I appreciate it.
I added it to a Vue 3 project and the output I am getting is this(Attached a screenshot below). Even with specifically setting the language to js.
Dependency Versions
Installation
Usage: Step 1
Usage: Step 2
Output