feat: VS Code-like syntax highlighting for code blocks

Code blocks in documents are now highlighted server-side with Pygments
according to their language (Markdown fences and TinyMCE code samples),
using VS Code "Dark+" colours in the viewer and a light variant in the
print view. A language label is shown next to the copy button. Blocks
marked as plain text/Cisco config stay unchanged; blocks without a
language are only coloured when the language is detected confidently.
Works offline, no CDN needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-12 12:17:25 +02:00
1 parent 8458cbe8cf
commit f7e1e21c24
6 files changed
+130 -1

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ dependencies = [
"pypdf>=5,<7",
"tabulate>=0.9,<1",
"bleach[css]>=6.2,<7",
"Pygments>=2.15,<3",
"markdown>=3.7,<4",
"django-tinymce>=5,<6",
"pillow>=10,<13",