Add headings to example code fragments.