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.
    • Mike SchmidtM
      Mike Schmidt
      last edited by

      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?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Mike Schmidt
        last edited by

        @Mike-Schmidt

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

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Mike SchmidtM
          Mike Schmidt
          last edited by

          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

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC
            Claudia Frank @Mike Schmidt
            last edited by

            @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
            • Mike SchmidtM
              Mike Schmidt
              last edited by

              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
              • Claudia FrankC
                Claudia Frank
                last edited by

                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
                • Claudia FrankC
                  Claudia Frank
                  last edited by

                  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
                  • Claudia FrankC
                    Claudia Frank
                    last edited by

                    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
                    • Mike SchmidtM
                      Mike Schmidt
                      last edited by

                      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
                      • Claudia FrankC
                        Claudia Frank
                        last edited by

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

                        Cheers
                        Claudia

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