Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
@dsosby

This comment has been minimized.

Show comment Hide comment
@dsosby

dsosby Aug 4, 2011

Installation:

  1. Ensure IDLE is closed
  2. Open your .idlerc file, usually in your home directory
  3. Paste in the settings and save
  4. Open IDLE, Options -> Configure
  5. Under the Highlighting tab, Obsidian should now be a custom theme available in the dropdown list.
Owner

dsosby commented Aug 4, 2011

Installation:

  1. Ensure IDLE is closed
  2. Open your .idlerc file, usually in your home directory
  3. Paste in the settings and save
  4. Open IDLE, Options -> Configure
  5. Under the Highlighting tab, Obsidian should now be a custom theme available in the dropdown list.
@duphenix

This comment has been minimized.

Show comment Hide comment
@duphenix

duphenix Sep 28, 2012

On Ubuntu you need to go into the .idlerc folder and edit 2 files
config-main.cfg
Add the following,
[Theme]
default = 0
name = Obsidian

In, config-highlight.cfg, copy and paste the code above.

You will probably need to create both of those files, and it may be better to go in to Options -> configure and save the default one so it generates the files itself, then edit them to add in the above theme.

On Ubuntu you need to go into the .idlerc folder and edit 2 files
config-main.cfg
Add the following,
[Theme]
default = 0
name = Obsidian

In, config-highlight.cfg, copy and paste the code above.

You will probably need to create both of those files, and it may be better to go in to Options -> configure and save the default one so it generates the files itself, then edit them to add in the above theme.

@dsosby

This comment has been minimized.

Show comment Hide comment
@dsosby

dsosby Oct 25, 2012

Article detailing it with screenshot: http://ramdump.com/2011/08/04/obsidian-theme-for-idle/

Owner

dsosby commented Oct 25, 2012

Article detailing it with screenshot: http://ramdump.com/2011/08/04/obsidian-theme-for-idle/

@kenhia

This comment has been minimized.

Show comment Hide comment
@kenhia

kenhia Jul 17, 2013

On Windows, you will want to create/edit %userprofile%.idlerc\config-highlight.cfg then proceed with steps 3 - 5.

kenhia commented Jul 17, 2013

On Windows, you will want to create/edit %userprofile%.idlerc\config-highlight.cfg then proceed with steps 3 - 5.

@VolcanoMax

This comment has been minimized.

Show comment Hide comment
@VolcanoMax

VolcanoMax Jan 25, 2014

Python 3.3.3 on Win8.1

The .idlerc folder was located here C:\SPB_Data\

Python 3.3.3 on Win8.1

The .idlerc folder was located here C:\SPB_Data\

@fatihmert

This comment has been minimized.

Show comment Hide comment
@fatihmert

fatihmert Jul 30, 2014

windows 8
C:\Users

windows 8
C:\Users

@t3hmun

This comment has been minimized.

Show comment Hide comment
@t3hmun

t3hmun Jan 10, 2015

This is a nice theme.
With WinPython (or any portable python setup) the .idlerc is in [your-python-folder]\settings\.idlerc.

t3hmun commented Jan 10, 2015

This is a nice theme.
With WinPython (or any portable python setup) the .idlerc is in [your-python-folder]\settings\.idlerc.

@Manoj-nathwani

This comment has been minimized.

Show comment Hide comment
@Manoj-nathwani

Manoj-nathwani Jan 16, 2015

This is perfect! Thanks :)

This is perfect! Thanks :)

@7oao

This comment has been minimized.

Show comment Hide comment
@7oao

7oao Feb 20, 2015

Windows 7, search for the file \Python34\Lib\idlelib\config-highlight.def, open it, paste the "texto from above" and save it.

  1. Open "python idle",
  2. go to "options" tab,
  3. choose "Configure IDLE",
  4. choose "Highlighting" tab,
  5. choose "a Custom Theme" on "Highlighting Theme" frame,
  6. choose the theme "Obsidian" (or theme name that you insert on the file)

7oao commented Feb 20, 2015

Windows 7, search for the file \Python34\Lib\idlelib\config-highlight.def, open it, paste the "texto from above" and save it.

  1. Open "python idle",
  2. go to "options" tab,
  3. choose "Configure IDLE",
  4. choose "Highlighting" tab,
  5. choose "a Custom Theme" on "Highlighting Theme" frame,
  6. choose the theme "Obsidian" (or theme name that you insert on the file)
@thomas-cowley

This comment has been minimized.

Show comment Hide comment
@thomas-cowley

thomas-cowley Jul 21, 2015

Wow. This is amazing, thanks!

Wow. This is amazing, thanks!

@samuelsp

This comment has been minimized.

Show comment Hide comment
@samuelsp

samuelsp Aug 1, 2015

Thanks dsosby and duphenix! It worked!

samuelsp commented Aug 1, 2015

Thanks dsosby and duphenix! It worked!

@victorwestmann

This comment has been minimized.

Show comment Hide comment
@victorwestmann

victorwestmann Sep 9, 2015

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 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! ;-)

@ninettekelly67

This comment has been minimized.

Show comment Hide comment
@ninettekelly67

ninettekelly67 Oct 11, 2015

Nice one! looking good.

Nice one! looking good.

@Jordan-McMillan101

This comment has been minimized.

Show comment Hide comment
@Jordan-McMillan101

Jordan-McMillan101 Oct 17, 2015

My eyeballs thank you kindly.

My eyeballs thank you kindly.

@darragh-murphy

This comment has been minimized.

Show comment Hide comment
@darragh-murphy

darragh-murphy Nov 14, 2015

Great stuff.

Great stuff.

@ozhuang

This comment has been minimized.

Show comment Hide comment
@ozhuang

ozhuang Nov 28, 2015

For Python 3.5.0 in Windows 10,
C:\Users\AppData\Local\Programs\Python\Python35-32\Lib\idlelib\config-highlight.def

ozhuang commented Nov 28, 2015

For Python 3.5.0 in Windows 10,
C:\Users\AppData\Local\Programs\Python\Python35-32\Lib\idlelib\config-highlight.def

@adrianmelic

This comment has been minimized.

Show comment Hide comment
@adrianmelic

adrianmelic Jan 26, 2016

Thank you!

Thank you!

@coderjxh

This comment has been minimized.

Show comment Hide comment
@coderjxh

coderjxh 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

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

This comment has been minimized.

Show comment Hide comment
@vivekpathak

vivekpathak Mar 8, 2016

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

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

@avmak

This comment has been minimized.

Show comment Hide comment
@avmak

avmak Mar 23, 2016

Thank you!

avmak commented Mar 23, 2016

Thank you!

@frazer380

This comment has been minimized.

Show comment Hide comment
@frazer380

frazer380 Apr 11, 2016

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

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

@AquausDev

This comment has been minimized.

Show comment Hide comment
@AquausDev

AquausDev Jul 13, 2016

Is there anyway to change the font?

Is there anyway to change the font?

@vamshise

This comment has been minimized.

Show comment Hide comment
@vamshise

vamshise 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.

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

This comment has been minimized.

Show comment Hide comment
@DanJ210

DanJ210 Aug 20, 2016

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

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

This comment has been minimized.

Show comment Hide comment
@brianmaher84

brianmaher84 Aug 26, 2016

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

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

@YaoPengCN

This comment has been minimized.

Show comment Hide comment
@YaoPengCN

YaoPengCN Aug 31, 2016

It works. Thank you!

It works. Thank you!

@SmartMetal

This comment has been minimized.

Show comment Hide comment
@SmartMetal

SmartMetal Sep 4, 2016

So nice, thanks boss!

So nice, thanks boss!

@1LoneWolf

This comment has been minimized.

Show comment Hide comment
@1LoneWolf

1LoneWolf Sep 26, 2016

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 ...:(

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 ...:(

@TimMcCune

This comment has been minimized.

Show comment Hide comment
@TimMcCune

TimMcCune Jan 2, 2017

Great theme, thanks!

Great theme, thanks!

@83Heliotrope

This comment has been minimized.

Show comment Hide comment
@83Heliotrope

83Heliotrope 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.

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

This comment has been minimized.

Show comment Hide comment
@blessengeorge

blessengeorge Apr 2, 2017

Thankyou this is amazing!

Thankyou this is amazing!

@DataDrover214530

This comment has been minimized.

Show comment Hide comment
@DataDrover214530

DataDrover214530 Jun 22, 2017

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.

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

This comment has been minimized.

Show comment Hide comment
@avelinojr

avelinojr Jul 14, 2017

Thankyou this is amazing! (x2)

Thankyou this is amazing! (x2)

@codecobber

This comment has been minimized.

Show comment Hide comment
@codecobber

codecobber Dec 14, 2017

Brilliant, just what I was looking for, thankyou

Brilliant, just what I was looking for, thankyou

@Discipuli000

This comment has been minimized.

Show comment Hide comment
@Discipuli000

Discipuli000 Dec 22, 2017

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.

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.

@RodNintendeaux

This comment has been minimized.

Show comment Hide comment
@RodNintendeaux

RodNintendeaux 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

RodNintendeaux 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

This comment has been minimized.

Show comment Hide comment
@VCraw

VCraw Apr 6, 2018

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

VCraw commented Apr 6, 2018

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

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