1. Naoki INADA
  2. bpython

Source

bpython / doc / sphinx / source / themes.rst

Themes

This chapter is about bpython's themeing capabalities.

bpython uses .theme files placed in your $XDG_CONFIG_HOME/bpython directory [1]. You can set the theme in the :ref:`configuration_color_scheme` option in your $XDG_CONFIG_HOME/bpython/config file (:ref:`configuration`). You can find some of our themes in our gallery on our website: http://bpython-interpreter.org/themes/

Available Colors

  • k = black
  • r = red
  • g = green
  • y = yellow
  • b = blue
  • m = magenta
  • c = cyan
  • w = white
  • d = default, this will make the switch default to the bpython default theme

Any letter writting uppercase will make the switch bold.

Available Switches

  • keyword
  • name
  • comment
  • string
  • error
  • number
  • operator
  • punctuation
  • token
  • background
  • output
  • main
  • prompt
  • prompt_more

Default Theme

The default theme included in bpython is as follows:

[1]$XDG_CONFIG_HOME defaults to ~/.config if not set.