Hi!
Is there a theme that can distinguish between Python docstrings and literal string elements?
Ideally, I would like to have
"""docstring""" look different from 'mystring' in a= 'mystring'.
Super-ideally, they even would look different to # these kind of comments
If it doesn't exist, could anybody show me what and how to tweak to make this possible? I never created a TMx before.
Cheers, Michael
On May 29, 2013, at 23:56, K.-Michael Aye kmichael.aye@gmail.com wrote:
[…] If it doesn't exist, could anybody show me what and how to tweak to make this possible? I never created a TMx before.
Themes are explained here: http://manual.macromates.com/en/themes (although the theme editor depicted only exist for TM 1.x).
In Python, doc-strings are scoped as string.quoted.double.block.python, so you would add a new rule using this as scope selector and assigning it the style you want.