Text Blocks without end
I defined a language and want to use text blocks in notepad++. But normaly you have to define an end, like:
/start ... ... /end
But 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 *end
Finally I want to end the blocks in the “last line”. Normally there is a misc. text an no keyword or sign.
Hello @railien and All,
Why not this following road map ?
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
Language > User-Definedfor this new file
Then, open the
User Defined Language > Define your language...dialog
Folder & Defaulttab
Folding in code1 style:, just type in a
*symbol in the
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.
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,
I’ve even tried that, but somehow did’t see the functionality.