Why Sublime Text 3 commenting HTML with {##}?
ex:
{# html element here #}
This sounds like an addon error… or the incorrect syntax selected… Note - if you edit any files / folders by means of deleting or extracting a package - be sure to BACKUP the folder in question prior to making changes… You won’t need to backup the entire Packages/ folder, only the HTML/ folder…
Making sure the correct syntax is used:
If HTML was selected, then an addon may have modified the highlighter or comment configuration file ( by default, HTML uses block-comments for comments as they’re the only ones available which is )
Open up this folder without the quotes:
If the folder doesn’t exist,
Now the folder will exist…
Open up this folder without the quotes:
Next, open the file:
The contents should be:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>text.html</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>
The main bits to look at are:
<string><![CDATA[<!-- ]]></string>
and
<string><![CDATA[ -->]]></string>
HTML syntax / comments should be automatically used for comments, etc… when the file is opened… So it could be the comment settings file has been altered which is why the other steps have been included…
Let us know how it went.