• UDL: Catching keywords enclosed in ""

    3
    1 Votes
    3 Posts
    105 Views
    Lars RasmussenL

    @PeterJones Exceptional, thanks for the help!

  • Possible to pin tabs to the far right instead of only far left?

    2
    0 Votes
    2 Posts
    119 Views
    Terry RT

    @mostlyhuman

    If you happened to look at the online manual in reference to this:
    NPP tabs settings it will say:
    Clicking that hollow icon, will “pin” the tab, which will change the icon to a filled-in “pin”, and will move the tab to the left side of the Tab Bar (before any unpinned tabs, but after any tabs that are already pinned).

    So currently only left.

    As stated in the FAQ section you could request a “new feature”. Read the post titled Feature Request or Bug Report as to how to go about requesting this.

    I will say though that unless you get some followers for this idea it might be unlikely the developer will want to expend valuable time coding it into the application.

    Terry

  • color change after downloading

    3
    0 Votes
    3 Posts
    218 Views
    Alain SamounA

    @Terry-R said in color change after downloading:

    style configura

    Thaks Terry, that was quick! I did not know that the style config depended on the type of file; in my case, it was a batch file. Thanks again.
    Alain

  • Get undo to scroll to context

    2
    0 Votes
    2 Posts
    263 Views
    PeterJonesP

    @page200 ,

    As you have guessed from two weeks with no reply, Notepad++ doesn’t have that feature.

    I’m sorry no one had replied yet. Sometimes that happens if no one has a good idea right away.

    I didn’t have time two weeks ago, but I did today, so I hacked up a pair of scripts for the PythonScript plugin.

    Install PythonScript 3.0.22 or later per the PythonScript 3.0.x instructions in our PythonScript FAQ Create and populate the new script undo_and_scroll.py using the source below and the instructions for “create” and “populate” in the FAQ Create and populate the new script redo_and_scroll.py using the second source below and the same instructions Verify them using Plugins > Python Script > Scripts > undo_and_scroll or redo_and_scroll Once they are working, if you want, you can follow the FAQ instructions to create a shortcut for each (you could replace the Ctrl+Z and Ctrl+Y – but you’d have to use the shortcut mapper on the Scintilla commands page to remove those shortcuts from SCI_UNDO and SCI_REDO)

    undo_and_scroll.py:

    # encoding=utf-8 """in response to https://community.notepad-plus-plus.org/topic/27122/ This does the UNDO then tries to scroll to approximate center """ from Npp import editor # undo editor.undo() # find location after undo pc = editor.getCurrentPos() c = editor.lineFromPosition(pc) editor.gotoLine(1) editor.gotoLine(c) editor.setCurrentPos(pc) # try to center it # this is counting >1 for a wrapped line, whereas the "Line" commands are logical line, but close enough h = editor.linesOnScreen() f = editor.getFirstVisibleLine() s = int(c - h/2) #console.write(f"h={h}, f={f}, c={c}, s={s}\n") editor.lineScroll(0, s) del(pc) del(c) del(h) del(f) del(s)

    redo_and_scroll.py:

    # encoding=utf-8 """in response to https://community.notepad-plus-plus.org/topic/27122/ This does the REDO then tries to scroll to approximate center """ from Npp import editor # redo editor.redo() # find location after undo pc = editor.getCurrentPos() c = editor.lineFromPosition(pc) editor.gotoLine(1) editor.gotoLine(c) editor.setCurrentPos(pc) # try to center it # this is counting >1 for a wrapped line, whereas the "Line" commands are logical line, but close enough h = editor.linesOnScreen() f = editor.getFirstVisibleLine() s = int(c - h/2) #console.write(f"h={h}, f={f}, c={c}, s={s}\n") editor.lineScroll(0, s) del(pc) del(c) del(h) del(f) del(s)
  • Lines broken

    2
    0 Votes
    2 Posts
    284 Views
    CoisesC

    @Laura-Pla:

    I think I understand what you mean. If so, this is more a matter of getting a clear sense of how text files work than needing to know any particular tricks about Notepad++.

    As a “plain text” editor, Notepad++ just shows you what is actually in the file.¹

    For “normal” characters, “abcdefg” and so on, you just see the character. Line endings — what you get when you press the “Enter” key while editing — are also characters, but they are displayed by starting a new line.

    You can add a line ending any time, between any two characters, by pressing Enter. And you can delete a line ending by putting the typing cursor at the beginning of a line and pressing Backspace, or by putting the typing cursor at the end of a line and pressing Delete.

    What’s probably happening to you is that you’re deleting text without deleting the preceding or following line endings. Typically you’ll want to type a space after deleting the line ending, so the end of what was one line and the beginning of the next don’t run together.

    If you are copying the text from some other source, like a web page or a pdf, an additional complication is that those formats, and others, are not “plain text” and do not always show spaces, line endings and sometimes other characters directly: they display them according rules defined by the format. So you might be seeing them “raw” in Notepad++ (which might even be why you need to “clean” them in the first place).

    In some cases, where you have a sequence of separate lines that should be a single “paragraph” of text, Edit | Line Operations | Join Lines can help; highlight the lines you want to join and select that command from the menu (or type Ctrl+J) and Notepad++ will replace each line break in the highlighted lines with a single space.

    You might already know about this setting, but just in case: on the View menu there is a setting named Word wrap. When that setting is checked, Notepad++ shows lines that are too wide to fit in the window by breaking them at a space character and wrapping them to the next display line. When it is not checked, long lines remain as single lines and you have to scroll to the right to see the parts beyond the edge of the window.

    For a plain text file, you usually want Word wrap checked, because most people type each paragraph without any “hard” line breaks: that way it will fit whatever width window is used to read it. If you need to manage exactly where each line ends (like you would on a typewriter), then you might want it unchecked — but usually, checked is better.

    ¹ There are a couple exceptions, such as syntax highlighting for programming languages, which I’m pretty sure don’t apply to what you’re doing. I describe “Word wrap” a little further down in my message.

  • View Current File In broken?

    2
    0 Votes
    2 Posts
    129 Views
    PeterJonesP

    @Michael-C-Rush ,

    Edge works for me (I don’t have FF to test). But until you describe in more detail, I am quite confident there isn’t a bug, because that’s a highly-used feature of Notepad++, and it would surprise me if there were a fundamental bug that you were the first to notice.

    Could you be more specific? You claim there’s “different issues” but don’t explain what they are.

    Share your ?-menu’s Debug Info What are the issues? Does it not show at all? Are you just talking about the HTML doesn’t render as you expect? Because that has nothing to do with Notepad++, and we cannot help you with HTML. (The best way to tell if this isn’t the right place: if writing the exact same HTML code in notepad.exe gives you the same “different issues” in FF and Edge that writing it in Notepad++ did, then the problem is not with Notepad++, and instead it’s with your code.) How is it different between FF and Edge? What’s the filename you are opening? Viewing in the browser is obviously intended for HTML and similar static web technologies Are the changes to the file not yet saved (or is the file an unsaved new # file)? Because if you have made edits to your file, but not saved them, then what you see in FF/Edge will be what you last saved, not what’s currently showing in Notepad++. And if you don’t have any underlying file and are just looking at an unsaved new # file, Notepad++ cannot tell the browser to look at file XYZ because there is no file for it to point to.
  • Find/Replace

    2
    0 Votes
    2 Posts
    269 Views
    CoisesC

    @JE-Ramirez

    You can’t enter or paste a sequence of characters that includes a line ending into either box.

    As you observed, when you select the sequence first, it will appear in the Find box. You can’t see the line endings, but they are there.

    At the right of the Find and Replace boxes there is an icon with a drop-down arrow beside it. If you click the arrow, one of the choices is Copy from Find to Replace. Select that to copy the entire Find field, including the invisible line-ending characters, into the Replace field.

  • Edit with Notepad++ context menu missing from Windows 11

    6
    0 Votes
    6 Posts
    8k Views
    D

    I have noticed that since a few days the context menu appeared on my machine. I have not done anything besides regularly updating Windows and Notepad++.

    So the issue fixed itself.

    b3f0d09e-d651-4d92-acef-6d50025b3323-image.png

  • Separate file association names?

    5
    0 Votes
    5 Posts
    416 Views
    NicholasN

    Here is my post about changing file type icons in the registry. It also changes the file type descriptions.

  • Multiple lines merging when saving as HTML - Want to stop that

    8
    0 Votes
    8 Posts
    388 Views
    Neko_KaiohN

    @pbarney Finally, some actual assistance on this forum. Thank you!

    The code I mentioned that was spat out included the <pre>, just in a different format. So I guess my fiddling was on the right path. I appreciate you taking the time to reply though, it gives me more info on what that code is/does.

  • -4 Votes
    8 Posts
    801 Views
    Helder MagalhãesH

    @webforpcnet seen similar issues before, also with other tools. Thing is accessing network drives (and even external plugged drives) triggers security and caching tools such as anti-virus, status utilities such as TortoiseGit, etc.

    A separate check needs to be done using another crawler, such as a simple script dumping the file contents. Paste something like the following in cmd.exe:

    @echo off rem Position in the target base directory pushd \\NAS\shared\code\ rem Iterate through all files in the subtree, assume all files, "*.*" for /R %i in (*.*) do ( echo Dumping '%i' rem Force reading file contents (but don't output them!), same as Notepad++ would type "%i" >nul ) popd

    (I’m assuming the \ special character sequence got escaped in the report.)
    If the speed is substantially better than Notepad++ then it might mean there’s a problem (this quick/dirty check cannot assess for any whitelisting or heuristics in the environment).

  • XML - insert rows without nesting

    4
    1 Votes
    4 Posts
    310 Views
    PeterJonesP

    @Rich said in XML - insert rows without nesting:

    I was missing a single “/”

    I hate being bit by something so small but dangerous. :-)

    If you don’t already have it, XML Tools plugin can help with XML syntax check: it can be automatic or on-demand. (If you are using XML>10Mb, you might not want to automatically do the syntax and validation checks; you can turn on/off those options in the XML Tools menu). But I think it might have helped you find that problem.

    Thanks for help!

    Glad to help.

  • Are there n++ plugin that sort of behave like a spreadsheet ?

    2
    0 Votes
    2 Posts
    126 Views
    CoisesC

    @shodanx2:

    Take a look at the documentation for Columns++ and see if it will work for you.

    One of my goals when I wrote it was to never have to open a spreadsheet program again. (I hate them with a passion.)

    It won’t draw the table lines as in your examples; instead, it depends on using tabs to separate columns. The Elastic tabstops option makes tabs adjust to the width of the column content.

    You can do various column-oriented operations, such as sorting, searching, aligning left, right or numeric, and creating new columns based on calculations from other columns.

    You can install Columns++ from Plugins Admin.

  • How to open documents in different windows?

    3
    1 Votes
    3 Posts
    422 Views
    G

    @PeterJones said in How to open documents in different windows?:

    Settings > Preferences > Multi-Instance and Date > ☑ Always in multi-instance mode – every time you use Windows Explorer to double-click on a file (or similar) to open it with Notepad++, it will go in a new instance. (This will not change the behavior of File > Open inside Notepad++, which always opens in a new tab, not a new instance.)

    Thanks for the answer.
    Everything works.
    Issue resolved.
    Notepad++ is my favorite text editor.

    Special thanks to you for the clarification about the publication of posts and for additional information on the topic of the question.

  • Networking problem

    4
    0 Votes
    4 Posts
    474 Views
    xomxX

    @TBugReporter

    Sounds like the bug I fixed for the v8.7.5, so try to update to any N++ v8.7.5+ (ideally to the latest, as of now v8.8.5)

  • Notepad++ won't launch with internet offline

    2
    0 Votes
    2 Posts
    197 Views
    Mark OlsonM

    @kilson69
    Notepad++ does not normally need internet to function, so this is probably due to a plugin or an unusual installation.

    I would recommend that you share your debug info (?->Debug Info... from the main menu) and hopefully a forum regular will be able to use that information to give you more informed guidance.

  • Unattended install not actually executing from a PowerShell script

    2
    0 Votes
    2 Posts
    245 Views
    PeterJonesP

    @Steven-Young_ivanti said in Unattended install not actually executing from a PowerShell script:

    The script line I’m using is fairly straight forward:

    But opens questions, for me.

    C:\Install\npp_setup.exe

    What is this npp_setup.exe? Where did you get it? Is it a renamed copy of the official installer, or some repackaged installer?

    /S ALLUSERS=TRUE

    /S is a valid installer option on the official installer, to enable silent installation; but from anything I’ve ever heard, and searching the repo for ALLUSERS, the option ALLUSERS=TRUE is not understood by the official installer, AFAICT.

    It’s going to be hard for anyone here to help you if you’re starting from some random unknown installer or trying to use options that don’t exist. You might need to give a bit more information.

    The developer doesn’t support unofficial installers, and unless one of the regulars has happened to have heard of / used it, it’s not likely any regulars will be able to help you in the forum, either.

  • Ability to turn off indent guideline?

    3
    1 Votes
    3 Posts
    175 Views
    T

    @PeterJones Thank you so much!! 💙

  • Problema con la incorporación de texto

    2
    0 Votes
    2 Posts
    175 Views
    PeterJonesP

    @Laura-Pla ,

    If I have a long piece of text in Word and I try to add it to Notepad, it all comes out with strange characters. Is there a possible format that Notepad accepts, so I can format it later, or do I have to retype the entire text?

    This forum is about the application Notepad++, not Microsoft’s notepad.exe app that automatically comes with Windows. If you are asking about the Microsoft app, we cannot help you. But I will continue my response assuming you meant “Notepad++”

    If you copy text from inside MS Word and paste it in Notepad++ , it will properly paste the text. If you open the .docx Word file in Notepad++, then you will see a bunch of weird symbols like ETX and DC4 and NUL , and you cannot copy and paste that and expect that it will be “normal text” – our FAQ explains why it doesn’t work to open a .docx file in a text editor like Notepad++ (short version: because .docx is a binary format, not a text format).

    If this isn’t enough of an answer for you, you will need to provide more details, including the ?-menu’s Debug Info and the exact steps you are taking to copy from Word to Notepad++. Screenshots could also help us diagnose your problem.

  • PythonScript regex error, but not as NPP regex

    4
    0 Votes
    4 Posts
    188 Views
    M Andre Z EckenrodeM

    @Ekopalypse

    Thanks much. My bad for even bringing it up, actually, since I already had back in 2021 and was advised about the lambda workaround at that time. Forgot about that.