Text Blocks without end
-
Hi,
I defined a language and want to use text blocks in notepad++. But normaly you have to define an end, like:
/start ... ... /endBut in the language I want to use is no end sign. So can I define the end as a line before a new start line? Like:
*some_text ... ... $ a comment ... ... last line *some_new_text ... last line *endFinally I want to end the blocks in the “last line”. Normally there is a misc. text an no keyword or sign.
Thanks.
-
Hello @railien and All,
Why not this following road map ?
-
Open a
newfile (Ctrl + N) -
Paste the text, below :
*FIRST block This is a text of a group of lines *SECOND block bla bla ... ... ... ... ... ... ... ... *THIRD block *LAST block Here is the final group-
Select the
Language > User-Definedfor this new file -
Then, open the
User Defined Language > Define your language...dialog -
Select the
Folder & Defaulttab -
In
Folding in code1 style:, just type in a*symbol in theMiddlebox
Voila ;-))
Best Regards,
guy038
-
-
Hello guy038,
thanks for your answer. I’ve already tried this. In that case, if I fold the first block, everything ist folded. But I want the second block to be unfolded.
Maybe the question was a bit different. I want an end of the folding, but one line bevor the next start line. The start line (second block) should not be linked to the first block. This what I get when I do so as you proposed.
Best Regards
Railien -
@Railien said in Text Blocks without end:
if I fold the first block, everything ist folded.
Then you did not follow @guy038’s directions. Notice that he only defined the middle folding, nothing else.
Using your original data, I followed his instructions, and got exactly the behavior you described. See my animation below:

-
Thank you PeterJones,
that’s it.
I’ve even tried that, but somehow did’t see the functionality.
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