[英]How to fix Sublime text highlighting for react-tutorial?
I recently started the official reactjs tutorial and noticed that the sublime text highlighting is completely screwed. 我最近启动了官方的reactjs教程,并注意到sublime文本突出显示完全搞砸了。
How can i fix this? 我怎样才能解决这个问题?
Install babel
with the package control package, if you don't have it, get it here . 使用软件包控件包安装
babel
,如果没有,请在此处获取。
Open the package control, select install package, type babel, select it and press enter. 打开包控件,选择安装包,键入babel,选择它并按Enter键。
Setting as the default syntax 设置为默认语法
To set it as the default syntax for a particular extension: 要将其设置为特定扩展的默认语法:
Setting a Color Scheme 设置配色方案
Babel comes bundled with Next and Monokai from Benvie/JavaScriptNext.tmLanguage. Babel与Benvie / JavaScriptNext.tmLanguage捆绑了Next和Monokai。 Select one from Preferences -> Color Scheme -> Babel
从Preferences - > Color Scheme - > Babel中选择一个
Installing the following sublime package should fix those problems: 安装以下sublime包应该解决这些问题:
https://github.com/babel/babel-sublime https://github.com/babel/babel-sublime
Install babel
via the package control. 通过包控件安装
babel
。 It'll fix the syntax highlighting and adds few more features. 它将修复语法突出显示并添加更多功能。
check https://packagecontrol.io/packages/Babel 检查https://packagecontrol.io/packages/Babel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.