• PLANTUML viewer plugin error

    6
    0 Votes
    6 Posts
    498 Views
    hagai DanenbergH

    Thank you @PeterJones,
    Based on the link you sent, It looks like there is an issue with the Power Automate setup.
    The problem was solved by deleting Microsoft.Flow.RPA.Desktop.UIAutomation.Java.Bridge.Native from the accessibility.properties file

    Issue resolved!!!
    Thank you very much for the help!

  • Determining if the active document is mono-spaced

    8
    2 Votes
    8 Posts
    378 Views
    CoisesC

    @Mark-Olson said in Determining if the active document is mono-spaced:

    The potential pitfall I see here is weird stuff like BEL and ENQ that are technically ASCII but are represented as big boxes in Notepad++. So you’d probably have to exclude those in your calculation.

    Good point — even if all the fonts in use are fixed pitch, this case (and probably others) could yield an exception. At this point I’m thinking the practical answer will be to get a good guess as to whether the file is “mostly” mono-spaced, and then find a way to identify and adjust for the exceptions as they scroll into view.

    Thanks.

  • HUNSPELL Download

    2
    0 Votes
    2 Posts
    377 Views
    PeterJonesP

    @Ron-Edmonds ,

    I have no problem downloading a Hunspell dictionary.

    Which version of DSpellCheck are you using? I tried with v1.4.24 and it worked, and then saw there was a new version, and updated to v1.5.0, and it still worked.

    Or maybe you are on a computer that needs Proxy Settings – the Connection Settings button in the Download Dictionaries Dialog allows you to set up a proxy.

    If you’re using Windows 7, maybe it doesn’t properly allow https through whatever libraries DSpellCheck is using for the download. In which case, maybe there is an older version that still works with your Notepad++ v8.4.2, but will use an older library for doing the download, which will be compatible with Win 7. (Just a guess. Remember, technically, Notepad++ officially says that Windows 7 “can run” but is not supported. And I don’t know what DSpellCheck policy is on that out-of-support OS.)

  • 1 Votes
    14 Posts
    770 Views
    Mark OlsonM

    @rdipardo
    Cool! I’m going to run with your example and see about writing something that just automatically applies good dark mode styling to all the controls in any arbitrary WinForm rather than having to specify which controls get which colors.

  • Need guidance - Autocompletion plugin

    19
    0 Votes
    19 Posts
    1k Views
    TroshinDVT

    Описание
    I have a project that may interest you jn-npp-scripts. He rudely responds some functionality you mentioned. The main language of this project is Javascript.

    The project was built on the basis of another project ( jn-npp-plugin ).

  • JSTools incompatible with NPP 8.5.x

    2
    0 Votes
    2 Posts
    573 Views
    PeterJonesP

    @swegmike ,

    JSTools 1.2205 x64 installs just fine in a fresh Notepad++ v8.5.2, and is not incompatible.

    There are times when you have done upgrades in the wrong order, or upgrade across too many versions of Notepad++ or a plugin, where it might say it’s incompatible. (Or if you have tried to manually install the 64bit plugin for the 32bit Notepad++, or vice versa.) And sometimes, Plugins Admin is not able to request the correct permissions necessary to uninstall a plugin when it’s gotten itself into that weird state. If you are in that weird situation, then sometimes it is required to manually delete the DLL before you re-install the correct version.

    jstools.dll is incompatible and asking to remove it by selecting “yest”… I must manually delete the dll in the plugins directory for Json.

    What version of JSTool were you using before you tried to uninstall the incompatible one? Because the JSTool plugin, as seen at its home at https://github.com/sunjw/jstoolnpp, uses the DLL known as Plugins\JSMinNpp\JSMinNpp.dll. Please note it is not JSTools.dll, and it is not a Json directory. (Being precise when you ask questions will help you get more meaningful answers.)

  • How to get breakpoint list ?

    23
    0 Votes
    23 Posts
    5k Views
    PeterJonesP

    @PeterJones,

    (I’m also really surprised that Michael’s code worked for him a few years ago; I don’t believe the definition of the MASK field of SCI_MARKERNEXT has changed in the last three years.)

    Nevermind. The definition of Notepad++'s MARK_BOOKMARK has changed in the last three years. Specifically, in v8.4.6 in Sept 2022, it was changed from 24 to 20 to work with Scintilla 5.3.0.

    So just changing that single line to

    SET LOCAL MASK ~ 1<<20

    would have been sufficient.

    In case you don’t understand: 3 years ago, when Michael wrote the script, bookmarks used mark#24, so SET LOCAL MASK ~ 1<<24 set the mask to 0x1000000, so if bit #24 matched, it would say the line number.

    With v8.4.6 and newer, that marker is in bit #20, so if you only are looking at bit#24, it’s not going to find it. Your code, with 0xFFFFFF on the other hand, was looking at all marker numbers from 0 to 23, so it would find marker#20 as the bookmark line. But it would also find any of the other markers on those lines, even the ones that aren’t bookmarks – so it would find markers you weren’t looking for. If you file happened to have other marker types – like if you had any hidden lines due to View > Hide Lines or code folding in your active lexer – then it would report false matches.

    Marker Number References Scintilla reserves #25-31 for folding margins Scintilla reserves #21-24 for Change History Notepad++ reserves #16-20 for “internal use” (specifically, 18 & 19 for hidden lines, and 20 for bookmarks, with two more for future use) Notepad++ allows #0-15 for plugins to use, but makes no guarantee that two plugins won’t try to make use of the same marker.
  • 0 Votes
    3 Posts
    489 Views
    Bas de ReuverB

    Wait a minute, I just realised that it is converting a bytebuffer to a string and then back to a byte buffer. It should just convert the content buffer straight to a byte array and work with that.

    I’ve tested it with the code page 936 and 1252 and it seems to work correctly in both cases.

  • Plugin Admin... window positioning

    3
    0 Votes
    3 Posts
    316 Views
    Bas de ReuverB

    @James-McNamee said in Plugin Admin... window positioning:

    The “Plugin Admin…” window position is locked. It cannot be moved to a new screen position.

    Not exactly sure what you mean by this, could you post a screenshot maybe? I can freely move the dialog around the screen with the mouse. On a Windows setup with multiple monitors, it can even be dragged to the different monitors.

    When you open Settings > Preferences or Settings > Style Configurator, do you have the same issue with those dialogs? Or how about the Notepad++ window itself, can you resize and move that?

  • Grammarly Plugin

    5
    -3 Votes
    5 Posts
    5k Views
    CoisesC

    @Manie-Beneke said in Grammarly Plugin:

    @Prahlad-Makwana4145
    Since this discussion, has any new consideration been given to integrating Grammarly into Notepad ++?
    Combining the two platforms would create a valuable tool and be hugely beneficial if provided as an integrated mobile cloud service.

    A quick look at Grammarly for developers suggests that Grammarly is based on web technologies. This would be difficult (if possible at all) to connect to Notepad++, which is a C++/WinAPI program. It’s also not open source, and since Notepad++ uses the GNU GPL, integrating it without violating one license or the other might be tricky. None of that is to say it couldn’t be done… but don’t hold your breath. I’d say the chances of someone choosing to tackle this one are very low. It’s not a good fit.

  • Anyone familair with PseudoConsole API in Windows 10?

    5
    1 Votes
    5 Posts
    630 Views
    Vitalii DovganV

    I tried GetConsoleMode/SetConsoleMode - these funcions are rather for real console (e.g. in a console application or when a console is created explicitly by means of AllocConsole and so on) than for a PseudoConsole. Anyway, it was worth to try since I didn’t have other ideas.

    Eventually I’ve asked another developer for advice since he uses PseudoConsole in his Python code:
    https://github.com/veksha/cuda_exterminal/issues/51
    From his clarifications, NppExec must support ANSI escape codes to deal with PseudoConsole properly. Which, in its turn, returns us to this:
    https://github.com/d0vgan/nppexec/issues/14
    The circle closed up :)
    So it looks like NppExec requires additional code that will handle the ANSI escape codes.

  • [new plugin] JavaScript Map Parser

    3
    0 Votes
    3 Posts
    5k Views
    Thomas ShelbyT

    @megaboich said in [new plugin] JavaScript Map Parser:

    Hi everyone,

    Initially this plugin was developed for Visual Studio, and now it is available also for Notepad++.
    It shows the code structure of your JavaScript file in a separated panel in tree-view form. Code structure includes function definitions(including anonymous) and hierarchy.
    More documentation is available for Visual Studio version, functionality is the same.
    https://github.com/megaboich/js-map-parser/wiki/Functionality-Guide

    Prerequisites: .Net framework 4.0 must be installed.

    I have created release with plugin dll here:
    https://github.com/megaboich/js-map-parser/releases/tag/v4.0.2-npp

    I would really appreciate any help in making this plugin available in Notepad++ Plugin Manager.

    Visit this: https://community.notepad-plus-plus.org/topic/10738/changement-could-impact-plugins-for-javascript

  • TextViz - hide lines without clipboard text do not work

    6
    0 Votes
    6 Posts
    913 Views
    Alan KilbornA

    @JaZnam-Fore said in TextViz - hide lines without clipboard text do not work:

    I really do not understand why someone who has already got necessary skills does not help others and simply give a link to the compiled binaries containing the fix.

    Who’s this someone you’re talking about?

  • TextFX vs TextVIZ

    3
    0 Votes
    3 Posts
    622 Views
    Pierre de la VerreP

    @PeterJones
    thanks, I got it!

  • Problem (for me) with Brackets Check.

    5
    0 Votes
    5 Posts
    328 Views
    Lycan ThropeL

    @Mark-Olson ,
    Agreed. This is one of the biggest reasons many of my fellow dBASE users wanted a Notepad++ UDL for the dBASE Language, and one fellow in particular.
    This and word wrap in NPP makes it easy for them to track/find matching open/close delimiters when they make complex commands in dBASE that uses a combination of square brackets, curly brackets and parnthesis when making complex SQL strings for access to backend databases formatted for the dBASE frontend for sending/receiving data.

  • 2 Votes
    3 Posts
    415 Views
    R

    @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
    875 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
    252 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
    274 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
    978 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.