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

Dreamweaver 2017 - Insert HTML Comments missing!

New Here ,
Dec 01, 2016 Dec 01, 2016

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.

7.3K
Translate
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

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

It's in the Common Toolbar now.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
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

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

Translate
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

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
Translate
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

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)

Translate
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

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
Translate
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

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.

Translate
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
Translate
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

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?

Translate
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

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.

Translate
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

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

Translate
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

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

Translate
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

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.

Translate
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

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

mistershortcut​ what does cmd / gives on Mac ?

Translate
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

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.

Translate
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

@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?

Translate
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

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.

Translate
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

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.

Translate
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

@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.

Translate
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

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

Translate
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
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!

Translate
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

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

Translate
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