language-powershell icon indicating copy to clipboard operation
language-powershell copied to clipboard

Fold Regions

Open hillbear opened this issue 9 years ago • 4 comments

Whenever I wrap a block of code within a region, the plugin does not parse it as code that can be folded.

Can this ability be added to the script, or is this something I can force in Atom configuration?

hillbear avatar Jun 19 '15 19:06 hillbear

Thanks for letting me know. i’ll take a look and see what we can do to support it.

jrsconfitto avatar Jun 19 '15 19:06 jrsconfitto

Thanks! Just for example purposes, this is what I am referring to: ISE 3 Regions

hillbear avatar Jun 19 '15 19:06 hillbear

i think i've got an idea of how to make this work, but i need to try it. i think related information can be found in the textmate manual section on folding.

jrsconfitto avatar Jun 26 '15 12:06 jrsconfitto

Nevermind that earlier idea. Looks like Atom doesn't respect the foldingStartMarker and foldingStopMarker in a grammar, but instead is indentation based, which may make regions difficult? Ref: https://github.com/atom/first-mate/issues/48#issuecomment-114044244.

jrsconfitto avatar Jun 26 '15 12:06 jrsconfitto