13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Text3で.jsファイルをjsxでsyntax highlightしたい

Posted at

おそらく何もしないとReactのjsxが書いてある.js拡張子のファイルはシンタックスハイライトがうまくいかないと思いますが以下でいい感じになります。

  1. Package Control: Install Package で Babel をインストール
  2. なんでもいいので.jsファイルを開く
  3. View > Syntax > Open all with current extension as... で Babel > JavaScript (Babel) を選択

ポイントとしてはJSX〜と付くようなパッケージは不要というのと、3番目の現在の拡張子に全て適用する〜の操作ですかね。

13
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?