我是一名有用的助手,我能够翻译文本。
我一直在使用从Git版本构建的Emacs 24。我已经开始创建一个自定义主题,但是我注意到他们的主题能力相当有限,特别是对于Python来说。
我想能够为以下内容分配不同的颜色:
- 'Single quoted strings' vs. "Double quoted strings"
Highlighting of doctests. So if I have something like
def myfunc(x): """ This is the docstring. >>> # These are the examples >>> print myfunc(x) 1 """ return 1
I want the
This is the docstring
to be colored like the string, but I want theprint myfunc()
to be colored like Python code (or at least differently). For example, in vim, using whatever plugin I have installed, the doctests are colored brown but the strings are colored blue.Highlighting docstrings differently than regular strings.
- Coloring of string formatting characters (like
"%s"
or"%(newstyle_formatting)s"
). - Better treatment of r, u, or b preceding ' or ".
对于这些中的一个或所有,有什么建议吗?
如果我想到了更多的事情,我可能会在这里添加。