• Replace Notepad++ as Default W10 editor. How to ?

    2
    0 Votes
    2 Posts
    333 Views
    PeterJonesP

    @AlainCh2 said in Replace Notepad++ as Default W10 editor. How to ?:

    Activated in right click > Open With
    Open with >Choose another App \ Browse to Program Files/Notepad++ 🙄

    -That’s not enough … …crazy as it can be,

    That always worked for me back when I was using Win10. And I just verified I had no difficulty in Win11 getting it to keep Notepad++ as an Open With for .ini files.

    BUT now you have fixed it as > Edit with Notepad++,

    If all you are looking for is the Edit with Notepad++ choice in the right-click menu, when you run the installer initially, assuming it prompted with the UAC prompt, your installation should have included the ShellExtension DLL C:\Program Files\Notepad++\contextMenu\NppShell.dll (assuming you installed newer than v8.5.1; older versions used a different name, and didn’t work with Win11). And it should have registered that DLL so that the Windows Explorer context menu includes that. If something went wrong with that registration, you could open a cmd.exe or PowerShell window in that contextMenu directory, probably using “as Admin” when open that window, and then follow the manual DLL registration instructions instructions from the user manual. (That page in the user manual has a lot of different tactics to get the Edit with Notepad++ or similar, including a registry entry that adds it as a verb to all files, so that you don’t have to do the OpenWith on each file type. But the Shell Extension DLL is really the preferred method, because it’s designed to do things the way Windows likes.)

    With the modern Notepad++, that same DLL should work to get the right-click entry with either Win10 or Win11.

    If you got it working using an alternate method (like the registry edit shown in the first post), great. This is just presenting an alternate method, and the way that Notepad++ intends you to get Edit with Notepad++ functionality.

  • Font size is different (wrong) in the latest version

    3
    0 Votes
    3 Posts
    219 Views
    CoisesC

    @TG-King:

    In addition to @PeterJones’ suggestions, also be sure you haven’t accidentally zoomed out (for example, by using the mouse wheel with the Ctrl key down): View | Zoom | Restore Default Zoom will set zoom back to normal.

  • Open files with NPP_EXEC then switch to the tab of the first opened file?

    5
    0 Votes
    5 Posts
    348 Views
    Vitalii DovganV

    I’ve added this case to the Manual!
    https://d0vgan.github.io/nppexec/?q=4.6.20

  • 0 Votes
    7 Posts
    430 Views
    Julian RedGJ

    @Mark-Olson I updated all the plugins because, as you suggested, they were too outdated
    thanks a lot

  • Sudden issue with increasing cursor offset proportional to column

    4
    1 Votes
    4 Posts
    241 Views
    Jon LesterJ

    Thanks for the replies both.

    @Coises that seems to have solved it! - all is good again after switching to Direct Write - many thanks!

    I haven’t updated video drivers, but Win10 installed a couple of updates at some point today (KB5065429 and KB5065957) - maybe there was a related change there somewhere.

  • easy way to move a file tab in the open file list

    6
    0 Votes
    6 Posts
    474 Views
    mathlete2M

    @PeterJones said in easy way to move a file tab in the open file list:

    I am assuming you are talking about the sub-window/panel toggled using View > Document List

    Ah, now the original question makes sense. I wasn’t familiar with that feature until now, so without the “>”, I figured that “View Document List” from the post and “open file list” from the title were both referring to the list of files that you see in the File menu, and that they hadn’t noticed that this list is different from the active set of tabs.

    FWIW, I’m a bit surprised that you can’t reorder files from within the View > Document List feature via click-and-drag. I can understand why some people would prefer this vertical layout over the horizontal layout of the tabs; it’s certainly more intuitive than the layout that you get when you check the Vertical option in the Tab Bar section of Settings > Preferences, so perhaps there needs to be a “stacked” sub-option for this layout.

  • Please recommend encryption plug-in

    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Justin-Brown said in Please recommend encryption plug-in:

    @PeterJones I know this is an old thread, but it is precisely what I was looking for. But I am curious if you are concerned about the ability to “undelete” the temp file when you use your script. Does rm fully remove the file, including overwriting bits? Or has Windows improved it’s undelete such that it is no longer a concern?

    I hadn’t noticed I used rm. That’s an old win32 port of the gnu linux rm command (from the gnuwin32 bundle; hasn’t been updated in years). I have never looked into the source code, so I don’t know for sure if it overwrites first, but it’s doubtful.

    I also no nothing about the advanced features of windows del or the powershell equivalent. However, I don’t know whether microsoft has made those secure deletes, either. (A Notepad++ forum isn’t the best place to research about windows features, especially the more esoteric aspects.)

    If research in appropriate places doesn’t give you the answers you want or hope for with regard to windows file deletion, you might look into installing a secure command-line-based file deleter; it would very much surprise me if such a utility didn’t exist, but I have never gone looking for it, so I have no specific recommendations. But if you find such a utility that you trust, then use it (with its appropriate command-line options) in place of the rm -rf that I used in the script

  • Folding without closing parentheses or tags

    4
    0 Votes
    4 Posts
    325 Views
    Mister SmittM

    @rdipardo

    This is the perfect option!

  • Alt key interferes with work

    12
    0 Votes
    12 Posts
    2k Views
    PeterJonesP

    @Wester said in Alt key interferes with work:

    Same problem here – I’m studying the software and taking notes in Notepad in both Russian and English, and every time this stupid layout pops up and blocks input.

    As @Michael-Vincent said 3 years ago, hitting Alt is used as an accelerator to keyboard-access menu bars in almost every win32-api-based Windows application. Include Microsoft’s own notepad.exe.

    Who even came up with this?

    A small company called Microsoft has been using that feature in their operating system for decades. I am sorry this bothers you.

    The devs of a program whose only purpose is text input didn’t consider that pressing Alt would ruin typing when switching languages? Or did no one think that there are not only Americans but also people who actually use multiple keyboard layouts? And what are all these weirdos even writing here?

    And then you switch to full on insult mode, being rude to people who had nothing to do with that design decision that happened decades ago. Brilliant, and well argued. (That last sentence was sarcasm, in case you couldn’t tell.)

  • Assigning a special UDL Languages

    5
    0 Votes
    5 Posts
    286 Views
    Franz-Josef BadeF

    @PeterJones
    Again, thanks a lot and good luck/success for your further work.
    Ps. Do you know perhaps an old program “VEDIT”? I worked with it for some decennies ;-) , but …

  • N++ opens ANSI file incorrectly in Win11 - why?

    12
    2 Votes
    12 Posts
    707 Views
    Kim S. AndreasenK

    @Coises
    Thanks, but I am pretty sure that I have tried that without success,
    Perhaps the reason it didn’t work is that I probably had the ‘Use Unicode UTF-8 for worldwide language support’ checked, which according to @Peter Jones would invalidate the solution.

    Thanks a lot to both of you for valuable and knowledgeable support!

  • No me salen tildes ni s'imbolos del idioma espa;ol

    4
    0 Votes
    4 Posts
    241 Views
    CoisesC

    Since you typed this message in Spanish, I guess you speak primarily Spanish.

    Since you did not get proper letters with accents or tildes in your message, I guess you are using a computer that was set up for English. What to do depends on whether this is your computer or whether you are using a computer that belongs to someone else.

    If you are using a computer that belongs to someone else, or that is controlled by your school or your employer, then you should explain your problem to them and ask for assistance.

    If it is your own computer, then you should change the language settings to use a Spanish keyboard. You should be able to find instructions by searching for something like how to install Spanish keyboard on Windows. Unfortunately, this is not the right forum for a detailed discussion of that, since it is really a Windows problem, not a Notepad++ problem. The problem can be fixed; you will get better answers by searching than anything I could just paste in here.

    Traducido del inglés con Google Translate:

    Como escribiste este mensaje en español, supongo que hablas principalmente español.

    Como no se ven las letras con acentos ni tildes correctas en tu mensaje, supongo que estás usando una computadora configurada para inglés. La solución depende de si es tuya o de si usas una computadora de otra persona.

    Si usas una computadora de otra persona, o que está controlada por tu escuela o tu empleador, deberías explicarles tu problema y pedir ayuda.

    Si es tu propia computadora, deberías cambiar la configuración de idioma para usar un teclado en español. Deberías encontrar instrucciones buscando algo como cómo instalar un teclado en español en Windows. Lamentablemente, este no es el foro adecuado para una discusión detallada sobre esto, ya que es un problema de Windows, no de Notepad++. El problema se puede solucionar; obtendrás mejores respuestas buscando que cualquier cosa que yo pueda simplemente publicar aquí.

  • Help REPLACING content with incremental order (by +1)

    10
    1 Votes
    10 Posts
    1k Views
    CoisesC

    @samsung-s6-Lite said in Help REPLACING content with incremental order (by +1):

    using your method I managed to work out how to do it PARTIALLY using this.

    Find what: SnapRestSeconds = \d+
    Replace with: SnapRestSeconds = (?=match)
    Search mode: Regular expression

    This starts them at number at ‘2’ I need it to start at 30 please, can you help?

    If it started at 2, then you did one sequential Replace with the same replace expression first. That’s OK — just be aware that replacing “continues from where you left off” if the expression hasn’t changed. After you close and reopen the Replace in indicated region dialog, change the expression, do a Replace All or select Clear History from the drop-down menu beside Replace All, counting will start again from 1.

    The expression you want is (?=match+29). (Since match will start from one, add 29 to match to start from 30.)

  • Help required with regular expression

    3
    1 Votes
    3 Posts
    242 Views
    Dominique MegardD

    @Terry-R Oops, I knew it was simple, just the \' which should not have been escaped. And on the site regex101.com only the “Rust” flavor pointed it out !!!
    Thanks anyway for the tips …

  • problem in search

    3
    0 Votes
    3 Posts
    220 Views
    PeterJonesP

    @Ioannis-Karadimitropoulos said in problem in search:

    I search for the string γεα.
    I get all these liens that have γεα inside the verses
    but I do not get those having γεα at the end of verse

    The “like the verse” example you gave is literally in the list of matching results you showed us:
    36801032-dfcb-4995-8a1c-2384713c5f53-image.png

    And, to confirm, when I paste the majority of your post into Notepad++, both of the Line 14919 lines match the γεα

    d7a87610-50de-4dba-bd73-72bf0493d969-image.png

    I

  • Is there a way to retrieve 'temporary' files after closing?

    5
    0 Votes
    5 Posts
    5k Views
    Sakis G.S

    @Nicholas, looks like you cant!

    as @Alan-Kilborn pointed out, the option is there, but it’s greyed out.

    is there a toggle that enables editing?

  • Smart Highlight not working

    12
    0 Votes
    12 Posts
    2k Views
    Michael BelewM

    @Ekopalypse I know this is very old post, I have just lived with it till now. I started to try and find the answer again and found my own old post. You are correct the background for the Global Style Smart Highlighting was set to the default background. This fixed my issue.

  • Customizing toolbar buttons and non default icons

    4
    0 Votes
    4 Posts
    403 Views
    PeterJonesP

    @Michkovy said in Customizing toolbar buttons and non default icons:

    A final question, what format settings do the fluent icons have? Mine are lacking transparency at the moment.

    Sounds like yours have 24bpp. You need 32bpp to have transparency.

    The Plugins > Customize Toolbar > Help - Custom Buttons actually tells that you need the 32bpp, though it doesn’t explain why. And it also just mentions the 32x32 size – but that means that it has to be downscaled to 16x16 when running with small toolbar icons, so I recommend having both.

    (Note on icon editors: VS2022’s icon editor will show the 32bpp image types in the ico file, but won’t let you create a new one with transparency. I generally use GIMP for icon editing, which has no such limitation; a dedicated icon editor like IcoFX will generally work, too. [I believe you have to find a copy of 1.4.6 or older to have a freeware version; the newer versions are commercial products and will stop being able to save after a 30day trial.])

    Actually, I didn’t answer your question as asked, I answered what I thought you really meant. But to answer the actual question, the fluent icons in the source code actually use 8bpp with one color index being dedicated to 100% transparent pixel. So if your icon editor will allow that, and 255 colors are sufficient for your icon (probably should be), then you could try that, instead (I believe VS can do transparent in 8bpp mode). If you want to use the same palette as Notepad++'s fluent icons, you could even grab one of the fluent icons from the source code and use that as the basis for your icon(s) – just replacing the image for each of the sizes.

    update: the user manual now explains that you need 24bpp or 8bpp to get the transparency.

  • Korean script letters do not group in Notepad and Notepad++ (Help Wanted)

    3
    0 Votes
    3 Posts
    270 Views
    CoisesC

    @PeterJones said in Korean script letters do not group in Notepad and Notepad++ (Help Wanted):

    I tried pasting 하ᄂ구ᄀ into LibreOffice Writer, and it combines some of the pieces but not all:
    9b81f20d-99dd-4e01-82e8-986bc761c8d4-image.png – it also uses NSimSum font when I paste those characters. And though I pasted them in as the six characters next to each other, once they are in, Writer treats them as 3 characters

    I’ve been trying to figure out what is going on here. I know nothing about the Korean language, but I did come across the Hangul jamo while implementing the Unicode rules for determining grapheme cluster boundaries as part of my Unicode-based search.

    I don’t recommend trying to read that unless you have a lot of free time and brain power. The bottom line for this purpose is that Hangul syllables are written as separate characters, each of which can be composed of multiple Unicode code points. The most common sequence is LeadingConsonant+Vowel+TrailingConsonant, though there are extensions and complications.

    Like many other Unicode characters, Korean characters come in composed and decomposed forms. I think all the modern Korean characters have a single-code-point composed form. They’re usually typed in a decomposed form, though, and assembled into composed form by an Input Method Editor, though decomposed form is permitted in Unicode.

    The reason pasting that combination into LibreOffice Writer produces three characters rather than two — which, as you might notice, is also true in the web browser rendering — is because the original poster’s decomposition is wrong. The canonical decomposition of 한국 (\ud55c\uad6d) is ᄒ ᅡ ᆫ ᄀ ᅮ ᆨ (\u1112\u1161\u11ab\u1100\u116e\u11a8), not ᄒ ᅡ ᄂ ᄀ ᅮ ᄀ (\u1112\u1161\u1102\u1100\u116e\u1100). The latter version uses all leading forms for the consonants, but the third and sixth code points should be the trailing forms.

    However, the correct decomposition still doesn’t compose visually in any font I can find in Notepad++.

    I downloaded the current version of Scite and set the font to NSimSum by using Options | Open User Options File, typing:

    font.base=font:NSimSum,size:12

    there, and saving. I opened an empty tab and chose File | Encoding | UTF-8. Then I pasted:

    한국 á ç

    (You can’t see it here, but that is the canonical decomposition of all those characters.) Just as in Notepad++, the Latin letters with diacritics display as composed, but the Korean syllables do not.

    Therefore, I think this is a Scintilla limitation. Why it doesn’t compose visually, when LibreOffice Writer and web browsers do, I have not yet been able to determine.

    All this might not be as related to the problem @SalviaSage described as it appears to be. Notice that the original post says:

    For example, I want to get (한국).

    Those two characters are composed. They don’t consist of individual jamo. You can determine that by pasting them into Notepad++. You can also determine that neither the forum nor the web browser is performing the conversion to composed form by pasting this: 한국 into Notepad++. It looks the same here, but it’s six separate characters in Notepad++.

    So I think the original poster’s problem has more to do with using, or not using, or misusing, an Input Method Editor. Unfortunately, I don’t know anything about those. Notepad++ will display the composed Korean characters just fine; for some reason, the individual jamo are going directly from the keyboard to Scintilla without composition. I’m thinking perhaps an inline IME is a default for a web browser, but not for Notepad++? I have to leave pursuit of that possibility to someone else.

  • ANSI X12/EDIFACT document viewing

    12
    0 Votes
    12 Posts
    16k Views
    Diego RaguindinD

    Actually, I initially took Kedar’s XML, which I assume is based on Chris K’s