• Howto close current file / editor witout savequestion

    10
    1 Votes
    10 Posts
    439 Views
    MarioRosiM

    @ all

    i have found a solution:

    IScintillaGateway editor = new ScintillaGateway(PluginBase.GetCurrentScintilla()); editor.SetSavePoint(); Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_MENUCOMMAND, 0, NppMenuCmd.IDM_FILE_CLOSE);

    work wit current tab.
    thanks for inspiration

  • My plugin is not working with newer versions

    3
    0 Votes
    3 Posts
    247 Views
    pnedevP

    @Roy-Messi ,

    Your plugin’s DLL needs to be located in
    Notepad++_install_folder\plugins\YourPluginName\YourPluginName.dll

    Check if it is there.

  • Plug-in (multiline find and replace) in 7.8.4 version

    4
    0 Votes
    4 Posts
    292 Views
    anisere yinkaA

    @gurikbal-singh thanks so much really appreciate. Can I get your direct mail for further inquiry, am just new

  • XML Tools and Validating using Assert(ion) Tags

    5
    0 Votes
    5 Posts
    1k Views
    EkopalypseE

    @FlurDeChiken

    How could I have missed that? Thanks for mentioning it.
    Another arrow in my quiver. :)

  • How to change order of document?

    8
    0 Votes
    8 Posts
    3k Views
    Prahlad-Makwana4145P

    Hello, @Oleksandr

    Follow these steps, To change order of document:

    Step 1 :-First and foremost, add some marking letters or numbers before the section contents
    and apply them with the same level of heading style.
    Step 2 :-Next click “View” tab.
    Step 3 :-Then check the “Navigation Pane” box in “Show” group.
    Step 4 :-Now there shall be the navigation pane on the screen. You can see all sections with the
    same level of heading style applied are there. You just need to click and drag it to the
    position you want

    I hope above Information will be useful for you.
    Thank you.

  • How to detect ESC keypressed ?

    4
    1 Votes
    4 Posts
    760 Views
    morbacM

    Thanks you both for your help.

    I followed your suggestion (low level keyboard hook) and I can now handle ESC key pressed.

    Best Regards

  • Zen coding plugin problem solved

    2
    1 Votes
    2 Posts
    405 Views
    Alan KilbornA

    @Steve-Mullock

    You used the term “Plugin Manager” twice. Did you really mean that, or do you mean “Plugins Admin”?

  • AnalysePlugin Updated to version 1.12-R43

    2
    3 Votes
    2 Posts
    234 Views
    matteshM

    One more update done to fix an annoying bug (#75) where loading from recent list is not working.
    Version is now v1.12-R44
    Best Regards, Mattes

  • Can't add item to plugin menu

    7
    0 Votes
    7 Posts
    422 Views
    Alan KilbornA

    @Ekopalypse

    What I meant, I said badly.

    “it ITS” should have been “in ITS” for one thing.

    I thought (maybe wrongly) that the OP didn’t see an exported function from the plugin DLL called anywhere by other code (within the plugin), so they thought it was unused.

  • Two questions about Project Panel and Docked Windows

    4
    0 Votes
    4 Posts
    391 Views
    Vitalii DovganV

    Thank you, I’ll try it!

  • HOW do I get the NppPluginlist.dll ??????

    3
    0 Votes
    3 Posts
    929 Views
    guy038G

    Hi, @pnedev and All,

    Seemingly, the nppPluginList.dll file, exists in portable installations of N++, too ! After a quick search, I can confirm you that this file is present, in <Installation path of Notepad++.exe>\plugins\Config, since the v7.6.2 release !

    Best Regards,

    guy038

  • XMLTools 3.0.0

    1
    4 Votes
    1 Posts
    473 Views
    No one has replied
  • Advice developing plugin that should process large files

    3
    0 Votes
    3 Posts
    330 Views
    joakim wennergrenJ

    Since ScintillaStreams is something I wrote I can give you some tips.

    Reading 100 MB from N++ is going to take a few seconds, not matter how you do it. In order to not lock up the N++ interface you have to make sure you do the processing in a different thread, e.g. something like

    Task.Factory.StartNew(() => { var data = ScintillaStreams.StreamAllText(); while (line != null) { line = data.ReadLine(); //etc. } // Only interact with N++ on the main thread this.Invoke((Action)(() => { MessageBox.Show("The stuff is finished", "MyPlugin"); })); });

    The way ScintillaStreams works is by getting a pointer to the N++ text buffer, and read it as “raw” as possible. This is likely going to crash horribly if the user modifies the text while it’s reading, so giving control back to the user is kind of a two-edged sword. I still feel it’s worth it though, the user experience is much better. Also consider showing the status of your progress somehow so the users feels something is happening.

    I don’t know why “the process never seems to finish”. A 10Mb file should take a second or so to read

  • Background Image Cover with an rgba(0,0,0,0.5) filter

    2
    0 Votes
    2 Posts
    280 Views
    Alan KilbornA

    @ben74

    Well, here’s a comment.

  • No puedo previsualizar en ningún navegador notepad++ x64

    2
    0 Votes
    2 Posts
    199 Views
    PeterJonesP

    I think this same question was addressed in the other thread. Let’s keep it to one topic, rather than two.

  • Problemas para previsualizar la web en los navegadores

    2
    0 Votes
    2 Posts
    740 Views
    PeterJonesP

    @Juan-Valverde-Montalbán said in Problemas para previsualizar la web en los navegadores:

    Hola! Con la versión 64 bits no puedo previsualizar la web con ningún navegador.
    Ninguno de los navegadores está habilitado por el plugin de la aplicación.
    Qué puedo hacer?
    Gracias.

    or translated via google translate:

    Hello! With the 64-bit version I can’t preview the web with any browser.

    None of the browsers are enabled by the application plugin.

    What I can do?

    Thank you.

    Unfortunately, you haven’t given us much to go on, like what version of Notepad++ (going to the ? menu, debug info, and copying/pasting the text in your reply will help with that).

    I’m not sure what the “application plugin” is referring to; that’s probably a language-barrier issue, unfortunately.

    Natively, Notepad++ can launch the active file in one of the main browsers using View > View Current File In > to select the browser; that works for me in 64-bit v7.8.2, with no plugins.

    ----
    my response, translated back:

    Desafortunadamente, no nos ha dado mucho para seguir, como qué versión de Notepad ++ (ir al menú?, Depurar información y copiar / pegar el texto en su respuesta ayudará con eso).

    No estoy seguro de a qué se refiere el “complemento de aplicación”; probablemente es un problema de barrera del idioma, desafortunadamente.

    Nativamente, Notepad ++ puede iniciar el archivo activo en uno de los principales navegadores usando Ver> Ver archivo actual en> para seleccionar el navegador; eso funciona para mí en v7.8.2 de 64 bits, sin complementos.

  • Installing zen coding in my notepad++

    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • 0 Votes
    6 Posts
    663 Views
    PeterJonesP

    @Hans-van-Gelderen said in Attribute "srcset" not recognized as valid/standard attribute of the HTML tag "img":

    @PeterJones Your suggestion works. I have requested the fix for a future release by [issue#18769]

    That issue doesn’t exist: the highest numbered issue at the official Notepad++ issue tracker is #7858.

    Where did you make this feature request? (please provide full URL)

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • New Plugin development find

    2
    0 Votes
    2 Posts
    279 Views
    joakim wennergrenJ

    @Luke-Liukonen you can no longer just drop DLL’s in the plugin folder, you have to create a sub-folder in the plugin dir and put it there.
    E.g. instead of “plugins/CoolFeature.dll” you have to put it in “plugins/CoolFeature/CoolFeature.dll”