Orange-001 / region-generator

MIT License
2 stars 1 forks source link

FR: Allow user defined language and comment/region marker style bindings #3

Open lethefrost opened 6 months ago

lethefrost commented 6 months ago

Working on adding a configuration available to users, so they can define the region marker styles in some cases the styles they want are not in the general form, or can be determined automatically by the comment style (#2).

For example, some C++ parsers (Visual Studio and so on) look for the following syntax:

#pragma region RegionName
#pragma endregion RegionName

I'm planning to allow placeholder in this configuration as well, so they can have the region name in the end marker as well if they need. Or anyplace in the configured string.

As described in #1 , please let me know if you are willing to accept a pull request 😊