Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #181389

Re: How to edit HTML source file on Windows in one step (not two)?

From Marion <marion@facts.com>
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 2025-01-15 20:03 +0000
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <vm949l$ee7$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <vm7ule$18gd$1@nnrp.usenet.blueworldhosting.com> <vm8f86$2vlvs$1@dont-email.me> <vm8tks$1d1j$1@nnrp.usenet.blueworldhosting.com> <vm8vur$32j3l$1@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


On Wed, 15 Jan 2025 13:49:44 -0500, Newyana2 wrote :


>> I do very much agree with you that an HTML editor with regular expressions
>> would be lovely to find but I've never seen such an efficient HTML editor.
>> Have you?
>> 
>     I've never used regexp for anything. 

Regular expressions are difficult to learn, but there are only about a dozen 
that you use all day, every day - so your fingers know them by rote.

You can do the same stuff with Notepad++ shortcuts.xml file of macros.
For example, here's a snippet of my single-click text-conversion macros.

For those on comp.editors, a huge advantage of Notepad++ shortcuts.xml 
macro conversion is that it can convert non-printable characters also!

 <!-- comment text -->
 <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
 <Action type="3" message="1601" wParam="0" lParam="0" sParam="&amp;#151;" />
 <Action type="3" message="1625" wParam="0" lParam="0" sParam="" />
 <Action type="3" message="1602" wParam="0" lParam="0" sParam="&amp;" />
 <Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
 <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
 <!-- comment text -->

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.

You can do it with gvim but all the escaping and usage of hex is 
easier with Notepad's macros than it is with gvim's macros.

You use the best tool for the job that does the work in a single click.

Philosophically, if it takes us more than one click to do anything 
repetitive, then that means we don't know Windows well enough yet. :)

Or... we don't know anyone who does know Windows since a lot of this comes
from this ng which contains experts in virtually all things Windows.

> I don't know why I might
> use them editing HTML. 

Well, how do you convert this template set into something useful?
 <A HREF=https://www.amazon.com/s?k=foo+bar>amazon foo bar</A><P>                                                                                                                                    
 <A HREF=https://www.amazon.com/vine/vine-items?search=foo%20bar>vine foo bar</A>

If I want to convert that template to, oh, say, "laptop computer", I run:
 ma                         ===> mark a
 mb                         ===> mark b
 <esc>:'a,'bs/foo/laptop/g  ===> from a to b globally replace foo with laptop 
 <esc>:'a,'bs/bar/pc/g  ===> from a to b globally replace bar with pc

Which, for the text lines between mark a and mark b, it converts that to
 <A HREF=https://www.amazon.com/s?k=laptop+pc>amazon laptop pc</A><P>                                                                                                                                    
 <A HREF=https://www.amazon.com/vine/vine-items?search=laptop%20pc>vine laptop pc</A>

Ideally, we'd want a batch script which simply adds links to the one text 
bookmarks.html file that each person would maintain for all browsers.

C:\> addlink.bat
     Q: What link do you want to add?
     A: ?
And that would add a line (or two) for every link that you specified.
 
> For HTML, or anything, I want an editor
> designed for that specifically.
> 
>  >>      I just tried Vim for the
>  >> first time. It looks like a relic from 1980, without even support for
>  >> non-fixed-width fonts. Really?
> 
>> You want the 'g' in front of Vim for the graphical bells & whistles.
>> 
> 
>    Yes. I got gvim.

Good. Try what I had suggested. My fonts are always huge in gvim because my
eyes aren't what they used to be when I was a younger person at 75 or so.

You can change it on the fly, but I set it once (years ago) and my fonts in
gvim have been huge ever since. I just looked & they're 'Lucinda 22 bold'.

>> If someone can suggest a good free HTML editor that works on all major
>> platforms which incorporates regular expressions - I'd love to test it.
>> 
> 
>    It sounds like you're not really editing HTML in the sense of web design,
> but rather editing your browser bookmarks file? 

What I'd REALLY WANT is the ability to add items to the bookmarks file.

a. I'd run a script, oh, say called "addbm.bat"
b. It would ask me "what link do you want to add to your bookmark file?"
c. Then it would add the necessary HTML to the bookmark.htm text file.

That addbm.bat script would be something EVERYONE would want!

A. Before running addbm.bat
  <HR> 
  <A HREF=https://amazon.com/vine/about>About Amazon Vine</A><P>
  <HR>

B. While running addbm.bat
   Win+R > addbm  
   Q: What is it that you want to add?
   A: ?

   To which you'd simply type the words:
   "laptop computer"

B. After running addbm.bat, the vine.html file would change to:
  <HR> 
  <A HREF=https://amazon.com/vine/about>About Amazon Vine</A><P>
  <A HREF=https://www.amazon.com/s?k=laptop+computer>amazon laptop computer</A><P>
  <A HREF=https://www.amazon.com/vine/vine-items?search=laptop%20computer>vine laptop computer</A><P>
 <HR>

This 'addbm.bat' would be generally useful for billions of people, BTW.

My immediate need for 'addbm.bat' is for Amazon Vine items; 
but it would be exactly the same script to add anything to 
any bookmarks.html text file.

> If that's the case then I
> can see why you want only a plain editor.

You are correct. A powerful but basic text editor is all I need 
to create and edit a bunch of clickable links 
(with some rudimentary descriptions).

A browser bookmarks file is just a text file with clickable links.
Why they're so complicated is beyond my comprehension since 
all browser bookmark files should be exactly the same syntax 
for every web browser.

The format is an anchored hypertext reference & some simple white space.

Like this:
 <HR> 
 <A HREF=https://domain1/urlspec1>domain1 urlspec1</A><P>
 <A HREF=https://domain2/urlspec2>domain2 urlspec2</A><P>
 <A HREF=https://domain3/urlspec3>domain3 urlspec3</A><P>
 <HR>

Philosophically, each person would only need a single bookmarks file.
No matter what platform they're on or what browser they used at the moment.

I'm actually editing a vine.html file because I'm trying to game the system 
 <https://amazon.com/vine/about>

If you game the system, you can get anything you want on Amazon for 'free'.

To do that, I set up a few links for what I want to order off of Amazon.
My experience is that I can get anything for free after clicking on 
those vine.html links for a few times over the period of a few days (or weeks).

The vine.html file allows me to just click on stuff that I want for 'free'.
Eventually it shows up for 'free' (see sig for why I used scare quotes).

It would be better to *automate* that clicking, but I don't know how 
to have a web browser just click although I'm sure it would use curl 
or wget (with a concomitant spoofing of the browser - which is the 
hard part as they will kick you off the Amazon Vine program if they 
detect these shenanigans to try to "improve" their algorithms).

The clicking is using Firefox without VPN so they know what I'm doing.
The point is to game Amazon into offering me what I want, for 'free'.

It works. But I'm simply trying to make the process even more efficient.
Thanks for your help and advice. And yes, this is perfectly legal.

See the sig for details.
-- 
(I put scare quotes around the 'free' because there is no cost for 
anything you order off of vine - and there is no tax or shipping - but 
your cost depends on your income tax bracket since they send the Feds a 1099).

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 09:20 +0000
  Re: How to edit HTML source file on Windows in one step (not two)? Herbert Kleebauer <klee@unibwm.de> - 2025-01-15 11:42 +0100
    Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 11:28 +0000
      Re: How to edit HTML source file on Windows in one step (not two)? "R.Wieser" <address@is.invalid> - 2025-01-15 13:35 +0100
        Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 18:10 +0000
          Re: How to edit HTML source file on Windows in one step (not two)? "R.Wieser" <address@is.invalid> - 2025-01-15 22:15 +0100
            Re: How to edit HTML source file on Windows in one step (not two)? "R.Wieser" <address@is.invalid> - 2025-01-16 14:29 +0100
      Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-15 13:36 +0100
        Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 18:10 +0000
          Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-16 23:08 +0100
            Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-17 04:28 +0000
              Re: How to edit HTML source file on Windows in one step (not two)? Herbert Kleebauer <klee@unibwm.de> - 2025-01-17 10:03 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-17 18:37 +0000
              Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-18 14:33 +0100
  Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-15 09:04 -0500
    Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 18:09 +0000
      Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-15 13:49 -0500
        Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-15 20:03 +0000
          Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-15 16:00 -0500
            Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-16 02:16 +0000
        Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-18 06:47 +0000
          Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-18 09:09 -0500
            Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-18 15:25 +0100
              Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-18 13:55 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? gazelle@shell.xmission.com (Kenny McCormack) - 2025-01-18 20:15 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-18 21:19 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-18 20:55 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-18 23:29 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-19 00:44 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-19 03:50 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-19 03:56 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-19 09:43 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-19 14:16 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-19 21:27 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Eric Pozharski <apple.universe@posteo.net> - 2025-01-22 17:57 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-19 08:18 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-20 01:13 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-20 01:15 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-20 14:00 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-21 04:48 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-21 13:28 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-21 08:39 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? Frank Slootweg <this@ddress.is.invalid> - 2025-01-21 14:00 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-22 00:09 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-18 16:56 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? gazelle@shell.xmission.com (Kenny McCormack) - 2025-01-18 21:57 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-18 17:40 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-18 23:33 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-18 20:54 +0000
            Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-18 20:50 +0000
              Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-18 17:36 -0500
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-19 00:46 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-19 10:00 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-19 21:16 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-20 03:04 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-20 09:26 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-21 04:47 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-21 07:41 +0100
                Re: How to edit HTML source file on Windows in one step (not two)? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-22 00:11 +0000
                Re: How to edit HTML source file on Windows in one step (not two)? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-22 11:48 +0100
                Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) gazelle@shell.xmission.com (Kenny McCormack) - 2025-01-22 13:13 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-22 19:54 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-22 22:25 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-23 04:29 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Newyana2 <newyana@invalid.nospam> - 2025-01-23 08:20 -0500
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-23 21:02 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-23 22:18 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Frank Miller <miller@posteo.ee> - 2025-01-24 00:25 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-23 23:35 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-23 23:48 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-24 00:48 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-24 11:30 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Frank Miller <miller@posteo.ee> - 2025-01-24 00:49 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-24 10:40 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-24 18:03 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Marion <marion@facts.com> - 2025-01-24 18:14 +0000
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-25 14:22 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) "Carlos E.R." <robin_listas@es.invalid> - 2025-01-25 14:39 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-25 17:48 +0100
                Re: Strange questions (Was: How to edit HTML source file on Windows in one step (not two)?) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-01-23 23:46 +0000
    Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-16 15:05 +0100
      Re: How to edit HTML source file on Windows in one step (not two)? Newyana2 <newyana@invalid.nospam> - 2025-01-16 11:08 -0500
        Re: How to edit HTML source file on Windows in one step (not two)? "Carlos E.R." <robin_listas@es.invalid> - 2025-01-16 23:03 +0100
  Re: How to edit HTML source file on Windows in one step (not two)? Marion <marion@facts.com> - 2025-01-24 01:07 +0000

csiph-web