Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Indentation and collapsing normal text

    General Discussion
    3
    3
    115
    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

      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
      
      Lycan Thrope Ekopalypse 2 Replies Last reply Reply Quote 0
      • Lycan Thrope
        Lycan Thrope @Sagesse Magezi last edited by

        @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
        • Ekopalypse
          Ekopalypse @Sagesse Magezi last edited by

          @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
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors