Go to Edit > Preferences > Code Hinting.
Put a check mark by Close tags after typing the open "<" tags.
Yes Nancy O. - that was simply something I forgot to mention. I have that feature set and Dreamweaver will auto-close every other tag that I use. It is just the script tag that does not auto-close.
Here is another interesting tidbit of information: If I choose: after typing the opening tag's ">" I get the </script> as expected. I just do NOT prefer this to the choice: After typing the "</"
I wonder if others have similar a similar issue.
Good afternoon again Nancy,
I have installed those updates and I still have the problem. In fact, all of the developers here that I have talked with (there are 8 of us) all experience the same thing.
Every tag closes except for the script tag, unless we set the close preference to close after typing the opening tag's ">" - which none of us want. I'm not sure what else I should look at.
Are there any other suggestions?
Hello yet again,
When I type the </ I briefly (line half-a-second) see the script tag that should go there. But then, I see a prompt at the top of the HTML Tag library. It doesn't select ANY tag, but is wanting me to scroll through the list to get to the the tag that I want, in this case the SCRIPT tag.
I can reproduce your symptoms, and I've learned to live with it. I'm using the permanent CS6 (not Cloud).
Thank you for your help. I find no value in entering a bug report asking Adobe to have Dreamweaver close all tags when I select one of the close tags options. I would have expected that to be obvious.
I do appreciate your time and help though. I, like Murray Summers will learn to live with it.
1 person found this helpful
Good morning all,
Ok, Jon, thank you. I've not used a lot of </ within the scripts that I've written so, so far, that hasn't been a problem for me. Your explanation makes sense though. It also explains why it works if you select the option to: close after typing the opening tag's ">". Because once the opening and closing tags have been populated, entering </ would have no effect on the scripot tag at all.
Very nice response Jon. This behavior is crystal clear now and in fact, it seems to be a feature, not a bug.
Does not work at all with auto-complete.
What doesn't work exactly?
Which version of DW?
Have you checked your code for errors?
Is auto-complete turned on?
What file type are you working with?
The thread you've posted to is 4 years old and dealing with CS5.5, it's roughly 6 program versions removed from the current offering, even the code engine has been completely changed since this post was made.
You might be better off starting a new thread by clicking here...
...and then going to the "Still Have Questions" link at the bottom.