#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    89
    Rep Power
    13

    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. :/
  2. #2
  3. onCsdfeu
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    100
    Rep Power
    12
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    89
    Rep Power
    13
    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.
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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.

    http://www.code-genie.com/cgenie.html
    http://www.chami.com/html-kit/
    http://starship.python.net/crew/mhammond/

    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,

    Mark.

IMN logo majestic logo threadwatch logo seochat tools logo