• NPPM_DOOPEN: wrong return value

    3
    1 Votes
    3 Posts
    2k Views
    Vitaliy DovganV
    OK, I’ve found how to deal with it. At least, it’s one of possible solutions: int nFiles = (int) SendNppMsg(NPPM_GETNBOPENFILES, 0, 0); if ( !SendNppMsg(NPPM_DOOPEN, (WPARAM) 0, (LPARAM) params.c_str()) ) { nCmdResult = CMDRESULT_FAILED; DWORD dwAttr = ::GetFileAttributes(params.c_str()); if ( (dwAttr != INVALID_FILE_ATTRIBUTES) && ((dwAttr & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY) ) { // NPPM_DOOPEN unexpectedly returns 0 when a folder is specified // as its argument, though in fact it does open all the files // from that folder. int nFilesNow = (int) SendNppMsg(NPPM_GETNBOPENFILES, 0, 0); if ( nFilesNow != nFiles ) { nCmdResult = CMDRESULT_SUCCEEDED; } } }
  • 0 Votes
    6 Posts
    4k Views
    poonam joshiP
    Thanks for the reply Problem Statement: In my project, I do shell scripting and use notepad++ to write the script. I need to follow some rules while writing the code. Thus, I want to develop a plugin (which works like a code reviewer) which when selected in notepad++, could automatically check the code(script) at the run time while I am writing the code(script) in notepad++ and display an error message if any rule is not followed. For e.g. SELECT word should always be in upper case. So whenever I write SELECT word in small case in notepad++ then an error message should popup. Can you please suggest how should I go for it using C# template for plugin development?
  • Feature request: Link/URL "open with"

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to get my plugin into the plugin directory?

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    chcgC
    There is no central plugin repository. Typically plugins are published on github or sourceforge I would see. Similar to N++ itself https://github.com/notepad-plus-plus/notepad-plus-plus. See https://github.com/npp-plugins for example for some plugins of donho. Is that the information you are looking for? For github introduction see https://guides.github.com/activities/hello-world/
  • XBrackets Lite v1.3.0 (32-bit and 64-bit) released!

    Locked
    3
    1 Votes
    3 Posts
    5k Views
    Vitaliy DovganV
    @chcg, thank you!
  • Faulty coding of file if reloaded

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [new plugin] “Empty files as Unicode”

    4
    0 Votes
    4 Posts
    3k Views
    chcgC
    The x64 at github you could add as pull request. For the access to the server you need the help of @bruderstein, but his is currently seldom around. I could copy the data of a x64 PR and create a corresponding entry.
  • ANSEL character set

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Kjeld Mathias Stolberg PetersenK
    Thank you very much. It is the gedcom type of files that my father wants to edit. So we will try that. Regards Kjeld
  • 0 Votes
    2 Posts
    2k Views
    S
    @tazotodua The solution is quite simple: Answer No to that prompt!
  • [New Plugin] Npp SQL Formatter available

    sql formatter
    17
    1 Votes
    17 Posts
    78k Views
    Guido ThelenG
    Now also processes ANSI encoded SQL with special chars Regards Guido
  • Question About NPP Jumplist

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    chcgC
    You may wanna test this one https://github.com/chcg/JumpList/releases/download/1.2.2.7/NppJumpList_1.2.2.7_x64.zip
  • Php function list and abstract functions

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    MAPJe71M
    Oops, links to correct page but should have read #15124.
  • All code disappears after npp becomes not responding (Win7 32-bit)

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    chcgC
    See also https://notepad-plus-plus.org/community/topic/15028/every-since-last-patch-extreme-slowness-and-not-responding/8
  • Plugin Manager x64 available - submit your plugins!

    10
    4 Votes
    10 Posts
    145k Views
    cpmcgrathC
    I’ve made a couple, it should be pretty simple (it’s just a powershell script) The case which complicates things for putting any extension on there (including the plugin manager, but that might have some advantages) is what if when updating, Notepad++ is already open? The files are locked and the update will fail. It needs a way to schedule the update.
  • Outline Creation

    Locked
    3
    1 Votes
    3 Posts
    5k Views
    Chip CooperC
    Giving this a little more thought… I just realized one might use a UDL (User Defined Language) and just have parentheses to do the folding for you. Menu/Language/User Defined Language. It’s fairly easy to use, won’t do anything; but, a great way to learn a Np++ feature! :-) It might make an ugly print; but, a quick search and replace would fix that when done, or temporarily saved as another file.
  • JSONViewer 1.30 alpha

    Locked jsonviewer
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Faulty Folding of Function when } has been commented out

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD
    Short answer, its not a bug, it is a feature. You can define custom code fold points by using //{ and //}
  • Need help with Function List for JavaScript in an HTML file

    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • Help with Appveyor Plugin Build (C#)

    Locked
    11
    0 Votes
    11 Posts
    5k Views
    chcgC
    I just retested and could confirm that. After unblocking the downloaded appveyor files are also functional.
  • AnalysePlugin 1.11 in x64 available

    11
    1 Votes
    11 Posts
    9k Views
    chcgC
    Look fine. With the version available from versioninfo the additional data: <versions> <version number="1.11.34" md5="56a19878b902d25d0c1b12b33d3ba44a"/> <version number="1.11.37" md5="b8dfbf18248c53b9d7e368e013590b55"/> </versions> is not necessary any longer. I corrected the validation for the x86 version. The click on add hash for the dll was missing in the webinterface. Currently the validation for x64 also fails. I think that is just a sync issue and should be fine in one hour.