• Lost bookmarks

    12
    0 Votes
    12 Posts
    12k Views
    Maurizio LotauroM

    Thank you for the information!

  • Go language in Notepad++

    3
    1 Votes
    3 Posts
    6k Views
    EkopalypseE

    @ManPython

    not 100% sure what you are talking about.
    Delivering the udl you linked to together with npp, like it does with markdown language?
    Or creating a builtin lexer like the ones visible in the language menu (A-Z items).

    If you are talking about the first, then I would assume no as long as not everything is functional (the function list isn’t correct)
    and if you talk about the second then I would be surprised because this is normally scintilla territory.

    Btw. do you know scintillua?
    It seems it has a go lexer added.
    I have to admit, that I don’t know how it works as I’ve never used it but maybe you wanna give it a try.

  • Notepad++ infected with a virus Trojan.rHeur.Agent.dg ?

    3
    1 Votes
    3 Posts
    1k Views
    Sergey MuzychenkoS

    @Ekopalypse said:

    virustotal.

    Thanks for the info, checked virustotal, everything is in order.

  • Tabs in python

    13
    0 Votes
    13 Posts
    2k Views
    Michael MannionM

    Another victim of PEP 8.

    Frenzy Frenzy, I agree with Peter Jones that inconsistency is the issue here. That said, I presume that you were being consistent and that npp silently changed your tabs to spaces, per its default behavior (yea for npp for following the rules; boo for the PEP 8 authors for making that rule).

    It shouldn’t have been an issue if you were starting a module from scratch, but would definitely lead to problems if you were editing existing code that already contained real tabs. Once the code is hosed, you have a few options in npp for cleaning it up:

    View the white space characters, per Alan Kilborn’s post, and manually fix them

    Use the TAB to space option Peter cites - or, ideally, it’s inverse operations, Space to TAB (All) and Space to TAB (Leading)

    Use Search > Replace with the Search Mode > Extended option to manually find or replace tab characters using their special \t representation

    The automatic space-to-tab converters are good, but bulk operations inevitably (and understandably) overgeneralize. While time consuming, the third option gives you more control over the process, with some level of automation.

    FWIW, I’m +1 with you for using tabs. I’m always amused (or perhaps bemused) that right at the top of PEP 8 is a section called “A Foolish Consistency is the Hobgoblin of Little Minds”, followed immediately by the first, and most foolish, of its recommendations - to use spaces instead of tabs (which many in the Python community follow consistently, admittedly with good intentions).

    I’ll refrain from commenting on the merits of tabs; there’s plenty on the web about that already. Suffice it to say, there’s a large community of Python programmers that agree with your approach.

  • Left-justified comment symbols

    6
    0 Votes
    6 Posts
    662 Views
    Alan KilbornA

    @Michael-Mannion said:

    Maybe I need to look into making an npp macro;

    You can certainly macro-ize that replace op easily enough. See the Macro menu. Your macro would consist of one thing: A Replace All button press.

  • Copy all formats to clipboard not working (v. 7.7.1)

    4
    0 Votes
    4 Posts
    2k Views
    Chris JohnstonC

    Hi, super helpful. Thanks so much :)

  • xml-tools plugin won't install

    4
    0 Votes
    4 Posts
    2k Views
    Sverre TS

    A million thanks. I successfully downloaded plugin and installed it following the instructions. I also noticed that there was an old “dangling” XMLtools dll on the plugin root directory - which I deleted - but that alone did not solve the gui plugin installation problem where npp never restarted and XMLtools never installed. See screenshots
    https://www.dropbox.com/sh/2srv89fdjeb53kt/AAC9tCPbjRMccnORZ1E5C9UOa?dl=0

    I add that I have installed the plugin on another client - which worked as expected - running on same platform and similar win7 upgrade.

  • Correction needed !

    4
    3 Votes
    4 Posts
    524 Views
    PeterJonesP

    Given that I use NppExec and not NppExportPlugin, and that there have historically been a lot more questions in the forums that involve NppExec (often in the answer) compared to NppExportPlugin, my fingers have been trained to that sequence, apparently.

  • How do select multiple line and replace text?

    5
    0 Votes
    5 Posts
    6k Views
    Alan KilbornA

    @ajay-gohil

    How does THAT mess of a solution match the original problem??

  • Invitation for OSS Community Research based in the University of Leeds

    1
    0 Votes
    1 Posts
    298 Views
    No one has replied
  • Support more as two split window

    3
    0 Votes
    3 Posts
    560 Views
    EkopalypseE

    @Goran-Vukadinovic
    @Alan-Kilborn

    just for simplicity - here the reject.

  • What is the correct way to update NPP?

    4
    0 Votes
    4 Posts
    793 Views
    Alan KilbornA

    @Fade-To-Gray said:

    can you tell me why I don’t receive any notifications of replies?

    If you mean like email notification, well, this site just doesn’t work that way. You have to check back to see replies. If you want to just do a quick check, the little bell icon in the upper right will have a white-on-red number in it if any threads you create have replies, or you are “@ mentioned” in any other threads…or if any of your postings are “upvoted”.

  • NPP Erasing all or part of a file changed while open

    12
    0 Votes
    12 Posts
    2k Views
    Steve ValliereS

    I can share it, but it is NOT being called in the scenario I have described. I have a breakpoint in the Visual Studio debugger when any call to WriteProfileString is made and it is not being hit. I am NOT activating the configuration tool, which is the only thing that even CONTAINS calls to WritePrivateProfile string. What my program IS doing, is monitoring the directory for changes and calling GetPrivateProfileString (many times) after the file was changed with NPP.

    The issue seems to occur if I make ANOTHER change with NPP and try to save within a few minutes of my program re-reading the INI file. That is RE-READING.

    If I look at the directory when NPP reports that the file NPP just tried to modify was locked, the file size shows as ZERO and trying to use ‘type’ to view the content at a CMD prompt shows the file is empty. The content will be “magically” restored if I tell NPP to give up writing to the file, and NOT to save with a new name and then tell NPP NOT to reload the file after NPP (erroneously, IMHO) reports that the content changed.

    If the file content changed, NPP did it. I’m afraid I am not likely to believe that Windows File Explorer is changing the file content, and I can prove my program isn’t writing to it, both by using procmon to see that the only write operations come from NPP, and by using the debugger to catch any attempt to call the write functions.

  • Search - end of file

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @Alan-Kilborn said:

    editor I used for a long time previously used similar verbage for the feature.

    I just pulled up the IDE for the proprietary programming environment I use, circa 2005, and it uses “wrap” for the search as well. Maybe it’s an English (or American English) idiom which has worked its way into the official Computer-ese jargon.

    @Ekopalypse :

    Thinking about wraps, the things to eat, I thought what should be wrapped?

    The food gets its name from the verb “to wrap”, which in the Peter Standard Dictionary might be defined as “to surround (often snugly) with something”. In the food, you are “wrapping” the tortilla around the innards of the sandwich; for the search, you are “wrapping” the search position snugly around the whole document.

    The wiktionary entry’s item#7 in the verb definition is probably more where the search-wrap came from: “To (cause to) reset to an original value after passing a maximum.”.

  • malwarebytes found a Trojan.FakeNPP

    Locked
    10
    1 Votes
    10 Posts
    7k Views
    donhoD

    AFAIK, except the bad quality of anti-spyware, a lot of anti-spyware are the spyware in disguise.
    Choose your anti-spyware carefully.
    I use my common sense as anti-spyware.

  • Will the Old Obsolete Icon ever come back?

    5
    0 Votes
    5 Posts
    1k Views
    John Smith52J

    @Alan-Kilborn said:

    @Andrei-Mincov said:

    I’m sure that some good stuff has been added since 7.0

    Surely.

    And I’m not using it because of the icon

    Truly one of the dumbest things I’ve ever heard on this forum.

    I have to agree with Alan.

  • From IP list to IPTables blacklist

    4
    0 Votes
    4 Posts
    805 Views
    Fabio grossiF

    Thanks!

  • Links are borken on community page

    3
    0 Votes
    3 Posts
    533 Views
    PeterJonesP

    to save the image click for future readers, embedding the above linked-image:

  • Always on top as default

    2
    0 Votes
    2 Posts
    664 Views
    Alan KilbornA

    @amirrammari

    You could likely script it to run on N++ startup with a scripting plugin, or perhaps NppExec…

  • Highlighting matched single and double quotes.

    7
    0 Votes
    7 Posts
    3k Views
    Alan KilbornA

    @Frank-Hutterer said:

    I don’t see the nesting in your examples

    Seriously?

    "did you hear, John asked 'why did you say "the end is nigh"?'"

    Seems pretty clear to me the the end is nigh 's quoting is nested inside the quoting of the whole thing.

    The rest of your posting doesn’t make much sense to me either; guess I just don’t “get it”.