Rich text and code folding