Sublime Forum

Toggle Comments broken

#1

I’m having issues toggling comments. In CSS, I’ve never successfully gotten commenting to work. Sublime insists on toggling a C++ style single line comment (//) Even when the file is PURE CSS, I still can’t comments.

My second issue is in an HTML file trying to comment out a javascript include in script tags causes a // comment too. Now that makes a small bit more sense as I bet sublime is recognizing the open/close script tags. But even still I’d love to quickly toggle a comment like this:

<script src="http://debug.phonegap.com/target/target-script-min.js#cem"></script>

Without it coming out like this:

// <script src="http://debug.phonegap.com/target/target-script-min.js#cem"></script>
0 Likes

#2

[code]<!doctype html>

drone - {% block title %}{% endblock %} // {% block head %} {% endblock %}[/code]

When I try to comment the script tag using Ctrl+/ , I get the Javasript comment as shown above.

Doing Ctrl+Shift+/ gives

/*<script type="text/javascript"></script>*/

I am on Ubuntu 12.04 LTS, Intel® Core™2 Duo CPU E4500 @ 2.20GHz × 2 , 1Gb Ram, 32-bit,
Sublime Text 2.0.1 Build 2217

0 Likes

#3

I am having this exact same issue and I’m on a windows machine (Win 7 64 bit).

At first I thought it was the Zen coding plugin, because I know there have been others with interfering snippet issues. But even after disabling Zen I still have the issue. It’s only when trying to comment out script tags in html documents.

0 Likes