cssx icon indicating copy to clipboard operation
cssx copied to clipboard

Atom integration / not really an issue

Open twoelevenjay opened this issue 8 years ago • 5 comments

CSSX is working great in my new project, however not having Atom editor autocomplete-css recognize the css in the .jsx file is slowing me down.

Does anyone have any suggestions for how to get the core Atom package to recognize CSS in a .jsx file? I mean it already watches .css, .html, .php. But Atom doesn't seem to allow adding file extensions to that list.

Getting the Emmet package to work too would be an added bonus.

twoelevenjay avatar Aug 25 '16 14:08 twoelevenjay

@twoelevenjay I think it will be difficult to support that feature. I remember discussions around linters that process jsx. It's just too tricker to parse cssx inside jsx.

krasimir avatar Aug 25 '16 15:08 krasimir

Ok thanks for the reply. CSSX is pretty awesome!!! On Thu, Aug 25, 2016 at 11:41 AM Krasimir Tsonev [email protected] wrote:

@twoelevenjay https://github.com/twoelevenjay I think it will be difficult to support that feature. I remember discussions around linters that process jsx. It's just too tricker to parse cssx inside jsx.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/krasimir/cssx/issues/18#issuecomment-242434434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaRk98buEqb4pOueN6Ij40wQsDINOg0ks5qjbe2gaJpZM4JtJz2 .

twoelevenjay avatar Aug 26 '16 01:08 twoelevenjay

I second the idea of having an atom highlighter, since most of the CSSX code lives in javascript files, it is very ugly to see lint issues out there.

There is a lot of work ahead for this: lint rules, syntax highlight, autocompletion, and probably I am missing something. It might be difficult but it would be worth to try doing it.

jcperez-ch avatar Dec 12 '16 15:12 jcperez-ch

@jcperez-ch if you use eslint you may try https://github.com/krasimir/eslint-plugin-cssx All it does is ignoring the cssx code so you don't get errors.

krasimir avatar Dec 13 '16 05:12 krasimir

Oh @krasimir thank U.

By the way @twoelevenjay I have the atom language-cssx. Let me know if you already installed.

So please guys, take a look at the language definition, so we can close this issue.

jcperez-ch avatar Dec 16 '16 13:12 jcperez-ch