Closed barrycohen closed 1 year ago
The following does not use shell highlighting:
<highlightjs language="shell" code="#include <iostream>"></highlightjs>
Instead, it autodetects cpp and uses that, even though "shell" was explicitly provided. It is possible to force autodetect off but I don't think that's supposed to be required:
<highlightjs :autodetect="false" language="shell" code="#include <iostream>"></highlightjs>
See this fiddle https://jsfiddle.net/5nvhra3p/ for a live example.
I think there's a logic error in vue.ts:
vue.ts
const autodetect = computed(() => props.autodetect || !language.value)
I think this should be:
const autodetect = computed(() => props.autodetect && !language.value)
I think you may be right, could you test and make a PR perhaps?
The following does not use shell highlighting:
Instead, it autodetects cpp and uses that, even though "shell" was explicitly provided. It is possible to force autodetect off but I don't think that's supposed to be required:
See this fiddle https://jsfiddle.net/5nvhra3p/ for a live example.
I think there's a logic error in
vue.ts
:I think this should be: