vue-syntax-highlight icon indicating copy to clipboard operation
vue-syntax-highlight copied to clipboard

Feature request: Syntax highlighting with custom Vue delimiters

Open robwise1 opened this issue 6 years ago • 0 comments
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.

robwise1 avatar Dec 20 '18 21:12 robwise1