11

I just want to ask if you know how to add syntax highlighting for vue files using vue-loader. I'm using Eclipse Neon

1
  • Vue-loader does not do the syntax highlighting. Its the IDE you use which does the syntax highlighting. Search if eclipse has an vue plugins for syntax highlighting of vue related code. Otherwise i suggest using webstorm(paid) or atom(free) as a IDE Commented May 21, 2017 at 10:20

2 Answers 2

13

vue is mostly tags and javascript so treating it as a HTML file would be fair enough. That can be set in eclipse for *.vue under HTML in content type. enter image description here

Sign up to request clarification or add additional context in comments.

Comments

4

There is a plugin in the Marketplace that might be what you're looking for. It's called CodeMix CI 1. I just installed it and aside from adding syntax highlighting, it also does code completion, which comes really handy.

3 Comments

Take a look at this page to see some of the Vue capabilities in CodeMix:
Good stuff, @BrianFernandes. Very informative link, thanks!
It should at least be noted that CodeMix is not a free plugin for eclipse.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.