• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    5k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    14
    0 Votes
    14 Posts
    961 Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    5k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • [Python] Replace spaces with tabs?

    2
    0 Votes
    2 Posts
    13 Views
    PeterJonesP

    @Shohreh said in [Python] Replace spaces with tabs?:

    Unless I missed it, I saw no item in the menus

    You missed it.

    Edit > Blank Operations > Space to TAB (Leading) (see User Manual entry for details)

    93467433-46ad-458a-86c8-ffc0b2821496-image.png

    Also, if you want python to always use tabs for indentation, Settings > Preferences > Indentation: Python and set Indent = Tab character (see User Manual > Indentation settings for details):
    553797e5-84c7-4aa8-9974-c2ed9a28aa8e-image.png

  • How to Hide Fold Lines in Notepad++?

    2
    0 Votes
    2 Posts
    28 Views
    mpheathM

    @pockytu

    Go to Plugin Admin, type fold into the Search box and keep clicking Next until you see Folding Line Hider. Check the checkbox and click the Install button. After Notepad++ restart, it should be active at hiding the fold lines.

    Description of the plugin:

    This Notepad++ plugin can hide the unsightly folding lines, and for convenience, you can fold and unfold the current level using the Alt + Left/Right keys.
    Author: leonardchai@gmail.com
    Homepage: https://github.com/leonardchai/FoldingLineHider

  • Translate interface buttons

    2
    0 Votes
    2 Posts
    39 Views
    Alan KilbornA

    @Max-Alekseyev

    The captions on those buttons are controlled by Windows instelf, not Notepad++.

  • "Word wrap" option is reset from time to time

    12
    0 Votes
    12 Posts
    5k Views
    mathlete2M

    @PeterJones said in "Word wrap" option is reset from time to time:

    With it on, if you open a file that is bigger than the threshold, then Word Wrap will be turned off for the entire application (and thus all other files still open). It will remain off, even after you close all files that are bigger than the threshold, and you will have to manually turn Word Wrap back on if you want that feature back on (and Notepad++ will remember the final state of the Word Wrap toggle when you exit Notepad++ and restart).

    I think all of the important information is there, but I suggest a few readability adjustments:

    [With it on|When checked], opening a file that is bigger than the threshold will turn Word Wrap off for the entire application (i.e. the tabs for all other open files will be affected too), but closing such files will not turn Word Wrap back on. Notepad++ will remember this state when you exit, so you will have to re-toggle Word Wrap manually when this happens.

  • Does not save the settings: NotePad++ 8.7.8 Portable

    11
    0 Votes
    11 Posts
    224 Views
    PeterJonesP

    @Maxim-Fox said in Does not save the settings: NotePad++ 8.7.8 Portable:

    That’s not exactly what I need. I need to completely remove the white selection when clicking next to the brackets.

    Despite your protest that it wasn’t exactly what you need, the instructions I gave explained a couple ways that you could do that using the “Brace highlight style”. And, despite your protest to the contrary, the screenshot you showed in the next post proved that you edited the “Brace highlight style” to make it work for you. So maybe there’s a translation problem while we’re communicating, because it worked when you did what I suggested you do.

    The one caveat is that your screenshots showed you changed the color for both “Brace highlight style” and “Bad brace colour”. I didn’t recommend changing “Bad brace colour”, for the intentional reason that I think it’s a good idea to keep the visual reminder when you have braces/brackets/parentheses that aren’t balanced (so an open without a close, or a close without an open). But it looks like you at least picked a color that was different than the “Brace highlight style”, so that should be sufficient.

    I also wanted to know if it is possible to remove the indentation from the top of the letters? This indentation is too big for me.

    Notepad++ correctly calculates the amount of space required per line based on the biggest font and size that’s active… so if you’ve got a theme that changes fonts and/or sizes depending on style, it will use a big enough line height for the tallest font+size. If all your styles have the same size and font, and you still think the vertical spacing is too high, there might be a way to change the line-spacing using PythonScript or another plugin to send Scintilla messages (I vaguely remember one exists, but haven’t been able to find it yet; maybe one of the other PythonScript/Scintilla power-users will be able to remember or find that before I do).

    (And, just so you know, in English, the term for the vertical spacing between lines isn’t “indentation”; usually, it’s referred to as “line spacing” in word processing. “Indentation” almost solely refers to left-or-right-margin spacing.)

    And to @Terry-R , you said,

    Well, do you know the answer to my question?

    Just so you know, that sounds very demanding and self-entitled, and most would consider that a rude response to @Terry-R’s moderator-aside; if that wasn’t your intention, I recommend you be more careful with your phraseology, and/or double-check any translation software you use.

  • Style/theme settings lost on every N++ update

    12
    0 Votes
    12 Posts
    2k Views
    mpheathM

    @peter-vasil

    The install directory is handled similar with the installer whether Don't use %AppData% is checked or unchecked. The main difference is the doLocalConf.xml existence which impacts how notepad++.exe saves to the xml files. When notepad++.exe saves to the install directory, then a risk exists when using the installer to upgrade which can overwrite customized xml files.

    Information from install logs:

    Files Install Upgrade Minimalist doLocalConf.xml extract extract extract autoCompletion\*.xml extract skip functionList\*.xml extract extract overrideMap.xml extract skip gup.xml extract extract contextMenu.xml extract skip skip tabContextMenu_example.xml extract skip skip toolbarButtonsConf_example.xml extract skip skip toolbarIcons.xml extract skip skip langs.model.xml extract extract extract stylers.model.xml extract extract extract shortcuts.xml extract skip skip nppLogNulContentCorruptionIssue.xml extract skip skip markdown._preinstalled.udl.xml extract extract extract markdown._preinstalled_DM.udl.xml extract extract extract DarkModeDefault.xml extract extract extract themes\*.xml extract extract

    Theme modifications in the install directory can be overwritten by the upgrade as that is what extract does.

    If Don't use %AppData% is checked:

    The default Custom type of upgrade install will extract many xml files so to keep customizations, may need to backup before install and merge after install.

    The Minimalist type of upgrade install will extract the least amount of xml files so is probably the safest to keep customized xml files.

    If Don't use %AppData% is unchecked:

    Modified xml files are saved to %AppData% so are safe.
  • 0 Votes
    6 Posts
    127 Views
    Fernando Fernandez EscalanteF

    @PeterJones I just tried it and it works perfectly. Thanks again so much for the help.

  • RegEx Help with Backreference I think

    45
    0 Votes
    45 Posts
    505 Views
    Robert Or Janet DiebelR

    @guy038 Thank You very much for the extra effort.

  • Need help with RegEx

    3
    0 Votes
    3 Posts
    59 Views
    Smudge the catS

    @PeterJones thank you so much for the help!!

  • The program forgets settings. Inconvenient view defaults

    2
    0 Votes
    2 Posts
    90 Views
    PeterJonesP

    @Taras-Tkachenko said in The program forgets settings. Inconvenient view defaults:

    It seems that the program forgets at least this setting after the computer is restarted and maybe when it goes into sleep mode.

    It should not do that.

    That sounds like either you are using multi-instance mode, and you are changing the setting in one of the instances that doesn’t have the “lock” on writing to the config files (only the first copy opened in multi-instance mode is allowed to write the settings to disk); or you have the wrong write-permissions in the folder storing the config.xml (usually %AppData%\Notepad++\config.xml, but it depends on your setup)

    But I can be more specific if you share your ?-menu’s Debug Info – that will answer some or all of the questions, after which I or others will be able to ask more direct questions.

    Also this late version I’m using does not automatically show all files in the working folder.

    There is no version for which that statement is true, in my experience: Notepad++ lists all the files in the working folder when using File > Open, unless you apply a filter. If Windows is hiding files (protected files, or similar), then the same would be true in Windows Explorer, and you can use Windows Explorer settings to change what’s shown in N++ File > Open dialogs, as well.

    Now it defaults to TXT every time, every new complete start of the program or every once in a while - possibly another part of its memory that gets reset.

    No such thing happens for me. File > Open never has a filter : even when my active file is a Perl script (blah.pl), File > Open properly defaults to showing all types
    c3c07b0a-2357-440c-8bd7-1db1ba065e4a-image.png

    I create a new file, go to Save As and see an empty folder that is actually full of D files because the new file is TXT by default

    Ahh… Save As is different than Open dialogs. IF you have applied a file type to the new file (manually using the Language menu to set the type before you do Save As), then it will default to filtering for that active type, like:
    2b342e19-71f0-4d24-a7ca-a7ad3660d511-image.png

    However, you are correct, if you have a new # file that hasn’t had a language attached, it will assume a text file (*.txt*) as the filter. You can then click on the Filter’s drop-down and choose D programming language (*.d) if that’s what you want to filter by.

    If you want the default language for new files (ie, when you use File > New or equivalent) touse the D language by default, then you can change Settings > Preferences > New Document > Default language using the dropdown:
    1e2ba9c3-456e-49bb-ba8f-2f317628756a-image.png
    After doing that, when you hit New, the file will start out being of type D programming language and the File > SaveAs filter will default to the D filter, rather than the txt filter.
    (If you have a few different “default” languages, depending on what you’re working on that’s ot as practical; if you are in a situation like that – like maybe you want to create new D files and new python .py files with about equal probability – then you can look here for a post where I describe how to create a macro that makes a new file, and changes the language on that new file; and if you wanted, here shows an expanded macro that also immediately runs Save As on your brand-new document after it creates it and sets the language; with either of those styles of macro, you could create two of those macros (one for D, one for PY) with different keyboard shortcuts, and use those shortcuts to create the files instead of using the File > New.

    That said, the Filter is easily ignorable in the Save As dialog. If you want to save new 1 as abc123.d, you can type that, and it will use that name, no matter what the filter is currently set to, and it will save it to that name (and pick the right Language as a result). I rarely (almost never? maybe once in decades of use) want to create a new file and then overwrite an existing name, so I guess not seeing all the files doesn’t bother me, or I’m willing to click in the Filter box and pick “All Types”, which is immediately above “Normal text file”, if I really must see all the existing filenames this time.

  • need help to download notepad++

    2
    0 Votes
    2 Posts
    53 Views
    PeterJonesP

    @josiah-cohran said in need help to download notepad++:

    im on my school computer trying to do something with not pad

    Even for students, clarity of communication is important. “not pad” is not the same thing as “Notepad++”

    and it is bringing me the github page

    Assuming you mean that it took you to https://github.com/notepad-plus-plus/notepad-plus-plus/ , then you should see a section on the right of the main page like:
    0e014db4-d27e-4c77-b724-45e5cde967f2-image.png
    Click on the “Latest” to go to the most recent release (currently, https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.7.8) , and from there, click on the npp.8.7.8.Installer.x64.exe (future readers: the number will change to match the most recent version) if you are on a normal 64-bit windows machine (most are 64-bit nowadays)
    9b67dc7a-1400-4f15-9077-199a594d8512-image.png

    The other way of getting Notepad++, instead of going through GitHub, is to go to the application’s official website and the “Downloads” page: https://notepad-plus-plus.org/downloads/

    From there, you can either go to the top link (which is currently v8.7.8), or if you are more conservative, scroll down to the one that says “stable”):
    fc1dccf7-22a4-4357-ab47-7546eaff5761-image.png
    From one of those pages, click on the topmost “Installer” link to download the installer for the 64-bit Notepad++ (which again is most likely what you need).

  • Unable to see Data in the Notepad++

    20
    0 Votes
    20 Posts
    2k Views
    Sabin PopescuS

    I’ve noticed that I only have the issue on my secondary display.
    On the primary display of my laptop, the data/file contests are displayed properly:
    933a7275-1168-4c5f-9ef1-f83d23b24f43-image.png
    On the secondary display , the data gets “lost” :
    e8a1d527-cd95-4359-8a22-1c29aaaa475b-image.png

    Hope it helps

  • Get a word from a file, then use it in a REPLACE, hopefully in one RegEx.

    3
    0 Votes
    3 Posts
    86 Views
    Robert Or Janet DiebelR

    @Terry-R I know this kindness is above and beyond.
    I have been looking, trying to help myself.

    This will save much time and effort.

    Thanx for your patience.

  • 0 Votes
    2 Posts
    74 Views
    PeterJonesP

    @Andrej730 said in Notepad++ font with emoji support / Segoe UI Emoji slows down notepad++:

    Hi! I was looking for a way to show emojis in notepad (similarly to https://community.notepad-plus-plus.org/topic/20642/) and I’ve found it, it requires enabling DirectWrite in preferences (it seems nay DirectWrite option works for it) but it also requires a special font that supports emojis.

    There are lots of fonts that support emojis

    The font I’ve found for it Segoe UI Emoji - which works but the problem is that using this font slows down notepad++.

    The font itself, combined with the DirectWrite settings, might be the culprit. When I tried the experiment with DirectWrite (default) and Segoe UI Emoji, I also saw a slowdown… But if I switch to GDI (most compatible) (and restart), then I don’t think I see the slowdown… not 100% sure. But I don’t know if that mode will show all the emojis you want, even with that font.

    However, Segoe UI Emoji doesn’t appear to be a monospaced font, and Notepad++ works best with monospace.

    Any suggestions for getting emojis in notepad++ by some other way or solving this problem with Segoe UI Emoji font?

    Try without directwrite. Try a different font.

    When I do DirectWrite (default) and my old normal DejaVu Sans Mono or my new normal FiraCode, I am able to see many emoji (even ones that those specific fonts don’t support, because of the “composite font” capability of Windows that DirectWrite enables). It’s possible that combination isn’t sufficient for you, but it’s something worth trying. I have never noticed a font-related slowdown when using those settings and fonts.

  • I want to copy only the text without the codes

    14
    0 Votes
    14 Posts
    175 Views
    moath eledwanM

    @Mark-Olson Thank you for the warning

  • Blue icons

    5
    0 Votes
    5 Posts
    137 Views
    PeterJonesP

    @TG-King said in Blue icons:

    but the icons were blue, and I think they were round.

    Sounds like you used a set of custom icons, as per the User Manual > Config Files > Toolbar Icon Customization

    That section has a link to a zip file with various icon sets, so maybe you used one of those; or maybe you found icons elsewhere, but we cannot tell you where you found them.

  • Markdown & Lint

    4
    0 Votes
    4 Posts
    77 Views
    EkopalypseE

    @Mark-Olson said in Markdown & Lint:

    VSCode has a Markdown language server that I quite like; maybe you could use that.

    I am afraid this is not possible because this extension uses node-ipc as a communication channel.

    node-ipc: use node IPC communication between the client and the server. This is only supported if both client and server run under node.

    If other LSP servers that use stdio or socket, i.e. tcp, are available, this would of course be an alternative.