Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,537
813
Is Atom the only editor that has syntax coloring for .zsh-theme files?

I've opened a .zsh-theme file in ST and Brackets but there is zero syntax color formatting. Atom however has really nice color formatting out of the box.

Any ideas?
 
Microsoft's Visual Studio Code (which is based on Atom but has a nicer feature set, surprisingly) also does the trick.
 
Visual Studio Code is NOT based on Atom. Both Atom and Visual Studio Code are based on Electron. Hence why everything else between the two is very different. What works in Atom does not work in Visual Studio Code and vice versa.

As far as I know there is no ZSH support for Visual Studio Code. It will recognise the files though but only as shell script (it is displayed as Shell Script (Bash) so you can guess it is favouring Bash here). That means it will apply the syntax highlighting for shell scripts to the theme and config files. From the looks of it, it seems that Atom does something similar.
 
It will recognise the files though but only as shell script (it is displayed as Shell Script (Bash) so you can guess it is favouring Bash here). That means it will apply the syntax highlighting for shell scripts to the theme and config files. From the looks of it, it seems that Atom does something similar.
Yes, that's exactly what it's doing and it's great. I guess that shows how deep Atom goes compared with Brackets and ST3 etc. I tried to like ST3 since so many people swear by it and claim it's faster than Atom but I call BS. Atom is just so much more plug & play and modern. Plus the eco-system is far more broad. I think if you're just using markup or building web sites ST3 and Brackets are good but if you're working in a wide range of stacks for mobile, data science in addition to backend etc I think Atom is definitely more versatile.
 
Visual Studio Code is NOT based on Atom. Both Atom and Visual Studio Code are based on Electron. Hence why everything else between the two is very different. What works in Atom does not work in Visual Studio Code and vice versa.

Yes, you're right of course. I did know that but for some reason there was a disconnect between brain and fingers when writing that reply :)

BTW: I haven't touched Atom in awhile - does it still have issues opening files larger than 2MB? I know that a year and a half ago they added support for >2MB, but with some features disabled (syntax highlighting, folds and one or two other things).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.