* Re: [PATCH] TODO: add an item for Python pygments
2019-10-08 21:53 14% ` [PATCH] TODO: add an item for Python pygments Eric Wong
@ 2019-10-08 22:00 7% ` Konstantin Ryabitsev
0 siblings, 0 replies; 2+ results
From: Konstantin Ryabitsev @ 2019-10-08 22:00 UTC (permalink / raw)
To: Eric Wong; +Cc: Alyssa Ross, meta, Amitai Schleier
On Tue, Oct 08, 2019 at 09:53:21PM +0000, Eric Wong wrote:
> Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> > On Thu, Sep 26, 2019 at 01:59:53AM +0000, Eric Wong wrote:
> > > I had my reservations about relying on highlight.pm; and this
> > > confirms them, unfortunately :< Oh well...
> >
> > I was also unable to find highlight.pm anywhere outside of Debian packages.
> >
> > > I wonder if pygments or any other code highlighting packages are
> > > more stable. We'd need to use a pipe or socket to interact with
> > > pygments or anything w/o Perl bindings.
> >
> > I'd be quite happy to be able to use pygments!
>
> Can you write the Python glue? :>
I think it's pretty clear to anyone who's looked at my projects that I'm
a "sysadmin who also writes python code when he needs to" and not really
what one would call a "proper developer." :)
I mean, heck, almost none of my projects have any tests.
So, you don't really want my help. ;)
-K
^ permalink raw reply [relevance 7%]
* [PATCH] TODO: add an item for Python pygments
@ 2019-10-08 21:53 14% ` Eric Wong
2019-10-08 22:00 7% ` Konstantin Ryabitsev
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2019-10-08 21:53 UTC (permalink / raw)
To: Konstantin Ryabitsev; +Cc: Alyssa Ross, meta, Amitai Schleier
Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> On Thu, Sep 26, 2019 at 01:59:53AM +0000, Eric Wong wrote:
> > I had my reservations about relying on highlight.pm; and this
> > confirms them, unfortunately :< Oh well...
>
> I was also unable to find highlight.pm anywhere outside of Debian packages.
>
> > I wonder if pygments or any other code highlighting packages are
> > more stable. We'd need to use a pipe or socket to interact with
> > pygments or anything w/o Perl bindings.
>
> I'd be quite happy to be able to use pygments!
Can you write the Python glue? :>
-----------8<----------
Subject: [PATCH] TODO: add an item for Python pygments
Pygments seems to be a popular highlighter and widely available,
so we'll be providing support for that at some point...
Link: https://public-inbox.org/meta/20190926131836.GB10467@chatter.i7.local/
Link: https://public-inbox.org/meta/874l0zt7sd.fsf@alyssa.is/
---
TODO | 3 +++
1 file changed, 3 insertions(+)
diff --git a/TODO b/TODO
index 93054bb3..566e0a40 100644
--- a/TODO
+++ b/TODO
@@ -115,3 +115,6 @@ all need to be considered for everything we introduce)
* support searching based on `git-patch-id --stable` to improve
bidirectional mapping of commits <=> emails
+
+* pygments support - via Python script similar to `git cat-file --batch'
+ to avoid startup penalty. pygments.rb (Ruby) can be inspiration, too.
^ permalink raw reply related [relevance 14%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-09-24 20:05 [PATCH] hlmod: update for highlight 3.51 API change Alyssa Ross
2019-09-26 1:59 ` Eric Wong
2019-09-26 13:18 ` Konstantin Ryabitsev
2019-10-08 21:53 14% ` [PATCH] TODO: add an item for Python pygments Eric Wong
2019-10-08 22:00 7% ` Konstantin Ryabitsev
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).