Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Arne EverhardA

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      311 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.

    • Mister SmittM

      Folding without closing parentheses or tags

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      135 Views
      Mister SmittM

      @rdipardo

      This is the perfect option!

    • Antonio Pérez MadrazoA

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      113 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í.

    • M

      Customizing toolbar buttons and non default icons

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      218 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.

    • pbarneyP

      Need clarification about "built-in" language lexers

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      3k Views
      pbarneyP

      @PeterJones said in Need clarification about "built-in" language lexers:

      So I asked ChatGPT why,

      Why would you believe that atrocity?

      It was probably an off-the-cuff question, but I figured I’d take it seriously. I know that this is going off-topic, so feel free to cull this response if you like.

      To tweak the old Russian maxim, it’s very much a case of “distrust until verified” (which is why I posted my question instead of just swallowing what the thing spit out.

      I’m not particularly a fan of them, and I honestly believe that in time, we (as in humanity) may come to regret their invention and our likely inevitable overdependence on them.

      But I’m also not an ignorant neophyte. I’m actually very well aware of the limitations and problems with LLM’s, probably more than most people, and despite that, I’ve found them to be useful in some contexts.

      First, you’re not wrong to call them “random text generators,” but that really is an oversimplification. It’s not just a flat index of word frequencies. Tehy’re trained with billions (or even trillions) of parameters that encode patterns across syntax, semantics and reasoning heuristics. From a purely mathematical point of view, it’s actually pretty intersting. But saying it’s “just statistics” is a bit like saying the human brain is “just firing neurons.” Yeah, it’s technically true, but it misses the interesting part.

      So yes, because they are probabilistic sequence models, they are perfectly capable of fabricating “facts” (i.e., hallucinations, especially with multi-dimensional requests or as the context window gets filled up), making overgeneralizations like missing edge cases, or have issues with compression bias, shallow chain-of-reasoning (although this one is getting a little better), ambiguity drift, context inference biases, fidelity drift when repeatedly iterating through details, context window size limitations for long conversations, etc. I have some experience dealing with each of these limitations to some extent.

      So I know all that going in, and since I do, I know not to rely on them as primary sources, and also how to account for many of those problems and a number of strategies to somewhat limit and mitigate the problems (e.g., authoritative source anchoring, chunking, forcing tabular output, explicitly prompting for blanks instead of it making guesses, etc). If I’m doing anything serious, I’ll use all the tools at my disposal, but I still know that if the output isn’t testable, it’s not trustworthy and I know not to rely on it for expertise; it’s just a tool I use to speed up my info gathering. I think of it as supplementary rather than authoritative.

      So it’s an occasionally useful tool that’s saved me some time by giving me a starting point to quickly gather ideas and point me to things I might not have thought of before I check with reliable sources (like you) that can actually confirm or invalidate them.

      I don’t expect to change any minds about it, and in truth, I don’t really even want to, but you always take the time to thoroughly answer people’s questions, and I wanted to respect that in turn.

    • PeterJonesP

      Handling Ctrl+C in a c++ plugin dialog

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      7
      0 Votes
      7 Posts
      4k Views
      CoisesC

      @PeterJones said in Handling Ctrl+C in a c++ plugin dialog:

      I interpreted as wanting to have a keyboard shortcut specific to an action inside the dialog.
      […]
      It would very much surprise me if it weren’t possible for a plugin to do that (though I cannot think of any off the top of my head that do so). But whether “subclassing” or some other strategy is the right way to implement the shortcut capture is beyond me.

      (Following based on theory/understanding. I have not actually tried to do this.)

      Subclassing the NPP window would be horrific way to go about this (if it would even work at all). Making shortcuts work specifically in a plugin window is a bit of an awkward problem, because (as far as I can tell) there is only one accelerator table for an entire running program — and Notepad++ already “owns” that table.

      In a modal dialog or a non-modal window that was registered with NPPM_MODELESSDIALOG it wouldn’t work at all, because messages for those don’t go through TranslateAccelerator. The message would get sent to the window/dialog. This is actually the right way to go, but subclassing the main NPP window would be irrelevant, because the message would never get to that window; it would be dispatched to the plugin window or one of its controls.

      For a non-modal window without NPPM_MODELESSDIALOG, the shortcut key would still send whatever menu command was assigned to it. In that case, a subclass procedure could check whether the keyboard focus is in a window belonging to the plugin. If it is, process it; if it isn’t, pass it through normally. But note that you’d be catching the command, not the shortcut. Your command would always take over from the NPP command, regardless of whether it was by menu, by tool button, or by whatever shortcut key the user assigned to the NPP function.

      For modeless dialogs that don’t register, NPP now works around this for cut, copy and paste by sending WM_CUT, WM_COPY and WM_PASTE to the window/control with keyboard focus when one of those commands is invoked and focus is not in an NPP-managed window or control. Note that if you change the shortcut for one of those commands, the dialog will respond to the new shortcut. (It will respond to the “normal” shortcut as well if and only if that shortcut isn’t assigned to a Notepad++ command. Scintilla assignments don’t count; that’s why the problem didn’t show up until the shortcuts were moved from Scintilla to Notepad++.)

      So to get it right, you have to register the window if it is modeless, and you have to pick up the key combination in your plugin code. How to pick it up is a bit of a pain in the butt, because usually the main window (typically a dialog box) won’t have focus, so the keystrokes will go to whatever control does have focus — unless the dialog manager captures it and applies its own logic (such as it does for the tab key and for Alt+ accelerators).

      I still haven’t found a clear and complete description of what the dialog manager does when the message loop calls IsDialogMessage. Part of it is bound up with WM_GETDLGCODE, which is sent to controls — not the dialog procedure — which further complicates things. Subclassing every control which could have focus when you want your key combination to work would probably be necessary. I suspect some key combinations cannot be captured, but I don’t know that for a fact.

      It’s messy. Finding another way — like adding a button for your action and then underlining a letter so that Alt+letter will activate it — is likely to be a lot easier and less fragile. (If the action is control-based, rather than independent of which control in your plugin has focus, then of course the way you did it is correct.)

    • Revs DeeR

      Option to skip "Create new file" prompt(s) when pressing Alt+F6 while text is selected

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      133 Views
      Revs DeeR

      @PeterJones
      Thank you, that was useful :) I’ve updated shortcuts.xml so Alt+F6 now ignores selected text.

      <Command name="Open new instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) -nosession -multiInst</Command> <Command name="Open selected file path in new instance" Ctrl="no" Alt="no" Shift="no" Key="">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>

      da188c0f-2184-4898-ae3a-b65a5ba09cf8-image.png

      I hadn’t taken a moment before posting to find what Alt+F6 was labelled as. I’ve been using this command via the keyboard shortcut for a long time and not via the Run menu.

      For basic users, I think it could be useful to have this as an out of the box option e.g. File > New Window (Ctrl+Shift+N).

      Thanks again!

    • TG KingT

      Font size is different (wrong) in the latest version

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      102 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.

    • Sam CemS

      WebEdit Plugin for NPP x64 ?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      2k Views
      Richárd StockingerR

      A little “almost” missed update: WebEdit has been added to the nppPluginList and is available in Notepad++ v8.8.6. 🥳

      Regardless, I still would like to add a few more small features to the plugin. I’m trying to make these available in the latest releases,* and if everything works fine, I’d like to eventually submit them to the nppPluginList with a new (and a last?) PR.

      * To try it out, just overwrite the C:\Program Files\Notepad++\plugins\WebEdit\WebEdit.dll file with the downloaded and unzipped one – but make a backup anyway. ;)

    • Fatih CoşkunF

      New plugin: VirtualFolders

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development plugin
      3
      1 Votes
      3 Posts
      97 Views
      Fatih CoşkunF

      @PeterJones,

      As I see it you can only add actual files from the disk to the projects in Project Panel. In VirtualFolders “files” can be just buffers you created in Notepad++. They don’t have to be saved. Most of my buffers are not saved . They are just notes.

      Also you are right new files (saved or unsaved) automatically added in this panel. When you close it, it is automatically removed. Just like in Document List.

    • donhoD

      Notepad++ v8.8.6 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      3
      4 Votes
      3 Posts
      1k Views
      Lycan ThropeL

      @donho,
      Or, as in my case, have been busy with IRL work and projects and haven’t had the time yet to torture test the release. Trying to beat the weather for outdoor projects to get finished, so testing hasn’t been a priority lately, sorry. :-)

    • donhoD

      Fighting Malicious Ads on Download Pages

      Watching Ignoring Scheduled Pinned Locked Moved Security
      44
      3 Votes
      44 Posts
      31k Views
      PeterJonesP

      @MarcCMcC said in Fighting Malicious Ads on Download Pages:

      There are definitely still giant, green “Download” button ads:

      Posting screenshots here isn’t helpful, at this point.

      And it is better if you just email the malicious links directly to don.h@free.fr , as has been said repeatedly in this discussion.

      –

      I am locking this thread, as there isn’t anything new to say about this topic

      –

      If you came here to report a malicious/dangerous download link (and NOTE: not all ads with “download” are malicious or dangerous), then

      e-mail the URLs for malicious or dangerous advertising links on that page directly to don.h@free.fr
    • John HUANG 0J

      Looking for Scintilla examples for a Notepad++ plugin

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      180 Views
      CoisesC

      @John-HUANG-0 said in Looking for Scintilla examples for a Notepad++ plugin:

      I want to write a Notepad++ plugin that can change the font color and background color of certain specific text.

      Depending on your needs, the first thing you should consider is whether you really need a plugin, or whether a User Defined Language could do what you want.

      However, using a method like this:

      SendMessage(hSci, SCI_STYLESETFORE, SCE_USER1, RGB(255, 0, 0));

      is not very efficient, especially when dealing with very large files.

      When making many calls to Scintilla, it is best to use Direct Access. Even better, if you are writing in C++, is to use the ScintillaCall interface. Annoyingly, that interface does not seem to be documented anywhere. You can read the relevant section in the help for my Visual Studio template and, if it makes sense, either use that template or look at the code (start here) to see how it’s done.

      I asked ChatGPT about this, and it suggested that using Lexilla could be much more efficient. I found the Lexilla source code here:
      https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/scintilla

      I have never attempted to write a lexer, so I can’t give advice there, except to say that unless you are trying to implement full syntax highlighting for a computer language that doesn’t already have a lexer, it’s probably not the way to go. The efficiency problem can be solved by using the direct access interface or ScintillaCall.

    • Joel RodriguesJ

      Help REPLACING content with incremental order (by +1)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      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.)

    • Dominique MegardD

      Help required with regular expression

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      1 Votes
      3 Posts
      77 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 …

    • Ioannis KaradimitropoulosI

      problem in search

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      74 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

    • SalviaSageS

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      162 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.

    • donhoD

      FYI: Notepad++ v8.8.6 Release Candidate will be available in 1 week

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      3
      3 Votes
      3 Posts
      2k Views
      donhoD

      @Bas-de-Reuver Not yet. I’m working on it.

    • Nirmal ParmarN

      Which is best json tool online?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      414 Views
      Lycan ThropeL

      @PeterJones,
      First time posters, dropping links, is never a good combination, legit or not. It’s presumptive and intrusive, since the only purpose seems to be to dump and run.

    • Erik OlsonE

      "Find In Files progress..." box will not hide

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      1 Votes
      3 Posts
      251 Views
      Erik OlsonE

      @Coises Thank you for the information. It is not happening on 8.6.6 on my machine either. I will stick with this version for the time being.