【发布时间】:2018-01-12 19:50:39
【问题描述】:
我正在尝试为 Atom 文本编辑器编写一些 python sn-ps,我想在多行正文中添加三引号,但由于某种原因,Atom 不喜欢这样。我试过\\ 来逃避(如here near the page 所述),但这也确实有效。我在下面的示例中留下了 cmets,我想在其中添加三引号;
'.source.python':
'Main Class':
'prefix': 'mainclass'
'body':"""
class ${1:NewClass}(object):
'$2' # I'd like triple quotes here.
def __init__(self, *args, **kwargs):
'$3' # Here as well.
${4:pass}
"""
这在 cson 中是否可行?
【问题讨论】:
标签: javascript coffeescript atom-editor cson