@phoenix-plugin-registry/brackets-custom-region-code-folding v1.1.0
Custom region code folding
Define custom words to designate the beginning and end of a custom region.
For example in your project's .brackets.json
file, use "custom-region-fold.endRegionWord": "close"
and "custom-region-fold.startRegionWord": "start"
to set the words start
and close
as designators of the beginning and end of a custom region.
The custom regions should work in any language recognised in Brackets and the keywords for designating the start and end of a custom region can be declared anywhere within a line comment.
The following are examples - start
and close
are used as opening and closing keywords:
You may annonate your custom folded region with any text, simply by ensuring the annotation appears before the keyword you've chosen as
startRegionWord
.Any words placed after the
startRegionWord
are hidden when the region is collapsed as shown below.And here is the scenario when there are no annotations
License
MIT-licensed.
3 years ago