Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable syntax highlighting in Atom.io

Tags:

atom-editor

Is there a way to disable syntax highlighting in Atom.io?

I have searched a bit and ended up creating my own syntax package (https://atom.io/themes/no-syntax-highlighting-syntax), but maybe there is a better way.

NB: I just want to disable syntax highlighting (ideally keeping only comments and code in a different color), but I still want the other language-related features of Atom.io working. Like language completions, language snippets, language closure/bloc detections, auto-indent, etc.

(Some people argues against syntax highlighting, stating it might be actually harmful to developer productivity. I wanted to try that. Ie. http://www.linusakesson.net/programming/syntaxhighlighting/ and https://www.robertmelton.com/2016/03/21/syntax-highlighting-off/)

like image 691
Hartator Avatar asked Mar 24 '16 04:03

Hartator


People also ask

How do I terminate code in atom?

termination stays in the bottom of your editor while you work. Click on a status icon to toggle that terminal (or ctrl-` ). Right click the status icon for a list of available commands. From the right-click menu you can color code the status icon as well as hide or close the terminal instance.


3 Answers

You can use Ctrl+Shift+L (or press button bottom right) to select proper language. In your case it would be Plain Text.

Second option is install package https://atom.io/packages/file-types and add in config.cson:

'file-types':
  'YOURS EXTENSION': 'text.plain'
like image 83
Bonanza Avatar answered Oct 05 '22 03:10

Bonanza


Haven't found a better solution yet.

If you are trying to do the same thing as I was - disabling syntax highlighting in Atom.io while keeping comments differentiated, language completions, language snippets, language closure/bloc detections and auto-indent - I would just recommend to install the theme I've created: https://atom.io/themes/no-syntax-highlighting-syntax

like image 36
Hartator Avatar answered Oct 05 '22 02:10

Hartator


Set the file syntax to plain text. You can do this with control alt L or something like that.

like image 45
HSchmale Avatar answered Oct 05 '22 02:10

HSchmale