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.
Published at
2024-03-19 00:55:24Event JSON
{
"id": "728ad6dbdac7564c0f8090729f067c5794fb34c8e5a6f4278dbacb0ca6adffb6",
"pubkey": "b43b3234094351947af871aee795d8967a2a6ef3b13f5fdfa3e44e9ed92390c1",
"created_at": 1710809724,
"kind": 1,
"tags": [
[
"p",
"90431d6724c33f6b34956d7f5fa20e624f25b7a3cd19f23dcf85bc3c44a11206",
"wss://relay.mostr.pub"
],
[
"p",
"e653eb60b2db5edf906d354c2825bf00a80dfab1b1766cd97805155e8fcc0db3",
"wss://relay.mostr.pub"
],
[
"e",
"8998553f43623c1d9ccf708813d5005e0e0faf380b4bab7922d1d1f6fad32abb",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mefi.social/users/jimw/statuses/112119626106439326",
"activitypub"
]
],
"content": "nostr:npub1jpp36eeycvlkkdy4d4l4lgswvf8jtdare5vly0w0sk7rc39pzgrqlyu59l 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.)\n\nThere’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.",
"sig": "9a6969d834b5692d70f727fe05b721a882041134ecbc7803cf0dda868ca721ff63fa203e688f8e78c27ea763a16c6a48215aec323cf2c5f6a5c3e5212041ea50"
}