• Login
Community
  • Login
  1. Home
  2. Notepad++ & Plugin Development
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • А

    Why does NotePad++ (using example 7.7), from functionsList.xml, not see all the functions in the panel?

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Feb 3, 2024, 11:45 PM
    Feb 3, 2024, 3:36 PM
    0 Votes
    3 Posts
    308 Views
    L Feb 3, 2024, 11:45 PM

    @А-А ,
    In addition to what @PeterJones has mentioned, there is also a quirk with the functionList that requires you to add I believe 2 carriage returns at the end of a file, to make it ‘see’ the last functions in a file. I found this to be the case recently when I was checking some code I had been fixing and noticed that one of the functions I was looking for was missing at the end of the file, and I remembered the bug, added two carriage return/line feeds, and it became visible. Read the FAQ for the FunctionList Basics where @MAPJe71 documents some of the bugs with the FunctionList.

  • T

    Looking for Text Masking Logic in N++

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Feb 1, 2024, 1:26 PM
    Feb 1, 2024, 10:02 AM
    1 Votes
    3 Posts
    645 Views
    T Feb 1, 2024, 1:26 PM

    @Ekopalypse said in Looking for Text Masking Logic in N++:

    I’m not sure, but I assume you are looking for TinyXML .

    Yes, this was the part i was looking for. PutString is translating the special characters. This helps me a lot! Thanks!

  • F

    Default rtl mode

    Watching Ignoring Scheduled Pinned Locked Moved rtl open file default
    5 Jan 29, 2024, 10:28 AM
    Jan 12, 2024, 11:34 PM
    0 Votes
    5 Posts
    467 Views
    F Jan 29, 2024, 10:28 AM

    @PeterJones
    @Paul-Baker
    Thanks for the reply, I didn’t have access to the internet for a while, and now that I’m back, I found out that Notepad has completely fixed this problem in the new update, and that’s great.

  • P

    How to programmatically determine if a bookmark is set for a given line number?

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Jan 28, 2024, 6:06 PM
    Jan 27, 2024, 4:59 PM
    0 Votes
    4 Posts
    503 Views
    P Jan 28, 2024, 6:06 PM

    @Paul-Baker

    The c# template I am using had these already defined… Not sure how I missed this. But thanks again!

    /// <summary>Add a marker to a line, returning an ID which can be used to find or delete the marker. (Scintilla feature 2043)</summary> int MarkerAdd(int line, int markerNumber); /// <summary>Delete a marker from a line. (Scintilla feature 2044)</summary> void MarkerDelete(int line, int markerNumber); /// <summary>Delete all markers with a particular number from all lines. (Scintilla feature 2045)</summary> void MarkerDeleteAll(int markerNumber); /// <summary>Get a bit mask of all the markers set on a line. (Scintilla feature 2046)</summary> int MarkerGet(int line);
  • V

    NppExec v0.8.8 has been released!

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jan 26, 2024, 9:20 PM
    Jan 26, 2024, 9:20 PM
    4 Votes
    1 Posts
    624 Views
    No one has replied
  • P

    How to Set Lexer Language after OpenFile

    Watching Ignoring Scheduled Pinned Locked Moved
    10 Jan 16, 2024, 9:10 PM
    Jan 15, 2024, 7:18 PM
    0 Votes
    10 Posts
    844 Views
    R Jan 16, 2024, 9:10 PM

    @Paul-Baker said in How to Set Lexer Language after OpenFile:

    if you switch tabs and then switch back . . .

    The NPPN_READONLYCHANGED notification exists for use cases like that.

  • P

    How to create a C# plugin that uses a non-dockable dialog

    Watching Ignoring Scheduled Pinned Locked Moved
    16 Jan 14, 2024, 10:38 PM
    Jan 12, 2024, 4:54 PM
    0 Votes
    16 Posts
    920 Views
    P Jan 14, 2024, 10:38 PM

    @Mark-Olson said in How to create a C# plugin that uses a non-dockable dialog:

    One other warning I have about the plugin pack that you should be aware of…

    There are a lot of methods (29 by my count) in the ScintillaGateway.cs that look something like this:

    Thanks Mark. I’m still chewing on the dialog. The JSon Tools plugin is displaying a Settings input dialog which is what I want to do. I’ll be on the lookout for the unsafe methods and apply your recommendations as needed, I appreciate your comments. Thank you!

  • T

    Toolbar Icon not appearing

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Jan 14, 2024, 7:19 PM
    Jan 14, 2024, 6:43 PM
    0 Votes
    5 Posts
    517 Views
    T Jan 14, 2024, 7:19 PM

    @PeterJones said in Toolbar Icon not appearing:

    needs to match with the command number in your setCommand for that menu entry

    Ok, that makes now absolute sense for me. My setCommand is actually pointing to 0 to call the plugin.

  • M

    New C# plugin template

    Watching Ignoring Scheduled Pinned Locked Moved plugin templates
    1 Jan 14, 2024, 8:22 AM
    Jan 14, 2024, 8:22 AM
    3 Votes
    1 Posts
    1k Views
    No one has replied
  • M

    Changing whether a toolbar icon is highlighted

    Watching Ignoring Scheduled Pinned Locked Moved toolbar plugin
    3 Jan 14, 2024, 5:49 AM
    Jan 14, 2024, 3:43 AM
    0 Votes
    3 Posts
    280 Views
    M Jan 14, 2024, 5:49 AM

    @rdipardo said in Changing whether a toolbar icon is highlighted:

    NPPM_SETMENUITEMCHECK

    Agree that that works to check the menu item in the plugin menu, but it doesn’t do anything to the toolbar icon.

    I’ll just create an issue in my new C# plugin pack once I finally release it to GitHub, and maybe you can submit a PR.

  • P

    Is there a SCI_SETLINE type message (How to update a line)

    Watching Ignoring Scheduled Pinned Locked Moved
    19 Jan 12, 2024, 4:21 PM
    Jan 6, 2024, 4:12 PM
    1 Votes
    19 Posts
    1k Views
    A Jan 12, 2024, 4:21 PM

    @Mark-Olson said in Is there a SCI_SETLINE type message (How to update a line):

    much faster if you just slurp all the text out in one go, process it in C#, and then dump it all back into the file

    …and watch your change-history go “all orange”, registering every character in the file as “changed”. Secondary concern: It also nullifies a plugin’s opportunity to provide step-by-step undo for possible individual modifications it makes.
    For me this would be a big problem, and I wouldn’t use a plugin that did this to me.
    Sure, for some people this would be absolutely no problem.
    But I wouldn’t make this approach a general recommendation.

  • donhoD

    Notepad++ v8.6.2: Fix Ctrl-V not working for some plugins

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Jan 11, 2024, 5:48 PM
    Jan 11, 2024, 5:48 PM
    4 Votes
    1 Posts
    721 Views
    No one has replied
  • innoovative thiinkingI

    Feature Request: Colourized Tabs based on Folder Path. Please

    Watching Ignoring Scheduled Pinned Locked Moved tabs features
    7 Jan 7, 2024, 11:30 AM
    Jan 6, 2024, 3:43 AM
    1 Votes
    7 Posts
    737 Views
    A Jan 7, 2024, 11:30 AM

    @innoovative-thiinking said in Feature Request: Colourized Tabs based on Folder Path. Please:

    looks like manual colorization and drag dropping is the way to go forth.

    If I were you, I would not expect to see this behavior added to Notepad++, but, you never know.
    Good luck.

  • MarioRosiM

    HowTo set hIconTab for DockingDlgInterface?

    Watching Ignoring Scheduled Pinned Locked Moved
    12 Jan 6, 2024, 1:11 PM
    Dec 7, 2023, 8:41 PM
    0 Votes
    12 Posts
    1k Views
    A Jan 6, 2024, 1:11 PM

    @ThosRTanner said:

    I think I might publish my highly overengineered replacement for DockingDlgInterace at some point cos the current one takes a lot of experimentation to get right.

    More of an official announcement for it is HERE.

  • D

    Markdown UDL Help

    Watching Ignoring Scheduled Pinned Locked Moved markdown udl
    8 Jan 6, 2024, 8:28 AM
    Jan 5, 2024, 10:51 PM
    1 Votes
    8 Posts
    2k Views
    D Jan 6, 2024, 8:28 AM

    I can now post links - here is the UDL and test MD - https://drive.google.com/file/d/193FHJrGEL7MUIuy86khVorLLNW_HTg6P/view?usp=sharing

  • Patrick JacksonP

    Resources/Tutorial for Next Steps in Plugin Development?

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Jan 5, 2024, 10:33 PM
    Jan 5, 2024, 5:02 PM
    0 Votes
    5 Posts
    975 Views
    M Jan 5, 2024, 10:33 PM

    This doesn’t exactly solve your problems with the C++ template, but…

    I (along with several others) have made plugins with C#, rather than C++. The plugin template all the aforementioned plugins is here.

    You can stop reading here if you dislike sales pitches for programming languages.

    Reasons why I think using C# instead of C++ is a good idea:

    Windows Forms Visual Studio has a GUI so you don’t need to edit special config files to edit your forms Powerful controls like the TreeView (a huge help in the development of my JsonTools plugin) I find the event-and-subscriber-based system for handling events like clicking on the controls to be very intuitive Windows Forms have a lot of events defined, making it easy to respond to lots of types of user actions C# has nice productivity features and a garbage collector. C# is really fast. Seriously, though. I have definitely noticed plugins written in C# that perform X task faster than a comparable plugin implemented in C++.
  • CoisesC

    Columns++ recommended update to 1.0.2

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Jan 5, 2024, 6:47 PM
    Jan 4, 2024, 10:23 PM
    3 Votes
    4 Posts
    504 Views
    CoisesC Jan 5, 2024, 6:47 PM

    @M-Andre-Z-Eckenrode said in Columns++ recommended update to 1.0.2:

    VirusTotal appears to confirm the presence of one or more threats

    This is a frustrating situation for me, and I don’t know that there is much I can do about it.

    I can promise you that there is no malware in the releases I’ve posted on GitHub, but you don’t know me.

    The just-released version of Notepad++ includes Columns++ in Plugins Admin, but I fixed a serious error after the version that will be included, so the fix won’t be included until the next time Notepad++ is updated.

    I suspect the Quick Installer gets flagged because I used a very simple method to package a script to update the plugin files — something that’s probably done by malware more often than legitimate software. I might be able to fix that, but it will take time.

    I’m not sure why the x86.zip file is flagged. I see just 2 of 61 vendors flagging it. (The x64 file contains exactly the same code, compiled for 64-bit execution, and 1 of 61 vendors flags it.) There is no way for an independent developer to find out why it is flagged. (Understandably, telling programmers how malware is detected would be telling malware authors how to avoid detection.)

    The situation may have gotten worse because I included logic to check for new versions, out of concern for exactly the situation that has occurred — finding a serious error too late to have the version with the fix included in the next Notepad++ plugins admin.

    I’m sorry that I have no better advice than this to give:

    You can trust me and bypass the malware warnings (if your system isn’t configured to deny you that option).

    You can compile from source. (Not likely to be practical unless you are a developer yourself and already have Visual Studio set up on your computer.)

    You can use the version available through the Plugins Admin in Notepad 8.6.1 and be careful not to use Replace All/Before/After if you have any unsaved data in any tabs, because there is a condition in which it will hang and necessitate force-closing Notepad++.

    You can wait until some future version of Notepad++ happens to release with the Plugins Admin containing version of Columns++ in which I haven’t made a serious blunder.

    I truly hate this. I’m already disgusted with myself for having made such a serious error, but that I can’t fix it without telling people to ignore their malware scanners and just install anyway is maddening.

  • D

    Additional features to notepad++ workspace menu

    Watching Ignoring Scheduled Pinned Locked Moved
    7 Jan 2, 2024, 1:58 PM
    Dec 13, 2023, 10:03 AM
    0 Votes
    7 Posts
    2k Views
    Michael VincentM Jan 2, 2024, 1:58 PM

    @DanielAzzam said in Additional features to notepad++ workspace menu:

    Can’t wait until files and folders are unified. :) as this will exactly what I was trying to reach.

    Have a look now at the 1.8.2.29 version.

    Cheers.

  • KaleemK

    To add a new line in a script after a specific line match in notepad ++

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Dec 31, 2023, 5:06 PM
    Dec 31, 2023, 11:54 AM
    0 Votes
    3 Posts
    353 Views
    M Dec 31, 2023, 5:06 PM

    @Kaleem
    In the future, please try to wrap text blocks in ```

    See also here

  • T

    Detecting N++ UI Language

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Dec 30, 2023, 7:14 PM
    Dec 30, 2023, 2:50 PM
    0 Votes
    5 Posts
    444 Views
    T Dec 30, 2023, 7:14 PM

    @rdipardo
    Delphi is one of my favorites 😉 it reminds me of my first big project from the early 90s. I’ve even managed to save the code on my GitHub.

    Your MultiLanguage implementation indicates that keeping the language snippets in a flat structure should suffice. I also don’t see any additional value in complicating it with XML.

    Thanks for sharing!

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors