• Login
Community
  • Login

Set the default language

Scheduled Pinned Locked Moved General Discussion
6 Posts 5 Posters 2.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 汪
    汪秋成
    last edited by Jul 27, 2022, 1:23 AM

    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

    A 1 Reply Last reply Jul 27, 2022, 1:28 AM Reply Quote 0
    • A
      Alan Kilborn @汪秋成
      last edited by Jul 27, 2022, 1:28 AM

      @汪秋成

      With that description, I don’t think anyone is going to be able to help. Can you explain further?

      汪 1 Reply Last reply Jul 27, 2022, 1:30 AM Reply Quote 0
      • 汪
        汪秋成 @Alan Kilborn
        last edited by Jul 27, 2022, 1:30 AM

        @Alan-Kilborn
        I would like to know where the Notepad++ Settings appearance language configuration is stored, is it in a profile or registry, thanks

        P 1 Reply Last reply Jul 27, 2022, 1:39 AM Reply Quote 0
        • P
          PeterJones @汪秋成
          last edited by PeterJones Jul 27, 2022, 2:26 AM Jul 27, 2022, 1:39 AM

          @汪秋成 ,

          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.

          See https://npp-user-manual.org/docs/preferences/#general

          1 Reply Last reply Reply Quote 1
          • J
            john selverian
            last edited by Dec 19, 2023, 12:33 AM

            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="&lt;!--" commentEnd="--&gt;">
                <Language name="html" ext="html htm shtml shtm xhtml xht hta" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
            

            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="&lt;!--" commentEnd="--&gt;">
                <Language name="html" ext="htm shtml shtm xhtml xht hta" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
            

            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?

            T 1 Reply Last reply Dec 19, 2023, 12:47 AM Reply Quote 0
            • T
              Terry R @john selverian
              last edited by Dec 19, 2023, 12:47 AM

              @john-selverian

              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

              1 Reply Last reply Reply Quote 3
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors