"XML Tools"->"pretty print" on the top of the notepad++ tool"/> "XML Tools"->"pretty print" on the top of the notepad++ tool">

Home  >  Article  >  Development Tools  >  How does notepad++ format confusing xml

How does notepad++ format confusing xml

(*-*)浩
(*-*)浩Original
2019-08-06 10:03:553071browse

After recently modifying the hbase configuration file, I found that the format of the xml file is very ugly. Then, I found some methods on the Internet and tested it. The beautification effect can be achieved through the xml tools plug-in of notepad.

How does notepad++ format confusing xml

Operation process: (Recommended learning: notepad )

1. The following is the format effect of the original xml file

<configuration><property><name>hbase.rootdir</name><value>file:///root/hbase-data/hbase</value></property><property><br><name>hbase.cluster.distributed</name><value>true</value></property><property><name>hbase.zookeeper.quorum</name><br><value>redhat6,standby,hadoop3</value></property><property><name>hbase.zookeeper.property.dataDir</name><value>/opt/hbase-1.3.0/tmp/zk/data</value><br></property><property><name>hbase.regionserver.wal.codec</name><value>org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec</value></property><property><br><name>hbase.region.server.rpc.scheduler.factory.class</name><value>org.apache.hadoop.hbase.ipc.PhoenixRpcSchedulerFactory</value><br><description>Factory to create the Phoenix RPC Scheduler that uses separate queues for index and metadata updates</description></property><property><br><name>hbase.rpc.controllerfactory.class</name><value>org.apache.hadoop.hbase.ipc.controller.ServerRpcControllerFactory</value><br><description>Factory to create the Phoenix RPC Scheduler that uses separate queues for index and metadata updates</description></property></configuration><br>

Note: Found it very unsightly.

2.Put the above content into a document, click "Plug-in (P)" at the top of the notepad tool->"XML Tools"->"pretty print(XML only -with line breaks)"

The modified effect is as follows:

<configuration><br>    <property><br>        <name>hbase.rootdir</name><br>        <value>file:///root/hbase-data/hbase</value><br>    </property><br>    <property><br>        <name>hbase.cluster.distributed</name><br>        <value>true</value><br>    </property><br>    <property><br>        <name>hbase.zookeeper.quorum</name><br>        <value>redhat6,standby,hadoop3</value><br>    </property><br>    <property><br>        <name>hbase.zookeeper.property.dataDir</name><br>        <value>/opt/hbase-1.3.0/tmp/zk/data</value><br>    </property><br>    <property><br>        <name>hbase.regionserver.wal.codec</name><br>        <value>org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec</value><br>    </property><br>    <property><br>        <name>hbase.region.server.rpc.scheduler.factory.class</name><br>        <value>org.apache.hadoop.hbase.ipc.PhoenixRpcSchedulerFactory</value><br>        <description>Factory to create the Phoenix RPC Scheduler that uses separate queues for index and metadata updates</description><br>    </property><br>    <property><br>        <name>hbase.rpc.controllerfactory.class</name><br>        <value>org.apache.hadoop.hbase.ipc.controller.ServerRpcControllerFactory</value><br>        <description>Factory to create the Phoenix RPC Scheduler that uses separate queues for index and metadata updates</description><br>    </property><br></configuration><br>

Note:If the XML Tools plug-in does not exist in notepad, you need to do it yourself Download and installation of plug-ins.

The above is the detailed content of How does notepad++ format confusing xml. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn