[SOLVED] Cannot get folding to work.


I have a project using CodeMirror, and despite having all the folding libraries included (I think), folding will not work.

My project is here:

Source code is here:

It is meant as an extension to Standard Notes:

Do I have some simple error preventing folding?


I was missing the gutter property:

gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],