Refactor to use html/template and share common parts.
Use a gray background for code, rather than bright white.