• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dreamweaver 2017 - Insert HTML Comments missing!

New Here ,
Dec 01, 2016 Dec 01, 2016

Copy link to clipboard

Copied

Am I blind or has the Insert | HTML Comments menu item been removed/relocated? How do I do this now? I sometimes forget the comment syntax for the various code types and situations.

Views

6.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 01, 2016 Dec 01, 2016

It's in the Common Toolbar now.

Nancy

Votes

Translate

Translate
Community Expert ,
Dec 01, 2016 Dec 01, 2016

Copy link to clipboard

Copied

It's in the Common Toolbar now.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2016 Dec 01, 2016

Copy link to clipboard

Copied

Thank you. I didn’t even have that toolbar turned on.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 02, 2016 Dec 02, 2016

Copy link to clipboard

Copied

You're welcome. 

The Comments used to be in the Insert panel.  And that's what the User Guide still says.  But the User Guide is incorrect for 2017 which confuses people. 

Whenever you're in doubt about something, come directly to the user forums. We'll get you sorted .

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 05, 2017 Jan 05, 2017

Copy link to clipboard

Copied

Thank you, Nancy.  This is yet another example of adobe just getting it wrong. This forum is VERY helpful, but the user guide is the authoritative resource. And, it's wrong. What really confuses people is the lack of quality, focus and attention to detail by adobe. (user since 2008)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2017 Jan 05, 2017

Copy link to clipboard

Copied

7813462 wrote:

Thank you, Nancy. This is yet another example of adobe just getting it wrong. This forum is VERY helpful, but the user guide is the authoritative resource. And, it's wrong. What really confuses people is the lack of quality, focus and attention to detail by adobe. (user since 2008)

I can't argue with you about user guides falling way short of expectations.  And hopefully things will improve soon.

For the time being if you want quick help, come to the user-to-user forums. We use the products on a daily basis so we can usually figure things out even if it's not documented.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

I'm looking for the command to insert a comment via a keyboard shortcut in Dreamweaver 2015.

I can't find it in the settings > shortcuts > list of commands.

Please, can somebody give me a hint? Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

Thanks for your answer. But the short does not work here (macOS Mojave, Macbook keyboard).

Which is the path of the command inside "settings > keyboard shortcuts", please?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

In CC2015, the easiest way to add an HTML comment is to use Emmet.

When in Code View, click where you want the comment, then hit c followed by Tab.

That will give you <!-- --> with the cursor between.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

interesting Jon, but how can we comment a full line, or a section, using that shortcut ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

You can't.

That shortcut is for creating a new comment, not turning existing text/code into a comment.

Unfortunately, the Ctrl/Command + / shortcut to toggle a selection in <!-- --> with Emmet wasn't added to DW until after CC2015

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

Thanks Jon.

But I want to turn an existing text/code into a comment.

Really hard to believe, that such a basic function does not exist in DW.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

thanks Jon, as I said, it's interesting to know...

mistershortcut​ what does cmd / gives on Mac ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

https://forums.adobe.com/people/B+i+r+n+o+u  wrote

thanks Jon, as I said, it's interesting to know...

mistershortcut  what does cmd / gives on Mac ?


In CC2015 Cmd+/ (on the number pad) does nothing while, on the standard keyboard, it toggles the DOM window.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

@Birnou

The menu help opens with CMD+Shift+7 (Shift+7=/) on keyboard with german layout.

@Jon
That sounds interesting. Is there any tutorial for that or a existing wrapping snippet which can be adopted?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

1. Go to Window > Snippets (Shift + F9) if it's not open already
2. Click the New Snippet button on the bottom of the window
3. In the dialogue that opens, add HTML Comment for the name
4. Make sure the "Wrap Selection" radio button is checked
5. Add <!-- to the Insert Before field
6. Add --> to the Insert After field
7. Click OK
8. Next, go to Edit > Keyboard Shortcuts...
9. In the Commands dropdown, choose Snippets
10. Browse to your new HTML Comment snippet and make sure it's highlighted
11. Click in the Press key field
12. Press the keyboard shortcut you want to use.

One thing to note is your version of DW may not recognize a difference between the keyboard and number pad slashes if you want to use that shortcut, it may end up only working on the main keyboard and be ignored on the number pad.

13. If it's already used by something else, you'll get a warning, if you want to overwrite the shortcut, go ahead and press the Change button
14. Finally, hit the OK button.

NOTE: The Wrapping Snippet functionality was removed from Dreamweaver in CC2017-CC2019. We have been told by Adobe reps that it will be reintroduced in a later release. No timeframe has been given as to what version it will reappear in however.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

There is also the same option Nancy shows above in her screen capture, where you can choose the Apply HTML Comment from the Code View Toolbar. That option also has the ability to be linked to a keyboard shortcut under the Code editing section in the Commands dropdown menu.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

@Jon

Thanks a lot for your very helpful list of steps to create a snippet. I will try this later at night.

You wrote, that the command, Nancy suggested is available in code editing section of the settings for creating a short.

Please, where can I find that command. I looked at the code editing section. But without success.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

1. Go to Edit > Keyboard Shortcuts...
2. Choose the Code Editing option in the Commands dropdown menu
3. Scroll all the way to the bottom and Apply HTML Comment should be the 7th to last option...
4. Highlight it, then click in the Press Key field
5. Hit the shortcut keys you'd like to use
6. Click Change, then OK

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

LATEST

@Jon

Thanks a lot. I found it with the help of your screenshot.

An now I know why I didn't find it before. I just didn't know that there's another option on the same level as menu commands.

Sometimes I'm blind.

Have a nice day!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2019 Jul 19, 2019

Copy link to clipboard

Copied

To wrap a selection in a comment in CC2015, you could create a Wrapping Snippet, then assign an unused Keyboard Shortcut to it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines