Skip to content

Instantly share code, notes, and snippets.

@jaimergp
Last active May 22, 2026 13:28
Show Gist options
  • Select an option

  • Save jaimergp/10285906 to your computer and use it in GitHub Desktop.

Select an option

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
@andrewng2k

Copy link
Copy Markdown

I love this! Thank you!

@youmikoh

youmikoh commented Oct 9, 2017

Copy link
Copy Markdown

๐Ÿ‘ ๐Ÿ‘ Thank you!

@naethewiz

Copy link
Copy Markdown

Thank you a million!

@guili618

guili618 commented Dec 4, 2017

Copy link
Copy Markdown

Awesome!!!!!!!!!!!!!! Thank you so much!!!!!!!!!!!

@n8finch

n8finch commented Dec 31, 2017

Copy link
Copy Markdown

Woohoo! Thanks! Ahhhh, that feels MUCH better.

@apatasguekoo

Copy link
Copy Markdown

Thanks!

@rickvitalb

Copy link
Copy Markdown

Thanks! I can work now.

@4mp3r3

4mp3r3 commented Oct 30, 2018

Copy link
Copy Markdown

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

@4mp3r3

4mp3r3 commented Oct 30, 2018

Copy link
Copy Markdown

anyone?

@jaimergp

Copy link
Copy Markdown
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
Copy Markdown

Awesome work. Thanks!

@darenx

darenx commented Dec 2, 2018

Copy link
Copy Markdown

Thanks a lot, it's very beautiful!.

@Ajnus

Ajnus commented Mar 21, 2019

Copy link
Copy Markdown

My eyes are delighted. Thank you Sir!

@farhatizakaria

Copy link
Copy Markdown

Thanks bro, it's amazing

@JuniorGarciaRodriguez

Copy link
Copy Markdown

๐Ÿ‘

@taleinat

Copy link
Copy Markdown

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
Copy Markdown

Thank you so much!

@VarunSaini23

VarunSaini23 commented May 5, 2020

Copy link
Copy Markdown

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
Copy Markdown

Simp thank you ๐Ÿ™Œ๐Ÿผ

@spandanag333

Copy link
Copy Markdown

Thank you! It's great.

@GregTheSnakeFish

Copy link
Copy Markdown

Thank you for this.

@Vaiterius

Copy link
Copy Markdown

Simple, but goes a long way. Thanks!

@AlexeyMikhylov

Copy link
Copy Markdown

Thanks

@CamiloLM

Copy link
Copy Markdown

Thanks, love you

@giacomotampella

Copy link
Copy Markdown

print ('Thanks a lot!')

@electromeow

Copy link
Copy Markdown

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

ghost commented Mar 7, 2021

Copy link
Copy Markdown

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

@HackerPikachu

Copy link
Copy Markdown

Op bro
thank you

ghost commented Feb 1, 2022

Copy link
Copy Markdown

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

@LozmindaSnr

Copy link
Copy Markdown

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