First time here? Check out the FAQ!
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
DaveJ61's avatar
31
DaveJ61
asked 3 years ago
Wingware Support's avatar
4.3k
Wingware Support
updated 3 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.3k
Wingware Support
answered 3 years ago
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 (3 years ago)

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 (3 years ago)

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

DaveJ61's avatar DaveJ61 (3 years ago)

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 (3 years ago)

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 (3 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)