• Login
Community
  • Login

NPP only fold YAML list if indented

Scheduled Pinned Locked Moved General Discussion
yamlindentationfolding
3 Posts 2 Posters 303 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    karolyjozsa
    last edited by Oct 4, 2020, 12:01 PM

    hello:
    - hi
    - hola
    

    Unfortunately, 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.

    1 Reply Last reply Reply Quote 0
    • A
      ArkadiuszMichalski
      last edited by Oct 4, 2020, 12:47 PM

      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
      Only fold.comment.yaml exist.

      1 Reply Last reply Reply Quote 3
      • A
        ArkadiuszMichalski
        last edited by Oct 4, 2020, 7:32 PM

        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.

        1 Reply Last reply Reply Quote 3
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors