Terence Eden on Nostr: Another lazy #WordPress question. I use #MarkDown to write my posts. Code is written ...
Another lazy #WordPress question.
I use #MarkDown to write my posts.
Code is written as:
```python
print("hello")
```
That's automatically converted to:
<pre><code class="language-python">…
I use HighlightJS to do syntax highlighting. But that pulls in lots of JS which I'd rather avoid.
Is there a decent plugin for doing *sever-side* rendering of code highlighting which *doesn't* require blocks / Gutenberg?
I know I can try a few out, but I'd like to hear people's *personal* experiences.
Published at
2024-04-09 13:18:42Event JSON
{
"id": "7f1216499216358a52a6157ae7aea00eb5ee6a27be34db2721826f6238b13f05",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1712668722,
"kind": 1,
"tags": [
[
"t",
"wordpress"
],
[
"t",
"markdown"
],
[
"proxy",
"https://mastodon.social/users/Edent/statuses/112241457412849532",
"activitypub"
]
],
"content": "Another lazy #WordPress question.\n\nI use #MarkDown to write my posts.\n\nCode is written as:\n\n```python\nprint(\"hello\")\n```\n\nThat's automatically converted to:\n\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003e…\n\nI use HighlightJS to do syntax highlighting. But that pulls in lots of JS which I'd rather avoid.\n\nIs there a decent plugin for doing *sever-side* rendering of code highlighting which *doesn't* require blocks / Gutenberg?\n\nI know I can try a few out, but I'd like to hear people's *personal* experiences.",
"sig": "a7cc192aba5b4d8b5d6d866abdb26f1dc3b70a2ecbef48de92d5b87c3d4e86f692925dd1bc41377d39c20d06447f220d086e25b80960cdd8cad0b2ac5dc82f0e"
}