我想为特殊评论定义新风格,例如:
# this comment is in red
## this comment is in blue
或者甚至可能是这样的:
# -------------------------------------
# color such 3-line comment with green
# -------------------------------------
在PyCharm中有可能吗?
答案 0 :(得分:0)
不完全是,但你可以使python Docstring
与python Line Comment
的颜色不同。
Settings->Editor->Color Scheme->Python->Docstring->Click the box to the right of foreground->Choose red
Settings->Editor->Color Scheme->Python->Line Comment->Click the box to the right of foreground->Choose blue
然后你最终会......
"""
I
am
the color Red!
"""
# I
# am
# the color Blue!