Community
    • Login

    Set the default language

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 5 Posters 3.5k Views 2 Watching
    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.
    • 汪秋成汪 Offline
      汪秋成
      last edited by

      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

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @汪秋成
        last edited by

        @汪秋成

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

        汪秋成汪 1 Reply Last reply Reply Quote 0
        • 汪秋成汪 Offline
          汪秋成 @Alan Kilborn
          last edited by

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

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP Offline
            PeterJones @汪秋成
            last edited by PeterJones

            @汪秋成 ,

            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
            • john selverianJ Offline
              john selverian
              last edited by

              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?

              Terry RT 1 Reply Last reply Reply Quote 0
              • Terry RT Offline
                Terry R @john selverian
                last edited by

                @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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors