ACE (Bespin successsor) features code folding. Also, there is an event changeFold which fires upon code being folded or unfolded.
How do I trigger/set code folding from JavaScript?
I.e. fold up code for function beginning at line N.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
see addfold at https://github.com/ajaxorg/ace/blob/master/lib/ace/edit_session/folding.js#L259
and onFoldWidgetClick https://github.com/ajaxorg/ace/blob/master/lib/ace/edit_session/folding.js#L685 for the usage example