Insert comments in HTML code

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Insert comments in HTML code

Postby mtemp » Fri Apr 21, 2006 11:08 am

Hello,
how is it possible in UE12 to mark selected html code as comments?
e.g. "<-- my html comment -->"

With a macro?

Thanks, Carlos
User avatar
mtemp
Basic User
Basic User
 
Posts: 14
Joined: Thu Apr 20, 2006 11:00 pm

Re: Insert comments in HTML code

Postby Koko_McCracken » Fri Apr 21, 2006 3:31 pm

Hello Carlos,

You can use a macro like this:

Code: Select all
InsertMode
ColumnModeOff
HexOff
Clipboard 9
Cut
"
<!--"
Paste
"-->
"
ClearClipboard
Clipboard 0

You can modify it to better suit your preferences regarding the placing of newlines



I was afraid of macros myself, but doing experiments with the "quick record" is a fast and easy way to learn to do fast and easy macros
User avatar
Koko_McCracken
Basic User
Basic User
 
Posts: 13
Joined: Fri Apr 07, 2006 11:00 pm

Re: Insert comments in HTML code

Postby rwhirn » Tue May 23, 2006 6:20 pm

I believe an even easier way is to add a toolbar button for this. Go into "Advanced", "Configuration", expand "Toolbars/Menus" and select "HTML Toolbar". Use the arrow button to move over to a user button and select it. Then in the box for that button enter:

Code: Select all
<!--|-->

In the Tooltip box type: HTML Comment Out

Then hit "Modify Actual HTML Toolbar" and add this button to your toolbar.

This allows you to highlight HTML code and "comment it out" or hit this button and start typing comments.
User avatar
rwhirn
Newbie
 
Posts: 5
Joined: Mon May 22, 2006 11:00 pm


Return to UltraEdit General Discussion