Maintaining Syntax Highlighting in Python IDLE

  • Context: Python 
  • Thread starter Thread starter chillfactor
  • Start date Start date
  • Tags Tags
    Python
Click For Summary

Discussion Overview

The discussion centers around the issue of maintaining syntax highlighting in Python IDLE, particularly for novice programmers. Participants explore the functionality of different integrated development environments (IDEs) and text editors in relation to syntax highlighting and user experience.

Discussion Character

  • Debate/contested, Homework-related, Technical explanation

Main Points Raised

  • One participant expresses frustration with Python IDLE's loss of syntax highlighting when opening new windows and seeks a solution.
  • Another participant suggests that syntax highlighting is dependent on the choice of IDE and recommends consulting the help documentation for the specific IDE being used.
  • A different participant recommends switching to alternative editors like emacs, eclipse, or SciTE, citing personal preference for SciTE due to its retention of colors and additional features.
  • Another contributor agrees with the recommendation for SciTE and mentions issues with IDLE, including freezing and high CPU usage, while also suggesting drPython as an option for more features.

Areas of Agreement / Disagreement

Participants generally agree that alternatives to Python IDLE may provide better experiences regarding syntax highlighting and functionality. However, there is no consensus on a single best solution, as different users have varying preferences for text editors and IDEs.

Contextual Notes

Limitations include the lack of specific information about the participant's current IDE configuration and the varying experiences with different editors that may affect their recommendations.

chillfactor
Messages
12
Reaction score
0

Homework Statement


I am a novice programmer and have just started programming on Python. When one types a command, the commands are highlighted in a certain color. When I open a new window and run the module, the commands lose their color. it is quite annoying. is their trick to keep the command's color? thanks. i am programming on IDLE (python GUI). What i mean to say is syntax highlighting


Homework Equations





The Attempt at a Solution

 
Last edited:
Technology news on Phys.org
syntax highlighting has to do with your choice of IDE and its configuration. Because we don't know what you are using as your IDE, i can't answer your question.

Read the help documentaion for your IDE, I use Eclipse and its help documentation is pretty straighforward.
 
I strongly advise finding another editor to write your code in such as emacs, eclipse, sciTe... most are free downloads and they all feel different to use so it's a bit of trial and error to find one you like.

I prefer using SciTe on my home computer - it keeps all the colours and has options to show lines were your indents are and other useful things! I was using the editor that comes with python too and had loads of problems with it like it not saving over the top of your file when you add more code and so you lose information ... and it loves it's syntax errors!
 
I agree with s_gunn, SciTE is a great basic text editor. I also always had issues with IDLE freezing and taking 100% of the cpu for no apparent reason.

you might also want to look at drPython if you want some more features.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 16 ·
Replies
16
Views
5K
Replies
5
Views
2K
Replies
9
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K