August 11th, 2003, 06:04 PM
Syntax highlighting in IDLE for Python 2.3
Has anyone noticed a problem with IDLE's lack of highlighting in the edit windows? it highlights perfectly in the Python Shell but when I open a new Edit window, there is no highlighting. The only way to highlight it is to tell IDLE to open an edit window instead of the shell when you start it but even then it only highlights the first edit window and none of the new ones I open. :/
August 11th, 2003, 07:45 PM
Have you tried saving your files, simply ? When I begin editing in IDLE, there's no syntax highliting happening, probably since the editor can't tell whether you're editing a simple text file or a Python script. When I save my file with the .py extension, however, highlighting happens.
Time is the greatest of teachers ; sadly, it kills all of its students.
- Hector Berlioz
August 11th, 2003, 09:36 PM
ya that's one solution. I just found it odd that the IDLE version that shipped with 2.2 highlighted everything all the time while this version does not.
August 12th, 2003, 06:09 AM
I dont think this is a new problem 2k, I used to have the same problem when I was using 2.1 - 2.2. IDLE is a great interact with the Pyhton shell but it really isn't the best program for writing large Python programs from scratch. For this I would check out codegenie, htmlkit, or the win32all editor.
Another way around this problem would be to create the file and then open if with IDLE, but that wouldn't really help you with the other windows.
Hope this helps,