Community
    • Login

    Strange beginning line...

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 500 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.
    • MassefurM
      Massefur
      last edited by Massefur

      Good morning. I see a strange behaviour of the characters at the beginning of the line. If I save my *.txt file it happens as in the first picture. If I save my file with the extension *.fountain, it happens as in the second picture. What can it be? Thank you very much.

      file_txt.png
      file_tfou.png

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Massefur
        last edited by

        @massefur

        If you check the first field in the status bar, does it say something different if you use .txt or .fountain files? Maybe you have a lexer in use that handles the .fountain document differently?

        1 Reply Last reply Reply Quote 0
        • MassefurM
          Massefur
          last edited by Massefur

          Thank you for your reply. While I was waiting I found this solution and it seems to work.
          https://appuals.com/wrap-lines-in-notepad/
          But I have no idea what he did!

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @Massefur
            last edited by

            @massefur

            I am not sure if I can follow, did you do the search/replace as described in this article? The ^(.{60,80})\s and \1\n means

            ^ = from start of line
            . = any character
            {60,80} = at least 60 to at most 80 times
            \s = is a space char
            () = capture it - this is stored as \1
            

            So capture from start of the line everything that is at least 60 and at most 80 characters long and then followed by a space and replace it with the captured text and a new line character.

            Hmm … the cause is still not found.

            Do you have an answer to my questions?

            MassefurM 1 Reply Last reply Reply Quote 0
            • MassefurM
              Massefur @Ekopalypse
              last edited by

              @ekopalypse Yes yes indeed, I saw that the problem is not solved. I’m so sorry! In the status bar if I change files from *.txt to *.fountain the first value changes from Normal Text File to User Defined Language. This is because I customised some elements with colours. I don’t know what the lexer is.

              EkopalypseE 1 Reply Last reply Reply Quote 0
              • EkopalypseE
                Ekopalypse @Massefur
                last edited by

                @massefur

                first value changes from Normal Text File to User Defined Language

                The user defined language (internally called Lexer) formats the document according to your settings. For example, if you have assigned a different font, font size, or font attribute in addition to the color, this can easily lead to a different layout, especially when using word wrap. What exactly the problem is is hard to say without knowing what you have done.

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