Python Maintaining Syntax Highlighting in Python IDLE

  • Thread starter Thread starter chillfactor
  • Start date Start date
  • Tags Tags
    Python
AI Thread Summary
Syntax highlighting in Python programming, particularly when using IDLE, can be a source of frustration for novice programmers, as commands lose their color when running modules in a new window. This issue is linked to the choice of Integrated Development Environment (IDE) and its configuration. Users recommend exploring alternative editors like SciTE, Eclipse, or Emacs, which offer better syntax highlighting and additional features. SciTE is highlighted for its ability to maintain color coding and provide useful tools for managing code, while IDLE is noted for performance issues such as freezing and high CPU usage. For those seeking more advanced features, drPython is also suggested as a viable option.
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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
2
Views
823
Replies
16
Views
2K
Replies
9
Views
1K
Replies
3
Views
2K
Replies
6
Views
2K
Back
Top