jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

[Feature Request] nested Regions #14

Open hirnwunde opened 8 years ago

hirnwunde commented 8 years ago

First of all: Thanks for your plugin! It is great if you ever worked with Visual Studio.

Is there a way to support for defining regions inside regions:

sl_folding

jamalsenouci commented 8 years ago

No problem. This would be possible and fairly easy to implement.

Just to check though if you are happy indenting your code then sublime text offers folding based on indentation so in your example above if you indented line 6 then fold markers should appear in the gutter.

inl-pd-autotest commented 7 years ago

Please, also take into consideration that nested folding blocks' markers may be prepended via whitespace characters. Currently the plugin doesn't support this and expects the marker to be exactly at line start.