How to colorize an xml by code

The following class will help you to do that. You can easily transform this : <?xml version="1.0" encoding="UTF-8"?> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd"> <kcfgfile name=""/> <group name="com.librehat.yahooweather"> <entry name="woeid" type="String"> <default></default> </entry> <entry name="interval" type="Int"> <default>60</default> </entry> <entry name="celsius" type="Bool"> <default>true</default> </entry> <entry name="fahrenheit" type="Bool"> <default>false</default> </entry> <entry name="ms" type="Bool"> <default>false</default> </entry> <entry name="kmh" type="Bool">… Read More »