code icon indicating copy to clipboard operation
code copied to clipboard

Assigning existing syntax highlighting to vue files

Open WebShapedBiz opened this issue 7 years ago • 3 comments

Hi.

Is there a way to have automatic HTML syntax highlighting assigned to .vue files. It's pain that every time when I open .vue file I have to manually set it up.

Cheers.

WebShapedBiz avatar Nov 01 '18 19:11 WebShapedBiz

You can try and use this mime file. put it here ~/.local/share/mime/packages with extension .xml. then update mime database by running sudo update-mime-database ~/.local/share/mime <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-type type="text/x-html"> <comment>Vue Source</comment> <glob pattern="*.vue"/> </mime-type> </mime-info>

Not sure if this is going to work. Let me know

Hedronmx avatar Mar 03 '19 17:03 Hedronmx

Thank you @Hedronmx but I gave up on Code.

WebShapedBiz avatar Mar 05 '19 05:03 WebShapedBiz

Thank you @Hedronmx but I gave up on Code.

No problem, there's still lots of work for Code to be production ready. I am working on an Atom theme and icon pack. I'll upload it soon

Hedronmx avatar Mar 05 '19 14:03 Hedronmx