• Login
Community
  • Login

Indentation and collapsing normal text

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 1.3k 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.
  • S
    Sagesse Magezi
    last edited by Sagesse Magezi Jun 24, 2022, 11:28 PM Jun 24, 2022, 11:28 PM

    I want to write my text while indenting, and how would like indentation creating collapse

    I have tried to set the language to yaml to simulate the behavior but the problem is my texts are not yaml.

    If notepage cannot do that for me is there any not taking software that can help me with that ?

    Eg: Below is the example of how I write my notes :

    My name : 
         YoYou Osflj
            One can also call me 
                 Papy Pay
    
    Staying : 
         Burori 
            City : Margarita
    
    L E 2 Replies Last reply Jun 25, 2022, 6:32 AM Reply Quote 1
    • L
      Lycan Thrope @Sagesse Magezi
      last edited by Jun 25, 2022, 6:32 AM

      @sagesse-magezi ,
      Hmmm…only one suggestion, since I’m not familiar with yaml and if that will format the way you want, but did you save the file that you were making your notes in AS a yaml document with extension? If you didn’t and just assumed setting the language as yaml and created a new document and it wasn’t doing what you wanted, it won’t…until you name that file with a yaml extension.
      Hope this helps.

      1 Reply Last reply Reply Quote 1
      • E
        Ekopalypse @Sagesse Magezi
        last edited by Jun 25, 2022, 8:34 AM

        @sagesse-magezi

        normal text is the only document type that does not have a
        so-called lexer assigned to it, so no coloring and folding is done.
        If none of the existing lexers, like Python, Yaml, etc., can be used,
        then you have to create your own, using a user defined language (udl).
        The only drawback I can see is that a udl cannot apply folding by
        indentation, only by defining an open fold token like { and a closing one like }.

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