Double line break for folding close

  • In order to be able to fold Markdown text into headings, I would like to be able to have a double EOL as the closing code, but I do not seem to be able to achieve that. I tried simply doing ((EOL))((EOL)), but that didn’t seem to have the desired effect, and I have tried a number of variations, on what I could find about UDL.

    While the double-line break isn’t a part of the Markdown format (or any variation thereof that I know of), it is for this purpose a simple way to achieve the folding capability, so it seemed logical to me.

    But how do I actually do it? Where should I look in order to figure it out?

  • Are you talking about the code folding that N++ has.
    Like the little square icon next to the line numbers which, when clicked can fold some code like functions?

    Can you give us more details on what you are trying to do, and perhaps some screenshots?

  • Yes it is that code folding, that I would like to use for folding sections in Markdown documents. I have an example screenshot here, that shows This is headine 2 (please ignore the formatting etc.) being folded, while 1 and 3 are not. In this example I am using three dashes ( — ) to mark the close of the folding ((screenshot here)[]), but what I would like to do, is to use a double linebreak (((EOL))((EOL))) as the closing tag instead. But that doesn’t seem to work :(

Log in to reply