方法一
以下文本保存到\Sublime Text Build 3065 x64\Data\Packages\User\smarty\Comments.tmPreferences
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>text.html.smarty</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string><![CDATA[{%* ]]></string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_END</string>
<key>value</key>
<string><![CDATA[ *%}]]></string>
</dict>
</array>
</dict>
</dict>
</plist>
方法二
借助一个 package 来编辑:packageResourceViewer
网友评论