Sublime syntax highlighting for CJSX
This package uses the .sublime-syntax
syntax definition for rich highlighting and improved performance. As a consequence, only Sublime Text 3, Build 3103 and newer is supported. If you're using Sublime Text 2 or an older version of Sublime Text 3, you can retrieve the old .tmLanguage
file from this commit -- however, only the master .sublime-syntax
definition will receive future updates.
- You will need the Package Control Package Manager for Sublime
- Open the command pallete with
⌘+shift+p
- Type
install
and selectPackage Control: Install Package
- Wait a moment for the package list to appear, and type
cjsx
and selectCJSX Syntax
- Open a .cjsx file and in the lower right hand corner of your Sublime window, open the syntax dropdown.
- Select "Open all with current extension as..." and then choose 'CJSX'
To install this plugin from Github, follow these steps:
- Open Sublime and open "Package Control" (cmd + shift + p).
- Type "Add Repository"; select the result (hit enter).
- At the bottom of your Sublime window you will see a text input that prompts you for the Github URL.
- Copy and paste: "https://github.com/Guidebook/sublime-cjsx".
- Give Sublime a few minutes to add the repo.
- Open "Package Control" again (cmd + shift + p) and type "Install Package".
- Type "sublime cjsx"; select the result (hit enter).
- Give Sublime a few minutes to install the package.
- Open a .cjsx file and in the lower right hand corner of your Sublime window, open the syntax dropdown.
- Select "Open all with current extension as..." and then choose 'CJSX'
Syntax highlighting adapted from sublime-react by Facebook / Jonas Gebhardt [email protected].