I'd like Notepad++ automatically to open files with .config extension as XML files. Now it opens them as normal text and when I choose the language manually it's OK, but I have to do this every time I open XML configuration file. Is there an option to tell Notepad++ that .config files are actually XML files?
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a dialog (Preferences -> File Association) that allows choosing which files to be associated with Notepad++. But I can't find there a way to link extensions to language ): Should I look somewhere else?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I found a way to do that, but I'm not sure is the the only one.
The languages and associated file exts are defined in the file langs.xml in Notepad++ folder. I found that line:
<Language name="xml" ext="xml xsml xsl kml" commentLine="" commentStart="<!--" commentEnd="-->">
and added config after xml xsml xsl kml. Now it works fine :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can also do this in the Styler Configurator. Look for XML in the left pane and and when selected a "User ext:" field appears. Type config in there. Leave a space between extensions and don't include the full stop. I also have rdf, dtd and xul in there.
Mark B
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like Notepad++ automatically to open files with .config extension as XML files. Now it opens them as normal text and when I choose the language manually it's OK, but I have to do this every time I open XML configuration file. Is there an option to tell Notepad++ that .config files are actually XML files?
Thanks in advance!
Yes, there is. Look for the dialog which allows adding extensions, linking them to languages.
There is a dialog (Preferences -> File Association) that allows choosing which files to be associated with Notepad++. But I can't find there a way to link extensions to language ): Should I look somewhere else?
OK, I found a way to do that, but I'm not sure is the the only one.
The languages and associated file exts are defined in the file langs.xml in Notepad++ folder. I found that line:
<Language name="xml" ext="xml xsml xsl kml" commentLine="" commentStart="<!--" commentEnd="-->">
and added config after xml xsml xsl kml. Now it works fine :)
You can also do this in the Styler Configurator. Look for XML in the left pane and and when selected a "User ext:" field appears. Type config in there. Leave a space between extensions and don't include the full stop. I also have rdf, dtd and xul in there.
Mark B
Thanks Mark, that way is much better for me ;)
What happens if there is no extention as in xmltextfilledfile. where there is nothing after the last dot?