• How do i stop accented characters

    3
    0 Votes
    3 Posts
    233 Views
    Miles CypherM

    Thank you for the tip, turns out the problem was with the language selected on my pc was US interntion which turned certain keys into modifier keys for some reason

  • Auto-insert doesn't work with adjacent characters

    3
    1 Votes
    3 Posts
    271 Views
    PegartP

    @PeterJones, yes true about my phraseology. It wasn’t intentional. I noticed it might have come out as aggressive but forgot to change it after rereading the whole post.

    Thanks for the information. I’ll check FAQ Desk: Feature Request or Bug Report.

  • Prevent AutoUpdate Check for VDI Environment

    7
    0 Votes
    7 Posts
    837 Views
    Jason Pope 0J

    @Daniel-Fuchs

    I will also have a go at this and see if I can update this on the base image and it will not prevent the update from running manually. Will do some testing

    Thanks

  • Find a word with a specific number on Netpad Plus

    6
    0 Votes
    6 Posts
    309 Views
    diana parkerD

    @Ekopalypse said in Find a word with a specific number on Netpad Plus:

    \w+123(?=\R|\h|\Z)

    thanks this beter

  • Commandline -quickPrint ignores Print Preferences

    2
    0 Votes
    2 Posts
    347 Views
    PeterJonesP

    @Psotny-Chochlik ,

    I am sorry, I cannot replicate the problem. When I have Notepad++ closed, and run notepad++ -quickPrint filename.txt from the command line, it prints with margins, line numbers, headers, etc.

    Could you share the contents of your ? menu’s Debug Info and paste in your reply? Could you Alt+PrintScreen the Print Preferences page and paste in your reply? Could you show us exactly the command line that you use to run the -quickPrint?

  • 0 Votes
    4 Posts
    6k Views
    PeterJonesP

    @Alan-Kilborn said in How can I prevent showing the "reload the document?" message, when I close npp!?:

    Doing that immediately closes N++ with no reloading prompts, for me.

    Weird.

    Enabled

    Disabled

  • I think I found a bug in the JSON parser regarding property keys

    2
    0 Votes
    2 Posts
    184 Views
  • Every word underlined in red

    7
    0 Votes
    7 Posts
    878 Views
    Stephen AustinS

    OK. Seems to have fixed it. Thanks for the time and trouble taken to reply.

  • Functions list showing nothing in 7.9.1 (64b), working fine in 7.9

    2
    0 Votes
    2 Posts
    199 Views
    Alan KilbornA

    @Philippe-Malacher

    The function list has undergone a major change between 7.9 and 7.9.1.
    Suggest reading the documentation.
    Some further info is HERE in a post I made about my experience with function-list. It isn’t related to a UDL, though.

  • Find number betwen commans

    2
    0 Votes
    2 Posts
    147 Views
    Alan KilbornA

    @Toze-Cerdeira

    You would have to script a solution to that.
    A similar discussion that would show you how to do it is HERE.

    In your case your “find” expression could be: p2,(\d+), and you could replace with 'p2,' + str(int(m.group(1)) - 1) + ',' or something close to that; there are a few different ways to write these expressions.

  • Setting Default Character Set

    3
    0 Votes
    3 Posts
    260 Views
    Jack HortonJ

    @Alan-Kilborn Sweet - thanks for that! 🙂

  • nppftp profiles gone everytime restart

    2
    0 Votes
    2 Posts
    260 Views
    PeterJonesP

    @Faizal-S ,

    I’ve never seen that behavior, but I’m having trouble understanding exactly your circumstances. If you provide us with more information about your configuration , it might help us understand what you’re asking about:

    go to the ? menu, Debug Info, and Copy Debug info into clipboard, then paste that into your reply if you have config settings (like “my own global cache”), you might screenshot that setting dialog, because I don’t understand what you’re asking, just paste them in the forum reply are there other screenshots to help us understand
  • Notepad++ Website

    5
    -2 Votes
    5 Posts
    477 Views
    PeterJonesP

    @ToastyBread3736 ,

    simply linking me to that article is of no use to me.

    Of course not. You have to read and comprehend what’s on the other end of the link.

    you could tell me that this post doesn’t belong here

    That’s what the FAQ article does. It tells you that your post was off-topic for the Notepad++ forum.

    link me to another [forum] where I can ask this question and get a better response

    We in the Notepad++ Forum cannot be expected to know every other forum on the internet, and what would be the best forum to answer your question. Especially since your question showed such a lack of understanding about the subject – both from a technical standpoint, and where to ask it. (From a technical standpoint, you don’t “put [your website] on Google”. You upload your website to your webhost, and then if people link to your website, it may someday show up in Google searches; or you can pay someone for SEO and services to get Google to see it sooner.) But, in general, if you don’t know the specific forum where a question should be asked, you could Google for “forum for website development” (or whatever your question actually relates to), or for virtually any technical question, assume that somewhere in the Stack Overflow family of forums, there’s probably one on-topic for your specific question.

    neither you or the article you sent me advances my knowledge of coding

    This is not a coding forum, so this is not a forum whose purpose is to advance your knowledge of coding. This is a forum on how to use the Notepad++ editor. The only on-topic reply for your question in this forum is to “use Notepad++ to type the code, then publish your code to your website.”

    We point people to the FAQ, because it tells you everything you should need in order to figure out that you’ve asked the question in the wrong Forum, and it saves us the time of responding in detail to every coding question that pops up incorrectly in this forum. Unfortunately, replies like yours then require us to say the same thing in a different way, because you apparently didn’t understand the point.

  • 0 Votes
    2 Posts
    187 Views
    Alan KilbornA

    @Trey-Hargrove-0

    Fairly easy, however you’ll need to use Notepad++ 7.9.1 or later (earlier versions will not handle the \A construct correctly) to do this:

    Use Replace in Files.

    find: \A(?s).*?~
    repl: ~

    Suggest making a backup of your whole fileset first; delete only after you’ve decided it works as intended.

  • UDL to change font color of a character at a specific character count

    2
    0 Votes
    2 Posts
    230 Views
    PeterJonesP

    @All-Rfriends ,

    There’s nothing native to Notepad++ that does that out of the box.

    However, Notepad++ has plugins, including scripting languages.

    You can add extra highlighting to a builtin lexer (like the HTML lexer) or to a User Defined Language (UDL) using regexes via the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo.

    The regex would be something like (?-s)^.{11}\K(.) – I haven’t tried it, but that would be the first regex I would try = it finds first 11 characters .{11}, throws that out with \K, and then captures the single character (.). I believe that would do what you want.

  • Newbie question - search and replace with wildcard

    6
    0 Votes
    6 Posts
    298 Views
    Fredrik KonradssonF

    @Alan-Kilborn said in Newbie question - search and replace with wildcard:

    find: (?-s)(“1”.*?)“1”
    repl: ${1}“6”

    Many thanks! I really appriciate your help.

  • Extract eMail and Telephone Nr.

    6
    0 Votes
    6 Posts
    704 Views
    guy038G

    Hello @ahmed-izler and All,

    Here is my solution… with regexes, of course ;-))

    So, given this example, below, where :

    Three sections, out of five, end with Option 2

    A variable amount of empty lines, even 0, exists between sections

    Two sections are preceded with leadings space and tabulation characters

    vorname: Alfred nachname: Weber geburtsdatum: 17.01.1981 Strasse: Wolfgangstraße HausNr: 12 PLZ: 45598 Wohnort: Essen Etage: EG Lage: links Tel: 0176048784263 email: richardweber1m@yahoo.com IBAN: DE4XXXXXXXXXXXXXXXXX5 XXXXXXXXXX Option 2 vorname: Alfred nachname: Weber geburtsdatum: 17.01.1981 Strasse: Wolfgangstraße HausNr: 12 PLZ: 45598 Wohnort: Essen Etage: EG Lage: links Tel: 0176048784263 email: richardweber1m@yahoo.com IBAN: DE4XXXXXXXXXXXXXXXXX5 XXXXXXXXXX vorname: Alfred nachname: Weber geburtsdatum: 17.01.1981 Strasse: Wolfgangstraße HausNr: 12 PLZ: 45598 Wohnort: Essen Etage: EG Lage: links Tel: 0176048784263 email: richardweber1m@yahoo.com IBAN: DE4XXXXXXXXXXXXXXXXX5 XXXXXXXXXX Option 2 vorname: Alfred nachname: Weber geburtsdatum: 17.01.1981 Strasse: Wolfgangstraße HausNr: 12 PLZ: 45598 Wohnort: Essen Etage: EG Lage: links Tel: 0176048784263 email: richardweber1m@yahoo.com IBAN: DE4XXXXXXXXXXXXXXXXX5 XXXXXXXXXX vorname: Alfred nachname: Weber geburtsdatum: 17.01.1981 Strasse: Wolfgangstraße HausNr: 12 PLZ: 45598 Wohnort: Essen Etage: EG Lage: links Tel: 0176048784263 email: richardweber1m@yahoo.com IBAN: DE4XXXXXXXXXXXXXXXXX5 XXXXXXXXXX Option 2

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?s)^\h*vorname:.+?(\R)(\h*Tel:\h+.+?\R\h*email:\h+.+?\R).+?\R(\h*Option 2\R*)?(?=\h*vorname:|\z)

    REPLACE ?3\2\1

    Tick the Wrap aroud option, if necessary

    Select the Regular expression search mode

    Click on the Replace All button, or several times on the Replace button

    You’ll get this output, with the indentation kept :

    Tel: 0176048784263 email: richardweber1m@yahoo.com Tel: 0176048784263 email: richardweber1m@yahoo.com Tel: 0176048784263 email: richardweber1m@yahoo.com

    So, @ahmed-izler, if this result is the one that you expect to, I’ll give you some hints on the regex S/R, next time !

    Best Regards

    guy038

  • Macro to clear RO and Format XML

    3
    0 Votes
    3 Posts
    920 Views
    PeterJonesP

    I said,

    For me, the Pretty Print command is ID=22137

    Sorry, I forgot, I was going to explain how I found that: I have the plugin NppUISpy installed; using its interface, I was able to find that ID number.

    Note: many of the same points regarding plugin commands in macros were brought up in this discussion from Jun 2020.

  • How notepad ++ recover file information from an 'web' exploreur?

    5
    0 Votes
    5 Posts
    267 Views
    Noemie MalgogneN

    @PeterJones Thanks for your detailed answer. I feel like a beginner and you’re right, I probably misunterstand the differences between web and desktop developpment. Thanks a lot for the links, whose I will read with attention and I hope that will help me to find the solution!
    ( for the joke, I,ve tried to find what I want in the code source but I’m not gifted apparently :D)

  • HyperLink

    2
    0 Votes
    2 Posts
    200 Views
    Alan KilbornA

    @sadicus

    Not sure at all what you mean.

    But… the way hyperlinks work has undergone revision in recent versions in order to work better.

    Probably some “side effect” with the way the old stuff worked allowed you to do whatever it is you liked.

    I would not count on any of that old behavior making a return appearance.