Open SidKwok opened 8 years ago
Small correction: you should rather remove jsx
, so that the working config.cson
fragment goes like this:
"*":
core:
customFileTypes:
"source.js": [
"js"
]
Thanks @franciscop (myself! this is my corporate github) from the past, found this issue through Google after 30 min fighting Atom 😄
I found a solution. In your
config.cson
(Edit > Config...), you should have something like this:So just remove the
js
insource.js.jsx
so it becomes:Then close the syntax highlighted file and open it again and it should be showing properly. It'd be much better to be able to check a checkbox that says "JSX" and another that says "JS" in the preferences because it took me a long time to find out that this file existed and how to use it.