I'm using the free version of wingIDE. I am trying to customize individual syntax highlighting colors (comments, strings, constants, normal text, etc). I see the generic color changes for 'background,selected text", etc, but nothing that lets me get down to specifics. Is this a limitation of the free version or is the option hidden deep in the UI? Thanks.
This is now available in the free version 6.0.8-2 (probably one or two releases after yours, PPTim...).
Go to Edit -> Preferences -> Editor -> Syntax Coloring. From here you can alter each type. I use the 'Solarized - Dark' color palette (set this in the User Interface menu, at the very top of the Preferences window) which can make open string highlights difficult to read. In the Syntax Coloring view, this is 'stringeol'. I've altered the background to Black Pearl. For a list of other colour names and descriptions, see the Wing IDE documentation.
Related
I have a text editor I'm working on. Using PyCharm. I have line number support (many thanks to Bryan Oakley!) and python syntax highlighting using IDLE Perculator. It works but some of the highlight code is hard to read. Oh yes, using tkinter for GUI support.
Can anyone point me at how to set the colors in IDLE? I use options-configure IDLE and some of the changes work in my project and some don't. For example, disabling the colors in my find funcion in the editor doesn't use the 'found' attribute when I alter the 'found' highlight colors. It only highlights what is found when I set the foreground and background colors.
I would prefer to edit a file so I know what it is highlighting, such as comments, strings, keywords, etc.
The IDLE Perculator works better than all of the highlight code I tested.
Just been trying to work out how to set the highlight colors to what I want. Either light or dark themes.
Found basic doc. for IDLE but nothing on how to figure out what is what. Only some settings take effect.
I found all of the idlelib source in the appdata folders and put it into my project folder. I know can set the backgrounds in the IDLE shell for the various keywords etc. Looks ok for a dark theme now. When I run or compile I get the colors I set in the IDE in my text (editor) widget. I still have to set the default text colors in my app. When I don't, I get black text on white background which looks terrible in the dark theme.
So a little more work...
In Anaconda Spyder is there a way to make the editor assign colors like in this IDE? It would be very helpful for learning and keeping track of variables.
Yes! In "Tools" click "Preferences" and then "Syntax Colouring". You will find an option "create new scheme" along with other preset themes. We can manually change the color scheme for comments, string, number,keyword ,builtin, definitions and instances in "create new scheme" by changing the color code.
I would like to change the Error colors in the IPython console in Spyder. Is that possible? I use Spyder 3.6 (if it matters). The error message is a mix of green and yellow... I have no know issues with my vision and I find it quite hard to read.
Here is an example:
According to this, the colors in iPython console are hardcoded and cannot be changed by Spyder itself.
One suggestion would be to switch to a dark background, so that colors like yellow are much easier to read. To do that, you can go to: Tools -> Preferences -> IPython console -> Display and click on Dark background.
Another alternative could be to use IPython %color magic to modify color scheme: https://ipython.org/ipython-doc/3/config/details.html#terminal-colors
Unfortunately, according to this, it seems as if the colour scheme cannot be changed at this moment in time.
Hopefully, the feature will be supported in future. You could try looking into a different IDE that might suit your needs.
I am using Pycharm. I often use # TODO, which highlights the comment in blue. Is it possible to highlight other comments in a different colour, using other keywords?
For example, I would like to be able to highlight important notes in red, say using # NOTE.
To add a custom highlight for comments in Python scripts, go to File -> Settings -> Editor -> TODO and add a new pattern:
Configure, as needed:
Bright Red is hard to miss:
PyCharm HELP
In Preferences-PyDev-Editor-"Appearance Color Options" I can edit colors. I can edit the color of "keywords" for instance. Is there a way to edit color of a specific keyword, say "range"?
There's currently no such feature (i.e.: the keywords are all 'hardcoded' to a single color).
If you fell that this is really needed, please create a feature request explaining your use-case in the pydev tracker. (see: http://pydev.org/about.html)