This is a random blog post, just to test out the code template design and snippet detection.

I've been working on improving how code snippets display on the site. The goal was to make them easy to read while keeping the design clean and consistent with the overall aesthetic.

After some tweaking with Highlight.js and custom styling, I think I've landed on something that works well. The automatic language detection is handling most of my used categories (C# PHP, HTML, CSS and JSON) without any issues, and the syntax highlighting makes everything more readable.

Here are a few test snippets to see it all in action:

<?php
echo "Hello world!";
?>
<!DOCTYPE html>
<html>
<body>

<h1>Hello</h1>
<p>World</p>

</body>
</html>
using System; 

namespace HelloWorldApp { 
    
    class Sloth { 
        
        static void Main(string[] args) { 
            
            // Comment 1 
            Console.WriteLine("Hello World!"); 
            
            // Comment 2
            Console.ReadKey(); 
        } 
    } 
}
{
  "content": "Hello World"
}
.helloworld {
  color: red;
  text-align: center;
}