您可以在此处阅读如何实现此目的:
https://forum.sublimetext.com/t/javascript-es6-template-literals-syntax-for-html/18242
转载于此:
打开工具>开发人员>新语法
添加:
%YAML1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: JavaScript NG
file_extensions:
- js
- ng.js
scope: source.js.ng
contexts:
main:
- match: ""
push: scope:source.js
with_prototype:
- match: '`'
push:
- meta_content_scope: text.html.basic.embedded.js
- include: 'scope:text.html.basic'
- match: '`'
pop: true
并保存为JavaScript-NG.sublime-syntax
与此相关的还有一个开放的github问题:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句