How To Add Custom Themes In IDLE For Python

0

 To Add Custom Theme To your Python (Monokoi) IDLE Follow Steps:-


1. Copy this all code here of (monokai theme)
# Place this  file inside your ~/.idlerc/ folder
# or paste its contents inside 
# /path/to/python/idlelib/config-highlight.def
# Adapted from SublimeText's Monokai

[monokai]
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822
builtin-foreground= #66D9EF
builtin-background= #272822
comment-foreground= #75715E
comment-background= #272822
string-foreground= #FD971F
string-background= #272822
definition-foreground= #A6E22E
definition-background= #272822
hilite-foreground= #F8F8F2
hilite-background= gray
break-foreground= black
break-background= #ffff55
hit-foreground= #F8F8F2
hit-background= #171812
error-foreground= #ff3338
error-background= #272822
cursor-foreground= #F8F8F2
stdout-foreground= #DDDDDD
stdout-background= #272822
stderr-foreground= #ff3338
stderr-background= #272822
console-foreground= #75715E
console-background= #272822

2. Go to this path in windows file manager
C:\Users\Sharnav's Tech\AppData\Local\Programs\Python\Python37\Lib\idlelib

3. Find config.highlight.def file

4. Then Right Click, Click On Edit, at the end paste the following code - (caution - don't remove any existing code from the file)

5. Save the file

6. Open Python IDLE

7. Click on options

8. Click on configure IDLE

9. Click on highlight option

10. Click on IDLE Classic option

11. Select monokoi

12. Click on Apply
Tags

Post a Comment

0Comments

If you have any doubts, please let me know

Post a Comment (0)