1

syntax coloring

Hi, The colouring for the django template tags and variables etc have a light green background, which I hate. I have been through all the configuration and can't find where to change this. Could someone please give me a pointer as to where this is configured?

image description

Dave

DaveJ61's avatar
31
DaveJ61
asked 2021-09-07 12:28:55 -0500
Wingware Support's avatar
4.3k
Wingware Support
updated 2021-11-10 11:21:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

This appears to be coming from the Editor > Syntax Coloring > Syntax Formatting preference, for the Django Template file type. From playing with it, it was the asp_python_default, asp_python_word, and asp_python_identifier lexer states, but all of the asp_python_* ones seem to be using that background.

These defaults seem like they are designed more for light background display themes. Also, I'm not sure why the lexer states listed in the preference are not properly alphabetized. We'll try to improve this in the future.

Wingware Support's avatar
4.3k
Wingware Support
answered 2021-09-07 12:43:36 -0500
edit flag offensive 0 remove flag delete link

Comments

Also, it seems to work better with Nord and One Dark display palettes and not as well with Black Background and some of the others. I think the colors are being adjusted to make them visible on the background but from the looks of it something is going wrong, possibly using the wrong background.

Wingware Support's avatar Wingware Support (2021-09-07 12:47:47 -0500) edit

Hi, Thanks for the rapid response. I did notice that light coloured themes looked better. In the meantime, I'll have a play around and see if I can find something I like. Dave

DaveJ61's avatar DaveJ61 (2021-09-07 12:50:38 -0500) edit

Just a thought but is there a workaround? I'm also a little surprised nobody else has reported this.

DaveJ61's avatar DaveJ61 (2021-09-07 19:36:50 -0500) edit

Using One Dark or Nord for the User Interface > Display Theme preference seems to work around the readability problem for me.

Wingware Support's avatar Wingware Support (2021-09-08 08:16:16 -0500) edit

Hi, I just wondered if there is any progress on this being addressed yet, please? Even using One Dark or Nord makes the code look really ugly and really quite hard to read at a glance especially in django template files where there is a lot of these tags and variables. These tend to jump out at you and tend to be a distraction when reading There does not appear to be a setting for this in my preferences and I can't really understand why these should have a background colouring anyway. The whole experience is driving me to use sublime text to edit files rather than Wing IDE, especially these template files.

DaveJ61's avatar DaveJ61 (2021-10-24 01:17:18 -0500) edit

No, it looks like there hasn't been progress on this, I think in part because there's a work-around. Did you try changing the asp_python_* colors in the Editor > Syntax Coloring > Syntax Formatting preference as described in the answer above? The problem is the background they are using. I'll see if we can increase the priority on this one.

Wingware Support's avatar Wingware Support (2021-10-25 08:36:08 -0500) edit

To follow up on this: There's a fix going into 8.1.0.1+ (will probably be out in a few days) so that the colors are at least legible. I'm still not a fan of the use of background color here but at least the text will be visible. Looking at improving the default colors is a separate item we'll look at also.

Wingware Support's avatar Wingware Support (2021-11-10 11:20:51 -0500) edit

Yes, I too am certainly not a fan of the background colour and it is this which I find it horrible to read despite using Nord or One Dark. I'm certainly looking forward to a permanent fix. Also a mechanism within configuration for changing colours for this would be nice as there isn't anything at the moment.

DaveJ61's avatar DaveJ61 (2021-11-11 04:10:17 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer