• BUG: 7.8.8+ Open dialog not working correctly on Linux/wine

    4
    0 Votes
    4 Posts
    413 Views
    F

    I am using Notepad++ v8.7 under WINE on Debian 12 (bookworm) Linux, and I too have the issue where newer Notepad++ versions have an incomplete file dialog box. For instance, it has no “up folder” button, only forward/back…

    Here is a screenshot to show what I am talking about:

    Npp_Issues.png

    In contrast to the “Browse” dialog opened from ODIN disk imager under WINE (used just for an example):

    ODIN_File_Open.png

    Would it be possible to implement a user option to enable the old style dialog box? The type that was compatible with WINE?

    Thanks!

  • cubase14 in notepad++

    2
    -1 Votes
    2 Posts
    176 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
    261 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
    5k Views
    Szymon SzymonS

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

  • Force Tab, One space Indents/UnIndents

    4
    1 Votes
    4 Posts
    438 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
  • Copying file itself into clipboard in Notepad++

    16
    0 Votes
    16 Posts
    1k Views
    EkopalypseE

    @mkupper

    Maybe I’m missing something but it seems to work for me as well.

    Notepad++ v8.7.1 (64-bit) Build time : Oct 31 2024 - 00:48:56 Path : D:\Tests\npp\_latest\x64\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : ON Cloud Config : OFF Periodic Backup : ON OS Name : Windows 11 Pro (64-bit) OS Version : 24H2 OS Build : 26100.1742 Current ANSI codepage : 1252 Plugins : mimeTools (3.1) NppConverter (4.6) NppExport (0.4) PythonScript (2)

    test_drop.gif

  • NPPJSONViewer Version Question

    3
    1 Votes
    3 Posts
    406 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
    124 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
    5k 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
    160 Views
    Leo MoralesL

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

  • Question(s)

    16
    0 Votes
    16 Posts
    2k Views
    mkupperM

    @garrett-carey said in Question(s):

    Also is it possible to restore tabs (not sure what happened but all my tabs I had opened went away.

    Notepad++ itself does not have a built-in mechanism to archive copies of its configuration or settings files. Notepad++ stores all of its configurations/settings in plain text files.

    The list of tabs is stored in the session.xml file. If you maintain backups of your computer then restore the version of session.xml that has the list of tabs that you are interested in.

  • CMake format parser doesn't recognise target_precompile_headers

    3
    0 Votes
    3 Posts
    132 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
    205 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
    135 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
    591 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
    156 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
    406 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
    258 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