Set the default language
-
Set the default language
I want to set the default appearance language in notepad++, I understand the way of graphical setting, but which file is the language configuration saved in, please help me solve this problem, thank you -
With that description, I don’t think anyone is going to be able to help. Can you explain further?
-
@Alan-Kilborn
I would like to know where the Notepad++ Settings appearance language configuration is stored, is it in a profile or registry, thanks -
@汪秋成 ,
When you select a localization in the GUI, it copies one of the XML files from the
<installation>\localization\
folder to%appdata%\Notepad++\nativeLang.xml
. So “in your profile” is the answer to your question. -
I tried this and it did not work for me. I have some very large xml and html files. When I open them they open as xml or html and the response of Notepad++ is very slow. If I remember to switch the Language to “None (Normal text)” the response of Notepad++ is very fast. I’d like to have all html and xml files to open with the Language to “None (Normal text)”. I edited the langs.xml file as such:
I changed these 3 lines:
<Language name="normal" ext="txt"/> <Language name="xml" ext="xml xaml xsl xslt xsd xul kml svg mxml xsml wsdl xlf xliff xbl sxbl sitemap gml gpx plist" commentLine="" commentStart="<!--" commentEnd="-->"> <Language name="html" ext="html htm shtml shtm xhtml xht hta" commentLine="" commentStart="<!--" commentEnd="-->">
to:
<Language name="normal" ext="txt xml html"/> <Language name="xml" ext="xaml xsl xslt xsd xul kml svg mxml xsml wsdl xlf xliff xbl sxbl sitemap gml gpx plist" commentLine="" commentStart="<!--" commentEnd="-->"> <Language name="html" ext="htm shtml shtm xhtml xht hta" commentLine="" commentStart="<!--" commentEnd="-->">
I removed the xml and html extensions from the appropriate xml and html <Language name> tags and added them to the <Language name=“normal”> tag. This works for the html files, they open as “None (Normal text)” and the response is very fast. However, this does not work for the xml files, they still open as xml and the response is very slow.
what am I missing with the xml files?
-
I personally think this is the wrong approach as to re-enable the setting for smaller files you will need to undo some/all of what you did.
Were you aware that you can tell Notepad++ not to apply syntax highlighting (which is where the slowness comes from on large files) by enabling and setting a MB level at which to stop this.
Just read this section of the online manual.
Terry