4 ms·
Does this require an extension on the file? One of my pet peeves with Sublime is that every package for beautification, syntax highlighting, and code-folding re
by dpkonofa 8y ago
Does this require an extension on the file? One of my pet peeves with Sublime is that every package for beautification, syntax highlighting, and code-folding requires whatever I'm working on to be saved to a file using a specific extension to enable those features. Sometimes, I just need to copy and paste a few blocks of code and format, re-indent or any number of things but I don't necessarily want it saved to disk. I know this is a really niche situation but Atom is looking more and more promising to me and this edge case would help make that switch totally justifiable.
- gmemstr 8y agoI can't speak for the other two but I know syntax highlighting works fine if you bring up the command line wihtin Sublime (CTRL+SHIFT+C iirc) and then type in the language you want to highlight for - it should give you an option to switch over. I use this all the time at work - Sublime is basically my notepad
- Ajedi32 8y agoIt goes by either file extension or the hashbang line. But I think it only make the determination when you open the file; it doesn't change the language when you edit the text. You can manually set the language pretty easily though via the command palette or by clicking the language in the bottom-right.