What is Nostr?
Jim Winstead /
npub1ksa…k3c9
2024-03-19 00:55:24
in reply to nevent1q…60fl

Jim Winstead on Nostr: npub1jpp36…yu59l The syntax highlighting I use on my blog is some very old ...

npub1jpp36eeycvlkkdy4d4l4lgswvf8jtdare5vly0w0sk7rc39pzgrqlyu59l (npub1jpp…u59l) The syntax highlighting I use on my blog is some very old JavaScript code that is based on the GNU Source-Highlight package. The language files use the Boost Regex format and it was all converted to JavaScript structures by some Perl code. I spent an afternoon trying to update it to the latest syntax files but hit some roadblocks. (But the GNU package hasn’t had a release for four years, either.)

There’s a Go package (chroma) that is based on the Pygments lexers but has converted them to an XML format, that might be easier to deal with. There must be some libraries for doing regex format conversion out there, if that’s necessary.
Author Public Key
npub1ksanydqfgdgeg7hcwxhw09wcjeaz5mhnkyl4lharu38fakfrjrqs26k3c9