NPP only fold YAML list if indented
-
hello: - hi - holaUnfortunately, NPP cannot fold the list under ‘hello’ unless the list elements are indented.
This is not right, as the YAML syntax for a list under a map, even without indentation is correct, and NPP should be able to fold it. -
It’s not Notepad++ problem, you can rise this on Scintilla (for YAML parser).
https://sourceforge.net/p/scintilla/bugs/
I check some other tools and neither support fold/unfold without indentation.But I warn you that in Scintilla the way of folding / unfolding is not treated as a bug, but depends on who does it in the lexer (sometimes you can switch it with options, but I don’t see this posibility in YAML lexer).
https://sourceforge.net/p/scintilla/code/ci/default/tree/lexers/LexYAML.cxx
Onlyfold.comment.yamlexist. -
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8244
https://sourceforge.net/p/scintilla/bugs/2174/
Bug exist, you don’t need open new.
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