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 | 4 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 5 of 5 — ← Prev page 1 2 3 4 [5]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-01-16 15:05 +0100 |
| Message-ID | <1agn5lxscv.ln2@Telcontar.valinor> |
| In reply to | #181369 |
On 2025-01-15 15:04, Newyana2 wrote: > 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. Vim is certainly ancient (it is a clone of 'vi'), but it is actively developed. It is designed for Linux/Unix (all linuxes and unixes have it by default), and it has tons of features, but you have to be accustomed to it in order to profit from them. It is a plain text editor, not a word processor. It makes no use of proportional fonts, that would be ridiculous. Many programmers use and love it, and will have you shot if you dare criticizing it :-P -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-01-16 11:08 -0500 |
| Message-ID | <vmbatb$3ior5$1@dont-email.me> |
| In reply to | #181419 |
On 1/16/2025 9:05 AM, Carlos E.R. wrote:
> On 2025-01-15 15:04, Newyana2 wrote:
>> 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.
>
> Vim is certainly ancient (it is a clone of 'vi'), but it is actively
> developed. It is designed for Linux/Unix (all linuxes and unixes have it
> by default), and it has tons of features, but you have to be accustomed
> to it in order to profit from them.
>
> It is a plain text editor, not a word processor. It makes no use of
> proportional fonts, that would be ridiculous. Many programmers use and
> love it, and will have you shot if you dare criticizing it :-P
>
Indeed. People can be quite irrational in their attachment to
the past, like a man who insists on making a campfire to cook
his dinner because "that's how we did it growing up". But it
gets more irrational when people make excuses to claim that
their campfire works better than a stove. The Internet is loaded
with such editors, that are deliberately designed not to have
any conveniences. In fact, I've noticed a new fashion of white
on black GUI, trying to make all windows look like console. But
I don't know if it's the old men or the kids who are promoting
that fad. (My own cmd.exe is set to a white window with dark
brown text. There's no actual reason that it needs to look like
a DOS screen out of 1990.)
Forcing only fixed-width fonts, though, is something I've never
seen before. I use Notepad for plain text editing and my own
editor for HTML. In both I use Verdana because it's clear for
reading and wide enough to easily see typos. Neither plain text
nor code requires fixed-width.
I'm imaging two cranky old men. One proclaims that he will
only eat food from a campfire. The other teases him for using
matches instead of rubbing sticks together.
None of this has anything to do with actually coding HTML,
which would make sense to do in an editor designed for the job.
Arlen is talking about writing automations in gvim to convert
UTF-8 to ANSI text, or writing BAT files to automate editing a
simple HTML file. So our two campfire buddies are not even
actually cooking their dinner. They just like to feel rustic. :)
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2025-01-16 23:03 +0100 |
| Message-ID | <4aco5lxj6j.ln2@Telcontar.valinor> |
| In reply to | #181427 |
On 2025-01-16 17:08, Newyana2 wrote: > On 1/16/2025 9:05 AM, Carlos E.R. wrote: >> On 2025-01-15 15:04, Newyana2 wrote: >>> 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. >> >> Vim is certainly ancient (it is a clone of 'vi'), but it is actively >> developed. It is designed for Linux/Unix (all linuxes and unixes have >> it by default), and it has tons of features, but you have to be >> accustomed to it in order to profit from them. >> >> It is a plain text editor, not a word processor. It makes no use of >> proportional fonts, that would be ridiculous. Many programmers use and >> love it, and will have you shot if you dare criticizing it :-P >> > > Indeed. People can be quite irrational in their attachment to > the past, like a man who insists on making a campfire to cook > his dinner because "that's how we did it growing up". But it > gets more irrational when people make excuses to claim that > their campfire works better than a stove. The Internet is loaded > with such editors, that are deliberately designed not to have > any conveniences. In fact, I've noticed a new fashion of white > on black GUI, trying to make all windows look like console. But > I don't know if it's the old men or the kids who are promoting > that fad. (My own cmd.exe is set to a white window with dark > brown text. There's no actual reason that it needs to look like > a DOS screen out of 1990.) > > Forcing only fixed-width fonts, though, is something I've never > seen before. Coding has to be done with monospace fonts. If you are not, then you are doing it wrong™. > I use Notepad for plain text editing and my own > editor for HTML. In both I use Verdana because it's clear for > reading and wide enough to easily see typos. Neither plain text > nor code requires fixed-width. > > I'm imaging two cranky old men. One proclaims that he will > only eat food from a campfire. The other teases him for using > matches instead of rubbing sticks together. > > None of this has anything to do with actually coding HTML, > which would make sense to do in an editor designed for the job. > Arlen is talking about writing automations in gvim to convert > UTF-8 to ANSI text, or writing BAT files to automate editing a > simple HTML file. So our two campfire buddies are not even > actually cooking their dinner. They just like to feel rustic. :) You can dislike vim, but there are millions of happy vi(m) users, because it is actually very powerful for plain text tasks like coding. Many of those millions are actually kids. And no, I am not a vim user. I some times *have* to use it, though, so I know the minimal. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Marion <marion@facts.com> |
|---|---|
| Date | 2025-01-24 01:07 +0000 |
| Message-ID | <vmup4o$14qf$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #181362 |
For everyone to benefit who cares about creating a search HTML bookmark that
will create clickable links to any desired search engines, below is my latest
attempt at appending to a dual global Amazon/Vine search bookmarks file.
Note that the syntax for a purely Amazon search is the following:
<A HREF=https://amazon.com/s?k=gas+camp+stove>[amazon] gas camp stove</A><P>
Note that the syntax for any specific Amazon Vine search is the following:
<A HREF=https://amazon.com/vine/vine-items?search=gas%20camp%20stove>[vine] gas camp stove</A><P>
It was a pain getting the angle brackets escaped in the Windows batch
file but that was nothing in effort compared to the way Amazon does things
where there are plus signs ("+") and %20 characters in real search terms.
Specifically, it was most miserable getting the Vine %20 to be escaped.
Having figured it out today, the advantage of me kind-heartedly generously
posting my results for you to benefit from is that you can munge what I
provide below to fit any search engine terms that you need to add for
your own global bookmarks search file (which everyone should have).
That makes all my effort writing this leveraged to everyone out there.
As always, please test & improve so that everyone benefits from every post.
@echo off
REM addvine.bat adds amazon & vine search links to a global Vine html file
setlocal
setlocal EnableDelayedExpansion
REM #1 set your favorite text HTML editor
REM set editor=notepad++
set editor=gvim
REM #2 set the location of your global vine search file
set vinefile=C:\path\to\your\global\search\file\vine.htm
echo.Global vine HTML search file is %vinefile%
:input_item
echo.Enter search item: ; for example, gas camp stove
set /p "item="
:replace_spaces_with_+
set "amazon_item=%item: =+%"
:replace_spaces_with_%20
set "vine_item="
for %%a in (%item%) do (
if "%%a"=="" (
set "vine_item=!vine_item!%%20"
) else (
if defined vine_item (
set "vine_item=!vine_item!%%20"
)
set "vine_item=!vine_item!%%a"
)
)
echo Original item: %item%
echo Amazon item: %amazon_item%
set vine_item=!vine_item!
echo Vine item: %vine_item%
echo.Adding... "%amazon_item%" and "!vine_item!" to %vinefile%
:append_html
echo.^<A HREF=https://amazon.com/s?k=%amazon_item%^>[amazon] %item%^</A^>^<P^> >> %vinefile%
echo.^<A HREF=https://amazon.com/vine/vine-items?search=%vine_item%^>[vine] %item%^</A^>^<P^> >> %vinefile%
:edit_html
echo Do you want to edit the global vine HTML file? [y/n]
set /p "choice="
if /i "%choice%"=="y" (
echo Editing file: %vinefile%
%editor% %vinefile%
) else if /i "%choice%"=="n" (
echo File editing canceled.
)
pause
endlocal
--
[toc] | [prev] | [standalone]
Page 5 of 5 — ← Prev page 1 2 3 4 [5]
Back to top | Article view | alt.comp.os.windows-10
csiph-web