ActiveState Community

A suggestion: colored tab indicators.

Posted by jgold on 2009-09-28 16:11
OS: All / Any

I've been working on a Python project. Some of the files are indented with spaces and others with tabs. As I edit files, I've been converting them to tabs to keep them consistent. (I know Guido prefers spaces but I really prefer tabs).

The easiest way to tell what a particular file is using is to turn on the option to show white space. That makes the tabs show up as arrowed lines. I find it looks too cluttered and messy so I turn it off after the file is converted. That forces me to turn it off and on as I go through various files.

At one point, I pulled up one of the files in Notepad++. It also shows tabs as the arrowed line but they're a light pink color. I noticed that the change in color let me see the tabs all the time without making the screen two cluttered. It really seems to help.

I looked for an option in the colors to change the tab character. Changing the option for the indent guides changed the vertical lines but not the tab character. I also tried changing the control character option but that didn't change the tab characters either.

If there's some option to change the color of the whitespace characters, could someone let me know where it is? If not, I think it would be a useful addition if it's not too difficult.

toddw | Mon, 2009-09-28 16:16

As of Komodo 5.2 you can change the color of the whitespace in the "Fonts and Colors->Colors->Whitespace Foreground Color" preference (it's in the Color Choice drop-down menu).

jgold | Mon, 2009-09-28 16:24

Ah. Thank you! I was looking for it in the wrong place.