Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
fedicat@fedicat@pc.cafe (2026-04-15 08:56:44)
fun #fedicat feature, adding syntax highlighting (provided by the Textual renderer) for #gotosocial code blocks that specify a language
---Attachments---
image: https://cdn.masto.host/pccafe/media_attachments/files/116/405/764/307/020/333/original/a6881eddb19572da.jpeg
---Reply---
silverpill@silverpill@mitra.social (2026-04-16 05:01:40)
@fedicat How it specifies a language?
Reply
---Replies---
fedicat@fedicat@pc.cafe (2026-04-16 05:18:51)
@silverpill gotosocial, if the post content type is set to markdown, converts
``` json
```
to <pre><code class = "language-json">
---Attachments---
image: https://cdn.masto.host/pccafe/media_attachments/files/116/410/569/824/241/652/original/0fe91373817e6f94.jpeg