• Login
Community
  • Login

Set user-defined language as default?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 2 Posters 5.5k 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.
  • M
    Mike Schmidt
    last edited by Jan 26, 2017, 1:14 PM

    I would like to set a user-defined language as the default language. It isn’t listed in the available options on the Default Language dropdown. Is this possible?

    C 1 Reply Last reply Jan 26, 2017, 2:29 PM Reply Quote 0
    • C
      Claudia Frank @Mike Schmidt
      last edited by Jan 26, 2017, 2:29 PM

      @Mike-Schmidt

      Afaik, not natively possible but I described a possible workaround here .

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • M
        Mike Schmidt
        last edited by Jan 26, 2017, 3:49 PM

        Thanks Claudia, but I could not get it to work. I followed your instructions exactly. I even tried it multiple times to make sure I wasn’t missing something (which I certainly may still be.)

        Does it matter where the python script is saved? Here is where my “startup.py ” is saved:
        Notepad ++\plugins\Config\PythonScript\scripts

        C 1 Reply Last reply Jan 26, 2017, 4:14 PM Reply Quote 1
        • C
          Claudia Frank @Mike Schmidt
          last edited by Jan 26, 2017, 4:14 PM

          @Mike-Schmidt

          Did you install the python script plugin via plugin manager or via the msi package?
          If you open the python script console - what gets displayed?
          Did you restart npp?

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 1
          • M
            Mike Schmidt
            last edited by Jan 26, 2017, 4:36 PM

            OK…I did almost everything you said.

            I didn’t install the MSI because I’m on my work PC and don’t have Admin rights. Is there a manual install option?

            Here is what is displayed in Python console:
            Python 2.7.6-notepad++ r2 (default, Apr 21 2014, 19:26:54) [MSC v.1600 32 bit (Intel)]
            Initialisation took 125ms
            Ready.

            Yes, I restarted NPP.

            Thank you very much for the help!

            1 Reply Last reply Reply Quote 1
            • C
              Claudia Frank
              last edited by Jan 26, 2017, 4:43 PM

              OK - looks good - you are one of the lucky users where install via plugin manager worked.

              Just to check that everything works as expected please type the following into the
              textbox next to the run button

              print '\n'.join(dir(editor))
              

              Does this work?

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 1
              • C
                Claudia Frank
                last edited by Jan 26, 2017, 4:45 PM

                If you get a similar result as I have,
                try to open a document with your udl and see if something
                is reported in the console.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • C
                  Claudia Frank
                  last edited by Jan 26, 2017, 4:53 PM

                  Here is where my “startup.py ” is saved: Notepad ++\plugins\Config\PythonScript\scripts

                  Sorry missed that - it depends how npp was installed.
                  If local configuration is used then it is saved in INSTALL_DIR\plugins\Config\PythonScript\scripts
                  if %APPDATA% configuration was chosen, then it is saved in %APPDATA%\Notepad ++\plugins\Config\PythonScript\scripts

                  Installation mode can be verified by checking ? menu and debug-info.

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 1
                  • M
                    Mike Schmidt
                    last edited by Jan 26, 2017, 5:08 PM

                    Weird…so I uninstalled and then reinstalled Python and now it works. I guess the first python install was buggy or something.

                    Thanks again for your help. And for your work around. It appears to be doing exactly what I was hopping for. Thanks!

                    1 Reply Last reply Reply Quote 0
                    • C
                      Claudia Frank
                      last edited by Jan 26, 2017, 5:33 PM

                      Good to see that you’ve got it sorted out.

                      Cheers
                      Claudia

                      1 Reply Last reply Reply Quote 0
                      4 out of 10
                      • First post
                        4/10
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors