Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Disable coloured blank tabbed lines in nano  (Read 3414 times)

0 Members and 1 Guest are viewing this topic.

Veltas

    Topic Starter


    Intermediate

    Thanked: 7
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Linux variant
Disable coloured blank tabbed lines in nano
« 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.

Veltas

    Topic Starter


    Intermediate

    Thanked: 7
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Linux variant
Re: Disable coloured blank tabbed lines in nano
« Reply #1 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?

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Disable coloured blank tabbed lines in nano
« Reply #2 on: February 24, 2013, 12:56:01 PM »
What is the model of your Nano?

Veltas

    Topic Starter


    Intermediate

    Thanked: 7
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Linux variant
Re: Disable coloured blank tabbed lines in nano
« Reply #3 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.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Disable coloured blank tabbed lines in nano
« Reply #4 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?

Veltas

    Topic Starter


    Intermediate

    Thanked: 7
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Linux variant
Re: Disable coloured blank tabbed lines in nano
« Reply #5 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.

Salmon Trout

  • Guest
Re: Disable coloured blank tabbed lines in nano
« Reply #6 on: February 25, 2013, 03:49:25 AM »
You need to edit your .nanorc file

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