Q: I've tried all Notepad++ Preferences and Options and Style Configurator but I couldn't find a way to collapse Python docstring (the content between triple double quotes). Can we do that or is there any plug-in to support that need?
Context: I decided to move to Notepad++ from ipython notebook (which is an interactive shell running inside a browser window). The simple reasons that Notepad++ offers far more flexible in customizing editing environment, and it has better syntax highlighting.
Now I miss the function of collapsing a chunk of docstring within the code to have a better sense of the code structure (normally they're OpenCV2 docs, I just want to make them available in the script, without going to the online document every time I need references).
E.g. Netbeans allows collapse chunk of code, or comment blocks or Javadoc.
Notepad++ will allow you to collapse whatever it thinks are blocks of codes, which it decides based on indents. So the simple answer is to indent your doc strings
"""
This is a collapsible doc string
"""
"""This is not"""
"""
Neither is this
"""
"""
This one is, but I think it looks a little odd"""