This awesome warning when a post is outdated was too wide and it looked
like it was shifted to the right. On a mobile screen, the right border was not
visible anymore which was very distrubing. This was simply fixed by removing
the width: 100%
CSS rule. I also tried to improve the code blocks by formatting
pre tags. It's not great but at least better now. And to avoid issues with
the cache, the CSS link now uses cache busting.
Let's test some code here.
Rust
/// Helpful documentation pub fn add(a: i32, b: i32) -> i32 { a + b }
SQL
SELECT foo FROM bar WHERE bar.baz in ( SELECT waah FROM pups )
C
#include <stdio.h> int main(int argc, char **argv) { println("Hello world\n"); }
Java
public class Main { public static void main(String[] args) { System.out.println("Hello world"); } }
Brainfuck
+++++[>+++++[>+++++<-]<-]
Bash
#! /usr/bin/env bash echo "Hello world" rm -rf /
Python
#! /usr/bin/env python3 def main(): println("Hello world") if __name__ == "__main__": main()
Haskell
data Tree = Leaf Int | Branch Int Tree Tree fak :: Integer -> Integer fak 0 = 1 fak n = n * fak (n-1) main = do putStrLn "Hello, World!" return ()