Computer Hope
Software => Computer software => Topic started by: Veltas on February 24, 2013, 09:53:12 AM
-
Pretty much what it says on the tin: how do you disable nano's strange feature of colouring the leading whitespace on a blank line. If you're writing a program with different amounts of tabs on each line then sometimes you'll leave a line blank to space things up to make it easier to read, but there will be unused tab characters on the line left blank as they're placed automatically. nano seems to think it appropriate to colour the line's tabs if it's blank, but actually it's distracting and out-of-place.
-
And yes, I've googled this. I've actually googled several forms of the question with different phrasing, but maybe someone here is better at searching the internet than I am or knows nano better to search with the right terms?
-
What is the model of your Nano?
-
I probably should have mentioned I'm using the text editor software, I'm using it on a Linux distribution, nano is version 2.2.6.
-
Sorry, I thought you were using some kind of tablet.
http://en.wikipedia.org/wiki/GNU_nano
The GNU nano is meant for people writing code. In code you want to see white space because it helps make the code pretty.
Starting a line with white space implies dependency on lines above. It helps visual blocks.
Did you want a text editor with no built in inflections?
-
Yeah I did think that's why it was, it's just that a lot of my code wasn't written with that in mind and it could be easier to just disable that if at all possible.
-
You need to edit your .nanorc file
http://ubuntuforums.org/showthread.php?t=62250