• CMake format parser doesn't recognise target_precompile_headers

    3
    0 Votes
    3 Posts
    120 Views
    PeterJonesP

    @perdrix52 ,

    Settings > Style Configurator > CMakeFile > COMMAND, add target_precompile_headers to User-defined keywords box ⇒ that will add highlighting for that keyword for you. (If you find other commands missing, you can add them to that same box, with spaces or newlines between.)

    And if you really want Notepad++ to ship with that keyword in the Default keywords list in the future, you would have to put in an official feature request, and this forum is not the place for feature requests

  • BUG: In Perl, NPP doesn't find some subroutines in function list.

    5
    1 Votes
    5 Posts
    178 Views
    Alan KilbornA

    Bottom line: Comments cause problems with function list parsing.
    And thus it is practically impossible, given the free-form-put-most-anywhere nature of comments, to “get it right” all the time.
    It would be better if there was an algorithm that (virtually) converted all comments to space characters before parsing for function list purposes.

  • Forum says I need 2 reputation to post links. But I'm not posting links.

    2
    1 Votes
    2 Posts
    121 Views
    PeterJonesP

    @C-Bacca ,

    Well, you could have just edited the Debug Info enough to convince the forum there wasn’t a link… but that said, you now have 2 rep, so you can post it anyway.

  • 4k resolution

    3
    0 Votes
    3 Posts
    495 Views
    xomxX

    @PeterJones said in 4k resolution:

    High DPI is surprisingly more difficult than some people seem to think to add onto an app years after the main GUI portions were originally developed (newer apps, that were built from the ground up to handle high DPI might or might not have an easier time of it)

    Very well said. N++ is a 20y+ Windows GDI app - at that time there was no hi-dpi stuff even on the horizon. Here is some good background reading for the understanding. In short - N++ has to do all the hi-dpi & per monitor awareness stuff by itself == A LOT of work to do.

    @PeterJones said in 4k resolution:

    @xomx has been working on improving the high DPI behavior,

    Almost all the N++ hi-dpi & dark-mode work is done by the ozone10, our Windows-GDI guru :-) Here is for example only the ongoing hi-dpi stuff, the amount of code is impressive: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14959

    @Maxitrol-Mat said in 4k resolution:

    While some things look good, some other things look microscopic. Is there a plan to fix this?

    I myself have no such problem on my laptop 3200x2000 display with the MS recommended 200% scaling. Could you post here some screenshots documenting your situation?

  • Some Typos in the Official N++ documentation

    4
    1 Votes
    4 Posts
    147 Views
    PeterJonesP

    @guy038 said in Some Typos in the Official N++ documentation:

    But, to my mind, the Filter zone seems to take the Shortcut column in account, even when the Scintilla commands tab is selected !

    That was a behavioral change that was missed, because Filter used to ignore the Shortcut field on the Scintilla commands tab.

    update: yes, it was item 13 in v8.6.5

  • Carriage return when copying a line

    5
    0 Votes
    5 Posts
    316 Views
    DemonD

    @PeterJones said in Carriage return when copying a line:

    Just FYI, trying things like MS Word or MS WordPad, or VisualStudio, all use triple-click to select the whole line including newline. That seems to be the industry standard, and I’ve never seen an option anywhere to change it to not include newlines.

    Well, then we’ll work with a macro.

    @PeterJones said in Carriage return when copying a line:

    you need to put it in Notepad++'s GitHub Issues

    Oh! Got it! I’m sorry that I wrote in the wrong place.

  • remove some text

    2
  • 1 Votes
    3 Posts
    224 Views
    guy038G

    Hello, @j-s-1,

    If you’re having trouble creating the right regular search expression, just ask me about it ;-)

    Best Regards,

    guy038

  • 1 Votes
    4 Posts
    740 Views
    mkupperM

    @Ennapocryph said in session.xml is lost - overwritten by Notepad++ after crashes:

    I feel like this bug could easily be fixed. Only save the settings when there’s enough disk space available. Or first save the settings to a new file, and only overwrite the last settings when the saving was successful.

    It’s not clear that there was a “bug” much less one that can “easily be fixed.” Your disk filled up and Notepad++ has been ordered to close/exit (either by the human or the the operating system). When that happens there is not much that applications can do that won’t upset a human somewhere. The human that believes they are in charge of a particular machine needs to make some decisions about what actions they would like to do and the order of those actions.

    We could make some changes to Notepad++'s code that would increase the odds of the configuration plus session stuff being saved when the disk is both 100% full and things in the background are continuously grabbing every single available byte of disk space, and perhaps the system is in the middle of crashing or being shut down. Those change are not “easy” and can’t be guaranteed to work 100% of the time. Related to this is that some Notepad++ plugins also save configuration files.

    Keep in mind that Notepad++ will not have, and can’t have, the same rights to system access as the Microsoft Windows’ Trusted Installer subsystem. The Trusted Installer can and will lock down our systems for minutes at a time while it works. The Trusted Installer does the lockdown as it does not want external processes to sneak in and to make changes, such as filling up the disk, while the Trusted Installer does the shuffle dance related to installing or updating Windows components and their configuration. I brought up the Trusted Installer here as that’s the thing that likely filled up your disk and is busy at work at the time you were trying to exit from Notepad++. The Trusted Installer will have priority over whatever applications such as Notepad++ want to do.

    Finally, Notepad++'s design philosophy has been to be as lightweight and portable as possible. The configuration has always been stored in normal text files saved to a single folder or its sub-folders. Notepad++ does not use the Windows registry or database style transaction logs or whatever that would improve its ability to retain the settings in edge cases such as the disk is full and/or the Trusted Installer is busy.

  • 0 Votes
    16 Posts
    2k Views
    guy038G

    Hello, @ahamed-nawas-ali, @peterjones, @alan-kilborn and All,

    @ahamed-nawas-ali, I’ll use a similar search regex to the @alan-kilborn’s one !

    For example , given this INPUT text , below :

    2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 Learning Selection B. Home Webinar IDB 20214980 2021420214202216 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 Test B. Home Webinar IDB 20214980 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 Try Selection B. Home Webinar IDB 20214980 2021420214202216 Blablah OK END of story

    Open the Replace dialog ( Ctrl+H )

    Uncheck all box options

    Search (?-s)^(\d{4}-.+\t).+\R\K(?!\d{4}-|\R|\z)

    Replace $1

    If necessary, check the Wrap around option

    Select the Regular expression search mode

    Click, exclusively, on the Replace All button, several times, till the message Replace All: 0 occurrences were replaced... is displayed !

    At the end, you should get this expected OUTPUT text :

    2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 Learning 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 Selection 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 B. Home 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 Webinar 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 IDB 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 20214980 2021-09-14T21:10:55+00:00 ATX Field3 Guy Field5 2021420214202216 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 Test 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 B. Home 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 Webinar 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 IDB 2021-09-15T11:19:14+00:00 BYQ Field3 Alan Field5 20214980 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 Try 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 Selection 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 B. Home 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 Webinar 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 IDB 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 20214980 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 2021420214202216 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 Blablah 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 OK 2021-09-16T15:07:46+00:00 ATX Field3 Peter Field5 END of story

    Voila :-))

    Notes :

    As you can see, the number of columns, before the last one, is not a problem !

    From beginning of line ( ^ ), the regex looks for a line beginning with 4 digits, followed with a dash character (\d{4}- ) and anything else till the last tabulation ( .+\t ) of current line

    This search, so far, is memorized and stored as group 1

    After the last field of the line and the line-break ( .+\R ), all the matched string is discarded ( \K )

    Thus, the regex engine is now searching for a zero-length string, at beginning of the next line, but ONLY IF this next line does not begin with :

    4 digits and a dash char

    An other line-break

    The very end of current file

    When this assertion is true, it just inserts the group 1 contents at the very beginning of current line

    Best Regards

    guy038

    P.S. :

    If the condition to detect the header lines seems not restrictive enough, you may use this alternate search regex :

    Search (?-is)^(20\d\d-\d\d-\d\dT.+\t).+\R\K(?!20\d\d-\d\d-\d\dT|\R|\z)
  • Notepad++ File binary layout & display beats Vscode

    1
    2 Votes
    1 Posts
    113 Views
    No one has replied
  • Icon on the first tab is not fully displayed

    3
    0 Votes
    3 Posts
    125 Views
    EkopalypseE

    @Alan-Kilborn

    Maybe, I’m just not sure if it’s really an NPP issue or something on my end because, kinda weird, right?

  • Looking for dBASE IV (old DOS versions) UDL

    20
    2 Votes
    20 Posts
    840 Views
    Lycan ThropeL

    @James-Burke-0 ,
    Unless it has the ability to read dbf7 tables, it doesn’t read all dbf formats. Just an FYI.

  • Notepad++ v8.7 - Error Sysprep

    3
    0 Votes
    3 Posts
    468 Views
    Marcos Paulo GonçalvesM

    @PeterJones Yes, this is the same problem I’m facing. I haven’t found a solution to the problem. I’m having to use an old version of Notepad++ that didn’t have this error.

    I just commented on /issues/29 , which you sent me.

  • 7 Votes
    31 Posts
    6k Views
    sam rathodS

    @guy038
    Sorry for the inconvenience caused.

    Thanks a lot will try this. I m sure this will work.

    Regards,
    Aa

  • a newbie question about search

    16
    0 Votes
    16 Posts
    492 Views
    PeterJonesP

    @Alen-Mark ,

    Please note: this is the second time you’ve come to the forum and posted ultra-generic content that sounds vaguely on-topic: it is highly reminiscent of AI-generated phraseology.

    Please understand that posting AI-Generated content is expressly forbidden in this forum. And if your posts continue to appear as if they are – whether or not they are – you are likely to get banned. If you wish to avoid looking like (and getting banned as) AI, then I suggest you tailor your replies to the individual posts, rather than providing overly-generic responses that don’t take into account the context of the entire conversation.

  • Exploring the Power of Notepad++: Key Features for Every User

    2
    -4 Votes
    2 Posts
    739 Views
    Alan KilbornA

    This seems like a baiting post to get upvotes so that the user can then better spam the forum. PLEASE DO NOT UPVOTE THIS USER’S POST ABOVE.

  • how to swap data format of 2 diffent jsons

    5
    0 Votes
    5 Posts
    210 Views
    Mark OlsonM

    @stefano-marinoni said in how to swap data format of 2 diffent jsons:

    the result i want is another json

    Thank you for slightly clarifying your objective. However, as we have also made clear, we still do not know anything about the conversion you want to perform, beyond the fact that it is a conversion between two JSON formats. This is a Notepad++ forum, not a forum for any random programming question you might have; that would be StackOverflow. This sounds like a question you should ask there, or answer for yourself by consulting a search engine.

    If you expect this forum to be at all useful to you, you need to explain clearly what you are trying to do, rather than giving a vague description of your goal and expecting us to infer the rest.

  • quick one...

    7
    0 Votes
    7 Posts
    230 Views
    PeterJonesP

    @x-77-x said in quick one...:

    i dont understand what peter is talking about

    Sorry, given the proficiency that your original regex showed, I had hoped that you would understand my pointers.

    The FAQ gives the following formula for replacing within a zone of text on one line – it was meant as a “fill in the blank” so that you could use the formula even if you don’t understand the syntax used:

    SEARCH (?-s)(?-i:BSR|(?!\A)\G).*?\K(?-i:FR)
    REPLACE RR

    The FAQ also explained what BSR and FR meant.

    I also told you that BSR for your case was ^NAME= and that what you wanted to match was \b\w+\b (sorry, I thought I had told you that was FR, but apparently didn’t type that part), and that your replacement should be \u$0

    Thus, you should try SEARCH = (?-s)(?-i:^NAME=|(?!\A)\G).*?\K(?-i:\b\w+\b) and REPLACE = \u$0

    … At least, that worked for me given your example data.

  • Note able to delete a page, it restores back

    2
    0 Votes
    2 Posts
    202 Views