On 5/15/20 at 11:26 AM, [email protected] (Jakob
Peterhänsel) wrote:
Comments
If I understand this correctly:
http://www.barebones.com/support/develop/clm.html#UnCommentMarkers
We should not use these ‘old’ types any more: [...]
But use the new BBLMCommentLineDefault,
BBLMCommentPrefixDefault/BBLMCommentSuffixDefault?
The "Open Line Comments", "Open Block Comments", and "Close
Block Comments" values are used for interpreting the text, so
you need them. They do not affect the behavior of Un/Comment Lines/Block.
The "BBLMCommentLineDefault", "BBLMCommentPrefixDefault", and
"BBLMCommentSuffixDefault" values alter the behavior of
Un/Comment Lines/Block, and do not play any part in syntax
coloring or function scanning.
So, you need them both (and their values may be the same).
‘Functions/Parts of the file'
The configuration files I try to make a CLM for, has special
areas in the file, inclosed in HTML-like tags: [...]
So I guess I need to make a Structural Element with a Function
Pattern, that would also make it foldable, and make the RegEx
specific enough to find the open & close tags..
Am I on the right path? ;-)
Probably. :-) Trying to parse HTML-like things with regular
expressions, or expressing them with a codeless language module,
is generally a losing battle; but if you constrain things enough
you may be able to make it work.
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <https://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-F0276DEFB8B745C5AA56E9BEE22CF64A%40Stormwind.local.