Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Highlighting in IDLE
#1
I'm new to Python and have just started using it but I have seen in tutorials where certain lines and key words within the code are highlighted with different colors, while is orange, comments are red and so on. I went into the options settings and it was already set for IDLE Classic, but I reselected it and tried a couple of other settings but my code still has no colors.

I saw a few other threads on highlighting but they don't seem to be for this problem.

Any suggestions?

Thanks
John
Reply
#2
The simple answer is: just don't use IDLE. For the most part, it doesn't matter what text editor you use (Visual Studio Code comes builtin with python syntax highlighting, though), and idle is unintuitive in a lot of ways.
Reply
#3
I knew I could use any editor but I like the highlighting feature plus this is all new to me so I don't really know what my options are.

I did find the problem though. Even though I opened IDLE to create my program and saved my file it was not saved as a Python (.py) file. I opened another session of IDLE copied my file into that, saved it and made sure it had the .py extension, now it highlights.

Thanks for your help and info
John
Reply
#4
(Feb-06-2018, 09:12 PM)Stumpy_L Wrote: I don't really know what my options are
try some of these
https://wiki.python.org/moin/PythonEditors
Recommended Tutorials:
Reply
#5
Wow that's quite a list, I have some homework to do.

Which do you use?

Thanks
John
Reply
#6
An IDE is a personal thing, like a car. You have to try and use the one you like the best,
That being said, I like PyCharm Highlighting Themes, code completion, code inspection,
jupyter notebook editing built in, much more
Reply
#7
i like Vim and sometimes Geany.
Recommended Tutorials:
Reply
#8
ptpython with cmder,which look good on Windows and is a lot better that build in IDLE.
Example all string method show up automatic,with doc-string help.
[Image: mxL7WY.jpg]
Same for Linux ptpython,but there with fish shell.
Main editor for all OS is VS Code,my quick review.
Reply
#9
So much to learn, but that's part of the fun.

Thanks all
John
Reply
#10
I used to just use notepad++, but Visual Studio Code has grown into my favorite editor: https://code.visualstudio.com
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  syntax highlighting MaartenRo 2 1,715 Aug-29-2020, 03:45 PM
Last Post: jefsummers
  IDLE not importing pygame (ok outside of IDLE) miner_tom 1 3,282 Sep-14-2018, 07:54 PM
Last Post: Larz60+
  Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE raspberry djdan_23 5 5,653 Sep-07-2017, 12:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020