Notepad++: Assign syntaxhighlighting to data-extention


  1. Posts : 136
    Windows 7
       #1

    Notepad++: Assign syntaxhighlighting to data-extention


    Hallo Guys,
    One of my favourite programs is notepad++.
    It is quiet small and fast, but has a lot of functionality.
    But now I have some Questions about it:
    Notpad++ got syntax highlighting, that’s great!
    Now I want to assign a highlighting schema (xml) to a special data extention (trvml).
    So that if I open a trvml file the XML syntax highlighting is used.
    Does anyone know how this could be done?
      My Computer


  2. Posts : 2,528
    Windows 7 x64 Ultimate
       #2

    Look in the Notepad++ install folder under program files (x86).

    Find the file called langs.xml

    Change the properties on it so "users" have "full control".

    Edit the file.

    look for the "<Language name="xml" ext="xml xsml xsl xsd kml wsdl" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">" entry near the bottom

    Add your new extension to the ext="..." list.

    Save and restart Notepad++ :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:26.
Find Us