Skip to content

Instantly share code, notes, and snippets.

@jaimergp
Last active July 28, 2023 14:39
Show Gist options
  • Save jaimergp/10285906 to your computer and use it in GitHub Desktop.
Save jaimergp/10285906 to your computer and use it in GitHub Desktop.
Dark highlighting theme for Python IDLE based on SublimeText's Monokai color scheme
# 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
@Ajnus
Copy link

Ajnus commented Mar 21, 2019

My eyes are delighted. Thank you Sir!

@farhatizakaria
Copy link

Thanks bro, it's amazing

@JuniorGarciaRodriguez
Copy link

👍

@taleinat
Copy link

In the next versions of Python (3.7.5+), there will be a new highlight option for line numbers, so you'll need to add "linenumber-foreground" and "linenumber-background".

BTW, it is safe to add these values to this gist, they will simply be ignored on earlier versions of Python.

@DanHutsul
Copy link

Thank you so much!

@VarunSaini23
Copy link

VarunSaini23 commented May 5, 2020

I have made a video on Steps of how to set Monokai (or in general any theme) in IDLE for Windows 10 platform. Real thing starts from 0.50min. https://www.youtube.com/watch?v=xV4tndJX_wI

@farhatizakaria
Copy link

Simp thank you 🙌🏼

@spandanag333
Copy link

Thank you! It's great.

@GregTheSnakeFish
Copy link

Thank you for this.

@Vaiterius
Copy link

Simple, but goes a long way. Thanks!

@AlexeyMikhylov
Copy link

Thanks

@CamiloLM
Copy link

Thanks, love you

@giacomotampella
Copy link

print ('Thanks a lot!')

@electromeow
Copy link

On mac you can use cmd+Shift+. to see hidden files starting with dot.

@Parth386
Copy link

Parth386 commented Mar 7, 2021

print("Thanks a lot!!")
print("You saved my eyes")

@HackerPikachu
Copy link

Op bro
thank you

@sadfi2259x
Copy link

_[](url)_
Capture
can you change this to black please ...

@LozmindaSnr
Copy link

Just like to add to the long list of appreciators, thanks, much much better than the default dark idle theme! 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment