NatashaTheRobot
NatashaTheRobot

Reputation: 6949

All lines of Python file are highlighted in Sublime Text 2

Every time I save my code in Sublime Text 2, all of the lines end up highlighted as seen below. It's pretty annoying, and I would love to disable it, but I'm not sure what triggered it in the first place or what to Google. Any ideas?

Sublime Screenshot

Upvotes: 3

Views: 1440

Answers (1)

Mikko Ohtamaa
Mikko Ohtamaa

Reputation: 83348

The cause is SublimeLinter plug-in and its PEP-8 filter

https://github.com/SublimeLinter/SublimeLinter

Your code does not conform PEP-8 style guide:

http://www.python.org/dev/peps/pep-0008/

Writing code that matches the PEP-8 style guide is generally a good idea as it has been well-vetted by the community as being a generally productive and efficient coding style. You may find that following it allows others to comprehend your code better. Of course, any code that parses and runs correctly might be 'good enough' for your purposes.

Upvotes: 5

Related Questions