1.1.0 • Published 3 years ago

@phoenix-plugin-registry/brackets-custom-region-code-folding v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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:

  1. You may annonate your custom folded region with any text, simply by ensuring the annotation appears before the keyword you've chosen as startRegionWord. Alt text

    Alt text

  2. Any words placed after the startRegionWord are hidden when the region is collapsed as shown below. Alt text

    Alt text

  3. And here is the scenario when there are no annotations Alt text

    Alt text

License

MIT-licensed.