Skip to content

Instantly share code, notes, and snippets.

@jaimergp
Last active May 27, 2024 12:16
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
@n8finch
Copy link

n8finch commented Dec 31, 2017

Woohoo! Thanks! Ahhhh, that feels MUCH better.

@apatasguekoo
Copy link

Thanks!

@rickvitalb
Copy link

Thanks! I can work now.

@4mp3r3
Copy link

4mp3r3 commented Oct 30, 2018

I am a beginner programmer and I have absolutely no idea what I need to do (I have a Mac). Can somebody help?

@4mp3r3
Copy link

4mp3r3 commented Oct 30, 2018

anyone?

@jaimergp
Copy link
Author

@4mp3r3: I am a beginner programmer and I have absolutely no idea what I need to do (I have a Mac). Can somebody help?

Hi. As the comments in the top part of the file say, you have to download this file (or copy its contents in a new one) under the directory ~/.idlerc. Since this directory starts with a ., it will be hidden by default. I don't know how you can show them in a Mac, but in the terminal, you can do cd ~/.idlerc and then use a terminal text editor (nano, vi, emacs, etc) to create that file. After having that file, you will have the theme available in your IDLE configuration GUI.

@JeremyRed
Copy link

Awesome work. Thanks!

@darenx
Copy link

darenx commented Dec 2, 2018

Thanks a lot, it's very beautiful!.

@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

Copy link

ghost commented Feb 1, 2022

_[](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