• Notepad++ v8.8.1 Release

    Pinned Announcements
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • 1 Votes
    7 Posts
    170 Views
    K

    @rdipardo
    many thanks for your response!
    In fact it is so that now, where i repeated the steps for to make an illustrative image, i have to notice that i was pretty sure to have (following the windows docs) tried
    LoadImage(… , LR_LOADMAP3DCOLORS) as well as LoadImage(… , LR_LOADTRANSPARENT) as well as LoadImage(… , LR_LOADMAP3DCOLORS or LR_LOADTRANSPARENT),
    but something must have been wrong here, because indeed the latter version does remove this ‘glow’ also.

    HTbBmp := LoadImage(Hinstance, 'TB_BMP', IMAGE_BITMAP, bmpX, bmpY, LR_LOADMAP3DCOLORS or LR_LOADTRANSPARENT);

    The illustration:

    the left image shows the example bitmap from the reference plugin, without regard if the plugin is loaded/active or not the correction using LR_LOADMAP3DCOLORS looks fully identical. But only if my plugin is not loaded. If loaded,
    it looks somehow like ‘focused’ (but not exactly the same) -> image in the middle. the right image shows how it would look only using LR_LOADTRANSPARENT.
    With ‘LR_LOADMAP3DCOLORS or LR_LOADTRANSPARENT’ it looks again exactly like in the left image, without regard if the plugin is loaded or not; it’s all ok.
    Please note, the reference plugin does use this combination only for the ICOs … Not for the BMPs.
    Illustration.jpg

    To my interpretaton the ‘fluent’ images are an independent story, but i may be wrong here.
    What i see is that for the plugin’s toolbar image the BMP is used, without regard of light or dark.
    When being within Settings > preferences > general > standard icons: small.
    The ‘fluent’ images (based on each an ICO for dark and light) come into play (imo) only when chosing the fluent UI items within this preferences, if i see right.

    Edit: i missed to add an image for the original rendering, which had motivated this thread:
    original_rendering.jpg

  • Notepad++ v8.8 Release

    Announcements
    7
    4 Votes
    7 Posts
    2k Views
    N

    @donho said in Notepad++ v8.8 Release:

    @Neymar44
    The bug has been fixed in v8.8.1. Here is v8.8.1 RC:
    https://community.notepad-plus-plus.org/topic/26833/notepad-v8-8-1-release-candidate

    The glitch indeed disappeared in the last 8.8.1 RC, thank you !

  • 0 Votes
    3 Posts
    70 Views
  • 0 Votes
    10 Posts
    79 Views
    rdipardoR

    @PeterJones said in When is there going to be a release of NPP plugintemplate with a definition of NPPM_ADDSCNMODIFIEDFLAGS:

    Would it be possible to create the action so that it only runs if it is running in “nppplugins/plugintemplate” and would otherwise do nothing (unless the creator of the new repository changed it)?

    Actually, I think you can.

    An outline of such a workflow would be:

    Run the build on the schedule trigger event, as already suggested in the issue thread, e.g.: on: schedule: - cron: "0 0 1 * *" #< first day of every month at 00:00 UTC

    Use the checkout Action to fetch the Notepad++ trunk

    Use a diffing tool or action to compare the file paths of interest. If something changed, copy the upstream files into the template’s file paths and feed the project to MSBuild

    If the build passes, push the changed files and create a release

  • Notepad++ v8.8.1 Release Candidate

    Announcements
    2
    5 Votes
    2 Posts
    312 Views
  • Column Editor incrementetion is not working

    General Discussion
    4
    1 Votes
    4 Posts
    101 Views
    Peter 1966P

    Thank you

  • New User Questions?

    General Discussion
    2
    0 Votes
    2 Posts
    67 Views
    mkupperM

    @grievousangel-wtj Have you seen the gcode add-on for Notepad++ https://ncnetic.com/notepad-gcode-plugin/

    It’s for G-code while you mentioned G/M-code. I don’t know if that makes a difference.

    As I don’t have a CNC I don’t know if the plugin offers the coding help features you are looking for.

  • 0 Votes
    13 Posts
    282 Views
    mkupperM

    @Claudia-Svenson said in How to disable FindHistory and FileEditViewHistory? auto-clear at exit?:

    The “Recent File History” in configuration refers to only the <FileEditViewHistory>. I miss a corresponding option for <FindHistory>.

    That reminds me that there is a version of “find” that leaves a minimal history and another that leaves no history.

    If you are interested in a search that leaves “no history” then see Find (Volatile) Next (Ctrl+Alt+F3) / Find (Volatile) Previous (Ctrl+Alt+Shift+F3) in the manual and the manual section on Comparison between “Select and Find Next” and “Find (Volatile) Next”

    It turns out the non-volatile Ctrl+F3 or Ctrl+Shift+F3 searches leave a minimal history. The manual says they are added to the history but that’s not quite true meaning this may be a Notepad++ bug.

    If you have some text selected then using the keyboard you can do Ctrl+F3 or Ctrl+Shift+F3. Ctrl+F3 finds in the forward direction and Ctrl+Shift+F3 finds in the backwards or reverse direction.

    If you use either of those then you will discover it’s in the topmost part of the find history but it gets overwritten should you do another Ctrl+F3 style search or a normal search. It also does not get saved to Config.xml when Notepad++ exits, even if you have the <FindHistory> values set to something other than zero.

    Ctrl+F3 are Ctrl+Shift+F3 also available via the menus under Search / Select and Find Next and Search / Select and Find Previous. They are always a “normal mode” search meaning you would not be able to use the \ style escape codes available in extended searches nor the various features of regular expression searches.

    I have always relied on them as a “quick search” and depend on their normal mode operation as they are a quick way for me to search for regular expressions or things with \ as as Windows file paths. I knew they did not get added to the find history and had assumed that was a feature but now see that [the manual](https://npp-user-manual.org/docs/searching/#searching] says “The searched word or selection is stored in the find history.” That’s not quite true. They show up in the history but are not “added” to the history.

  • 3 Votes
    7 Posts
    249 Views
    Alan KilbornA

    I noticed a workaround; consider the following script:

    # -*- coding: utf-8 -*- from __future__ import print_function # Python2 vestige! # see https://community.notepad-plus-plus.org/topic/26799 "Two buffer-activated notifications instead of just one" from Npp import notepad, NOTIFICATION last_known_doc_index_by_view = [ notepad.getCurrentDocIndex(0), notepad.getCurrentDocIndex(1) ] def find_docindex_from_buffer_id_via_enumeration(test_buffer_id, must_be_in_this_view): for (pathname, buffer_id, index, view) in notepad.getFiles(): if view != must_be_in_this_view: continue # needed to find the right doc in case of cloned doc if buffer_id == test_buffer_id: return index return -1 # never happens def bufferactivated_callback(args): cfn = notepad.getCurrentFilename().rsplit('\\', 1)[-1] # only the filename, no directory print('BUFFERACTIVATED:', cfn, 'args=', args) current_view = notepad.getCurrentView() current_doc_index = notepad.getCurrentDocIndex(current_view) curr_doc_index_via_enumerating = find_docindex_from_buffer_id_via_enumeration(args['bufferID'], current_view) if current_doc_index != curr_doc_index_via_enumerating: print(' NOT A NEEDED ACTIVATION NOTIFICATION!!!!!!') return print(' HANDLING A REAL ACTIVATION NOTIFICATION!') if last_known_doc_index_by_view[current_view] == current_doc_index: print(' note: THIS DOC WAS ALREADY ACTIVE IN THE ITS VIEW -- so was an activation notify really necessary?') else: last_known_doc_index_by_view[current_view] = current_doc_index notepad.callback(bufferactivated_callback, [NOTIFICATION.BUFFERACTIVATED])

    This workaround works because the “index” reported with the bogus notification is also bogus, and the correct index can be found by looking through the entire tab list for the right buffer id.

    A subtle point of the script is that it can also detect when the active tab in the inactive view is activated by the user.

  • 0 Votes
    18 Posts
    341 Views
    Lycan ThropeL

    @PeterJones said in posting code (by copy & paste) with line numbers:

    @Lycan-Thrope ,

    If it’s automatically picking the D language, have you looked at Settings > Preferences > New Document > Default Language – does it say D instead of None (Normal Text)? If so, change that preference back, and it will go back to defaulting to normal text. (That setting cannot be affected by UDL, so I don’t see how your dBASE UDLs could be doing anything to influence it…)

    @PeterJones ,
    Thanks, this was the cause.
    Now that I think back, I think I was doing a help in the forum and used that to show the language setting and take screenshots…and forgot to put it back. DOH!!
    Back to normal…thanks for curing my forgetfulness. :-)

  • 2 Votes
    1 Posts
    193 Views
    No one has replied
  • 4 Votes
    4 Posts
    127 Views
    CoisesC

    @donho said in As time goes by... if you've been around long enough to notice...:

    It’s not me who created this account for Notepad++. Or more accurately, it’s not Notepad++ official reddit account. Personally, I have even no account on reddit?

    As far as I know, anyone can create a sub-reddit if the name isn’t already taken. There’s no endorsement implied unless there’s an explicit indication to that effect. (There is not for this one.) This was created in 2013, but the two current moderators joined in 2022 and 2023, which means the original creator is no longer involved.

    It doesn’t get much traffic — about one post every two days. I only stumbled across it a couple of months ago. (I’ve been on Reddit over ten years.) If I ever see a problem that’s truly interesting, I’ll send them over here… hasn’t happened yet.

  • Software & cathedrals are much the same...

    Humour
    4
    4 Votes
    4 Posts
    120 Views
    donhoD

    @Lycan-Thrope

    Not your fault. Whoever made the shirt thinks they’re typing on an SMS messaging app. :)

    Thank you for finding the excuse for me! :)

  • 0 Votes
    7 Posts
    119 Views
    dr ramaanandD

    @guy038 Thank you very much. @PeterJones I don’t come here to “fight” with anyone - I linked to the explanation of the SKIP/FAIL method by @guy038 just to help future readers to understand it. I am sorry if I have hurt you but that was not my intention. I request others to comment if any of my posts seem offensive and why they seem so (if they deem it so) - I will correct myself.

  • 0 Votes
    12 Posts
    270 Views
    PeterJonesP

    @kapenike said in Bold font style change on Linux Mint:

    @PeterJones yes I agree, I believe the OP is ------. Keep it to reddit

    Either I have misunderstood what you were implying by that term, or I think you seriously misunderstood me somewhere along the way. I was never intending to insult or otherwise denegrate you – and I would never use the term that I think you were trying to obfuscate to refer to anyone.

    As @mathlete2 said, maybe you just forgot that you had different settings on the two; or, as all I was trying to say, you maybe didn’t notice that it was a plain text file on one machine and a syntax-highlighted file on another.

    Or maybe that wasn’t the cause at all: given the symptoms you described, and the resolution that you said works, I cannot, right now, think of anything else that would have matched your description on both sides of the equation, which is why I currently believe that; but if you have evidence to the contrary, then great. If you wanted to help figure out why things were behaving differently on Windows and Wine for you, then provide some more evidence, and we can try to help you figure it out; or if you’ve got a solution that works for you, and you don’t care about the cause, that’s fine – but I was honestly not in any way trying to insult or attack you.

  • All the off-topic go here

    Pinned Boycott Notepad++
    3
    2 Votes
    3 Posts
    231 Views
    Jim DaileyJ

    Hello to you, @guy038. You said

    BTW, The parentheses to surround the part FNR,$0 are not mandatory, at least with gawk v4.0.2.

    You are correct, but I can’t bring myself not to use parenthesis with print() and printf(). But that’s just the start of my “non-standard” AWK behaviors. As an example, any substantial script I write will start thusly:

    BEGIN {exit}

    How’s that for non-standard?! :-)

  • 0 Votes
    2 Posts
    59 Views
    xomxX

    @C-Bacca said in On install regsvr32 has stopped working:

    On windows Server 2013

    Do you mean Windows Server 2012 R2 (Windows 8.1 based)?

    (I can try to test the same in a VM but has to be sure which Windows…)

    @C-Bacca said in On install regsvr32 has stopped working:

    I have limited permissions to install on this dev machine so I installed

    From your error messages is clear that there is a problem with registering the Notepad++ context menu shell extension (NppShell). Since only “system-wide” registration (which in turn needs the admin-rights anyway) is currently supported for NppShell, I would simply choose to install without this shell extension during installation:
    npp-installer-no-NppShell.png

    Other workaround is to use a portable N++ version instead, e.g. here is the link to the latest v8.8 (x64): https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8/npp.8.8.portable.x64.zip

    Just unzip that to your writable folder of choice and run there the Notepad++.exe. And portable N++ versions do not contain the NppShell at all, so no similar regsvr32 problem is possible…

  • 0 Votes
    5 Posts
    65 Views
    Alan KilbornA

    @C-Bacca said in How do I sort strings separated by commas?:

    is there a way to make this a series of steps, like a macro,

    Yes, you should be able to record it and save it as a macro.
    Note that Step 1 would not be part of the macro, but would be something that you have to do before running the macro.
    For more on macros see HERE.

  • 0 Votes
    3 Posts
    102 Views
    Alan KilbornA

    @mkupper said:

    Do you want to flip the behavior for what happens when you use the keyboard plus mouse wheel or do you want to flip the behavior for what happens when you use the keyboard only to move around.

    @Ariel-Diamond makes it pretty clear what is wanted:

    The feature to cycle through tabs with the mouse back/forward buttons is quite handy

    Is there a setting to swap this behavior

    So IMO it isn’t worth it to explain keyboard-based behavior as a “solution”.

    @Ariel-Diamond :

    Are you open to a script-based solution to your problem? If so, in THIS other topic I show a script that allows “hooking” the functionality of the forward/back buttons in order to change their functionality.

    Although I haven’t done it, it appears that script could be slightly altered in order to swap button functionality.

    Let us know if you’d like to go down that road, and can’t modify that script yourself and need help.

    BTW, I agree with you about the desire to “swap” the behavior; the other topic I linked to above has me stating: “…I’ve changed the code to swap the functionalities.”