• 2 Votes
    3 Posts
    524 Views
    rdipardoR

    @Bas-de-Reuver,

    Any ideas on how to tackle this specific issue?

    Scintilla has an API for something called “line state”.

    In broad terms, a lexer “bookmarks” a line in the document by sending SCI_SETLINESTATE with some meaningful value, then looks it up later on by sending SCI_GETLINESTATE.

    A few Lexilla lexers already use line state to keep track of nested stream comments:

    Visual Prolog

    Microsoft Transact-SQL

    F#: lexing and folding

    For a (much more complicated) alternative, have a look at how the Python lexer implements f-strings.

  • Lua scripting Plugin

    6
    0 Votes
    6 Posts
    1k Views
    Alex RockA

    @dinkumoil said in Lua scripting Plugin:

    @Alan-Robinsin

    The LuaScript plugin already provides a menu item to execute the code in current editor tab, see (menu) Plugins -> LuaScript -> Execute Current File.

    With the help of the CustomizeToolbar plugin you can create a toolbar button linked to that menu entry by yourself. The plugin provides help how to do that, see (menu) Plugins -> Customize Toolbar -> Help - Custom Buttons.

    But since coding implies that you have your fingertips already at the keyboard, I would like to suggest to use Npp’s macro feature to create a macro that

    saves the current file and calls LuaScript’s Execute Current File feature.

    That macro you can assign to a keyboard shortcut.

    thanks my issue has been fixed.

  • Bug Multiclipboard makes N++ close.

    2
    0 Votes
    2 Posts
    316 Views
    Terry RT

    @Luis-Piña-III

    MultiClipboard isn’t a plugin that you can see in the Plugin Admin list, so cannot select and install it. It is likely (given it seems last version was 2011 according to GitHub) that it’s incompatible with the recent versions of Notepad++.

    How about reading the FAQ post here and follow the instructions for running without the plugin.

    Terry

  • XML Tool - MacOS - M2

    2
    0 Votes
    2 Posts
    388 Views
    Alan KilbornA

    @John-Smith-6

    I think really what you’re saying is that that plugin isn’t currently built for ARM processors. Probably your best bet is to visit the home of that plugin, and inquire there if an ARM build is in the future:

    06f4a649-8e7b-4552-8ab7-ff3852164fa4-image.png

  • Grammarly Plugin

    3
    0 Votes
    3 Posts
    1k Views
    Michael VincentM

    @Steve-C said in Grammarly Plugin:

    I was hoping this was being explored for a possible future update.

    You can write your own plugin if you understand Grammarly API.

    Cheers.

  • Is there an plugin which is able to do pretty print for shell/bash?

    7
    0 Votes
    7 Posts
    7k Views
    Michael VincentM

    @blueicehaller said in Is there an plugin which is able to do pretty print for shell/bash?:

    To my understanding this requires Linux.

    Why? It seems to be written in Python.

    Cheers.

  • Working with huge JSON files

    1
    3 Votes
    1 Posts
    3k Views
    No one has replied
  • [Plugin Update] NppUISpy

    4
    4 Votes
    4 Posts
    555 Views
    Lycan ThropeL

    @dinkumoil ,
    Hmmm… okay. I realize what the plugin helps, it does make it easier to find those two pieces of data, but now that you mention what you use it for, that’s another idea I’ll have to look into also. NPPExec could be the ticket. My assumption was, that as long as you have the ID, Name, you could put that into the contextMenu.xml for selection, and @Alan-Kilborn has already mentioned to me that PythonScript might also be able to be used to do it also. I was however, just looking for a simple way to cut down on the mousing necessary. I can bring up the two menus needed, Preferences and Style Configurator with a right click menu system now, so that at least removes one mouse movement. :) Thanks.

    Edit: ahh…okay, well I can still think of a few things to use NppExec for also. :)

  • 0 Votes
    58 Posts
    20k Views
    M

    @Ekopalypse
    I see… 😅

  • Terminal Plugin

    17
    1 Votes
    17 Posts
    12k Views
    Debajyoti DattaD

    @Michael-Vincent yes, we should probably end our discussion here.

  • 1 Votes
    10 Posts
    607 Views
    Guido ThelenG

    @mpheath Actually, the SCI_REPLACETARGETMINIMAL did the trick. In this SQL I just added I linebreak after “FROM” and only the impacted lines are shown in orange

    9593901a-31e2-4f62-b18b-41940bcef4da-grafik.png

    OF course, if there was another FROM statement all the lines between the two FROM statements would be shown in orange. This is fine for me.

    b718760f-f4ab-4c9f-b494-b265093b620b-grafik.png

    Regards
    Guido

  • How to add new Scintilla Messages to NotepadPlusPlusPluginPack.Net

    7
    1 Votes
    7 Posts
    813 Views
    Guido ThelenG

    @Alan-Kilborn @PeterJones, thanks! These were the info I needed. First tests are working fine. Need to do more tests.

  • 0 Votes
    2 Posts
    213 Views
    Alan KilbornA

    @Pantyhose-X

    Sounds like a programming problem.
    Sometimes we solve problems here with programming with Notepad++ and its plugins.
    This one seems best served by a solution independent of Notepad++.

  • 0 Votes
    5 Posts
    676 Views
    CoisesC

    The problem was not at all what I thought. It turned out to be ordinary user error. There was a fault in the syntax of my regular expression. Having never used C++ regular expressions before, I didn’t know that even when the expression is coded as a character literal, Visual Studio compiles code containing invalid regular expressions without complaint and then throws a run-time error. Because it was in a plug-in dll and it was a static constant (hence, processed on loading), the dll failed to load at all.

    There is no problem loading a plugin that uses std::regex, so long as the expression doesn’t cause an exception.

    Thanks to those who replied.

  • combine plugin

    17
    0 Votes
    17 Posts
    17k Views
    Alan KilbornA

    I noticed that the technique using the BetterMultiselection plugin described here: https://community.notepad-plus-plus.org/topic/22358/ Jan 8, 2022, 7:55 AM could also solve the problem of @0Raniere0 ; it may be very similar to @guy038’s solution presented directly above.

  • Unable to uninstall (remove) plugins!blem

    7
    0 Votes
    7 Posts
    2k Views
    senselockeS

    On any install of NPP, either updated from prior version or a fresh install, I am unable to add or remove any plugins. NPP resets, but the progress bars don’t show and no changes are made. I am using Windows 7. I have had this problem with every version since 7.3.x.

    I found a solution that worked here:
    @jnappo64 said in Cannot install plugins at all:

    go to proxy configuration and delete 0.0.0.0

    Hitting the [?] button on the right (next to [Window]), then > [Set Updater Proxy …]. Delete the ‘0.0.0.0’ from the ‘Proxy Server:’ field, delete ‘0’ from the ‘Port:’ field. Click [OK], then restart NPP.

    Completely wiping these entries allowed plugin admin to install/delete/update as normal.

    I do this now on every install. I have a reminder file set up in the folder I install NPP to, because I always forget and start to panic.

    I know this topic is kinda old, but maybe it will work for you, or for someone else down the line.

  • 0 Votes
    8 Posts
    692 Views
    Michael VincentM

    @Guido-Thelen said in Is my Code Folding interfering with Change History and therefore producing orange lines:

    Dear Michael-Vincent
    many thanks for your perfect explanation. I got it working now.

    I don’t know about “perfect”, but glad it helped. Thank you for continuing the support of your plugin as Notepad++ gains new features and keeps pace with Scintilla updates. It’s an arduous process, but as you can see form this forum, there are many users who I’m sure appreciate your work.

    Cheers.

  • [New Plugin] ExtSettings

    56
    9 Votes
    56 Posts
    10k Views
    dinkumoilD

    @Alan-Kilborn

    Thank you for providing the download link more close to my announcement. I will keep that in mind for the next time. To provide more info I added the change log to my comment above.

    @Alan-Kilborn said in [New Plugin] ExtSettings:

    Assumes dinkumoil does what’s necessary to make it appear there, post 8.4.8

    Done, the new release is already part of Npp’s upcoming plugin list.

    the chief documentation maintainer moved forward with using “caret” in the software UI and the user manual. Perhaps you’d want to do this as well for your “Cursor” section in an upcoming release.

    Yes, why not. It’s always good to use an equal naming.

  • export a app without run it

    3
    0 Votes
    3 Posts
    231 Views
    Lycan ThropeL

    @Alan-Kilborn ,
    And it also sounds contradictory and ambiguous from the start to the end, on top of that. ?!?

  • TextFX plugin no longer working with v.8.4.3

    Locked
    21
    0 Votes
    21 Posts
    30k Views
    Alan KilbornA

    Five “thank yous” in a row…

    Try the “upvote” or “+1” button to one of @rainman74’s posts instead:

    660116b2-cd0f-44b4-bae0-cb79b5259766-image.png

    That way rainman sees it, but no one else is “bothered” by it.