I installed 0.12. The styles now work! Thank you.<br><br>I played around and figured out how to create a custom style; see the instructions below.<br>Happy theming iPython! :)<br><br>Styles are a .py file stored in: site-packages/pygments/styles/<br>
<br>The element you want to color is called a "token". <br>See the list of available tokens: <a href="http://pygments.org/docs/tokens/">http://pygments.org/docs/tokens/</a><br>Make sure to include all the tokens in a line:<br>
from pygments.token import <your tokens><br><br>The name of the style class is particular. Use the same name as your file name, first letter capitalized + "Style"<br>Example:<br>- darkblue.py, class DarkblueStyle(Style)<br>
<br>CAUTION!<br>I don't think all file names work. Using underscores
gave me problems. I don't know what else may be prohibited.<br>This doesn't work: dark_blue.py, class Dark_blueStyle(Style)<br clear="all"><br><br><br><br><br>Example:<br>Create a mycolors.py file in: site-packages/pygments/styles/<br>
----------------------------------------------------------------------<br>from pygments.style import Style<br>from pygments.token import Text, Number<br><br>class MycolorsStyle(Style):<br><br> background_color = '#000'<br>
highlight_color = '#ffff55'<br><br> styles = {<br><br> Text: "#A7ADDB",<br> Number.Float: "#2200FF",<br> Number.Integer: "#E5FF00"<br> }<br><br>----------------------------------------------------------------------<br>
<br>Run the style with this line:<br>ipython qtconsole --style=mycolors<br>