• Auto-detect Language when creating new file

    9
    0 Votes
    9 Posts
    9k Views
    Eduardo JorgeE

    would not be able to use a comment line to change the syntax?

    use it to exchange syntax in the middle of the document?

    I am trying to set up the O2 compiler “Oxygen Basic” but the syntax is very varied, assimble, syntax C, Basic, and even in Basic accepts variants like End if, Endif,
    would be good to avoid language vices

  • How to share my notepad++ plugin ?

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    Skycc LimS

    Alright, thanks a lot, its already in github, let me make a post to share it here :)

  • UDL User Defined Language - keyword inside delimiter

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Sayanel LyyantS

    Yes thats it exactly
    So sad… I’ll do without it.
    Maybe it could be an improvement to do to UDL?

    Thanks

  • Plugin development help

    9
    1 Votes
    9 Posts
    3k Views
    Finn McCarthyF

    EDIT: I found a way, yippee!!

    jN Notepad++ Plugin

  • Macro: Delete lines that contains text in clipboard

    Locked
    9
    1 Votes
    9 Posts
    4k Views
    Scott SumnerS

    Well if we are opening it up to scripts, then I’ll offer up the following Pythonscript; I call it DeleteLinesWithClipboardText.py:

    def DLWCT__main(): if not editor.getSelectionEmpty(): return # keep it simple; maybe prompt user to cancel selection and re-run... if not editor.canPaste(): return # keep it simple; maybe prompt user that no text is in clipboard... orig_document_len = editor.getTextLength() editor.beginUndoAction() editor.paste() pasted_text_len = editor.getTextLength() - orig_document_len curr_pos = editor.getCurrentPos() clipboard_text = editor.getTextRange(curr_pos - pasted_text_len, curr_pos) editor.deleteRange(curr_pos - pasted_text_len, pasted_text_len) if '\r' in clipboard_text or '\n' in clipboard_text: # keep it simple; don't allow multiline search text editor.endUndoAction() return del_line_list = [] find_start_pos = 0 while True: f = editor.findText(FINDOPTION.MATCHCASE, find_start_pos, editor.getTextLength(), clipboard_text) if f == None: break (found_start_pos, found_end_pos) = f line_nbr = editor.lineFromPosition(found_start_pos) if len(del_line_list) > 0: if del_line_list[0] != line_nbr: del_line_list.insert(0, line_nbr) else: del_line_list.append(line_nbr) find_start_pos = found_end_pos for line in del_line_list: editor.deleteLine(line) editor.endUndoAction() DLWCT__main()

    The only tricky part is in getting the clipboard data. I paste the clipboard contents into the document, read what was just pasted, and then delete those contents. After that it is a simple matter to locate the desired text and delete the lines it occurs on.

  • New Capability - Dragging Tab Creates New Instance

    Locked
    2
    0 Votes
    2 Posts
    918 Views
    Scott SumnerS

    @Jeremy-Fegenbush

    Why is this a “New Capability”? This has existed for many years. (confused)

  • ConvertExt source code? Or other EBCDIC converter plugin?

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Vitaliy DovganV

    I’d use iconv (for example, from http://gnuwin32.sourceforge.net/packages/libiconv.htm) for the conversion.
    And PythonScript or NppExec plugin can be used to create a script that will call iconv to convert the current file.

  • NppExec v0.6 RC1 has been released!

    Locked
    2
    2 Votes
    2 Posts
    1k Views
    Vitaliy DovganV

    For those who are new to NppExec:

    Here is some brief info about NppExec for new users:

    NppExec adds a Console window at the bottom of Notepad++'s window;
    This Console window allows to run different console programs directly in it;
    Also there is Plugins -> NppExec -> Execute… window that allows to execute NppExec’s scripts (set of commands). NppExec’s commands and variables are listed in the “NppExec.txt” file. To get more details, type “help” (without the quotes) directly in NppExec’s Console. To get a detailed help about any NppExec’s command, type “help [command]” - e.g. “help npp_open” or “help set”.
    And don’t forget about Plugins -> NppExec -> Help/Manual.

    Installation:

    Just unpack the NppExec zip-archive to the folder “Notepad++\plugins”.
    It will extract the file “NppExec.dll” as well as the “doc\NppExec” and “NppExec” subfolders.
  • Line up , delimited data with columns in N++ 7.5 64bit

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Bonnie-Harmon

    if you know python you could use the python script plugin to let a script do the job.

    Cheers
    Claudia

  • Notepad++ message to know the tab size

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Guido ThelenG

    Hi Claudia,
    many thanks for your answer! That’s what I was looking for. I don’t understand why I did not find it myself!!
    Regards
    Guido

  • Bertrand

    Locked
    3
  • COBOL Plugin Development

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    chcgC

    Some examples referencing sourceforge downloads are outdated and more up to date plugin examples of donho are available from:
    https://github.com/npp-plugins/plugindemo
    https://github.com/npp-plugins/plugintemplate

  • NppExec v0.6 beta 1 has been realeased!

    16
    7 Votes
    16 Posts
    7k Views
    chcgC

    @dinkumoil Checkback with Dave Brotherstone showed that the server was not working as expected. The missing sync happened and the 2 week schedule is in place again.

  • 0 Votes
    5 Posts
    3k Views
    dinkumoilD

    @Scott-Sumner

    To have a consistent user experience it would be better like you wrote. But I also agree that this needs so much effort that no one should hope to get these features.

    I think the proponents of the two-button solution missed a point. It seems they prefer to have two buttons because they want to speed up doing SEARCHES. For this use case Notepad++ offers some powerful alternatives:

    Keyboard shortcuts for forward (F3) and backward (SHIFT+F3) searching. With support of the “Customize Toolbar” plugin one can even have toolbar buttons for both of that. The seemingly overlooked though very useful “Incremental Search” (CTRL+ALT+I) function where forward and backward search buttons are already present. This function even provides a separate input field for the search term (which is integrated seamlessly into the UI), case sensitive search, highlighting of matches and it displays the matches count. The also seemingly overlooked “Find (Volatile) Next” (CTRL+ALT+F3) and “Find (Volatile) Previous” (CTRL+ALT+SHIFT+F3) functions. These functions search the next/previous word under the cursor, the quickest way to start a search because its needless to input a search term somewhere.

    I guess the initial intent when introducing the two-button search mode was to reduce the number of UI-elements and to simplify the work with this dialog. But the current design of the dialog has not only totally failed this aim, the oposite is the case.

    In my opinion the “Search & Replace” dialog should be used for more sophisticated search/replace tasks, that’s the reason why it has so much options. And instead of complaining about missing functions and demanding changes to a program users should investigate thoroughly the UI and the options dialog, often they will find useful treasures.

  • Notepad++ 7.5.6 for Clojure by modifying config files of Lisp

    3
    1 Votes
    3 Posts
    2k Views
    linpengchengL

    I hope that notepad++ officially supports Clojure,
    These configuration file can be merged into notepad++.
    I don’t understand C++ and git, I can’t pull rquests.

  • XMLTools is causing problem with NPP

    4
    0 Votes
    4 Posts
    4k Views
    chcgC

    What do you see under ?->Debug Info? For me:

    Notepad++ v7.5.6 (64-bit)
    Build time : Mar 19 2018 - 00:23:17
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll nppcrypt.dll NppFTP.dll PluginManager.dll XMLTools.dll

  • plugin manager update error

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    chcgC

    Please check at https://github.com/bruderstein/nppPluginManager/issues and create a new issue there.

  • C# plugin - error 0x0000071A closing WPF window

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    moon6969M

    Using Spy++ I can see these messages to my WPF window/wrapper when NPP closes down…

    <000015> 001A0C64 S WM_GETTEXT cchTextMax:512 lpszText:0012D7A8 <000016> 001A0C64 R WM_GETTEXT cchCopied:5 lpszText:0012E910 ("A") <000017> 001A0C64 S message:0x0090 [Unknown] wParam:00000000 lParam:00000000 <000018> 001A0C64 R message:0x0090 [Unknown] lResult:00000000 <000019> 001A0C64 S WM_WINDOWPOSCHANGING lpwp:0012FBFC <000020> 001A0C64 R WM_WINDOWPOSCHANGING <000021> 001A0C64 S WM_WINDOWPOSCHANGED lpwp:0012FBFC <000022> 001A0C64 R WM_WINDOWPOSCHANGED <000023> 001A0C64 S message:0x0272 [Unknown] wParam:00000000 lParam:00000000 <000024> 001A0C64 R message:0x0272 [Unknown] lResult:00000000 <000025> 001A0C64 S WM_DESTROY <000026> 001A0C64 R WM_DESTROY <000027> 001A0C64 S WM_NCDESTROY <000028> 001A0C64 R WM_NCDESTROY

    Does anyone know what 0x0090 and 0x0272 messages are?

    I hooked the messages in my WPF code which gave this:

    MSG 90 (0, 0) = ??? MSG 46 (0, 1244516) = WM_WINDOWPOSCHANGING MSG 47 (0, 1244516) = WM_WINDOWPOSCHANGED MSG 272 (0, 0) = ??? The thread 0x2920 has exited with code 0 (0x0). MSG 2 (0, 0) = WM_DESTROY MSG 82 (0, 0) = WM_NCDESTROY Exception thrown at 0x73F008F2 (KernelBase.dll) in notepad++.exe: 0x0000071A: The remote procedure call was canceled, or if a call time-out was specified, the call timed out. The thread 0x1b9c has exited with code 0 (0x0).

    Is it interesting that a thread exits after Msg 0x272 ? Perhaps NPP expects a non-zero reply to this message?

  • Modern way to detect if a file is dirty - ?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
  • Debugging "Plugin Crash"

    14
    0 Votes
    14 Posts
    8k Views
    shrout1S

    Ok, I’ve merged the branch back into master and it seems like everything works… I don’t know what the XPML functionality is supposed to be, and without a working version I’m not sure how to troubleshoot it. I’ve removed the XPML options from the menu.

    The functional 32 bit version of the plugin is available here:

    https://github.com/shrout1/xpatherizernpp