CodeMirror: Code Folding Demo

Demonstration of code folding using the code in foldcode.js. Press ctrl-q or click on the gutter to fold a block, again to unfold.
Try the Range Colapse demo as well.

JavaScript:
HTML: