John Lam 1997 — 2026

Code Formatting Experiments

This post will highlight some of my experiments in formatting code and publishing using ruhoh, a static website generator that I’m using to experiment with rebooting my blog.

One of the key things that my blog must be able to do is format blocks of code. There will be lots of code in the blog. Here’s a simple example of C#:

public class Students    {
    public int PersonId { get; set; }
    public string Name { get; set; }
    public int Age {get; set;}
}

Here’s an example of an implementation of IEqualityComparer:

public partial class Form1 : Form, IEqualityComparer<T>
{
  public bool Equals(T x, T y)
  {
     // your equal code
  }

  public int GetHashCode(T obj)
  {
     //your getHashCode
  }
}