Solved

Sharepoint Designer 2010 - Any shortcuts to comment or uncomment out html code?

Posted on 2010-11-12
3
4,677 Views
Last Modified: 2012-06-27
Whenever I have html code that spans pages that I want to comment out its a PITA with SPD.  

I guess I am used to VS 2010 - but in Visual Stusio, any code that is highlighted/selected can be commented out via CtrlK+C and uncommented with Ctrl+KU.

How do I quiclly comment out code I have selected in SPD?  I tried the quick edit tag - wrap tag, but it doesn't accept "<!-- -->".  It only allows Div etc...


Otherwise, I have to select the whole tag and contents which jumps to the end tag.  Put --> at the end and then  Hit Ctrl+; twice to jump to the beginning tag and put in <!--.


Is there an easier way, some keyboard shortcut.  Are there any power tools for SPD or addins or macros I could record?

Thanks in advance
0
Comment
Question by:vamail2
3 Comments
 
LVL 10

Accepted Solution

by:
shahzadbux earned 500 total points
ID: 34124602
Try CTRL+FORWARD SLASH ( / )
0
 
LVL 6

Expert Comment

by:ramuar1981
ID: 34126380
0
 

Author Closing Comment

by:vamail2
ID: 34127366
Thanks.  That works but it deletes any highlighted code.   So instead I write a code snippet which retains any highlighted code AND surrounds it with html comment syntax.  For anyone who needs it, the code snippet is simply

<!--
|
 -->

You must use the vertical piping symbol to retain highlighted code.  

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now