Home Download Buy Blog Forum Support

Toggle Comments broken

Toggle Comments broken

Postby nobleach on Tue Sep 11, 2012 1:24 am

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:

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

Without it coming out like this:

Code: Select all
// <script src="http://debug.phonegap.com/target/target-script-min.js#cem"></script>
Posts: 48
Joined: Thu Jun 23, 2011 4:14 pm

Re: Toggle Comments broken

Postby a9.entropy on Mon Oct 15, 2012 6:27 am

Code: Select all
<!doctype html>
    <title>drone - {% block title %}{% endblock %}</title>
    <!-- <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css"> -->
    <!-- <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> -->
    // <script type="text/javascript"></script>
    {% block head %}
    {% endblock %}

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

Doing Ctrl+Shift+/ gives
Code: Select all
/*<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
Posts: 1
Joined: Mon Oct 15, 2012 6:18 am

Re: Toggle Comments broken

Postby LaserFace on Fri Oct 19, 2012 3:36 am

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.
Posts: 14
Joined: Sun Jul 15, 2012 3:06 am

Return to Technical Support

Who is online

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