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.
MIT-licensed.