<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>source code on blog@tuan</title><link>https://chidokun.github.io/hugo-blog-tuan/tags/source-code/</link><description>Recent content in source code on blog@tuan</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 blog@tuan. Content released under CC BY-SA 4.0.</copyright><lastBuildDate>Mon, 18 May 2026 11:00:00 +0700</lastBuildDate><atom:link href="https://chidokun.github.io/hugo-blog-tuan/tags/source-code/index.xml" rel="self" type="application/rss+xml"/><item><title>Syntax Highlighting at Build Time</title><link>https://chidokun.github.io/hugo-blog-tuan/2026/05/syntax-highlighting-at-build-time/</link><pubDate>Mon, 18 May 2026 11:00:00 +0700</pubDate><guid>https://chidokun.github.io/hugo-blog-tuan/2026/05/syntax-highlighting-at-build-time/</guid><description>&lt;p class="lead"&gt;Every code block on this site was coloured before the HTML ever left the build&#10;machine. The browser receives &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; elements that already carry their classes,&#10;and the palette is nothing but CSS variables — so switching between light and dark&#10;recolours the code immediately, with nothing to re-render.&lt;/p&gt;</description></item></channel></rss>