vue-syntax-highlight
vue-syntax-highlight copied to clipboard
Feature request: Syntax highlighting with custom Vue delimiters
trafficstars
Sometimes to avoid tag conflicts, I may need to change the vue delimiters, which causes my syntax highlighting to fail. The use case is this:
I have Vue & Django. Front end html rendered by django has context variables available by using
{{ context_variable }}.
So, to avoid collision, I can change the Vue delimiters by doing something like this:
Vue.options.delimiters = ['<%', '%>'];
It would be great if I could maintain accurate syntax highlighting by having an option available in the settings for leftDelimiter and rightDelimiter where I can set these values to keep syntax highlighting happy.