简体   繁体   中英

Add specify text to other line in notepad++

Hello I have this lines in xml, because there are a lot of lines I will show only few items.

  <client_title>
    <id>1</id>
    <name>light_title01</name></client_title>
  <client_title>
    <id>2</id>
    <name>light_title02</name></client_title>
  <client_title>
    <id>3</id>
    <name>light_title03</name></client_title>
  <client_title>

but I want on every </client_title> to go down so to have something like that

  <client_title>
    <id>1</id>
    <name>light_title01</name>
  </client_title>
  <client_title>
    <id>2</id>
    <name>light_title02</name>
  </client_title>
  <client_title>
    <id>3</id>
    <name>light_title03</name>
  </client_title>
  <client_title>

there is any command or seach expression?

I'm not sure your question is even in the right place, but this should help.

Choose the ReplaceAll menu and select Extended as the Search Mode from the bottom. Then replace </name> with </name>\\r\\n

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM