39digits / thunderstorm-sublime-theme

A Sublime Text 3 color scheme for Web Developers
MIT License
3 stars 1 forks source link

Is JSX supported? #1

Open srigi opened 9 years ago

srigi commented 9 years ago

You should give explicit note on JSX support in Readme. From screenshot it cannot be determined and I cannot test it when browsing on the mobile web.

39digits commented 9 years ago

In theory it does support React JSX syntax highlighting along with any language not explicitly mentioned.

This is because the theme makes liberal use of base language color settings to ensure it is applied to languages which haven’t had explicit overrides (e.g. if a language specific setting doesn’t exist for variable colors then it will inherit from the base setting).

The current release (v1.0.0) supports the base Javascript syntax highlighting found in Sublime Text with a few overrides. But out of the box the syntax highlighting for JS files is a bit limited so the highlights on JSX files will also be similarly limited.

The next release should include explicit syntax highlights for the Babel syntax highlighter plugin (https://github.com/babel/babel-sublime) which will mean improved explicit highlighting for JSX files.

Here's a screenshot example of what it would currently look like though.

thunderstorm_jsx_example