skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.22k stars 65 forks source link

Code syntax highlight? #674

Closed d47081 closed 3 months ago

d47081 commented 5 months ago

I think it would be useful and not much hard to integrate syntax highlight for common programming languages

skyjake commented 5 months ago

This is already doable using MIME hooks that look for preformatted blocks containing source code (the detection of those is an exercise left for the reader) and insert suitable ANSI color/style escapes.