• Are there any spellcheck-style linting plugins?

    5
    0 Votes
    5 Posts
    2k Views
    Steven HaymesS

    In NppExec, execute the following (path may vary with your Python installation):

    C:\Python37\Scripts\pylint.exe “$(FULL_CURRENT_PATH)”

    You can add this as a Macro with: NppExec -> Advanced Options

    You can jump from the error reported in NppExec console to the line with the error in the editor with: NppExec -> Console Output Filters

    Depending on the linter that you run, you will have to tweak the filters and the order of the filters. I run both pylint and flake8.

    I find this process to be very efficient. I tried VS Code for a while and I did not like it. I would rather use Vim…

    Steve

  • No run option

    2
    0 Votes
    2 Posts
    852 Views
    Alan KilbornA

    @Eric-Redegeld

    You would need to add $(FULL_CURRENT_PATH) to your command line for running Chrome. When running the command, Notepad++ will substitute the actual current tab path into the command before running it.

    By why not try View (menu) > View Current File in -> Chrome instead?

  • Template "new #"

    16
    1 Votes
    16 Posts
    3k Views
  • how to add vertical edge(column)?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    dinkumoilD

    @Minkyu-Jung

    I wrote a plugin that can add an arbitrary number of vertical lines to Notepad++ v7.7 and higher. Its name is ExtSettings. You can download it >>> here <<<. It will also be available soon via PluginsAdmin.

  • When to use (?-si)?

    4
    0 Votes
    4 Posts
    687 Views
    PeterJonesP

    @Ekopalypse said:

    read more about that here, (which at the moment is down)

    Down for good, actually. The githubio link was always meant as temporary. https://npp-user-manual.org/docs/searching/#regular-expressions is the new long-term home, linking directly to the regex docs.

  • docs.notepad-plus-plus.org is down

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP

    @Дмитрий-Иванов said:

    But some links still not worked. Section https://npp-user-manual.org/docs/user-defined-language-system/ follow to old site.

    Thanks for that reminder. When I have time, I’ll work on getting something useful on that page, and remove the dead link. I’ll try to get it sometime today, but npp-user-manual isn’t my day job, so no guarantees.

  • 0 Votes
    2 Posts
    296 Views
    rossjparkerR

    There is no Android version of Notepad++.

    See also: https://notepad-plus-plus.org/community/topic/14986/notepad-for-android

  • Error when try to run the notepadd++ from it code

    2
    1 Votes
    2 Posts
    353 Views
    EkopalypseE

    @a-a

    seems to be an open issue which has been discovered recently.

  • Issue printing long lines

    13
    1 Votes
    13 Posts
    3k Views
    rinku singhR

    @PeterJones @MayTheUniverseCollapse
    @dinkumoil said:

    Included features:

    Set magnification for printing.

    is this plugin fix this issue

  • Need to write an batch program but never used notepad need help

    3
    0 Votes
    3 Posts
    394 Views
    Alan KilbornA

    @André-van-den-Broek

    Best possible answer is here.

  • Send to Discord.

    2
    0 Votes
    2 Posts
    391 Views
    dailD

    Sounds like Notepad++ is working fine. With the lack of details you provided I am assuming it is a Discord problem.

  • Where can I find Notepad++'s icon files?

    5
    0 Votes
    5 Posts
    2k Views
    Steven HaymesS

    imthenachoman,

    I am curious where you go with this. I would like to replace a few of the “hammer” icons that I have. Please post your solution once you have one.

    Thanks,

    Steve

  • Plugin disappeared after latest version update.

    3
    0 Votes
    3 Posts
    819 Views
    Sloan ThrasherS

    Dinkumoil,

    Thanks for your quick reply.

    I went to the plugins folder as you suggested, and saw a file that looked familiar: finger.dll.
    Installed it and found that was the one I was missing. It even remembered all of the snippets I had from before.

    Thanks!

    Sloan

  • 0 Votes
    3 Posts
    356 Views
    gwarahG

    @Ekopalypse indeed a good example

    c:\cygwin\bin\mintty.exe --dir "$(CURRENT_DIRECTORY)" -i /Cygwin-Terminal.ico -

    tks a lot!

  • run system commands on save if certain criteria are met

    5
    0 Votes
    5 Posts
    850 Views
    imthenachomanI

    Humm. Thank you! I will give it a try.

  • My own synthax, little help

    3
    0 Votes
    3 Posts
    369 Views
    WildCactuarW

    Thanks, I did not knew it has that name, i tagged “lexer”

  • White box/prompt appearing whenever I type

    5
    0 Votes
    5 Posts
    1k Views
    Will KingW

    @Alan-Kilborn Thanks! Sorry if this was a stupid issue but I’m fairly inexperienced. I appreciate the help.

  • I need to replace some numbers....

    10
    0 Votes
    10 Posts
    847 Views
    PeterJonesP

    But at this point, I’m not sure I want to run the risk of you blaming us anymore for your problem. Hopefully this post will show you what happened.

    When I started with

    Begin PolyList Begin Polygon Origin -00128.000000,-00128.000000,-00128.000000 Normal -00001.000000,+00000.000000,+00000.000000 TextureU +00000.000000,+00001.000000,+00000.000000 TextureV +00000.000000,+00000.000000,-00001.000000 Vertex -00128.768546,-00128.000000,-00128.766453 Vertex -00128.000000,-00128.000000,+00128.000000 Vertex -00128.000000,+00131.756453,+00128.000000 Vertex -00128.000000,+00131.000000,-00128.000000 End Polygon

    with your three pesky spaces (or without, because it doesn’t affect the regex at all), and run @ekopalypse’s regex once with REPLACE ALL, it fixes two of the three instances:

    Begin PolyList Begin Polygon Origin -00128.000000,-00128.000000,-00128.000000 Normal -00001.000000,+00000.000000,+00000.000000 TextureU +00000.000000,+00001.000000,+00000.000000 TextureV +00000.000000,+00000.000000,-00001.000000 Vertex -00128.768546,-00128.000000,-00128.000000 Vertex -00128.000000,-00128.000000,+00128.000000 Vertex -00128.000000,+00131.000000,+00128.000000 Vertex -00128.000000,+00131.000000,-00128.000000 End Polygon

    Then I run it a second time, and it fixes the third instance.

    Begin PolyList Begin Polygon Origin -00128.000000,-00128.000000,-00128.000000 Normal -00001.000000,+00000.000000,+00000.000000 TextureU +00000.000000,+00001.000000,+00000.000000 TextureV +00000.000000,+00000.000000,-00001.000000 Vertex -00128.000000,-00128.000000,-00128.000000 Vertex -00128.000000,-00128.000000,+00128.000000 Vertex -00128.000000,+00131.000000,+00128.000000 Vertex -00128.000000,+00131.000000,-00128.000000 End Polygon

    The reasons this happens is because of the way the regex engine works inside of Notepad++: The first match found the start of the line, followed by Vertex, followed by as many characters as it could, until it hit the literal period that wasn’t before 6 zeroes. That means in -00128.768546,-00128.000000,-00128.766453 that it gobbled up all the characters until it found 766453 (the second set of non-zero decimal-fraction digits)… that’s then the fraction that it replaced with 000000 on that row. But at that point, the search cursor had moved beyond that line, so it didn’t see that the line still matches the regex. Hence it left that line as

    Vertex -00128.768546,-00128.000000,-00128.000000

    When you run the regex a second time, it gets rid of the second match earlier in the line.

    If @Ekopalypse had used a non-greedy regex ^Vertex.*?\.\K(?!0{6})(\d{6}) (the extra ? makes it non-greedy), then it would have fixed the 768546 on the first run of the regex, and 766453 on the second.

    Either way, just run the regex more than once, and it will work for you. If there are three numbers possible on each line (and given “polygon” and “vertex”, I am assuming that those are 3d coordinates, so three seems a reasonable max-per-line), then you should only have to run the regex a maximum of 3 times to get all the replacements done.

  • An annoying issue with UDL

    2
    0 Votes
    2 Posts
    353 Views
    PeterJonesP

    @Wunder-Wulfe said:

    The end statement for the for loop is dark purple when it should be a maroon color.

    because the UDL lexer cannot differentiate between “end (after func)” and “end (after for)”, because by that point in the lexing, I believe all it sees is “end”, and has lost the context of “(after ___)”.

    Using UDL, I don’t think you can fix it, and I don’t think there is an alternative. But I could be wrong, and someone else can feel free to chime in.

  • Where's the automatically wrap line?

    2
    0 Votes
    2 Posts
    285 Views
    rinku singhR

    menu item > View > Word wrap