Home Download Buy Blog Forum Support

Closing <script> tags with the close-tag functionality

Closing <script> tags with the close-tag functionality

Postby jamy_za on Mon Feb 13, 2012 12:23 pm

I've posted a possible bug under General Discussions instead of here. Here's the link:
http://www.sublimetext.com/forum/viewtopic.php?f=2&t=4980
How would I go about finding out if this is a bug and if it is, how would I 'log' it?

( Could a mod move the post and to the Technical Support section and delete this? )
jamy_za
 
Posts: 22
Joined: Mon Jul 04, 2011 1:11 pm

Re: Closing <script> tags with the close-tag functionality

Postby atomi on Tue Feb 14, 2012 12:41 am

Everything after the start of <script>
is source.js (it's just the way it works).

I guess if it's really bothering you, you can add a keyboard binding for alt+.


Code: Select all
    {
    "keys": ["alt+."], "command": "insert_snippet",
    "args": { "contents": "</script>" },
    "context":
    [
        {"key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
    ]
    }


EDIT: Just to clarify, I'm not going as far as saying that this isn't fixable via the tmLanguage file as well.
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US


Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Exabot [Bot], sammysamm and 27 guests