First time here? Check out the FAQ!
1

Where does Wing store custom Syntax Coloring configuration?

I recolored Python since default colors of all included themes are nasty. But now I am puzzled: where in Lord's name does Wing keep this data so I could save it for later?

Itzhak's avatar
13
Itzhak
asked 2019-06-26 10:49:12 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2019-06-27 06:37:16 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

Actually, if you're talking about having set syntax colors through the Editor > Syntax Coloring preference group, the configuration is stored in the file preferences in your settings directory (location varies; it is listed in Wing's About box) and you can create a .stx file as described in https://wingware.com/doc/custom/syntax

The other answer is for selecting colors for the UI as a whole.

If you're willing to share what you come up with, please submit a pull request for https://bitbucket.org/sdeibel/wing-co...

Wingware Support's avatar
4.2k
Wingware Support
answered 2019-06-27 06:42:52 -0600
edit flag offensive 0 remove flag delete link

Comments

Thanks! I remember I saw this answer somewhere in search results, but I failed to pay close attention to what's inside "preferences" file... I didn't expect something unique like this.

I do not have knowledge to recolor all syntaxes: I do not work with all these languages to know how to combine good colors for them. Also, Wing IDE does certain things its own way when it comes to coloring: not all things can be colored, and categorization is different. I currently am very fond of UltraEdit's theme system - I achieved just perfect theme there. If Wing devs are interested in expanding theme support in Wing, I can contribute UltraEdit's theme, to check what needs improving.

Itzhak's avatar Itzhak (2019-06-27 11:15:33 -0600) edit

We hope to add a way to export the preferences-configured colors to .stx and .plt files in the future, to make it easier when someone configures things first using the preference. Wing does do things a differently than most editors because it uses color manipulation heuristics to make a single syntax color spec work reasonably with different background colors. That's used with every language we syntax color except Python, where some of the UI color palettes have custom Python-specific .stx files associated with them.

That's a long way of saying that probably all you need is syntax colors for Python. If you want to send us your preferences file from the Settings Directory (listed in Wing's About box) we can look at possibly adding a theme based on that in the future. And/or send us the UltraEdit theme. I'd be interested, in any case, to ... (more)

Wingware Support's avatar Wingware Support (2019-06-27 11:56:41 -0600) edit

BTW, I like some of Visual Studio Code themes. To get these quickly, look here:

textual representation of user-defined themes show built-in themes

Maybe some kind of converter would be possible (I don't have an overview of the complexity)?

Michael's avatar Michael (2019-07-27 04:05:47 -0600) edit

I haven't looked at VS specifically but in general automatic conversion is not possible because Wing has colors not covered by other IDE color settings. Each editor has a different model for how to tokenize code into differently colored parts.

Wingware Support's avatar Wingware Support (2019-07-29 20:53:48 -0600) edit
add a comment see more comments
1

You can create a palette file and put it in the palettes sub directory of your Wing settings directory as listed in the about dialog box. See https://wingware.com/doc/custom/qt-st... for more information.

Wingware Support's avatar
4.2k
Wingware Support
answered 2019-06-27 06:02:47 -0600
edit flag offensive 0 remove flag delete link

Comments

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