<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code on Plex Live</title><link>https://plex-live-example-site-e00db0.gitlab.io/tag/code/</link><description>Recent content in Code on Plex Live</description><generator>Hugo</generator><language>en-IE</language><managingEditor>author@example.org (Sample Author)</managingEditor><webMaster>author@example.org (Sample Author)</webMaster><lastBuildDate>Wed, 18 Feb 2026 14:15:00 +0100</lastBuildDate><atom:link href="https://plex-live-example-site-e00db0.gitlab.io/tag/code/index.xml" rel="self" type="application/rss+xml"/><item><title>Code Highlighting</title><link>https://plex-live-example-site-e00db0.gitlab.io/p/2026-02-18-code-highlighting/</link><pubDate>Wed, 18 Feb 2026 14:15:00 +0100</pubDate><author>author@example.org (Sample Author)</author><guid>https://plex-live-example-site-e00db0.gitlab.io/p/2026-02-18-code-highlighting/</guid><description>&lt;p&gt;Hugo can highlight fenced code blocks during the build. The example site enables line numbers in &lt;code&gt;hugo.toml&lt;/code&gt;, while the theme keeps the surrounding typography simple.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#c9c9c9;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;display:grid;"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&lt;/span&gt;&lt;span&gt;&lt;span style="color:#bc74c4"&gt;package&lt;/span&gt; main
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;2&lt;/span&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;3&lt;/span&gt;&lt;span&gt;&lt;span style="color:#bc74c4"&gt;import&lt;/span&gt; &lt;span style="color:#82cc6a"&gt;&amp;#34;fmt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex; background-color:#3d4148"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;4&lt;/span&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;5&lt;/span&gt;&lt;span&gt;&lt;span style="color:#7fbaf5"&gt;func&lt;/span&gt; &lt;span style="color:#57c7ff"&gt;main&lt;/span&gt;&lt;span style="color:#56b6c2"&gt;()&lt;/span&gt; &lt;span style="color:#56b6c2"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;6&lt;/span&gt;&lt;span&gt; message &lt;span style="color:#bc74c4"&gt;:=&lt;/span&gt; &lt;span style="color:#82cc6a"&gt;&amp;#34;Plex Live is ready.&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;7&lt;/span&gt;&lt;span&gt; fmt&lt;span style="color:#56b6c2"&gt;.&lt;/span&gt;&lt;span style="color:#57c7ff"&gt;Println&lt;/span&gt;&lt;span style="color:#56b6c2"&gt;(&lt;/span&gt;message&lt;span style="color:#56b6c2"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex; background-color:#3d4148"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;8&lt;/span&gt;&lt;span&gt;&lt;span style="color:#56b6c2"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Inline code, such as &lt;code&gt;hugo server&lt;/code&gt;, is styled separately from larger blocks. That makes short commands easy to spot inside a paragraph.&lt;/p&gt;</description></item></channel></rss>