Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #181362 > unrolled thread
| Started by | Marion <marion@facts.com> |
|---|---|
| First post | 2025-01-15 09:20 +0000 |
| Last post | 2025-01-24 01:07 +0000 |
| Articles | 20 on this page of 84 — 11 participants |
Back to article view | Back to alt.comp.os.windows-10
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
Page 1 of 5 [1] 2 3 4 5 Next page →
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 09:20 +0000 |
| Subject | How to edit HTML source file on Windows in one step (not two)? |
| Message-ID | <vm7ule$18gd$1@nnrp.usenet.blueworldhosting.com> |
If it takes 2 steps to do something; that's twice as much as it should; Hence, I'm trying to reduce the following interaction to a single step. STEP 1: Win+R > gvine STEP 2: Click on the backgrounded icon on the taskbar What I need to know, in order to reduce those two steps to one is... Why does Windows edit this file in the background (not foreground)? Note: It comes up in one step if I used the default editor, but I don't want to use Firefox as the default editor (unless Firefox has an editor?). Here's the situation... (which I would think others would also have)... This works fine to *view* that HTML file in Firefox in one step. 1. I created this HTML file for my one-click URLs C:\sys\myurls.html 2. I can easily open that file in Firefox on Windows firefox file:///C:/sys/myurls.html (which I can subsequently bookmark within Firefox) 3. That opens up the file inside of the Firefox browser with one click (note that the default program for HTML files is Firefox) But what about *editing* that HTML file to add more stuff to it? Here's what I created, which works, but it's two clicks, not one click. A. I created this registry key to point to a shortcut HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ gurl.exe = C:\sys\gurl.lnk Where the TARGET for gurl.lnk does the actual editing: TARGET=%comspec% /c gvim C:\sys\myurls.html B. I can execute that command using the Windows Runbox shortcut Win+R > gurl C. That opens the desired HTML file in the gvim text editor (note that gvim is not the default program for HTML files) All this works just fine - EXCEPT - for one specific flaw. FLAW: The editing session is always "backgrounded" - by which I mean that the gvim editing window does not come to the fore. That gvim window is always backgrounded (Why? I don't know why.) To bring the gvim window to the foreground, I have to tap the icon that shows up on the Windows taskbar - but that's an extra unnecessary step (which is why I'm asking for help). Two specific questions: a. Why doesn't the gvim editing window come up in the foreground? b. What do I change to make that editing 1 step instead of 2 steps? -- Note that I never type "Win+R" since I have a runbox pinned to the taskbar.
[toc] | [next] | [standalone]
| From | Herbert Kleebauer <klee@unibwm.de> |
|---|---|
| Date | 2025-01-15 11:42 +0100 |
| Message-ID | <vm83fi$2tmij$1@dont-email.me> |
| In reply to | #181362 |
On 15.01.2025 10:20, Marion wrote: > b. What do I change to make that editing 1 step instead of 2 steps? about:config view_source.editor.external true view_source.editor.path C:\Windows\System32\notepad.exe In Firefox press <CTRL>-U to start the editor with the html source file
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 11:28 +0000 |
| Message-ID | <vm865b$2v3q$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181363 |
On Wed, 15 Jan 2025 11:42:56 +0100, Herbert Kleebauer wrote :
>> b. What do I change to make that editing 1 step instead of 2 steps?
>
> about:config
>
> view_source.editor.external true
> view_source.editor.path C:\Windows\System32\notepad.exe
>
> In Firefox press <CTRL>-U to start the editor with the html source
Woo hoo! I think you (perhaps accidentally) answered BOTH questions!
It was the default gvim batch file which was BACKGROUNDING things!
Thanks!
Here's how I figured that out, based on what you suggested I do.
1. Check the configuration in Firefox
about:config
view_source.editor.external = false
view_source.editor.path = <blank>
2. Now change that to edit using Notepad (for test purposes).
C:\> where notepad
C:\Windows\System32\notepad.exe
about:config
view_source.editor.external = true
view_source.editor.path = C:\Windows\System32\notepad.exe
firefox firefox file:///C:/sys/myurls.html
Control+U
That works.
3. That works for notepad, but it does NOT work for gvim.
C:\> where gvim
C:\Windows\gvim.bat
about:config
view_source.editor.external = true
view_source.editor.path = C:\Windows\gvim.bat
firefox firefox file:///C:/sys/myurls.html
Control+U
That fails.
4. But if I use the full path to the gvim executable, it works:
C:\> where gvim.exe
INFO: Could not find files for the given pattern(s).
Hmm. That's how gvim installs. But I know the real path is
C:\bat\gvim\gvim.exe
about:config
view_source.editor.external = true
view_source.editor.path = C:\bat\gvim\gvim.exe
firefox firefox file:///C:/sys/myurls.html
Control+U
That works.
5. Notice once I realized (accidentally) that the path to gvim
was (by default) being found by the fact a batch file was
placed (by the gvim installer) in C:\Windows\gvim.bat, I then
surmized (correctly, it turns out) that the backgrounding was
being done by that gvim.bat file (and not by gvim.exe).
So, I solved that problem by amending the original steps to...
1. I created this HTML file for my one-click URLs
C:\sys\myurls.html
2. I can easily open that HTML file as HTML in Firefox on Windows
firefox file:///C:/sys/myurls.html
(which I can subsequently bookmark within Firefox)
3. That opens up the file inside of the Firefox browser with one click
(note that the default program for HTML files is Firefox)
4. I can also easily EDIT that HTML file in a single step inside Firefox
about:config
view_source.editor.external = true
view_source.editor.path = C:\bat\gvim\gvim.exe
firefox firefox file:///C:/sys/myurls.html
Control+U
That edits the HTML file in a single step! Woo hoo!
To edit that HTML file OUTSIDE of firefox is also a single step!
A. I created this registry key to point to a shortcut
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
gurl.exe = C:\sys\gurl.lnk
Where the TARGET for gurl.lnk does the actual editing:
TARGET=%comspec% /c C:\bat\gvim\gvim.exe C:\sys\myurls.html
B. I can execute that command using the Windows Runbox shortcut
Win+R > gurl (I never actually type this - as I use a runbox shortcut)
C. That opens the desired HTML file in the gvim text editor
(note that gvim is not the default program for HTML files)
All this works just fine in a single step now!
a. To edit the url file in Firefox, use "Control+U"
b. To edit the url file outside Firefox, use "Win+R > gurl"
The two specific questions have now been answered thanks to Herbert!
Q: Why doesn't the gvim editing window come up in the foreground?
A: Because the default gvim.bat file is causing it to be backgrounded!
Q: What do I change to make that editing 1 step instead of 2 steps?
A: Target the full path to the gvim.exe executable (not to the bat)!
Thanks Herbert.
This information should be generally useful to everyone because it allows
them to maintain a list of URLs that they can easily edit at any time.
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-01-15 13:35 +0100 |
| Message-ID | <vm8a2u$2us0h$1@dont-email.me> |
| In reply to | #181364 |
Marion, > 3. That works for notepad, but it does NOT work for gvim. > C:\> where gvim > C:\Windows\gvim.bat ... > That fails. You mean, that does not work for your batch file. But how do you *know* it doesn't work for your batchfile ? Maybe the batchfile runs but it just can't run gvim.exe itself for some reason. IOW, what did you do to check/test what part works and what part doesn't ? Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 18:10 +0000 |
| Message-ID | <vm8tme$1g6a$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181366 |
On Wed, 15 Jan 2025 13:35:28 +0100, R.Wieser wrote :
> You mean, that does not work for your batch file.
>
> But how do you *know* it doesn't work for your batchfile ? Maybe the
> batchfile runs but it just can't run gvim.exe itself for some reason.
>
> IOW, what did you do to check/test what part works and what part doesn't ?
Agreed that you're correct it might work for other batch files.
Just not gvim.bat - and even then - it still could be a local problem.
Thanks for that sound advice.
Here's the gvim.bat file installed during the initial setup process.
@echo off
rem -- Run Vim --
rem # uninstall key: vim82 #
setlocal
set VIM_EXE_DIR=C:\bin\vim\vim82
if exist "%VIM%\vim82\gvim.exe" set VIM_EXE_DIR=%VIM%\vim82
if exist "%VIMRUNTIME%\gvim.exe" set VIM_EXE_DIR=%VIMRUNTIME%
if not exist "%VIM_EXE_DIR%\gvim.exe" (
echo "%VIM_EXE_DIR%\gvim.exe" not found
goto :eof
)
rem check --nofork argument
set VIMNOFORK=
:loopstart
if .%1==. goto loopend
if .%1==.--nofork (
set VIMNOFORK=1
) else if .%1==.-f (
set VIMNOFORK=1
)
shift
goto loopstart
:loopend
if .%VIMNOFORK%==.1 (
start "dummy" /b /wait "%VIM_EXE_DIR%\gvim.exe" %*
) else (
start "dummy" /b "%VIM_EXE_DIR%\gvim.exe" %*
)
--
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-01-15 22:15 +0100 |
| Message-ID | <vm98ij$349l7$1@dont-email.me> |
| In reply to | #181385 |
Marion, > Agreed that you're correct it might work for other batch files. No. The problem is the batch filetype. Its not an executable. Also, firefox is not an OS, and it looks like it handles starting programs a bit different than you are accustomed to. Herbert gave you two about:config entry names. Remove the last part to see the other settings in that group. It might give you an idea (it did for me). > Thanks for that sound advice. You're welcome. > Here's the gvim.bat file installed during the initial setup process. Thats *way* to complex for testing. I would start with a new batchfile and put something in it you know will always work. Perhaps just "echo I'm here", or better yet :"pause". Maybe even both, in that order. And, if you have not already done so, do test if if the batchfile works when started from th commandline. Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-01-16 14:29 +0100 |
| Message-ID | <vmb1jq$3h4ql$1@dont-email.me> |
| In reply to | #181392 |
Arlen, > And, if you have not already done so, do test if the batchfile works when > started from the commandline. I should have made clearer that I ment *your* batchfile, not the almost empty one I suggested for you to test with - though its a good idea to test it too, to make sure it works before depending on it to checking something else. By the way, did you know that that gvim.bat contains a security issue of sorts ? Just see what you get when you put this in a batchfile : echo %NotExisting%\gvim.exe Yep, it would point to the root of the current drive, and I don't think thats intentional ... Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-01-15 13:36 +0100 |
| Message-ID | <mmmk5lxo3q.ln2@Telcontar.valinor> |
| In reply to | #181364 |
On 2025-01-15 12:28, Marion wrote: > This information should be generally useful to everyone because it allows > them to maintain a list of URLs that they can easily edit at any time. Seamonkey has an html editor. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 18:10 +0000 |
| Message-ID | <vm8tlq$1e0s$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181367 |
On Wed, 15 Jan 2025 13:36:06 +0100, Carlos E.R. wrote : >> This information should be generally useful to everyone because it allows >> them to maintain a list of URLs that they can easily edit at any time. > > Seamonkey has an html editor. Good point. Given there are essentially only 2 web browser code bases for Windows, every Win10 browser will likely be sharing either Mozilla or Chromium code. From Carlos' statement, we can presume Mozilla browsers use the Control+U. Does the Chromium code base have a similar "Control+U" single edit step? I just tested it and it comes up similarly to Firefox, but read only. <view-source:chrome://settings/privacy> Apparently the way Chromium does in-place modern editing is this: 1. Open Developer Tools: 2. Press Ctrl+Shift+I (or F12) on your keyboard. 3. Navigate to the "Elements" panel: 4. Right-click on the element you want to edit in the "Elements" panel. 5. Select "Edit as HTML" from the context menu. That looks like more than a single step to me though. And, of course, that HTML editor doesn't seem to use regular expressions. Bear in mind, just being able to use the mouse and keyboard to edit complex html code is not really editing. It's more like plucking letters on & off. For modern editing, you need some sort of HTML editor that works with regular expressions - but I don't know of any user-friendly HTML editor. Do you? Does anyone? Q: What's a free HTML editor that can be used with regular expressions? A: ?
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-01-16 23:08 +0100 |
| Message-ID | <sjco5lxj6j.ln2@Telcontar.valinor> |
| In reply to | #181382 |
On 2025-01-15 19:10, Marion wrote: > On Wed, 15 Jan 2025 13:36:06 +0100, Carlos E.R. wrote : > > >>> This information should be generally useful to everyone because it >>> allows >>> them to maintain a list of URLs that they can easily edit at any time. >> >> Seamonkey has an html editor. > > Good point. > > Given there are essentially only 2 web browser code bases for Windows, > every Win10 browser will likely be sharing either Mozilla or Chromium code. > > From Carlos' statement, we can presume Mozilla browsers use the Control+U. > Does the Chromium code base have a similar "Control+U" single edit step? > > I just tested it and it comes up similarly to Firefox, but read only. > <view-source:chrome://settings/privacy> > > Apparently the way Chromium does in-place modern editing is this: > 1. Open Developer Tools: > 2. Press Ctrl+Shift+I (or F12) on your keyboard. 3. Navigate to the > "Elements" panel: > 4. Right-click on the element you want to edit in the "Elements" panel. > 5. Select "Edit as HTML" from the context menu. > That looks like more than a single step to me though. > And, of course, that HTML editor doesn't seem to use regular expressions. > > Bear in mind, just being able to use the mouse and keyboard to edit complex > html code is not really editing. It's more like plucking letters on & off. > > For modern editing, you need some sort of HTML editor that works with > regular expressions - but I don't know of any user-friendly HTML editor. Just give a try to Seamonkey. It is not Firefox, it is a fork. It contains the old Composer that came with the ancient Netscape. After you try it, decide if you like it or not. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-17 04:28 +0000 |
| Message-ID | <vmcma7$11aa$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181449 |
On Thu, 16 Jan 2025 23:08:28 +0100, Carlos E.R. wrote : >> For modern editing, you need some sort of HTML editor that works with >> regular expressions - but I don't know of any user-friendly HTML editor. > > Just give a try to Seamonkey. It is not Firefox, it is a fork. It > contains the old Composer that came with the ancient Netscape. > > After you try it, decide if you like it or not. Thanks for that advice to try SeaMonkey's HTML editor, which I have done. However, I'm currently using Firefox for one thing only & that's for Vine. SeaMonkey is already being used for something else on my system. Since my philosophy is each web browser does one thing and only one thing, you can rest assured I've tried almost every web browser there ever was. Look here: <https://i.postimg.cc/fT2J40RD/windows-cascade-menu.jpg> Windows browsers The beauty of using any given web browser for only one thing is that one thing is set up perfectly within that browser, for privacy & security.
[toc] | [prev] | [next] | [standalone]
| From | Herbert Kleebauer <klee@unibwm.de> |
|---|---|
| Date | 2025-01-17 10:03 +0100 |
| Message-ID | <vmd6cv$3ve52$1@dont-email.me> |
| In reply to | #181476 |
On 17.01.2025 05:28, Marion wrote: > The beauty of using any given web browser for only one thing is that one > thing is set up perfectly within that browser, for privacy & security. That's like using a different video player for each type of videos. And you have to install the updates for all your browsers. You can create as many profiles you like in Firefox. Make one your default profile and start the others by: firefox.exe -profile "profile_path" You can also have more than one installations of Firefox on a computer. https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles https://wiki.mozilla.org/Firefox/CommandLineOptions
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-17 18:37 +0000 |
| Message-ID | <vme80g$2j25$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181484 |
On Fri, 17 Jan 2025 10:03:26 +0100, Herbert Kleebauer wrote : >> The beauty of using any given web browser for only one thing is that one >> thing is set up perfectly within that browser, for privacy & security. > > That's like using a different video player for each type of videos. Hi Herbert, I respect your acumen. I respect your philosophy. I listen to you. I agree with you always. That doesn't mean I use the %PATH% just because you do things that way - but I UNDERSTAND *why* you use the %PATH% to run all your batch files - just as you UNDERSTAND *why* I use the AppPaths key. We can each fully UNDERSTAND each other, even as we philosophically sway in different ways. Here you suggest, apparently, different bookmarks files, one per browser, which is how most people do things so I UNDERSTAND that. But I suggest a single bookmarks file for all web browsers, which is simply a different philosophy - which I'm sure you UNDERSTAND the logic of, right? > And you have to install the updates for all your browsers. Back to the problem at hand, you are the only one who suggested a solution to the problem because you are the only one who UNDERSTOOD the problem set. I love that your suggestions are applicable to billions of people. And not just to me. That's the best kind of solution - which EVERYONE can easily benefit from! Your suggestion was a huge step in resolution, which everyone can use of: a. firefox about:config b. view_source.editor.external (change from the default of false to true) c. view_source.editor.path C:\path\to\your\favorite\editor.exe d. firefox file:///C:/sys/bookmarks.html e. Control+u I *love* that everyone can use your suggested solution to their advantage! With the bookmarks.html file bookmarked in Firefox, users can, in a single step of "control+u", edit their bookmark file without needing to use either the %PATH% or the AppPaths registry key. That's fantastic! Thank you. > You can create as many profiles you like in Firefox. Again, you UNDERSTOOD the reason for using many browsers is they're each set up perfectly for one task (or web site) and one task (or site) only! <https://i.postimg.cc/fT2J40RD/windows-cascade-menu.jpg> There is no cross-pollination of cookies, for example, which is a huge boon to privacy. The disadvantage, of course, is they each can use different bookmarks syntax, which I get around by having a single bookmarks.html file. Partly seriously & yet mostly in jest, might I philosophically muse by contorting your words (to make the same point you were trying to make) of "That's like using a different _bookmark file_ for each web browser." "And you have to _manage separate bookmarks_ for all your browsers. My point of the jest above is that I could just as well philosophically muse that having more than one bookmarks file (one for each browser) is like having more than one video player (one for each type of video). We both understand the philosophy of using one browser (in this case, Firefox) in ways that it can "play different types of tasks". Doing a variety of tasks, after all, is why EVERYONE on the planet has a web browser on every platform - which is a feat few apps can achieve. However... as I'm sure you quite well UNDERSTAND, having any one browser do multiple things, opens the user up to privacy-loss cross pollination. The reason I use multiple browsers is to hinder that privacy-loss cross pollination, but reading ahead, I see you UNDERSTOOD that problem set too! > Make one [firefox] your default profile and start the others by: > firefox.exe -profile "profile_path" This is a *great* idea, since it (in theory) has 2 (3?) huge advantages! 1. It "should" prevent that privacy-loss cross pollination, right? 2. It also means I only need to learn one web browser's peculiarities. 3. In addition, I might even get away with ONE master bookmarks.html! > You can also have more than one installations of Firefox on a computer. > https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles > https://wiki.mozilla.org/Firefox/CommandLineOptions Thank you for UNDERSTANDING the problem set, which addresses (I think) the three main issues everyone should have with the use of browsers on Windows. 1. It addresses the privacy-loss cross-pollination problem (I think). 2. It means we only have to learn peculiarities of just firefox alone. 3. It can be set up for a single master machine-specific bookmarks file! Given your suggestion of multiple instances of Firefox (whether via profiles or by executables) has multiple advantages, it's worth exploring. Thank you for not only understanding the problem set, but also for proposing a solution which may be simpler than the one I am currently using of multiple browsers to prevent cross pollination of privacy losses.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-01-18 14:33 +0100 |
| Message-ID | <a6ns5lxrkq.ln2@Telcontar.valinor> |
| In reply to | #181476 |
On 2025-01-17 05:28, Marion wrote: > On Thu, 16 Jan 2025 23:08:28 +0100, Carlos E.R. wrote : > > >>> For modern editing, you need some sort of HTML editor that works with >>> regular expressions - but I don't know of any user-friendly HTML editor. >> >> Just give a try to Seamonkey. It is not Firefox, it is a fork. It >> contains the old Composer that came with the ancient Netscape. >> >> After you try it, decide if you like it or not. > > Thanks for that advice to try SeaMonkey's HTML editor, which I have done. > However, I'm currently using Firefox for one thing only & that's for Vine. > > SeaMonkey is already being used for something else on my system. Hum. Weird system, but to each his own. But you can have several isolated Firefox instances by using profiles. I have not tried, but I guess that Seamonkey also has profiles [...] Yes, it does. > > Since my philosophy is each web browser does one thing and only one thing, > you can rest assured I've tried almost every web browser there ever was. > > Look here: > <https://i.postimg.cc/fT2J40RD/windows-cascade-menu.jpg> Windows browsers > > The beauty of using any given web browser for only one thing is that one > thing is set up perfectly within that browser, for privacy & security. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-01-15 09:04 -0500 |
| Message-ID | <vm8f86$2vlvs$1@dont-email.me> |
| In reply to | #181362 |
On 1/15/2025 4:20 AM, Marion wrote:
> If it takes 2 steps to do something; that's twice as much as it should;
You must be a barrel of fun as a lover and a chef. :)
> Hence, I'm trying to reduce the following interaction to a single step.
>
> STEP 1: Win+R > gvine
> STEP 2: Click on the backgrounded icon on the taskbar
>
> What I need to know, in order to reduce those two steps to one is... Why
> does Windows edit this file in the background (not foreground)?
>
> Note: It comes up in one step if I used the default editor, but I don't
> want to use Firefox as the default editor (unless Firefox has an editor?).
>
> Here's the situation... (which I would think others would also have)...
>
My approach -- just one option -- is that I have a half dozen
context menu items for all files (HKCR\*) that are like Open with
Notepad, Open with Paint Shop Pro, Open with HxD, etc. So I can
open any file in the program I want with just a right click/click.
In the rare occasions when I need the Run window, it's one
of 4 items on my Start Menu, so there's no need for hotkeys.
If you're going to edit HTML very often it makes sense to find
an HTML-specific editor with syntax highlighting at the very
least. The trouble with generic editors like vim, emacs, notepad++,
etc, is that they're really just text editors that support rudimentary
colorcoding for 50 languages. Like a 50-bit screwdriver, they don't
work very well for any particular screw.
I just tried Vim for the
first time. It looks like a relic from 1980, without even support for
non-fixed-width fonts. Really? That's your favorite editor? Few people
actually hand-code HTML anymore, but there must still be decent
editors around.
I took a look out of curiosity. At DDG, the whole first
page of results was links to online editors! It seems CoffeeCup Free is
still out there. I never tried it, but it was popular at one time.
The trouble with this kind of thing is that the reviewers don't know the
products. One site rated Notepad++ #1, with no HTML-specific functionality,
yet with some other editors they complained that there wasn't built-in
FTP. Another best-of site lists Vim and Atom along with Dreamweaver.
They rated Sublime Text #1 for customizability, even though it, too,
is only a general editor. Putting Dreamweaver on the same list with the
others is like listing MSPaint with Photoshop. Only someone who's never
edited photos would do that.
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 18:09 +0000 |
| Message-ID | <vm8tks$1d1j$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181369 |
On Wed, 15 Jan 2025 09:04:34 -0500, Newyana2 wrote : >> If it takes 2 steps to do something; that's twice as much as it should; > You must be a barrel of fun as a lover and a chef. :) It's true. I'm boring. But at least I'm boringly efficient on a PC. :) The whole point of computers is everything should be a single step. Our job is to know Windows & editing files well enough for us to do that. With gvim, the use of regular expressions becomes finger memory over time. Plus it works on all platforms, especially those Linux or Windows based. With regular expressions, your hands do all the editing. Not the mouse. >> Hence, I'm trying to reduce the following interaction to a single step. >> STEP 1: Win+R > gurl >> STEP 2: Click on the backgrounded icon on the taskbar > My approach -- just one option -- is that I have a half dozen > context menu items for all files (HKCR\*) that are like Open with > Notepad, Open with Paint Shop Pro, Open with HxD, etc. So I can > open any file in the program I want with just a right click/click. Good idea. I have something similar for editing images using an editor that isn't the default editor. For example, Irfanview is the default viewer, but sometimes I want to edit images in a different editor so I've added similar context menu additions for JPEG/GIF/BMP/etc style files. I only generally define context menus once or twice in the long life of a PC (unless I install & delete paintshoppro which screws up the menus). I think I last used either "Default Programs Editor" or "ecmenu" or NirSoft's context-menu editing tools (of which there are too many to remember off hand so I just list the URLs for each in my sys log). <http://defaultprogramseditor.com> <https://www.techspot.com/guides/1670-windows-right-click-menu/> <https://shellfix.nirsoft.net/context_menu_list.html> > In the rare occasions when I need the Run window, it's one > of 4 items on my Start Menu, so there's no need for hotkeys. It's a good idea no matter how you reduce all tasks to a single step. Everyone reduces common actions to a single click in different ways. Some (like Herbert) add batch files to a batch folder in the path. Others (like me) add runbox commands to the system registry. Both approaches to editing in a single step are supported by Microsoft. My philosophy is that if a person even once in the entire lifetime of a Windows PC has to laboriously LOOK or SEARCH for a file or editor... ... then they failed to understand what the purpose of a computers is. :) > If you're going to edit HTML very often it makes sense to find > an HTML-specific editor with syntax highlighting at the very > least. The trouble with generic editors like vim, emacs, notepad++, > etc, is that they're really just text editors that support rudimentary > colorcoding for 50 languages. Like a 50-bit screwdriver, they don't > work very well for any particular screw. 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 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. I have bad eyes, so my Windows gvim editing windows have huge fonts. I forgot how I set that up but you can change the font & size. I think maybe I used "Edit > Select Font" in the gvim editing window. > That's your favorite editor? In the olden days, every computer was guaranteed to have ex on it, so you first learned ex and then you hoped that the customer also had vi set up. You couldn't bank on any other editor being there when you did support. And, in those days, there was no such thing as a "floppy disk" or "USB". You were on your own. Once you learned how to use vi, it hasn't changed in 45 years. One editor does everything on every platform using the same expressions. That's pretty efficient, isn't it? > Few people > actually hand-code HTML anymore, but there must still be decent > editors around. Philosophically, there should be only one bookmark file per person. It's a text file. With an HTML (or HTM) extension. It contains only three things essentially: 1. The <A HREF=xxx>foo</A> link itself 2. White-space padding (such as <P> & <HR>) 3. Descriptive text (which is displayed verbatim) That's it. It's not fancy HTML. A powerful text editor with regular expressions handles that easily. > I took a look out of curiosity. At DDG, the whole first > page of results was links to online editors! It seems CoffeeCup Free is > still out there. I never tried it, but it was popular at one time. I pine for a decent (and powerful) HTML editor that works on all platforms. Philosophically, I'm only one person, so I only need one bookmark file. Not one per browser. Not one per computer. One bookmark file per person. The problem is a mix of platforms, bookmarks and multiple browsers. Each web browser should use the same bookmark file. Not a copy. The same file. But they don't. There should be only a single text bookmark file on Linux. There should be only a single text bookmark file on Windows. There should be only a single text bookmark file on Android. etc. It's the same bookmark file - just synced from the master file. > The trouble with this kind of thing is that the reviewers don't know the > products. One site rated Notepad++ #1, with no HTML-specific functionality, > yet with some other editors they complained that there wasn't built-in > FTP. I agree with you which is why 'comp.editors' was included on this thread. Even gvim can run HTML conversion - but most people don't know about it. Even I don't use it, but I know it's there. Let me look for it. OK. Found it. Let's try it on this recipe (since you disparage my cooking anyway!) :) Recipe for Italian Vinaigrette 1/2 cup red wine vinegar 1/4 cup balsamic vinegar 1/4 cup lemon juice 4 cloves garlic, minced 2 teaspoons Dijon mustard 1 teaspoon dried oregano 1 teaspoon dried basil 1/2 teaspoon dried thyme 1/4 teaspoon salt 1/8 teaspoon black pepper 1. Paste that recipe.txt text file into gvim (white space included) 2. gvim:Syntax > Convert to HTML 3. Save it as recipe.html (or as recipe.htm) 4. Firefox:File > Open File > recipe.html It displays perfectly (with the desired white space in its proper place. Now edit it in Firefox: 5. Firefox:Control+U I just tried it on that recipe text file and it worked for me. But I like regular expressions since my hands do all the work. Not the mouse. > Another best-of site lists Vim and Atom along with Dreamweaver. > They rated Sublime Text #1 for customizability, even though it, too, > is only a general editor. Putting Dreamweaver on the same list with the > others is like listing MSPaint with Photoshop. Only someone who's never > edited photos would do that. 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. Even without the power of regular expressions, if it can do single-click macros (like Notepad can do with its shortcuts.xml file), that'd be OK.
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-01-15 13:49 -0500 |
| Message-ID | <vm8vur$32j3l$1@dont-email.me> |
| In reply to | #181381 |
On 1/15/2025 1:09 PM, Marion 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. I don't know why I might
use them editing HTML. 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.
> 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? If that's the case then I
can see why you want only a plain editor.
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-15 20:03 +0000 |
| Message-ID | <vm949l$ee7$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181387 |
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="&#151;" />
<Action type="3" message="1625" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam="&" />
<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).
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-01-15 16:00 -0500 |
| Message-ID | <vm97jb$342th$1@dont-email.me> |
| In reply to | #181389 |
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!
>
> <!-- comment text -->
> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
> <Action type="3" message="1601" wParam="0" lParam="0"
> sParam="&#151;" />
> <Action type="3" message="1625" wParam="0" lParam="0" sParam="" />
> <Action type="3" message="1602" wParam="0" lParam="0" sParam="&" />
> <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.
>
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?
> <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
>
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. :)
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-16 02:16 +0000 |
| Message-ID | <vm9q5k$lu$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181391 |
On Wed, 15 Jan 2025 16:00:08 -0500, Newyana2 wrote :
>> 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.
Oh. I apologize. Allow me to briefly explain what Notepad++ does well.
Here's the problem that we're trying to solve with that shortcuts.xml file.
1. Let's say you copied and pasted from, oh, say five different web sites.
2. Lot's of "strange" & "inconsistent" characters will have been pasted.
3. Pasting the results into Notepad++ & running the macro cleans it all up.
Some of the crazy things that get pasted from web to text are...
a. If there are inconsistent styles of quotes, the macro fixes all that.
b. If there are special characters (e.g., umlauts), the macro fixes that.
c. If there are unprintable characters, the macro fixes that too.
Each time you run into something strange, you add a new macro to fix it.
That way you never have to repeat the same effort ever again.
You just make the macro longer and longer every time you find a problem.
All you do to fix *any* set of characters from web page cut and pastes is
A. Win+R > n (this starts Notepad++)
B. Control+V (this pastes your web copies into Notepad++)
C. Control+A (this selects all the text that was copied to Notepad++)
D. Control+B (this runs the shortcuts.xml macro on the selected set
In that quick sequence, you can clean up pastes of multiple web pages where
all sorts of hidden characters, strange characters & inconsistently
punctuation can be fixed.
A simple example is some web pages use "curly quotes" (sometimes called
"smart quotes") and some web pages don't use those fancy quotes - but you
want your final result to be consistent so you fix it to the same type.
Another example are bullet items. Another example is hidden text that the
web page insert for trademarks. Another example are strange characters such
as the "ae" character or the long "--" character (there are many of these).
The Notepad++ single-step macro cleans it all up in a single step.
What could be better than that?
>> 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
>>
>
> Again, you lost me. I don't see a template. Weren't
> we talking about editing HTML?
My apologies. The TEMPLATE is the two lines inside of the text file.
Those two lines are placeholder lines. They're the template.
So the HTML template is teh two lines above, one for Amazon, one for Vine.
When you want to add an item, you munge those two lines without destroying
them, so you first make a copy of those two lines with "mark a" and then
you drop down two lines and "yank to a" and then "paste" what you yanked.
In gvim, that sequence is "ma" & "jj" & y'a" and then "p".
a. ma => mark a
b. jj => drop down two lines
c. y'a => yank to a
d. p => paste the result
At that point, you have FOUR lines. Two for the original HEML template.
And two for the copy of that original template set of HTML lines.
At that point, you munge the SECOND SET of lines to the links you want.
FROM:
<A HREF=https://amazon.com/s?k=foo+bar>amazon foo bar</A><P>
<A HREF=https://amazon.com/vine/vine-items?search=foo%20bar>vine foo bar</A>
TO:
<A HREF=https://amazon.com/s?k=laptop+pc>amazon laptop pc</A><P>
<A HREF=https://amazon.com/vine/vine-items?search=laptop%20pc>vine laptop pc</A>
Now you have clickable links to run the desired searches.
In short, you did the following:
a. You created a two-line template
b. Then you copied that template & used regular expressions on the copy
c. The result is two lines that did something you wanted to be a link
>> <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>
>
>> 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
Yeah. I think most people would like a bm.bat file which just asked for
what URL they wanted to go to and what they wanted to call it.
C:\> bm.bat
What is the URL please?
What do you want to call it?
If you gave it the following two answers, it would add to the bm.htm file:
What is the URL please?
https://www.midomi.com/
What do you want to call it?
hum songs to find them
The resulting bookmarks.html file would have a new line of the following:
<A HREF=https://www.midomi.com/>hum songs to find them</A><P>
> 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. :)
I don't disagree but I never learned VBS.
So for me it would have to be a batch file doing the following, which I
think billions of Windows users would be able to use because they need it.
bm.bat
Q: What is the URL?
Q: What do you want to call it?
If you enter in for the URL, oh, say:
"https://ispdesign.ui.com/"
And if you enter in what to call it of, oh, say:
"design antenna"
Then the resulting bookmarks file should have this added line to it:
<A HREF=https://ispdesign.ui.com/>design antenna</A><P>
Wouldn't almost everyone in the world want that bm.bat to create a single
system-wide custom bookmarks file that is browser independent?
[toc] | [prev] | [next] | [standalone]
Page 1 of 5 [1] 2 3 4 5 Next page →
Back to top | Article view | alt.comp.os.windows-10
csiph-web