David Bremner <[email protected]> wrote:
> Eric Wong <[email protected]> writes:
> 
> > It would be nice if the highlight API provided a way to reliably
> > map filename extensions and shebangs to the language I'm
> > highlighting.  I'm currently parsing the filetypes.conf directly
> > and it's a bit fragile:
> >
> >   
> > https://public-inbox.org/meta/36e311060dcf52bb41eed5f6a2cff38bbb2de006/s/?b=lib/PublicInbox/HlMod.pm#n31
> >
> > ikiwiki has similar code to map filename extensions (but not shebangs).
> >
> > I know this is an upstream issue, but the GitLab.com CAPTCHA is
> > an accessibility problem which prevents me from reporting
> > directly to upstream.  Thanks in advance for forwarding.
> 
> Is there an appropriate underlying highlight C++ api? libhighlight-perl
> is really just a thin wrapper on that.

AFAIK, not yet, but the CLI does it internally.  So this
wishlist item would also include providing the API for C++
users, too (I don't know C++, though).

Reply via email to