3

So I'm using TextWrangler4.5.3 and primarily Python for scripting. When I write Python, I often like to make comments that say something like: # BEGINS foo and then later # ENDS foo I do this so, later editing and understanding is quick and clear. Finally getting to the point: i want to tell TextWrangler to make "# BEGINS" a different coler, say.. green.

Thanks SO much in advance for any insight =P

4

1 回答 1

5

如果您想使用与出厂默认设置不同的配色方案,请转到Preferences-> Text Colors。我建议创建一个带有绿色评论的新主题。

Python配色方案

接下来,转到Preferences->Languages并为 Python 创建自定义语言首选项。

新的 Python 语言条目

在此语言首选项窗口的“显示”选项卡中,将配色方案更改为之前创建的新配色方案。

蟒蛇配色方案

我不知道有一种方法可以使某些评论(例如"""vs '''vs #)颜色不同(对于 TextWrangler,它可能是全局的“任何评论都将具有相同的主题”)。

这是你想要做的吗?

于 2014-04-18T19:44:21.360 回答