• cubase14 in notepad++

    2
    -1 Votes
    2 Posts
    288 Views
    PeterJonesP

    @yasien-trabih ,

    fix this bug in the next version?

    there isn’t any bug in what you described.

    could somebody help me out

    our screenshots don’t seem very realistic, as they show the filename with an .exe extension showing up as text-based XML – that seems highly unlikely to me. But maybe it does have a section 129MB into the file where it has a bunch of uncompressed text – I’ve rarely seen such long sections of pure text in a compiled .exe.

    If you were actually trying to run that executable by using File > Open, that’s not the way you run an executable, that’s the way you open a text file for reading/editing. You could launch it using Notepad++'s Run menu, but that’s not the most efficient way – double-clicking the executable from Windows Explorer or desktop, or clicking on the application in the start menu is the right way to run an application.

    If you are trying to edit the program by using Notepad++ to edit the raw .exe file (which is a binary format), you need to understand that just editing random “text” in a true .exe is likely to crash the executable and have other dangerous side-effects that you would never be able to guess. Notepad++ is designed to edit text, not to decompile a piece of software so you can hack it. .exe executables are not text files.

    To edit a compiled .exe-based application, you have to download its source code (assuming it’s publically available), and have the necessary development environment to build the executable from source. Since you mentioned “cubase pro”, I am assuming it is not open source, and you are not going to have access to the source code.

    And, based on the phrase “and run to a full cubase pro license”, it sounds like you are asking us how to hack a commercial piece of software to get a free license to a paid piece of software: even if Notepad++ were a magical .exe-editor, rather than being being a text editor, what you are asking from us is illegal. Sorry, we’re not going to help you, if that’s really what you were asking for.

  • Is there a way to better distinguish between parentheses and braces?

    5
    0 Votes
    5 Posts
    551 Views
    NicholasN

    Monoid is a customisable open source font designed for writing code in. https://larsenwork.com/monoid/

    There are other fonts out there as well if you search the web.

  • Names beginning with '#' in Javascript

    2
  • How to change syntax via hotkey ?

    27
    0 Votes
    27 Posts
    7k Views
    Szymon SzymonS

    @PeterJones Works like a charm, 2minutes and configured, thanks

  • Force Tab, One space Indents/UnIndents

    4
    1 Votes
    4 Posts
    699 Views
    W

    Replace with this in the code in both One_Space* so that it doesn’t block entering spaces without multiple lines selected, while holding SHIFT or Alt.

    if editor.getSelectionEmpty(): # If nothing is selected, add a space editor.addText(" ") return if editor.selectionIsRectangle(): return # if rectangular selection start_line, end_line = editor.getUserLineSelection() if start_line == end_line: editor.replaceSel(" ") # If the selection is on a single line, replace it with a space. return
  • NPPJSONViewer Version Question

    3
    1 Votes
    3 Posts
    706 Views
    Kevin RayK

    @PeterJones. Thank you very much for your assistance. I will get my software management team to grab the correct installer.

  • F7 should toggle

    2
    0 Votes
    2 Posts
    281 Views
    PeterJonesP

    @Jon-Pugh said in F7 should toggle:

    Is there a reason that F7 only shows the Search Results window instead of toggling it?

    The reason is “design decision”. Specifically, because the first F7 will show the window and move your focus there (so keyboard commands affect the search results, not your active editor view), and the second F7 will move the focus (and keyboard control) back to the editor, without closing the Search Results. This is highly important to people who want to be able to swap the focus easily back-and-forth between the editor and the search results.

    As is, you need to use the mouse to close it.

    No, you don’t. F7 will show the window, ESC will close it while your focus is in the search results. So you can still close it with the keyboard.

    Seems like it would be simple and sensible to make it a toggle.

    The developer chose to use the “toggle” portion of F7 to toggle focus, not toggle visibility, which is also sensible: just because it’s not your preferred pairing doesn’t make it not sensible.

  • VB script function list

    9
    0 Votes
    9 Posts
    6k Views
    PeterJonesP

    To future readers,

    To expand on what @Alan-Kilborn said,

    There are already instructions for “Function List” in the user manual

    @Kanesaga’s post was not only probably trying to spam (I just deleted the poorly-inserted link – to a site completely unrelated to Notepad++ or FunctionList – which fortunately, the anti-spam measures prevented from being a hidden link), but also appears to be the instructions for the pre-v7.9.1 single-functionList.xml, instead of for the v7.9.1-and-newer that the original poster was asking about 4 years ago.

    Please understand that the instructions given in that recent post are out of date, and will not work on modern Notepad++ versions. As was said four years ago, the answer to the original question was just a slight tweak to the overrideMap.xml file.

  • Change the doc title font and bg color

    3
    0 Votes
    3 Posts
    313 Views
    Leo MoralesL

    @PeterJones Excellent! Thank you, that worked like magic.

  • CMake format parser doesn't recognise target_precompile_headers

    3
    0 Votes
    3 Posts
    262 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
    426 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
    231 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
    875 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
    345 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
    653 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
    469 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
    1k 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
    3k 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
    285 Views
    No one has replied