简体   繁体   中英

Programmatically fold code in ACE editor

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?

Ie fold up code for function beginning at line N.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM