Skip navigation
DonCoppockII
Currently Being Moderated

Dreamweaver does not auto-complete </script> tag

Mar 11, 2013 11:19 AM

Tags: #script #dreamweaver #tag

Dremaweaver CS5 Version 11.0 Build 4993 - does not close script tag. I type <script> include the text then type </   and the Script tag is NOT closed.

 

When I type </  the script tag should complete and close automatically.

 

So, for example:

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

function closeThisWindow() {

     window.close();

}

</

 

 

I have to type </script>  because it does not auto-complete.

 

 

Thanks,

Don.

 
Replies
  • Currently Being Moderated
    Mar 11, 2013 11:29 AM   in reply to DonCoppockII

    Go to Edit > Preferences > Code Hinting.

     

    Put a check mark by Close tags after typing the open "<" tags.

    Hit OK.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 11, 2013 11:42 AM   in reply to DonCoppockII

    I can't reproduce this in CS6.  Do you have the latest udpates for your product?

    http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dwcs5 1104

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 11, 2013 12:06 PM   in reply to DonCoppockII

    I can reproduce your symptoms, and I've learned to live with it. I'm using the permanent CS6 (not Cloud).

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 11, 2013 12:09 PM   in reply to DonCoppockII

    That's just how DW works.

     

    You can file a bug report if you think it will do any good. 

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 11, 2013 1:07 PM   in reply to DonCoppockII

    I think this is very intentional on the part of Adobe's development folks. I think the reason they have left it this way all these years is because you can use one or many </ in a javascript and not be in the process of writing the end tag for the opening <script>.

     

    In my opinion, it would get more than a little annoying to have to undo the auto-insert every time you wanted to have a javascript write html into your page  and it kept closing the <script> instead of allowing you to choose to close it or not.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points