code block trigger string doesnt work when first character is ";"
-
any workaround? my compiler uses ; for comments so making this work would help. my other option is enclose the trigger string into .comment and .endc. tags :/ any help would be much appreciatd. thanks in advance guys. :)
-
sorry don’t understand your question?
Could you clarify it? Maybe with a screenshot?Cheers
Claudia -
you can define what string you want to use for code folding, you can define what string will trigger the start of a foldable block and what will be the end of it.
if this string starts with “;” then the “+” sign for folding never appears.
so for example “codeblockstart” works but “;clodeblockstart” doesnt.
-
so you talking about udl, do you?
If so, did you try semicolon followed by a space as folding in comment line open chars?
Seems to work.Cheers
Claudia -
yes, this is for a user defined language. tried now with space still doesnt work. what version you have ? I have v6.9.2. on win 8.1.
-
btw a few years ago this worked
-
-
P PeterJones referenced this topic on
-
Future Readers,
As mentioned in a 2023 follow-on conversation:
the “problem” was because
;was defined as the start of a comment for comment-highlighting. The UDL parser doesn’t look for Fold in code 1 or Fold in code 2 keywords for folding when they are contained in Comment lines. Instead, if;is defined as the start-of-comment-line in the Comment & Number tab, then on the Folder & Default tab, you can define Folding in comment’s open/close pair, and that will allow a special keyword pair to work for folding using comments to start and end the folding. This is true in 2023’s v8.5.3, and this was true in 2016’s v6.9.2.Follow-up discussion on this should go in the follow-on conversation rather than in this ancient conversation, which is being locked.
-
P PeterJones locked this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login