Skip to main content
1-Visitor
January 6, 2016
Solved

How do I un-comment out DITA code that I commented out with Insert > Comment?

  • January 6, 2016
  • 2 replies
  • 2237 views

Hi, all. Sometimes I want to comment out my DITA code with XML comments (Insert > Comment.)  But when it's time to uncomment it out without going to the untagged view, I'm stumped. What's the easy way to do this?

Thx

Steve

Best answer by pnagai

‌there is a keyboard shortcut that will remove them if your cursor is inside the comment. I can't remember whether it is specific to comments or whether it's the same one that strips elements. If it doesn't show up on the menu, type "show fullkeymap" on the command line.

2 replies

pnagai1-VisitorAnswer
1-Visitor
January 7, 2016

‌there is a keyboard shortcut that will remove them if your cursor is inside the comment. I can't remember whether it is specific to comments or whether it's the same one that strips elements. If it doesn't show up on the menu, type "show fullkeymap" on the command line.

18-Opal
January 7, 2016

Hi Steve--

Paul's right, it's just the regular "delete markup" function. Ctrl-Shift-X, or Edit->Uncomment from the menus will do the trick. You can also click the corresponding toolbar button, which looks like a tag marker with a big red X over it.

--Clay

5-Regular Member
January 21, 2016

Hi Steve,

Were you able to resolve this with the above comments?

Please let us know if you are still having problems, otherwise feel free to mark an answer as correct and keep the community strong.  Thanks!