Community

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

    How you add line splitter every tag?

    Help wanted · · · – – – · · ·
    2
    4
    93
    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.
    • Rioscar Orion ghandy
      Rioscar Orion ghandy last edited by

      How you add line splitter automaticly in notepad++?
      Example:
      [0234]
      Aku harap kami bisa mendapatkan obat yang lebih baik.<wait>
      <------------------------------------------------------->
      [0235]
      Mama selalu sakit, aku jadi khawatir.<wait>

      How you add the <--------------------------------->
      everytimes there is closed tag?

      Neil Schipper 1 Reply Last reply Reply Quote 0
      • Neil Schipper
        Neil Schipper @Rioscar Orion ghandy last edited by

        @Rioscar-Orion-ghandy

        Hi.

        You need to be clear what you mean by tag. Always exactly <wait> or can it be something else?

        You need to be clear what you mean by line splitter. A simple newline? Or the series of dashes between angle brackets that you show?

        It would be good if you showed

        a good sample of some text that needs to be processed, including lines that must not be touched/changed
        

        and

        the exact text you wish to see after processing
        

        …if you want quality help.

        Because I/we don’t live in your head.

        Rioscar Orion ghandy 1 Reply Last reply Reply Quote 1
        • Rioscar Orion ghandy
          Rioscar Orion ghandy @Neil Schipper last edited by

          @Neil-Schipper
          Sorry, it’s my first time i post on forum like this.
          The text i have:

          <Entry Index=“688”>Hmmm? A letter for me?<wait></Entry>
          <Entry Index=“689”>Gracious me, this is from Grandpa!<wait></Entry>

          The result i want:

          <Entry Index=“688”>Hmmm? A letter for me?<wait></Entry>
          <-------------------------------------------------->
          <Entry Index=“689”>Gracious me, this is from Grandpa!<wait></Entry>

          Yeah, I want to add dashes between entry tag, but i don’t know how to put it into word.

          Neil Schipper 1 Reply Last reply Reply Quote 0
          • Neil Schipper
            Neil Schipper @Rioscar Orion ghandy last edited by Neil Schipper

            @Rioscar-Orion-ghandy

            I will assume you want the new line inserted after each and every instance of </Entry>.

            Here is a solution using “Find and Replace”.

            First, make sure you have a safe backup of the original file.

            Next, use the backward P toolbar button (“Show all characters”), or, menu item View -> Show Symbol -> Show all chars, to view your file’s line endings. (You can show or unshow all chars whenever you want. It has no effect on the text in the file.)

            Probably the line endings are CRLF. If they are LF then, in the solution below, instead of \r\n use \n. If they are something else, you will need to describe them, and an adjustment will be needed.

            Invoke Replace dialog (Ctl+h)

            Find what: </Entry>\r\n
            Replace with: </Entry>\r\n<-------------------------------------------------->\r\n

            In the group of four options on left side, first three UNChecked; 4th one ‘Wrap around’ should be checked.

            Search mode: Extended

            Now use Replace All to process the whole file, or, you can use Replace if you want to see how it works line by line. Ctl+z to undo.

            Check the end of the file and decide if you want to keep the last inserted line.

            Let us know if it worked the way you needed.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors