I recommend code such as the following be added in Comment.tmPreferences by default so that the user can toggle on and off commenting of lines in a batch file.
- Code: Select all
<?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>Comment</string>
<key>scope</key>
<string>source.dosbatch</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>REM </string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>40910C79-A8F3-9854-6985-EC63AC6BBF2F</string>
</dict>
</plist>