Solved

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

Posted on 2010-11-12
3
4,932 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Onedrive for business 3 46
SharePoint 2013 Emulating SharePoint 2010 8 75
JavaScript waiting 14 80
Working with SharePoint Data 8 54
I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

772 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