I am using Notepad++ for writing texts using Markdown syntax.

I know there exists at least one Notepad++ style file to hightlight Markdows texts (see MultiMarkdown in Notepad ++ and https://github.com/thomsmits/markdown_npp).

But I am interested in one new feature: I would like sections, subsections, subsubsections, etc. that I define with Markdown syntax to be recognized by the editor as collapsible or foldable and unfoldable, like it happens when coding in C++ or whatever.

How can I do that in Notepad++? I am not an expert in Notepad++ style files, but it does not seem too complicated. Maybe if someone gives me a hint, I could try it by myself...

EDIT: I've also seen this question: How to 'code collapse' wiki syntax on Notepad++ (or any other text editor)?, but I would like if there are other means to get what I want.

EDIT: I've posted a more general question regarding the same subject, here:

Editor of txt files for Windows with syntax highlight and foldable/collapsible sections for Markdown

Maybe now I should close this question, shouldn't I??

1 Answer 1


Unfortunately, it's currently not possible in Notepad++, because it's based on the Scintilla editing component, which does not support it.

And apparently the lead developer is not planning to work on this feature, though presumably this doesn't mean other developers couldn't submit code for it.

#971 codefolding for markdown  
itcould be possible to fold markdown at:
    headings (##)
needed since January 25, 2010

Since I don't use markdown, I won't be working on this.
Neil Hodgson


  • 2
    Even in the newest versions of Npp, user defined language folding doesn't work for even more standard coding syntax. I put a great deal of effort and experimentation into folding on headings and completely failed. When I tried <StartFold> and <EndFold> as a test on 8.1.1 just now, it also did not work.
    – CapinWinky
    Jul 22, 2021 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.