Answer the question
In order to leave comments, you need to log in
How to change syntax highlighting in phpStorm for vue components?
vue has single-file components that have markup:
<template>
<div id="app">
<h1>{{ msg }} <span>Вася</span></h1>
</div>
</template>
<script>
export default {
name: 'app',
data () {
return {
msg: 'Welcome to Your Vue.js App'
}
}
}
</script>
<style lang="scss">
h1 {
span {
color: green;
}
}
</style>
<style></style>
this is scss for example <script></script>
according to ECMA2015. At the moment, arrow functions are underlined by a syntax error, for example, this var a = a.map( s => s.length );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question