• Greek capital letter 'Α punctuated does not appear correctly

    7
    0 Votes
    7 Posts
    6k Views
    Goten SanG

    @cchalkiopoulos said in Greek capital letter 'Α punctuated does not appear correctly:

    That is a very detailed answer. For sure you have covered all angles of this issue.

    Your 2 suggestions make sense to me and I have actually tried the 1st one and it works fine for me to change the encoding to Greek/Windows-1253.

    From my side it is totally fine to mark this thread as being resolved.
    I’m however very curious to the fact that you do not consider this as a bug on Notepad++.
    I will try to phrase this as follows: “A certain file is displayed correctly with Notepad but with Notepadd++”. Isn’t this fixable?

    Many thanks for your time.
    Honest regards,
    Christos C.

    Thanks.

  • Updating removed all my recent files?

    2
    0 Votes
    2 Posts
    224 Views
    Terry RT

    @Duck said in Updating removed all my recent files?:

    Is this intended, and is there any way to restore said files?

    No it is NOT intended, however with any system there can be issues.

    Unfortunately you have fallen victim to using the default backup system without understanding how it actually operates. Many have suffered the same issue as you and in almost every case all we can recommend you do is read the FAQ post Periodic Backup vs AutoSave Plugin. In there is information on where any possible backup files might be.

    If you are really lucky it will just be that the session.xml file which has been cleared. If so then the backup files will likely still exist. Read that post, it will explain it all.

    Please also heed the recommendations made there. If you learn anything at all (even if your critical files are lost) it is that you need to set what type of backup system you will use in future and understand the processes going on.

    Terry

  • Remove everything but specific chains

    7
    0 Votes
    7 Posts
    819 Views
    guy038G

    Hello, @david-l,

    But, regarding the two last cases :

    amounts 1234 and 4567 amount A1A1

    do they need to be followed with a space or dot character as well ?

    Remember: regular expressions are a school of precision ! Each character and its position has its importance !

    Best Regards,

    guy038

  • Notepad has hyjacked Windows Notepad

    4
    0 Votes
    4 Posts
    1k Views
    Lycan ThropeL

    @_ ,
    Amazing. The man answers your question in a straight forward and informative manner, and you read ''annoyed" in it? Wow, you’ve shown super powers of wokeness. Moving on. Downgrading post.
    And yes, that was a conveyed “annoyed” response on my part.

  • Change the color of the previous line

    3
    0 Votes
    3 Posts
    249 Views
    HaichitoH

    @PeterJones Okey, I will try to implement what you said.
    Thank you very much.

  • Help with Regex

    4
    0 Votes
    4 Posts
    297 Views
    PangolinP

    Thank you very much Mark and Guy for taking the time to answer my request. It is really appreciated!

    Have a nice evening

  • 0 Votes
    2 Posts
    348 Views
    PeterJonesP

    @Antonio-Guerriero ,

    You just want it to be “any token that ends in a : should be considered a LABEL”? Yeah, the User Defined Language lexer isn’t designed to be that complicated: it is intended for a specific list of keywords

    The EnhanceAnyLexer plugin will allow you to add a regex to change the foreground of matching text on a per language (per UDL, or per builtin lexer). Assuming that the LABEL has to be the first non-whitespace sequence on a line, and must be only alphanumeric-and-underscore-before-:, then the following should make your LABEL green.

    [your_udl_name_here] 0x00CC00 = ^\h*\w+:
  • Binary file does not reload with the HEX-editor

    2
    0 Votes
    2 Posts
    340 Views
    PeterJonesP

    @Pavel__A ,

    “base” Notepad++ has no problem with File > Reload From Disk. The symptoms you have described are almost definitely related to the HEX-Edit plugin, not Notepad++ itself. You can try to put in an issue here, but there are a lot of open issues on that plugin, and I won’t guarantee that it will be fixed. (The release history over the last few years seems to focus mostly on “crashes”, not any new features or minor bug improvements.)

  • Looking for string search that includes the & mnemonic

    14
    0 Votes
    14 Posts
    817 Views
    Alan KilbornA

    @guy038 said in Looking for string search that includes the & mnemonic:

    I noticed that the search is a non-sensitive search

    If you wanted a “sensitive” search you could add (?-i) to the start(s) of the expressions you input at the prompt.

  • Search for a list of strings in another file.

    8
    0 Votes
    8 Posts
    4k Views
    Alan KilbornA

    @gendalv said in Search for a list of strings in another file.:

    although I had to figure out how to actually run a python script in np++, ended up installing PythonScript plugin, which is also not obvious, how to add a script to, but, after some fiddling

    You could have found quicker answers had you consulted this site’s FAQ entry for : How to install and run a script in PythonScript

  • Hide text

    3
    0 Votes
    3 Posts
    598 Views
    F

    @Alan-Kilborn thank you for this clear answer.

  • remove correlative text from multiple lines

    9
    0 Votes
    9 Posts
    457 Views
    Alan KilbornA

    @Mark-Olson said in remove correlative text from multiple lines:

    try using \s

    And note that \h is often better than \s.
    \s will match end-of-line characters which isn’t always what people expect.

  • Delete numbers following letters ( i.e. \w\d+\s becomes \w\s)

    3
    0 Votes
    3 Posts
    318 Views
    Luís GonçalvesL

    @Alan-Kilborn you’re right! Haha. Sorry about that, I’m just finding how regular expressions work (and I’m loving it, even though it’s hard to learn all by oneself)… so I’m sorry if sometimes my questions are more or less repetitive -.-’

  • "Intellisense" suggesting wrong words

    11
    0 Votes
    11 Posts
    607 Views
    Petr DemuthP

    @Michael-Vincent said in “Intellisense” suggesting wrong words:

    @Petr-Demuth said in “Intellisense” suggesting wrong words:

    Notepad++ v8.4.8 (64-bit)

    That’s the problem. If you want the behavior we are seeing, upgrade to 8.5 or newer.

    On a fresh 8.4.8 portable, I observe the same behavior as you do.

    Cheers.

    Kudos!
    Now works OK :)
    01331bb5-6b6c-41b0-aef7-a4882c501a94-image.png

  • Code Collapsing Weirdness

    3
    0 Votes
    3 Posts
    185 Views
    Alan KilbornA

    @Jason-Burnett:

    I try to collapse one sub_fld, it collapses the parent element

    I don’t know…works for me correctly, with N++ 8.5:

    dcc4a6bd-72bc-478a-a9be-77e935a9cf7f-image.png

    I guess if it doesn’t work for you, you’ll have to demo something about exactly what it is doing for you.

  • Snaphot not work with Plugin !?

    4
    0 Votes
    4 Posts
    262 Views
    Michael VincentM

    @Mes-E-M said in Snaphot not work with Plugin !?:

    How can a Plugin interfere with periodic autosave?

    The Notepad++ API changes so does the underlying Scintilla API - so it could be any number of things.

    What old version of Notepad++ did it work on?

    Where is the code to your plugin?

    Cheers.

  • 0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @pbarney said in Is it possible to replace individual characters inside a regex capture group?:

    If I owned a software development business, I’d hire you as Chief RegEx Officer.

    I fully endorse this.

  • langs.xml

    2
    0 Votes
    2 Posts
    235 Views
    PeterJonesP

    @DomOBU ,

    My general procedure in something like that is to do a DIFF between the two versions (the Compare Plus plugin is quite helpful for that) – and anyplace that is undoing your own setting can be ignored, but anything added to the v8.5.1 one that isn’t in your existing should be added; once your copy has been updated to include any new entries from v8.5.1, then you can copy your updated XML overtop the one in the v8.5.1 directory and restart Notepad++.

  • Insert new line after every comma, colon AND period mark

    4
    1 Votes
    4 Posts
    20k Views
    Alan KilbornA

    @Luís-Gonçalves said in Insert new line after every comma, colon AND period mark:

    The problem with that regex is that it deletes the commas, colons and period marks, which I don’t want to. I want to keep them as they are, while inserting a new line after them.

    Ah, I missed that detail.

    Revise the Replace: $0\r\n

  • Replace text inside Quotations

    6
    0 Votes
    6 Posts
    1k Views
    Alan KilbornA

    @geeman72 said in Replace text inside Quotations:

    and worked with this

    Seems reasonable!