Skip to content

Instantly share code, notes, and snippets.

@dsosby
Created August 3, 2011 15:24
Show Gist options
  • Save dsosby/1122904 to your computer and use it in GitHub Desktop.
Save dsosby/1122904 to your computer and use it in GitHub Desktop.
A dark highlighting theme for Python's IDLE IDE based on Notepad++'s Obsidian color scheme
[Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #293134
comment-foreground = #66747B
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #293134
stderr-background = #293134
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #293134
builtin-foreground = #E0E2E4
stdout-background = #293134
console-background = #293134
stderr-foreground = #FB0000
keyword-background = #293134
string-foreground = #EC7600
break-foreground = #E0E2E4
error-background = #293134
@coderjxh
Copy link

coderjxh commented Mar 4, 2016

It's Perfect! Thank you o(^▽^)o

In my pc, configure file is in(Python 3.5.1 x64 in Windows 7) :
C:\Users.idlerc

@vivekpathak
Copy link

Very nice. Any idea how to let decorators like @classmethod have a different color?

@avmak
Copy link

avmak commented Mar 23, 2016

Thank you!

@frazer380
Copy link

I don't see the .idlerc file. :(

@AquausDev
Copy link

Is there anyway to change the font?

@vamshise
Copy link

vamshise commented Aug 8, 2016

Very nice theme. Thanks a lot.
On windows 10, using Pythin 3.4, I had to update "C:\Python34\Lib\idlelib\config-highlight.def" file.

@DanJ210
Copy link

DanJ210 commented Aug 20, 2016

Ty for the theme and help with Windows 10. Using Python 3.5. This theme has lasted some years!

@brianmaher84
Copy link

Thanks I've forked because I like the colours but prefer a perfectly black background instead of the greyish one in this theme.

@YaoPengCN
Copy link

It works. Thank you!

@SmartMetal
Copy link

So nice, thanks boss!

@1LoneWolf
Copy link

Ever since installing Idle3 I can not use the "options / configure" menu item - the program freezes and a bunch of errors on the command line. Don't know what to do - everything else works, Idle3 a great editor for Python3.5 [Linux Fedora 24 64bit]. But I guess I just gotta stay with the default white look ...:(

Copy link

ghost commented Jan 2, 2017

Great theme, thanks!

@visbond
Copy link

visbond commented Feb 16, 2017

Thank you! Continues to be useful. Am on Windows 10, but used duphenix's method (Sep 28, 2012 comment). Saved one of the existing themes as a custom theme, so the config-highlight.cfg was auto-created, then pasted the Obsidian data in it.
On Windows 10, the .idlerc folder was in my user folder.

@blessengeorge
Copy link

Thankyou this is amazing!

@DataDrover214530
Copy link

Eye-saving theme, thank you!

As above, on Windows 10 my config-highlight.def file was found at C:\WinPython\python-3.6.1.amd64\Lib\idlelib and I was able to paste the Obsidian theme in there.

@avelinojr
Copy link

Thankyou this is amazing! (x2)

@codecobber
Copy link

Brilliant, just what I was looking for, thankyou

@Discipuli000
Copy link

beautiful them , Thanks a lot.

<On Windows 7, Python 3.6> I couldn't save "config-highlight.def" file after editing it in the "\Python34\Lib\idlelib" folder, So i had to move the file "config-highlight.def" to "C:\Users\User.idlerc" folder, then i edited it and saved the file in "C:\Users\User.idlerc" folder, after that i returned the file in "\Python34\Lib\idlelib" folder, I've struggled so much but finally it worked.

@VetAran
Copy link

VetAran commented Mar 21, 2018

As listed above, For Python 3.6.4 x64 in Windows 10:

C:\Users\AppData\Local\Programs\Python\Python36\Lib\idlelib\config-highlight.def, then add the code to the end of the file.

Ensure IDLE is closed first, then edit the file and save then close. Then open IDLE and navigate to Options > Configure IDLE > and select the "Hightlighting Theme" button underneath a Built-in Theme (unless you are already using 'a Custom Theme); by default it will read, "IDLE Classic" so click it and select "Obsidian" from the drop-down menu. If you want it to fit in nicely, you can open the config-highlight.def file and change [Obsidian] to [OBSIDAN].

Thanks to everyone in the comments above that made this doable using the latest software on the latest build of Windows 10 and for the OP for such an awesome schema I didn't have to manually customize myself.

Cheers,

_spd

Edit: My OCDness:

[IDLE Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #293134
comment-foreground = #66747B
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #293134
stderr-background = #293134
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #293134
builtin-foreground = #E0E2E4
stdout-background = #293134
console-background = #293134
stderr-foreground = #FB0000
keyword-background = #293134
string-foreground = #EC7600
break-foreground = #E0E2E4
error-background = #293134

@VCraw
Copy link

VCraw commented Apr 6, 2018

Cant find the file location on Mac... send help!

@Hiiva
Copy link

Hiiva commented Aug 31, 2018

This is great!

@poyrazug
Copy link

Cant find the file location on Mac... send help!

Bring Spotlight search (command AND space) and search for idlelib
if you have downloaded using anaconda, it should be under anacondaX > lib > python3X > idlelib

@roybernal11
Copy link

HAHA THANKS BRO

:)

MARAMING SALAMAT :)

@victorwestmann
Copy link

In Windows 10 Professional 64 bit architecture Python3.4.x is under the following path:
C:\Python34\Lib\idlelib\config-highlight.def

Thank you for this amazing theme! ;-)

In Windows 10, 64 bit architecture, using Python 3.8 (also 64 bit) it seems to be located at:

  • C:\Program Files\Python38\Lib\idlelib\config-highlight.def

@VarunSaini23
Copy link

I have made a video on steps of how to set Obsidian (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

@RegisteredJustToVoteOnCataclysmFeatures

This is very helpful, thank you for taking the time to make, share and teach how to install it. I'm sure plenty of people are fine with the defaults, but for me at least I prefer something like a Nightmode every time. It's the difference between reading happily and reading with a flashlight in my face. Best wishes.

@TAGISWILD
Copy link

Oh Thanks Man, You saved my eyes....

@ItsJupiter21
Copy link

You cab use this for black theme. better for me.
[Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #000000
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #000000
hit-foreground = #E0E2E4
builtin-background = #000000
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #000000
comment-foreground = #66747B
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #000000
stderr-background = #000000
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #000000
builtin-foreground = #E0E2E4
stdout-background = #000000
console-background = #000000
stderr-foreground = #FB0000
keyword-background = #000000
string-foreground = #EC7600
break-foreground = #E0E2E4
error-background = #00000

@chinmay29hub
Copy link

For python = 3.10.1 in Windows 10/11 it is in :
C:\Users\Chinmay Sonawane\AppData\Local\Programs\Python\Python310\Lib\idlelib\config-highlight.def

Thank You 💯

@elysszxje
Copy link

I have a nice edition of myself. You guys can check it out. Ty <3

[elysszxje Custom theme]
definition-foreground = #3987d6
error-foreground = #fe1b1b
normal-foreground = #dcdcdc
keyword-foreground = #3987d6
hilite-foreground = #dcdcdc
comment-background = #1e1e1e
hit-foreground = #ffffff
builtin-background = #1e1e1e
stdout-foreground = #dcdcdc
string-background = #1e1e1e
break-background = #ffff55
comment-foreground = #57a64a
hilite-background = #264f78
definition-background = #1e1e1e
stderr-background = #a7a7a7
hit-background = #653306
console-foreground = #dcdcdc
normal-background = #1e1e1e
builtin-foreground = #4ec9b0
stdout-background = #1e1e1e
console-background = #1e1e1e
stderr-foreground = #fe1b1b
keyword-background = #1e1e1e
string-foreground = #d69d85
break-foreground = #000000
error-background = #1e1e1e
cursor-foreground = #dcdcdc

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