Deutsch   English   Français   Italiano  
<20240915084959.405@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sun, 15 Sep 2024 15:54:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20240915084959.405@kylheku.com>
References: <uu54la$3su5b$6@dont-email.me>
 <20240826083330.00004760@gmail.com> <vaises$2k7o6$2@dont-email.me>
 <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
 <vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
 <vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
 <vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me>
 <vaq8hk$1qbm$1@dont-email.me> <varc7h$b7bo$1@dont-email.me>
 <vc3g5l$1c8v8$1@dont-email.me> <vc3lba$1d9jq$1@dont-email.me>
 <iclFO.48229$_o_3.8008@fx17.iad>
Injection-Date: Sun, 15 Sep 2024 17:54:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="defb9cd38f0e6f950253ab26a929feca";
	logging-data="2368286"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+PfSCwi17HiHnW9PfL4GR6CDzbDoFkk6A="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:C9OhbeqrRVA2qMt8gVNHQnJ+euE=
Bytes: 2393

On 2024-09-14, Scott Lurndal <scott@slp53.sl.home> wrote:
> LDO: >> Vim is only good for text-editing, though.
>
>> 
> Janis:> You have obviously no clue.
>
> Janis is correct, you have no clue
>
> $ man vim | grep -i binary
>
>        -b          Binary mode.  A few options will be set that makes it possible to edit a binary or executable file.

I use Vim for dynamically syntax-coloring code served by CGIT.

You heard right.

When CGIT presents code out of a repository, it calls a script
in order to convert it to colorized HTML. That script can be customized.

Mine uses expect to run Vim to load the file, set a few settings, and
invoke the :TOhtml command to dump HTML.

That is then post-proocessed to remove the inline style sheet. The web
page it gets embedded into has its own CSS rules for the Vim-generated
HTML tags.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca