• Login
Community
  • Login

all files are one line?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 3.8k 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.
  • V
    Vap
    last edited by Mar 19, 2023, 2:29 AM

    hello every file that i open in my computer has only one line and i want it to be like other people files i download if you know how to make the 2nd file like the first pls tell me
    1.png
    ![alt text](image url)2.png

    T A 2 Replies Last reply Mar 19, 2023, 3:02 AM Reply Quote 0
    • T
      Terry R @Vap
      last edited by Terry R Mar 19, 2023, 3:02 AM Mar 19, 2023, 3:02 AM

      @Vap
      Notepad++ is displaying the file exactly as it should. At the bottom of the window it shows “normal text file” and “lines: 1”, that’s because the file only has 1 line. You will also see that it says “Windows (CR LF)”, so it determines a line ends with CR and LF (carriage return and line feed).

      If you were to open a new tab, then type some characters, press enter key and type some more characters it should show that as 2 lines. If it does not then there may be something wrong with your installation.

      Terry

      1 Reply Last reply Reply Quote 0
      • A
        Alan Kilborn @Vap
        last edited by Alan Kilborn Mar 19, 2023, 1:13 PM Mar 19, 2023, 10:18 AM

        @Vap

        Your file looks as if it might be a json file, but perhaps you have some sort of non-standard extension on it that doesn’t let N++ know what it is (I can tell that is maybe the case because your status bar shows Normal text file).
        There are some plugins for Notepad++ that make working with such single-line files easier.
        However, I don’t use them, so you’ll either have to experiment, or wait for someone with such knowledge to possibly comment here.

        1 Reply Last reply Reply Quote 2
        • M
          Mark Olson
          last edited by Mar 19, 2023, 2:59 PM

          @Vap
          Yeah, this is either JSON or something infuriatingly close to JSON that taunts the user by having a few strategically placed syntax errors.
          In either case, JsonTools and JSMinNPP are both fine choices. In the case of JsonTools, once you have the plugin, Pretty-print JSON will get you where you want to go.

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