<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>#syntax-highlighting posts — Ben Crowder</title>
    <link>https://bencrowder.net/blog/tag/syntax-highlighting/</link>
    <atom:link href="https://bencrowder.net/blog/tag/syntax-highlighting/feed/" rel="self" />
    <description>Feed for blog posts tagged with #syntax-highlighting.</description>
    <lastBuildDate>Sat, 04 Apr 2026 05:22:16 GMT</lastBuildDate>
    <language>en-US</language>
    <generator>https://bencrowder.net/</generator>

    <item>
      <title>I ended up tweaking my Vim syntax highlighting earlier this week (after my first post), to be more i...</title>
      <link>https://bencrowder.net/blog/2020/1030/</link>
      <guid isPermaLink="true">https://bencrowder.net/blog/2020/1030/</guid>
      <pubDate>Thu, 17 Sep 2020 12:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Ben Crowder]]></dc:creator>
      <description><![CDATA[<p>I ended up tweaking my Vim syntax highlighting earlier this week (after my <a href="https://bencrowder.net/blog/2020/1029/">first post</a>), to be more in line with what Ben had posted. Here’s what I’ve come up with so far (with the disclaimer that all of this code is internal and wasn’t written with the expectation that it would ever be seen by anyone else) (and I’m also still fairly new at writing Go and Rust):</p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-python.png" alt="syntax-python.png" title="syntax-python.png" />
        
      </figure></p>
<p>And some Rust, Go, and HTML:</p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-rust.png" alt="syntax-rust.png" title="syntax-rust.png" />
        
      </figure></p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-go.png" alt="syntax-go.png" title="syntax-go.png" />
        
      </figure></p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-html.png" alt="syntax-html.png" title="syntax-html.png" />
        
      </figure></p>
<p>These are certainly more soothing to my eyes, which was something I didn’t realize I needed. While these aren’t perfect in the least — with enough variation between languages to look almost like entirely different color themes, though I think I see that as a feature and not a bug — I’m happy with the tweaks for now and plan to stick with them.</p><hr class="feed-extra" style="margin-top: 48pt;" /><p class="feed-extra feed-mail"><a href="mailto:ben.crowder@gmail.com?subject=Re%3A%20I ended up tweaking my Vim syntax highlighting earlier this week (after my first post), to be more i...">Reply via email</a></p>]]></description>
    </item>
    <item>
      <title>Over the weekend I read Ben Kuhn’s post on syntax highlighting and thought the idea sounded intrigui...</title>
      <link>https://bencrowder.net/blog/2020/1029/</link>
      <guid isPermaLink="true">https://bencrowder.net/blog/2020/1029/</guid>
      <pubDate>Mon, 14 Sep 2020 12:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Ben Crowder]]></dc:creator>
      <description><![CDATA[<p>Over the weekend I read Ben Kuhn’s post on <a href="https://www.benkuhn.net/syntax/">syntax highlighting</a> and  thought the idea sounded intriguing, so I tried it out.</p>
<p>Here’s what I had before (and let me add that I was tweaking my Vim colors a few days before this, so this wasn’t technically my normal setup) (and let me further add that this is fairly old code and not anything particular exciting):</p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-before.png" alt="syntax-before.png" title="syntax-before.png" />
        
      </figure></p>
<p>And after, where comments are bold and brighter than the rest of the dim code:</p>
<p><figure>
        <img src="https://cdn.bencrowder.net/blog/2020/09/syntax-after.png" alt="syntax-after.png" title="syntax-after.png" />
        
      </figure></p>
<p>Hmm. This isn’t a perfect implementation of the idea in the least, but even so, I don’t know that I like having comments so predominant.</p>
<p>This does, however, give me several ideas for modifying my existing color scheme (or starting from scratch, which is feeling a bit more likely right now). Something more soothing, less garish. And still some way to make comments stand out more — italics or a somewhat brighter color, probably. (Sidenote: <a href="https://github.com/nvim-treesitter/nvim-treesitter">nvim-treesitter</a> has caught my interest.)</p><hr class="feed-extra" style="margin-top: 48pt;" /><p class="feed-extra feed-mail"><a href="mailto:ben.crowder@gmail.com?subject=Re%3A%20Over the weekend I read Ben Kuhn’s post on syntax highlighting and thought the idea sounded intrigui...">Reply via email</a></p>]]></description>
    </item>
    
  </channel>
</rss>
