The Python syntax highlighting is pretty awesome and spot on, but it renders docstrings as strings. This may sound right by definition, but I'm finding it very distracting and would rather it render docstrings like comments.
In the code below, I'd like the docstring in """s to render in gray text like the comment in line 7 but without also changing the display of regular strings. I took a look at the language definitions and tried to hack it in, but quickly broke things and had to revert back. I'll go RTFM again and allocate some time to figure this out on my own if need be, but wondering if anyone else has already done this or if I could piggyback of of someone's awesome knowledge
- Code: Select all
"""Do something foobar.
This sets myvar to the value of foo and then returns the value
and is generally useless
# if foo is None, say so.
if foo is None:
print "Foo is None. Even more useless."
myvar = foo
This is how it renders:
[edited to fix image display]