Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which Atom Editor Syntax Highlighting Package for React/JSX ? #12

Open
nelsonic opened this issue Jan 14, 2016 · 12 comments
Open

Which Atom Editor Syntax Highlighting Package for React/JSX ? #12

nelsonic opened this issue Jan 14, 2016 · 12 comments

Comments

@nelsonic
Copy link
Member

Which Atom.io package(s) are you using for syntax highlighting to make your React/JSX more readable?

@nikhilaravi @jrans @besarthoxhaj @izaakrogan

@nikhilaravi
Copy link
Member

@jrans says one of language-javascript-jsx, react and linter-jsxhint

@jrans
Copy link
Member

jrans commented Jan 19, 2016

@nelsonic I dare find out which one....

@nelsonic
Copy link
Member Author

Thanks! 👍

@gregtandiono
Copy link
Member

I would suggest using https://atom.io/packages/language-babel, this already includes React JSX (tag autocompletion) plus es2015 goodies :) AND it also supports facebook's flow grammar out of the box! And after i install this package, i disable the default language-javascript package that you get from Atom when you first install it

@heshamadeldwedar
Copy link

install atom-react package apm install react then use javascript( jsx ) for your js files

@Xiaochi-Li
Copy link

@hellsinglord22 I've tried atom-react, the highlight feature somehow doesn't work

@heshamadeldwedar
Copy link

@Xiaochi-Li i started using VSCode myself :D

@newswim
Copy link

newswim commented Jul 6, 2017

like @gregtandiono pointed out, language-babel is the pretty clear winner if you're using Atom.

site: https://atom.io/packages/language-babel
repo: https://github.com/gandm/language-babel

@dangreenisrael
Copy link

dangreenisrael commented Mar 22, 2018

Shameless self promotion: I just published an autocomplete provider for autocomplete plus. Hopefully it's helpful for you guys https://github.com/dangreenisrael/atom-react-proptypes-autocomplete

@axe-z
Copy link

axe-z commented Nov 11, 2018

It does not work with render props...

@YuriiDonev
Copy link

You can create a custom file type by adding following in your config.cson file:
core:
customFileTypes:
"source.js.jsx": [
"jsx"
"js"
]
Here the source: https://stackoverflow.com/questions/53145360/atom-how-to-change-default-syntax-highlighting-for-js-files-to-language-babel

@brentgreeff
Copy link

I would suggest using https://atom.io/packages/language-babel, this already includes React JSX (tag autocompletion) plus es2015 goodies :) AND it also supports facebook's flow grammar out of the box! And after i install this package, i disable the default language-javascript package that you get from Atom when you first install it

I have done as you recommend, and yes, the syntax highlighting does seem nicer than language-javascript but tag completion doesnt work. auto-indent in JSX doesnt work. if [tab] doesnt work.
The file-type was set to "Flow javascript" automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests