You are here: PSPad forum > English discussion forum > Re: How do delete HTML code in 100,000 HTML files at the same time?

Re: How do delete HTML code in 100,000 HTML files at the same time?

#1 How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 06/04/2018 11:35 | IP: IP Logged

How do delete HTML code in 100,000 HTML files at the same time? (all tabs) sad smiley

Edited 1 time(s). Last edit at 06/04/2018 11:36 by maki.

Options: Reply | Quote | Up ^


#2 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: pspad | Date: 06/04/2018 11:57 | IP: IP Logged

Use PSPad scripting
Use PSpad find/replace in files, if possible - no support for regular expressions, but it's really fast
Use specialised tool

Options: Reply | Quote | Up ^


#3 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 06/04/2018 14:43 | IP: IP Logged

Give me a script and explain step by step.

Options: Reply | Quote | Up ^


#4 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 06/04/2018 15:02 | IP: IP Logged

I tried the best of the best tools, but every tool damages charset! So I'm asking here, because every tool will damage Polish letters.

WTF??? ==> się dzieje co chce’

Even if the tool supports Unicode it will still damage the Polish letters, so I am looking for a tool that actually supports any language.

forum.pspad.com

You can try with a million different fonts, you lose time, but if the coding is mixed, it will not display any coding correctly.

Edited 3 time(s). Last edit at 06/04/2018 15:08 by maki.

Options: Reply | Quote | Up ^


#5 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: pspad | Date: 06/04/2018 15:57 | IP: IP Logged

Can you provide any example first what do you want to replace?

Options: Reply | Quote | Up ^


#6 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 06/04/2018 16:02 | IP: IP Logged

I want to remove the HTML code, but the editor can remove only one tab, and I want to remove the code in all open tabs.

Need option:
Apply to all open documents (all tabs) winking smiley

Options: Reply | Quote | Up ^


#7 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: therium | Date: 06/25/2018 16:55 | IP: IP Logged

Is it even possible to have 100,000 files open in PSPad?

Try GrepWin. Requires Windows 7 SP1 or later.

tools.stefankueng.com

It appears it can process all files in a directory. Check docs carefully for how it can process Polish characters. But in Perl, this is your regexp to use on each line of every HTML file:

$s=~s/<.+?>//g;

Options: Reply | Quote | Up ^


#8 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 07/05/2018 13:15 | IP: IP Logged

It seems to be a complicated task, so I do not know what's going on.
I want the software to support millions of Unicode and all special characters, and all existing fonts in the world: D

Options: Reply | Quote | Up ^


#9 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: maki | Date: 07/06/2018 06:50 | IP: IP Logged

Works, thanks for help.smiling smiley

Options: Reply | Quote | Up ^


#10 Re: How do delete HTML code in 100,000 HTML files at the same time?

Posted by: syntech | Date: 07/11/2018 07:46 | IP: IP Logged

For search and replace tasks over (many) files/folder I highly recommend PowerGrep (https://www.powergrep.com/). It has it's price, but it's worth every penny. I use it every day at work.

Options: Reply | Quote | Up ^






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