Computer Hope

Software => Computer software => Topic started by: Veltas on February 24, 2013, 09:53:12 AM

Title: Disable coloured blank tabbed lines in nano
Post 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.
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Veltas on February 24, 2013, 10:40:38 AM
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?
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Geek-9pm on February 24, 2013, 12:56:01 PM
What is the model of your Nano?
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Veltas on February 24, 2013, 05:30:35 PM
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.
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Geek-9pm on February 25, 2013, 01:27:27 AM
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?
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Veltas on February 25, 2013, 01:49:32 AM
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.
Title: Re: Disable coloured blank tabbed lines in nano
Post by: Salmon Trout on February 25, 2013, 03:49:25 AM
You need to edit your .nanorc file

http://ubuntuforums.org/showthread.php?t=62250