You are here: PSPad forum > English discussion forum > Remove Tag pairs

Remove Tag pairs

#1 Remove Tag pairs

Posted by: STing | Date: 2014-08-17 11:06 | IP: IP Logged

Hi Folks,

Is it possible to select a tag pair without selecting the texts between the tags?
I wanted to know if you can select a specific tag followed by delete tag, but without affecting the texts between the tags?

Also, I noticed that it is not possible to select a tag pair when the cursor is on the closing tag element.

The only way is to install Emmet and take advantage of the support for extensions or Script

Thanks.

Options: Reply | Quote | Up ^


#2 Re: Remove Tag pairs

Posted by: Andreas | Date: 2014-08-17 23:57 | IP: IP Logged

???
1. No you can not select multiple areas in PsPad, only a block or with alt + mouse a column.

2. You can delete Tags with replace regexp i.e. <div.*?>

3. You never can select a Tag pair whatever position the cursor might have.

Options: Reply | Quote | Up ^


#3 Re: Remove Tag pairs

Posted by: Stefan | Date: 2014-08-20 06:18 | IP: IP Logged

Andreas:
3. You never can select a Tag pair whatever position the cursor might have.

Sure you can grinning smiley

Ctr+Shift+T in opening Tag

See Edit menu.

 
 

Andreas:
2. You can delete Tags with replace regexp i.e. <div.*?>

You can also use the Find or the Replace dialog
and click at the [!] exclamation mark button.

 

 

--
Stefan (pleased user since 1722)
Do you know you can spend Jan a beer? (click here)
Inofficial FAQs + Infos + Special Settings

Options: Reply | Quote | Up ^


#4 Re: Remove Tag pairs

Posted by: Andreas | Date: 2014-08-20 14:52 | IP: IP Logged

Ctr+Shift+T does not select a Tag pair, it selects an HTML element incl. inner HTML. This even works with cursor in closing Tag.

pspad 4.5.8 2471 Win 7 64

Options: Reply | Quote | Up ^


#5 Re: Remove Tag pairs

Posted by: Andreas | Date: 2014-08-20 15:22 | IP: IP Logged

And pspad 4.5.8 2485 Win 7 64

Options: Reply | Quote | Up ^


#6 Re: Remove Tag pairs

Posted by: STing | Date: 2014-08-20 23:49 | IP: IP Logged

That's strange Andreas.

I am running the portable version and the latest I can download is this version:
PSPad - current version 4.5.7 (2450) - 25 January 2013
www.pspad.com

On this version and when working with XML files, you cannot select the "element incl. inner text content" when the cursor is at the closing element position.

Options: Reply | Quote | Up ^


#7 Re: Remove Tag pairs

Posted by: Andreas | Date: 2014-08-21 08:48 | IP: IP Logged

With *.xml files I can confirm an incorrect behavior when cursor is in closing Tag. Tested with different syntax highlighters.

Beta versions you can get here forum.pspad.com

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR