Tutorial: How to display code in web pages Three different methods are described and explained, prism.js, google pretty print, and pure CSS.