Code blocks

I’ve started changing the style of the code blocks on the site. The new style is inspired by firebase dark mode – although for some reason dark mode doesnt work on their site, you can still get the colours from the web console.

Light mode… so bright…
Stealing the colours

Here is an example of the new style

//This is a super cool function :D
void DoMagic(int specialNumber) {
    float myFavouriteNumber = 21 * 2;
    Car car = new Car("Ford");

    //Do something if it's old
    if (car.tyres[specialNumber].age > 500) {
        return;
    } else {
        Console.WriteLine("Hello world!");
    }
}

Leave a Reply

Your email address will not be published.