Add a method for generating block HTML for a piece of code.