Newbie here, have a question about changing the comment character for a language,
specifically so that Toggle Comment command works across a block. It works fine
for C of course but I am using PowerBasic so I need the comment character to be a " ’ ".
I have the colorscheme syntax highlighting working well using my own PowerBasic.sublime-syntax
file in …\AppData\Roaming\Sublime Text 3\Packages\User.
So I’ve tried to add a tmPreferences file to this directory with the following but it doesn’t work!
I’ve tried the file name as PowerBasic.tmPreferences and Comments.tmPreferences/Comment.tmPreferences
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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.PowerBasic</string>
<key>settings</key>
<dict>
<string></string>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>' </string>
</dict>
</array>
</dict>
</dict>
</plist>
The console output I get is:
key evt: control+/
command: toggle_comment {“block”: false}
I get the same console output when the // is put into a c file though. Can anyone suggest what I’m doing wrong?
Thanks!
J