• Installer needs to honor existing installation settings

    3
    0 Votes
    3 Posts
    262 Views
  • Raro Número de líneas

    3
    0 Votes
    3 Posts
    1k Views
    Adolfo GimenezA

    @peterjones muchas gracias compañero, me sirvió bastante ya lo logré solucionar. Un abrazo. Mil gracias.

  • Context Menu's Style Token should be in File Edit menu too.

    2
    0 Votes
    2 Posts
    245 Views
    PeterJonesP

    @jabcreations

    It’s in the Search menu, not the Edit menu. (probably in that menu because searching and marking and bookmarking are all intertwined in Notepad++, whereas coloring text has nothing to do with editing, because it doesn’t make changes to the file when saved)

    633a8e25-19af-40cb-93e1-6e943e86e85f-image.png

  • Understanding about project files.

    7
    0 Votes
    7 Posts
    526 Views
    Carol LawrenceC

    Thanks! You help me a lot

  • New to notepad ++

    7
    0 Votes
    7 Posts
    1k Views
    Carol LawrenceC

    In the start menu, you can make a new shortcut to notepad++ that runs it with the command line arguments -multiInst -nosession. When you click on that shortcut, it will open a new multi-instance window without the current session, but it won’t change the open-with-notepad++ behavior.

    Non-multi-instance instances (like those opened with open-with) and those that open with a shortcut will confuse your settings, because depending on which one you exit last, it may save your settings in a state that doesn’t match what you want. This may or may not be what you want, though.

  • Toolbar, medium?

    3
    0 Votes
    3 Posts
    296 Views
    Carol LawrenceC

    @real-cat I’m inclined to agree with you. When writing code, developers have to weigh several trade-offs before settling on a final product. My guess is that this is one of them. I can handle it.

  • I have to type in UTF-8 code rather than words

    2
    0 Votes
    2 Posts
    677 Views
    PeterJonesP

    @hadock987 said in I have to type in UTF-8 code rather than words:

    I suspect that when typing in Chinese words in Notepad++, Notepad++ do not encode them in UTF-8 code.
    Is my guess true? How can I resolve it?

    I suspect you’re wrong. It’s really easy to check: the status bar on the bottom of Notepad++ will show whether or not it is editing in UTF-8 mode.

    [somesection] HoldToSpawn = 按住~y~Backspace~s~來讓~b~

    7062d455-995f-4a46-a6e6-510cf9577800-image.png

    D:\Users\Peter\Downloads\NppCommunity>xxd uni.ini 00000000: 5b73 6f6d 6573 6563 7469 6f6e 5d0d 0a48 [somesection]..H 00000010: 6f6c 6454 6f53 7061 776e 203d 20e6 8c89 oldToSpawn = ... 00000020: e4bd 8f7e 797e 4261 636b 7370 6163 657e ...~y~Backspace~ 00000030: 737e e4be 86e8 ae93 7e62 7e0d 0a s~......~b~..

    The e68c89 is the UTF-8 3-byte encoding for the one you have shown as 按 in the later example, so Notepad++ is doing the right thing with Unicode characters properly entered when Notepad++ believes it is in UTF-8 mode.

    Though I just realized: do you think that typing 按 in Notepad++ will save the unicode character 按 in the bytes of the ini file? If you think that, you are sorely mistaken. Notepad++ saves the characters you type. And unlike HTML/XML, Notepad++ doesn’t translate XML/HTML entities into their actual characters when you save or display the file. So if your ini is really

    [somesection] HoldToSpawn=按住~y~Backspace~s~來讓~b~...

    Then you are getting exactly what you should: you typed a bunch of ascii characters, including ampersand, number sign, ex, six, three, zero, nine, semicolon, and that’s what your game is seeing.

    looking again at your post, where you compare the failing screenshot with extra box bytes in the top screenshot, compared to the one below which seems to be correct where you give it enties, maybe you really did type the Chinese characters in the first example. So I crossed out the entity paragraph.

    If your game isn’t really expecting the .ini file to be in UTF-8, or if it only believes it is UTF-8 if it has the BOM, you may need to change to Encoding > UTF-8-BOM instead of Encoding > UTF-8 to better convince your game to process the .ini file as UTF-8.

    So, to sum up: most likely, either you don’t actually have Notepad++ editing in UTF-8 mode (in which case, you just need to change the encoding in Notepad++), or your game doesn’t recognize an .ini file as UTF-8 without the BOM (in which case, you need to change to UTF-8-BOM in Notepad++ so it saves the BOM character), or your game doesn’t accept UTF-8 for the .ini, despite your assertion that it does.

  • Find in files resulted in a frozen Npp

    1
    1 Votes
    1 Posts
    222 Views
    No one has replied
  • Find / Replace swap in 8.2.1

    1
    6 Votes
    1 Posts
    882 Views
    No one has replied
  • How can i put notepad++ as default editor on Windows 2016 ?

    2
    0 Votes
    2 Posts
    811 Views
    PeterJonesP

    @eric-bret ,

    The same way you do with any other Windows application: There are a plethora of ways; you can search the internet for “associate txt with another application”, since we cannot be expected to be experts in all versions of Windows and Windows Server, and what config options you are comfortable with. As a hint, I usually use Right Click > Open With and check make-default, and/or directly edit the registry; GPO might do it, but I’m not a GPO expert.

    Also, if you run Notepad++ as administrator, the Settings > Preferences > File Association dialog will allow you to try to set associations.

    You can search this forum for “association” to find more discussion on file association, including some gotchas and difficulties with various methods.

  • Right-Mouse Click to Line/Sort

    3
    0 Votes
    3 Posts
    382 Views
    jose isaias cabreraJ

    @alan-kilborn Thank you, sire. This is what I was looking for. I appreciate your effort.

    josé

  • Enhance UDL lexer

    41
    4 Votes
    41 Posts
    11k Views
    EkopalypseE

    @c-siebester

    The only pitfall I see at the moment might be that your UDL name is not ml but something else.
    When you run the script, do you see any errors in the console?
    I assume you copied the whole script and not just the part you mentioned here, right?
    If you click on the script from the Python script menu while holding down the CTRL key, will the expected script open in Npp?

  • New instance of NPP starts with NppFTP window hidden

    1
    0 Votes
    1 Posts
    463 Views
    No one has replied
  • feature request: search with "accent match" (without Regular expression)

    8
    0 Votes
    8 Posts
    562 Views
    conky77C

    @alan-kilborn
    I inserted the Issue #11028

  • How can a user browser for the Run menu be configured?

    2
    0 Votes
    2 Posts
    503 Views
    PeterJonesP

    @michael-albry ,

    What ancient version of Notepad++ are you using? View > Current File in > Edge has existed for years now – it was added in v7.6.5 in September 2019. It was only versions before that in which you used the Run > Launch In XXX entries.

    And if you still need to add some other browser, then yes, you can add any external application you want, as long as you know the command line; it’s really easy: Run > Run…, type the path of the application to run (and maybe use the variables described in the Config Files > User Defined Commands section of the user manual, like using c:\path\to\otherbrowser.exe "$(FULL_CURRENT_PATH)" to run the currently-active file in otherbrowser – then Save that user-defined command.

    (Those Run > Launch In entries were removed a little earlier than the alternative was developed, in v7.6.3. This was part of the EU-FOSSA effort to avoid security compromise vectors from being distributed by default.)

  • Please make a Mac version available !

    2
    0 Votes
    2 Posts
    325 Views
    PeterJonesP

    @bryn-parrott ,

    Please read the posts in that thread you linked, especially https://community.notepad-plus-plus.org/post/64865 … Unless you can overcome the technical challenges mentioned there, there’s not anything that can be done

  • Convenience technique when organizing PythonScripts into folders

    6
    4 Votes
    6 Posts
    752 Views
    PeterJonesP

    I used to have all of my scripts in a private repo at some svn-based competitor to github that allowed free private repos. I would just check out that repo as my user scripts folder on any machine I’m working on, and automatically get all my scripts wherever I go.

    As I started sharing more of my scripts, I played a bit with gists, but didn’t like that i had two copies of some scripts – one in the private repo and one in the gist.

    I realized that I didn’t have any proprietary/private scripts (and if I did, I could put them in my system scripts folder instead), so I moved the repo to my github, so I can share any of them.

    So it’s not Alan’s collection, but my collection is at https://github.com/pryrt/nppStuff/tree/main/pythonScripts … and the nppCommunity subdirectory is the ones I’ve developed for or snagged from this forum, mostly organized by topic-ID.

  • How can I search a specific numbers in between two numbers?

    Locked
    2
    0 Votes
    2 Posts
    352 Views
    Alan KilbornA

    @rab_road

    Why did you post the same thing in two different threads??
    Please don’t do that

    Here’s the other: https://community.notepad-plus-plus.org/topic/22315

    Anyone thinking of replying to THIS thread, please see existing replies in the linked thread first, and, if you want to post, do so THERE, not HERE.

  • Display a file in hexadecimal.

    3
    0 Votes
    3 Posts
    16k Views
    artie-finkelsteinA

    @josé-antonio-da-silva

    There is a HexEditor plugin. Of the many flavors available, I’ve found the version listed in Plugins Admin NPP_HexEdit to be the least unstable. (Note: I’ve never put the time into tracking down the cause of the occasional unstable behavior on my system, as I rely on HxD for my hex editing needs.)

  • What is backup (in Notepad++ context)? ... let the flames raise high

    12
    6 Votes
    12 Posts
    2k Views
    UsefulBackupU

    @artie-finkelstein said in What is backup (in Notepad++ context)? ... let the flames raise high:

    Programs are tools. Tools are force magnifiers. It’s my responsibility to use my tools correctly. Sometimes, this means I have to read a manual, sometimes it means I have make a test run to prove a particular tool function works correctly before I start a critical task, but that’s actually still part of MY responsibility.
    As the aphorism goes: It’s a poor worker that blames their tools.

    Let’s take the safety features off of manufacturing machines that can turn a person into spaghetti then(I’ve seen a video).

    As if there’s been no advancement to tools throughout history to make them easier, more accurate and safer to use. Anyone who uses that aphorism must exist nowhere other than in lines of code and doesn’t work in the real world… Hey, why do you use NotePad++ and not Windows NotePad?

    @gstavi said in What is backup (in Notepad++ context)? ... let the flames raise high:

    I think that improving verbose backup could make it a reasonable enabled-by-default backup system.
    It could backup files into some folder at %APPDATA% but will need some auto-limit-and-cleanup on the amount of backup (a few MB) to prevent a user from finding after 2 years, 200,000 files (from 200,000 save operations) consuming 4GB of storage he did not explicitly requested. Such auto-limit is not trivial to define but could be fine tuned. For example, I would not backup at all files over some threshold (e.g. 300KB) which are unlikely to be “hand written”.

    This is the only reasonable, rational, logical thing said in this thread.

    This is how my other professional software works, I think the default .bak limit per projects is 10, but the user can set it to whatever they want. The .baks are stored with/in the project folder where the working master file is saved.

    It’s really not a big deal, at all.