lpubsppop01's site
Today I added syntax highlighting for code in diary of this site. It took some work to change the colors to match the color-scheme.
References:
- Convert Markdown to HTML with Syntax highlighting
- rehype-highlightでmarkdownにシンタックスハイライトを適用する | tamalog
- Question: How do I change the style at runtime by clicking a button · Issue #2115 · highlightjs/highlight.js
- I gave up on this method. Does writing
disabledattribute in_document.tsxcause an error?
- I gave up on this method. Does writing
- highlight.js/default.css at main · highlightjs/highlight.js
- I copied this file (and license text) to the Next.js styles directory and modified it to follow the color scheme.