Home Download Buy Blog Forum Support

Toggle comments not working for AWK plugin

Toggle comments not working for AWK plugin

Postby rtalexander on Wed Sep 26, 2012 5:35 pm

Hi,

Toggling comments does not work for the AWK plugin, though it does for other languages. I'm not quite sure how to approach solving this, any suggestions would be greatly appreciated.

Thanks.

Roger Alexander.
rtalexander
 
Posts: 8
Joined: Thu Nov 17, 2011 5:30 pm

Re: Toggle comments not working for AWK plugin

Postby rgidney on Wed Sep 26, 2012 6:27 pm

add a Comments.tmPreferences file to the Packages/AWK directory with something like the following in it:

Code: Select all
<?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>Comments</string>
   <key>scope</key>
   <string>source.awk</string>
   <key>settings</key>
   <dict>
      <key>shellVariables</key>
      <array>
         <dict>
            <key>name</key>
            <string>TM_COMMENT_START</string>
            <key>value</key>
            <string># </string>
         </dict>
      </array>
   </dict>
   <key>uuid</key>
   <string>C9969F41-A409-4118-8753-CA95A9228FF7</string>
</dict>
</plist>
rgidney
 
Posts: 26
Joined: Wed Feb 29, 2012 11:58 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests