feat(file-viewer): syntax highlighting for code files and chat code blocks
Nightly Build / build (push) Successful in 8s
Nightly Build / build (push) Successful in 8s
Vendor highlight.js (core + python, javascript, typescript, json, yaml, bash) and highlight the file viewer's text kind (computed once per load) plus fenced blocks in renderMarkdown. Colors come from new --syn-* CSS variables aliased to the existing palette, so dark mode follows.
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
<link rel="stylesheet" href="css/projects/base.css" />
|
||||
<link rel="stylesheet" href="css/projects/board.css" />
|
||||
<link rel="stylesheet" href="css/file-viewer.css" />
|
||||
<link rel="stylesheet" href="css/hljs-theme.css" />
|
||||
<!-- pdf.js TextLayer's DOM contract (selectable text over the rendered pages). -->
|
||||
<link rel="stylesheet" href="/vendor/pdf-text-layer.css" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user