You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Insert Snippet" functionality provides a lot of JSFiddle capability, but not its beguiling simplicity. I'd like to provide a feature that's much more akin to JSFiddle in that it has separate sections for the Script/Style/Html and doesn't force you to see the the Doctype/Html Tags/Script tags, etc.
I dislike, however, that JSFiddle makes me squeeze everything into four boxes. Instead, I'd like a single document with "section headers" delineating the different sections. By keeping everything in a single document, find/replace and general document navigation remain easy.
To do this.
Create a custom mode that has HTML, JS, and CSS has sub-modes delineated by a magical "SECTION:" syntax.
Use oEditSession.addFold("", new range.Range(1, 0, 2, 0)) to hide the magic line.
The "Insert Snippet" functionality provides a lot of JSFiddle capability, but not its beguiling simplicity. I'd like to provide a feature that's much more akin to JSFiddle in that it has separate sections for the Script/Style/Html and doesn't force you to see the the Doctype/Html Tags/Script tags, etc.
I dislike, however, that JSFiddle makes me squeeze everything into four boxes. Instead, I'd like a single document with "section headers" delineating the different sections. By keeping everything in a single document, find/replace and general document navigation remain easy.
To do this.
oEditSession.addFold("", new range.Range(1, 0, 2, 0))
to hide the magic line.editor.setOption("firstLineNumber", 10)
so this is likely doable.The text was updated successfully, but these errors were encountered: