Notepad++: Assign syntaxhighlighting to data-extention

MPREv

New member
Member
VIP
Local time
7:12 AM
Messages
136
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

OS
Windows 7
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="<!--" commentEnd="-->">" entry near the bottom

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

Save and restart Notepad++ :)
 

My Computer

Computer Manufacturer/Model Number
Scratch built
OS
Windows 7 x64 Ultimate
CPU
i7 960
Motherboard
Asus P6X58D
Memory
12 Gig Corsair Dominator
Graphics Card(s)
Nvidia 480
Sound Card
Maudio Delta 44 + breakout box
Monitor(s) Displays
Dell UltraSharp U2410 24in and Samsung 21 dual monitors
Screen Resolution
1920x1200 and 1280x1024
Hard Drives
Primary: Intel X-25M G2 160G SSD
Secondary: Segate baracuda 1.0 TB
HDs in AHCI mode.
PSU
Corasair TX850
Case
Cooler Master HAF
Cooling
Corsair H50
Keyboard
Logitech G15 + N52 game pad
Mouse
Logitech MX518
Internet Speed
15kbs down 4.5kbps up
Other Info
WEI 7.6
CPU & RAM 7.6
Graphics 7.9
Hard disk 7.7
Back
Top