• NppTextFx don't work with NPP 8.4.3 (x86) and above

    11
    0 Votes
    11 Posts
    1k Views
    guy038G

    Hi, @peterjones,

    As agreed, Peter, I have just sent you, five minutes ago, an e-mail with an attached file, relative to the TextFX plugin !

    Take all the time you need to read it, there is no rush !

    Best Regards

    guy038

  • CTRL+SHIFT+O no longer works. (File Switcher Plugin)

    2
    0 Votes
    2 Posts
    270 Views
    Alan KilbornA

    @ravi-sri

    You might try Navigate To plugin, but without knowing more about what sort of “quick switch” you have in mind, it is difficult to assist you.

  • Notepad++ Upgrade

    4
    0 Votes
    4 Posts
    393 Views
    Alan KilbornA

    @Hervé-Anselme

    grep and sed are a couple of quick examples.
    These are not natively Windows tools, but versions can be found that run there.

  • Use of Python Script plugin to work with FORTRAN project

    21
    1 Votes
    21 Posts
    1k Views
    Alan KilbornA

    @PeterJones said

    You (Arjan-van-Dijk) need to figure out the exact sequence of events necessary to run your gfortran command from cmd.exe.

    I think this is the absolute key point. Nobody can really help with that, because nobody has this same toolchain.

  • NPP Task List Plugin Window Overwrites

    6
    0 Votes
    6 Posts
    776 Views
    NeArnoldN

    @PeterJones I haven’t heard anything from @chcg or anyone else, but I’ve been fiddling.

    I’ve recently determined that 1) this problem is ongoing with all NPP releases through 8.4.6, and 2) it does NOT occur in dark mode. The issue will return as soon as one switches back to “light” mode. (Not a dark mode fan anyway.)

    I decided to look into the cause. I started by copying the existing v2.4 code base from Github and comparing it to the latest NPP v8.4.6 source. It appears to me that this problem is related to changes in the handling of WM_ERASEBKGND messages in the NPP DockingDlgInterface class that were added for the handling of dark mode.

    I’m going to update some of the include files and attempt to fix this issue. Never worked on a project served from Github. Hopefully when I start making pull requests, I can work with @chcg to help get a new release addressing this issue.

  • Lifecycle of a plugin

    4
    0 Votes
    4 Posts
    421 Views
    Chris De BoeckC

    @Ekopalypse said in Lifecycle of a plugin:

    @Chris-De-Boeck
    These are the methods that are called by Npp when a plugin is loaded (once, at startup).

    Thanks, that’s clear now.

  • Preferred way to work with INI files

    4
    0 Votes
    4 Posts
    565 Views
    EkopalypseE

    @Chris-De-Boeck

    Unfortunattely I don’t know much about cpp. But there is GetPrivateProfileString, not sure if this works for you.

  • TextFX Proper Case does not handle 's properly

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    guy038G

    Hi, all,

    With the last version v8.4.6, I’ve just tried to use the Edit > Convert Case to > Proper Case option against this INPUT text :

    McDonald MacDonald O'Neil Google's A FBI Inspector my.email@test.com John Smith III

    And I get :

    Mcdonald Macdonald O'neil Google's A Fbi Inspector My.Email@Test.Com John Smith Iii

    Now, if I use the Edit > Convert Case to > Proper Case (blend) option against this same INPUT text, I get :

    McDonald MacDonald O'neil Google's A FBI Inspector My.Email@Test.Com John Smith III

    Note that, whatever your choice, most of these expressions are not correct, after modifications !

    Refer, my previous post of 2015, above !

    Best Regards,

    guy038

    Funny : Exactly seven years, to the day, between my two posts !!

  • Updates and restarting removes settings

    3
    0 Votes
    3 Posts
    959 Views
    SullyPanda76clS

    @PeterJones well, actually there’s a 10-yr old bug that can explain this:

    Installation does not preserve the “do not use %appdata%” setting.

    So if you installed with that option, and then when upgrading you forget to check that option again, your settings will be lost (to be exact, they will still be in your HDD, but N++ will search for them elsewhere)

  • Custom lexer and Unicode UTF-8 text file content

    9
    1 Votes
    9 Posts
    2k Views
    Bas de ReuverB

    @rdipardo thanks for clarifying the Windows settings and the PR, it looks very useful. One question though, if I understand correctly the code in the PR creates a copy of the file content into a managed byte array. But the text data files can often be quite large, like 100MB, so then it would make a copy of 100MB right?

    That would basically double the memory usage and add performance overhead every time the syntax highlighting is applied to a csv file.

    Is there maybe a way to use the buffer_ptr directly, like in this stackoverflow answer? I know it’s “unsafe” code from the CLR perspective, as in using an unmanaged memory pointer, but it would probably perform better, so instead of:

    string content = Marshal.PtrToStringAnsi(buffer_ptr, length);

    do something like

    byte *byte_buffer = (byte *)buffer_ptr; for (var idx=0; idx < length;idx++) //etc.
  • [c#] Adding a custom styler or lexer in C# for scintilla/notepad++

    70
    0 Votes
    70 Posts
    14k Views
    Bas de ReuverB

    @Ekopalypse thanks for the answer. 🤔 Adding listeners for the BufferActivated event and manually setting the style each time the user switches to a different tab adds a lot of code and possibilities for bugs, for something that the user typically only does once…

    Honestly I think I’ll undo the new code and go back to just asking the user to restart Notepad++ after they change the default color set.

  • Can I trigger a python script from mouse movements/hover/mouseover/etc..

    14
    1 Votes
    14 Posts
    1k Views
    Alan KilbornA

    @Rufus-Smith said in Can I trigger a python script from mouse movements/hover/mouseover/etc..:

    I learned today how to modify the contextMenu.xml to be able to add a python script as a menu option in the right-click context menu, which is a further alternative to hover-tip-click

    Sure, but the context menu will appear whenever your right click, on all text and in all files. Confining actions to call-tips in specific file types and requiring a click on the call-tip to invoke certain actions keeps things very localized, and it is easy to set up and handle. But, of course, the choice is yours! :-)

    BTW, running scripts from the normal right-click context menu also allows them (to a degree) to use modifiers to change behavior. It has some of the limitations mentioned previously, but I do it. You can also put a modifier hint into the context menu text to remind you, example: Run script (+Shift=Do all) – you get the idea…

  • A plugin to toggle displaying password as dots?

    6
    0 Votes
    6 Posts
    2k Views
    Yuriy KonstantinovY

    @Alan-Kilborn no I mean only my own credentials in a text file located on my computer:

    Some of my credentials are kept as text in a file.

  • Help with Compare plugin

    2
    0 Votes
    2 Posts
    295 Views
    pnedevP

    Hi,

    It is currently not possible.

    BR

  • DuckyScript 3.0 Style Configuration Request

    3
    0 Votes
    3 Posts
    2k Views
    Michael VincentM

    @Michelle-Flores said in DuckyScript 3.0 Style Configuration Request:

    Would it be possible to add DuckyScript 3.0 as a style configuration? That would be awesome!

    As @PeterJones says, you’ll need to use / define a User Defined Language (UDL). A quick Google turns up this:

    https://github.com/abhinavvv03/Rubber-Duckey/blob/master/Downloads.rdoc

    I cannot confirm the veracity of the UDL download mentioned on that site - my IT blocks it. Proceed with caution.

    Cheers.

  • 0 Votes
    4 Posts
    323 Views
    PeterJonesP

    @Manpreet-Singh ,

    One more freebie: check if you have a newline at the end.

    Note that my example screenshot above shows the file has 10 lines, the last being blank.

    If you have a file that doesn’t have a newline after the closing } – so only 9 lines instead – it won’t syntax highlight.

    d3b6a0d3-0308-4e9d-945d-f10677c52a88-image.png

    The highlighter requires at least one newline or other whitespace character after the final }.

  • function list for java now working in new version

    Locked
    2
    0 Votes
    2 Posts
    216 Views
    PeterJonesP

    @Manpreet-Singh ,

    Discussion will continue in another version of your topic

  • NppExec v0.8.3 has been released!

    1
    4 Votes
    1 Posts
    1k Views
    No one has replied
  • DSpell Check not working (again). (Sigh.)

    3
    0 Votes
    3 Posts
    2k Views
    Shiraz MistryS

    @PeterJones Thank you for the steps. They worked so well.

  • Question about the Dark Mode's dark scrollbars and toolbars

    7
    1 Votes
    7 Posts
    1k Views