Menu

How do I register .xhtml, .svg, .xsd as XML?

2008-02-05
2012-11-13
  • Adam Flinton

    Adam Flinton - 2008-02-05

    Dear All,

    I deal with a number of XML files not all of which end in .xml (e.g. .xhtml .svg, .xsd etc).

    How do I set a given file ending so that it opens as if if were ending with .xml? i.e. with all the xml formatting/highlighting etc?

    TIA

    Adam

     
    • Nobody/Anonymous

       
    • Nobody/Anonymous

      Step 1. Ctrl+O -- Open the Language config file:
      C:\Program Files\Notepad++\langs.xml
      Step 2. Ctrl+F -- Search string:
      Language name="xml"
      Step 3. Add your Extname here:
      ext="xml xsml xsl kml templ xhtml svg xsd"

      e.g.:
      <Language name="xml" ext="xml xsml xsl kml templ xhtml" commentLine="" commentStart="<!--" commentEnd="-->">
      </Language>

       
    • Jens Lorenz

      Jens Lorenz - 2008-02-08

      You can do this also in Styler...

      Best Regards
      Jens