Sublime Forum

Toggle comments not working for AWK plugin

#1

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.

0 Likes

#2

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

<?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>
0 Likes