Syntax Coloring of XML Files

Product page: Source Preview Handler
Post Reply
Posts: 1
Joined: Wed Jun 12, 2013 6:01 pm

Syntax Coloring of XML Files

Post by cjboorman » Wed Jun 12, 2013 6:30 pm

Files with the XML extension (*.xml) appear nicely formatted, but XML files with many other extensions (for example, *.dita) appear without any formatting. XML has become the universal standard for representing data, and I'm finding new extension types every day.
Currently, Source Preview Handler recognizes just five extensions as XML (*.xml, *.xsd, *.xsml, *.xsl, and *.kml).
  1. Is there a way that I can extend this list?
  2. Better yet, since all XML files contain the XML declaration (e.g., <?xml version="1.0" encoding="UTF-8" standalone="true"?>), could you update your code to use that to identify XML files?

Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)

Re: Syntax Coloring of XML Files

Post by mb » Tue Jul 30, 2013 6:31 pm

Last edited by mb on Tue Jul 30, 2013 6:31 pm, edited 1 time in total.

Post Reply