RSS

 
WinEdt Macro Library  | HTML previous macro  | next macro

deleteTag

Description

Delete the innermost HTML start and end tags (also from comments).

<P>This shows <EM>how</EM> it works.</P>
       ^(1)        ^(2)

If the cursor is in position (1), <P> and </P> will be removed, if in position (2), <EM> and </EM> will be removed.

Installation

Put the macro in %b\Macros\HTML\ and assign a shortcut to it if you want.

Download

HTML\deleteTag.edt

Macro contributed by Robert <w.m.lgmx.net>.

WinEdt Macro Library  | HTML previous macro  | next macro