• icon menu are very small in 4K

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @alan-kilborn said in icon menu are very small in 4K:

    yet most often people don’t follow up by doing that.

    That’s why recently, I’ve been more likely to create a new issue if the original forum poster doesn’t (and if I cannot find an existing issue). I am not 100% on this (due to time and memory constraints), but I’m doing it more than I used to. I think, since the Forum is something of a “first line of defense” location for discussing whether an issue is really a problem or lack in Notepad++ or just a lack of understanding on the part of the user, that if we regulars think that it has merit, we should probably be more active in helping the OP “escalate” it to the request-tracking (for those with no inclination to create a github ID, and similar).

  • Help with find/replace python script

    3
    1 Votes
    3 Posts
    1k Views
    Gerrit SchutG

    @peterjones

    This works perfect! I was able to test this with a number of different documents and was able to change the maxCount to fit the number of changes needed.

    You’ve literally reduced my work from weeks down to hours!

    THANK YOU SO MUCH!!!

  • Context sensitive syntax help while editing

    4
    0 Votes
    4 Posts
    726 Views
    Alan KilbornA

    Terry,

    When you are using PythonScript, it has its own context-sensitive help. If your caret is on editor.xxx() or notepad.xxx() and you invoke it, you will get help on whatever function xxx is.

    Since you are considering some scripting (I think) for your own context-sensitive help application, you might want to consider keeping that functionality even if you integrate something else for non-PythonScript Python.

  • Update errors. Help needed to revert to last update.

    3
    0 Votes
    3 Posts
    260 Views
    Carl KuwaitC

    @peterjones Thank you so much. I just tried the Compare plugin you mentioned and it is working. The end tag plug in specifically finds corrupted (different from original) end tags. Because translating strings very often corrupts an end tag. This will crash the game. But I already have a work around to prevent this so it is not really needed anymore.

    I have done about 1000 hours of translating S.t.a.l.k.e.r. Russian mods for free for the English speaking fanbase. Notepad++ is a great help with this. Many more mods to do. Thank you so much for the quick reply.

  • Mark line before

    4
    0 Votes
    4 Posts
    293 Views
    guy038G

    Hello, @roger-st-onge, @alan-kilborn and All,

    Instead of the regex (?-is)"ip_prefix".*\R.*?"us-east-1"|(?-is)"ip_prefix".*\R.*?"ca-central-1", you could simplify by using that one :

    MARK (?-is)^\h*"ip_prefix".+\R\h*"region": "(?:us-east|ca-central)-1",\R

    Best Regards

    guy038

  • Find and Replace

    6
    0 Votes
    6 Posts
    319 Views
    PeterJonesP

    @peterjones said in Find and Replace:

    @neil-schipper ,

    That’s probably a good clarification

    issue #349 => PR #350

  • Help me Please ...

    5
    0 Votes
    5 Posts
    383 Views
    Alan KilbornA

    @neil-schipper

    Yes, I usually point that out when questions such as this come up. I must have been distracted and forgot to do it with my earlier reply here.

  • Regex or something for hosts lines sorting

    4
    0 Votes
    4 Posts
    220 Views
    Neil SchipperN

    @dultojorze and @guy038,

    Shame on me! My intention was that my reply be completely embedded in a literal text box!

    If you're confident every line starts with that exact 17 character sequence, we could start by matching that (for removal) with one of these: ^\Q0.0.0.0 0.0.0.0.\E ^.{17} From there, we want to match the trailing "word1.word2" on the right (you're confident that in every case exactly that form is what needs to be preserved, right? so zero cases like "hello.world.com", right?), so we'd want to match (and capture) that after skipping everything to the left just before the second last word: .*\<(\w+\.\w+) So altogether, and enforcing start & end of line boundaries, we can use this regex for Find ^.{17}.*\<(\w+\.\w+)$ and then we'll replace it either without the prefix \1 or we'll replace it with the prefix 0.0.0.0 \1 After that, you can use Remove Duplicate Lines, a command in the Line Op group under the Edit menu. And you should be good.

    Anyway, now there are two tested solutions.

  • Keeping the 2 first digits from an IP?

    8
    0 Votes
    8 Posts
    347 Views
    Roger St-OngeR

    Note this is for Azure Public IP List,
    not for AWS

  • 0 Votes
    7 Posts
    624 Views
    Lycan ThropeL

    @peterjones
    Thanks. Apparently I was paying attention and did it right since they work, and the nesting was the key for me. Don’t know why I didn’t mention it for the OP, but…it is determined by how the UDL is defined…so. :)

  • Regex help

    5
    1 Votes
    5 Posts
    614 Views
    PeterJonesP

    @guy038 , @Jose-Emilio-Osorio

    Stupid fence post. In my head while answering, I knew to add 1 to account for the 25::43 inclusive, but I obviously didn’t execute that +1 before typing up the reply. Sorry for the off-by-one error.

  • Some select fonts are not displayed when I set them under Default Style

    8
    0 Votes
    8 Posts
    2k Views
    P CooperP

    Am pleased to confirm that disabling Settings > Preferences > MISC > Use DirectWrite fixes all my issues. Many thanks for pointing it out! If it “breaks” some fonts entirely, I’ll certainly keep it turned off. Again, many thanks for your thorough involvement!

  • Project Panel API - How to Reload Workspace Programmatically?

    4
    0 Votes
    4 Posts
    485 Views
    PeterJonesP

    @stier-hahn ,

    I confirmed that Reload Workspace is not working in v8.3.3 back to v7.9.0, but it worked properly in v7.8.9. I have created a bug report at https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11551

  • 0 Votes
    5 Posts
    338 Views
    Neil SchipperN
    APPLES:01;PEARS:02;BANANAS:03;TOMATOES:11; <a few hundred lines of text snipped> // WARNING!! DO NOT EDIT THE FOLLOWING LINE. IF IT IS NOT AN EXACT MATCH, ROBOJUICE WILL EXPEL INTAKE BINS AND ENTER SELF-CLEANING MODE. Autorun=1;Selfclean=0
  • Where do you set tab spacing?

    3
    0 Votes
    3 Posts
    350 Views
    Arthur SchwarezA

    @peterjones thanks.

  • XML Tools doesn't works

    3
    0 Votes
    3 Posts
    3k Views
    Benoit CoppensB

    @michael-vincent That fixed my issue. Thanks so much!

  • How to put parts of code...

    8
    0 Votes
    8 Posts
    896 Views
    Rafal Jonca 1R

    @peterjones

    It works very well, Peter. Thank you.

  • Pasting notes from Notepad++ to Microsoft Teams

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    Yeah, the most important takeaway is that Teams doesn’t behave correctly when pasting from a plaintext-only clipboard – it doesn’t matter whether it’s our beloved Notepad++, or microsoft’s own notepad.exe, or any other texteditor on the market that I know of, which put the text into the clipboad: the fact that Teams doesn’t behave properly with plaintext clipboard is 100% a Teams problem.

    I think we’ve given enough things for the original poster to try to get around their problem, so they can continue to paste from Notepad++ through something else into Teams.

    At this point, if the OP has any more questions on other things to try, they should really go to a forum dedicated to Team or MS products or general computing.
    (In case my original statements weren’t clear, when I said “the issue is not a problem with Notepad++” and “we are not a Teams support forum”, that was supposed to be interpreted as "and thus, any further Teams-specific followon does not belong in this forum, as it is off topic.)

  • Regex error: (SyntaxError: invalid syntax) on Python Script Plugin

    5
    0 Votes
    5 Posts
    879 Views
    Robin CruiseR

    @rodica-F

    On complex regex, remember this:

    First, you must put \ before any ' in your regex. otherwise it will give conflict with the Python syntax that also have the operator '

    You had to remove the r after find : part. So, should be 'foo' instead of r'foo'

    In your default example should be (without : r in front of 'foo'

    { 'find' : 'foo', 'replace' : r'bar' },

    Your code, with the new and complex regex, should be like this.

    I write a second regex to see much better:

    # -*- coding: utf-8 -*- from __future__ import print_function from Npp import * import os import sys #------------------------------------------------------------------------------- class T22601(object): def __init__(self): Path="C:\\python-test" for root, dirs, files in os.walk(Path): nested_levels = root.split('/') if len(nested_levels) > 0: del dirs[:] for filename in files: if filename[-5:] == '.html': notepad.open(root + "\\" + filename) console.write(root + "\\" + filename + "\r\n") notepad.runMenuCommand("Encodage", "Convertir en UTF-8") regex_find_repl_dict_list = [ { 'find' : '<link (.*?)( rel=\'canonical\'/>)', 'replace' : r'<link rel="canonical" \1 />' }, { 'find' : '(<meta content=\')(.*)(\' property=\'og:description\'/>)', 'replace' : r'<meta name="description" content="\2" />' }, ] editor.beginUndoAction() for d in regex_find_repl_dict_list: editor.rereplace(d['find'], d['replace']) editor.endUndoAction() notepad.save() notepad.close() #------------------------------------------------------------------------------- if __name__ == '__main__': T22601()
  • Notepad ++ 8.3.3

    2
    0 Votes
    2 Posts
    351 Views
    rdipardoR

    Check the file version of both plugins against the tracking issue to make sure they’re compatible.

    8.3.3 (64-bit) also learned to intercept plugins whose versions are on the “black list”. This wouldn’t be the first time a user was unpleasantly surprised by the new “feature”.