Home Download Buy Blog Forum Support

Style Comments and Indentations (Python)

Style Comments and Indentations (Python)

Postby probiner on Mon Oct 08, 2012 6:47 pm

Hi
Searched and didn't found what I want or couldn't replicate it.
I'm editing a copy of Monokai Scheme so it is more at my taste. For now I'm just replacing the color codes but there are 2 things I'm not being able to do:

- Style the comments.
- Make the indentations visible without needing to select their text area. This seems to do it but I don't understand the explanation.

In this image you can see how that yellow is not exclusive of comments. Also the area I select it shows Indentation (spaces and tabs) but not the area that is not selected.

Image

For now, I just changed the main background and foreground colors. Pastebin

Thanks for any help in advance.
Cheers
probiner
probiner
 
Posts: 3
Joined: Mon Oct 08, 2012 6:26 pm

Re: Style Comments and Indentations (Python)

Postby agibsonsw on Mon Oct 08, 2012 7:21 pm

This setting might be what you are looking for:

// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",

Copy to your user settings and change it to "all".

I assume you are talking about the triple-quoted text ''' ? These are not scoped as comments, but string.quoted.single.block.python; use Ctrl-Shift-Alt-P to display the current scope in the status bar.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: Style Comments and Indentations (Python)

Postby probiner on Mon Oct 08, 2012 10:42 pm

Hi agibsonsw
Indeed that addition to user settings works : ) Now I'll see if I can make a toggle out of it.

Yes I was referring to multiline comment. That ctrl+alt+shift+p command to check up the scope is very nice. I bet that one took a bit to write it in your post, ehehe. With that I was able to create settings for it, successfully changing it's color.

Thank you for the enlightenment.
probiner
 
Posts: 3
Joined: Mon Oct 08, 2012 6:26 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 24 guests