Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Newyana2 Newsgroups: alt.comp.os.windows-10,alt.comp.software.firefox,comp.editors Subject: Re: How to edit HTML source file on Windows in one step (not two)? Date: Wed, 15 Jan 2025 16:00:08 -0500 Organization: A noiseless patient Spider Lines: 54 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 15 Jan 2025 21:59:26 +0100 (CET) Injection-Info: dont-email.me; posting-host="f1fd2c24e00c011e1a5e763132adf1fb"; logging-data="3279793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gW7R1P8pcpCWitYJF5+NiJbFZ1JUSbvw=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 Cancel-Lock: sha1:e8QPGCQgR6K5V0mZsheHWDqf7eo= Content-Language: en-US In-Reply-To: Xref: csiph.com alt.comp.os.windows-10:181391 alt.comp.software.firefox:11985 comp.editors:106453 On 1/15/2025 3:03 PM, Marion wrote: > For those on comp.editors, a huge advantage of Notepad++ shortcuts.xml > macro conversion is that it can convert non-printable characters also! > > > > sParam="—" /> > > > > > > > I have about a dozen of those Notepad++ macros which convert non-printable > (or inconsistent) characters to printable (or to consistent) characters > after I've cut and pasted from an HTML page. > Sorry, but I lost you. You're assuming people know that macro code and how it works. > Well, how do you convert this template set into something useful? > amazon foo bar

HREF=https://www.amazon.com/vine/vine-items?search=foo%20bar>vine foo > bar > > If I want to convert that template to, oh, say, "laptop computer", I run: > ma                         ===> mark a > mb                         ===> mark b > :'a,'bs/foo/laptop/g  ===> from a to b globally replace foo with > laptop :'a,'bs/bar/pc/g  ===> from a to b globally replace bar with pc > Again, you lost me. I don't see a template. Weren't we talking about editing HTML? > What I'd REALLY WANT is the ability to add items to the bookmarks file. > Yes. That seems to be the confusion. You're not looking to edit HTML. You're looking to autmoate specific text editing I use VBScript for things like that. BAT files are limited. I actually keep a lot of VBS files on my Desktop, to do things like Copy folderA to folderB if files in folderA do not exist in folderB. Decode base64. Convert unix returns to Windows returns. Convert a returnlss CSS block to clear lines with returns. Clean all temp folders. Convert an encoded URL to a clean one by doing things like replacing %3A%2F%2F to ://. Collect all domains referenced in an HTML file and present them in a window with an option to add them to HOSTS. Etc. All of that is fairly simple with VBScript of javascript files running under Windows Script Host. (And of course, a specialized editor for VBS is also handy. :)