I'm just starting to learn Python and use Emacs as my editor. Currently, Emacs uses the same color for normal strings (single quotes) and docstrings (triple quotes). I want docstrings to be a different color, so I used the 'Options->Customize Emacs' menu option to change 'font-lock-doc-face' to a new color and saved the changes. However, Emacs continues to keep docstrings the same color as normal strings. Changing the color of normal strings applies the change to docstrings as well.
It would seem that Emacs is treating docstrings and normal strings as the same. Is there a way to get Emacs to properly find and color Python docstrings separately from normal strings?
Edit: I'm using Emacs 23.1.1 (Kubuntu 10.10 package) with the default Python mode settings. I also use the color-theme package with the midnight theme.
def
orclass
line is a docstring. Triple quotes let you spread a string over several lines easily. – Huihuie