HTML TechTree Tricks

how to display techtree with a cascading style sheet

Ever double-click on your TechTree.xml, only to get a rather difficult to read display in Internet Explorer? Here's a handy way to make it more legible:

Open TechTree.xml, and insert this as the second line:
< ?xml-stylesheet type="text/css" href="techtree.css"? >
(Remove space between "< ?" and "? >")

Then save this TechTree.css file to the same folder that TechTree.xml is in. (does not over-write any files)

Now if you double click your techtree.xml, it will be much easier to read
6,928 views 4 replies
Reply #1 Top
you know you can just right click on it press open with txt editor or workpad?
Reply #2 Top
Yes, and that's the best way to write. For reading, this is the result of the above style sheet:

Reply #3 Top
Nice idea
Reply #4 Top
Very nice micromod! Thanks for the effort.