import { highlight, languages } from 'prismjs/components/prism-core';
import 'prismjs/components/prism-clike';
import 'prismjs/components/prism-javascript';
import "prismjs/components/prism-sql.js"
import 'prismjs/themes/prism-tomorrow.css'; // import syntax highlighting styles
function highlighter(code) {
return highlight(code, languages.js); // languages. to return html with markup
}
* result
![image](https://user-images.githubusercontent.com/24451091/158500993-3cefec59-27e2-4788-8357-b20638d82afd.png)
Does not support lowercase highlighting of SQL?
version
"vue-prism-editor": "^2.0.0-alpha.2", "prismjs": "^1.27.0",
demo
function highlighter(code) { return highlight(code, languages.js); // languages. to return html with markup
}