How you add line splitter every tag?
-
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? -
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.
-
@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.
-
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 areLF
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.