• 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
    912 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.

  • Can't rebind mouse buttons/scroll wheel

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • Unable to see Data in the Notepad++

    18
    0 Votes
    18 Posts
    1k Views
    xomxX

    @Goff-Fred said in Unable to see Data in the Notepad++:

    Command Line : “C:”

    ?!
    I noticed this debug info cmdline param - if I’m not mistaken, it means that the OP tried to open all the files on the C: drive in N++!

    Anyway, because it’s about graphics, I’d try to play with the Preferences > MISC. > DirectWrite checkbox setting.

  • indent between the lines

    4
    0 Votes
    4 Posts
    59 Views
    PeterJonesP

    @Linda-Delenra ,

    I mean that I have many lines of text in each line.

    I have no idea how you can have many lines of text in one line; there seems to be a language barrier. I answered the question based on your example data. If your example data doesn’t match reality, neither I nor anyone else here can answer your real question until you provide us data that matches reality. Sorry.

    If you have the text like you showed originally and want to transform it into your second example text, you need to run the regular expression replacement action that I described.

    by pressing one button

    You could record a macro where you do the replacement (Macro > Start Recording, run the REPLACE ALL, Macro > Stop Recording, Macro > Save Current Recorded Macro and assign a keyboard shortcut)

  • Bug found in "Col" indicator in column mode

    5
    1 Votes
    5 Posts
    104 Views
    mpheathM

    @Alan-Kilborn

    Enter w and then press home key.

    rs0.png

    Press tab key.

    rs1.png

    Press backspace to go back to state of the 1st image.

    Now press Alt and Shift and click on the caret position.
    A rectangular selection is created with anchor and caret at the same position.

    Press tab key.

    rs2.png

    Compare the 2nd image with the 3rd image.
    Col and Pos in the status-bar are different values.

    Use PythonScript to run

    editor.getSelectionMode()

    to get the selection mode with each step.

  • Transform the style and order in a certain way.

    4
    0 Votes
    4 Posts
    73 Views
    PeterJonesP

    @mkupper ,

    My point wasn’t to get into the details of IPv4 and CIDR, but to show that, as asked, the problem is unanswerable without more detail, even when the person answering does know at least a little about the problem domain.

    When asking for help with data transformation, people need to provide enough information about the requirements for someone to be able to answer them, without requiring the answerer to know generically about the kind of data they are using, and without requiring that they make guesses as to hidden/implied restrictions which make the difference between “easy” and “impossible”, as I pointed out in my examples.

  • 0 Votes
    8 Posts
    99 Views
    mkupperM

    @Robert-Jablko, A while back @PeterJones posted this which shows a way to have comments in a macro.

  • How can I change the icon for Notepad++

    8
    0 Votes
    8 Posts
    10k Views
    PeterJonesP

    @Craig-Shannon said in How can I change the icon for Notepad++:

    previous regedits didn’t work for me

    Yes it did, because knowingly or not, you followed my instructions.

    You chose a different icon than I did (which is reasonable: the icon you want is of course up to you), and yours was called Notepad++_file\ instead of the txtfile in my example, but my instructions explicitly said, “or whatever it was for yours” to indicate that while it’s often txtfile (because that was the old default for opening a .txt file under older versions of windows), it always depends on the exact circumstances of each user, and no set of instructions that claims one key can be correct for everyone… And there’s no point in trying to list all the possible key names, because it’s virtually limitless. Hence, my instructions gave the old default key, and confirmed that the key might be different for any given user.

  • Delete all lines that NOT contains a specific phrase

    4
    0 Votes
    4 Posts
    75 Views
    Rockberto ManentiR

    @Coises and @Terry-R

    thanx so much. Both methods work perfectly.

  • 0 Votes
    7 Posts
    171 Views
    mkupperM

    @Fermi said in Efficiently select/copy bookmarked lines and their collapsed contents altogether?:

    In a generic form (.ini), I want to select the header and its contents, where the header/comment before/after the keyword (ie. positive) are unique.

    Ideally, regular expressions are constructed to match only the data you want it to match and will not match anything else. You don’t want false positives nor false negatives.

    As you seem unwilling or unable to provide examples of the data you are attempting to match any help we provide here will also need to be generic or vague. To complicate things, you also seem to be shifting the goalposts of what a section header looks like.

    I decided to define a section header as a line that starts with a [ and that anything else is not a section header line. With that in mind, here is a rather general regular expression that will match the positive sections:

    (?-i)^\[.*[,;] *positive,.*\R(?:(?!\[).*\R)*

    That expression has two main parts

    (?-i)^\[.*[,;] *positive,.*\R matches the section header lines we are interested in. (?:(?!\[).*\R)* matches zero or more lines that are not section header lines.

    Reading the (?-i)^\[.*[,;] *positive,.*\R part from left to right we have:

    (?-i) Turns off the ignore-case option so that we only match a lower case positive. If your data includes things such as Positive or POSITIVE then you should use (?i) instead of (?-i). ^ matches the start of a line, \[ matches a [. We need the \ as [s have a special meaning within regular expressions. Using \[ says to look for a normal [. .* matches zero to any number of characters. [,;] matches either a comma or semicolon. When you first posted you had commas and now you have semicolons. That’s fine, we can handle either or both and so I went with both. * matches zero to any number of spaces between the [,;] and the positive. positive, matches the word positive followed by a comma. .* matches zero to any number of characters. This will run to the end of the line. \R matches the end of line characters themselves.

    The second part with (?:(?!\[).*\R)* is slightly convoluted as I also want to match empty or blank lines and to include those in the section.

    The (?: and )* outer parentheses and their decoration says to repeat the stuff that’s inside zero or more times. (?!\[).*\R is the inner part and it matches any line that does not start with a [.
  • automatic romanization in cyrillic cue files

    4
    0 Votes
    4 Posts
    68 Views
    Rockberto ManentiR

    @Mark-Olson
    thanks for reply. you are absolutely right, in fact a friend who programs in python has prepared a script that works perfectly for this need

    @PeterJones
    thanks also to you. I will try also this regex. Thanks for help

  • Whitespace background cannot be changed

    5
    0 Votes
    5 Posts
    88 Views
    PeterJonesP

    @HalfOffHell ,

    Your screenshot is of a “normal text file”. But it appears to actually have PythonScript, at least on the non-red-boxed line.

    So if you are coding in some language, many of the language lexers have a DEFAULT color – including Python – which is used for the spaces. So it might be than changing Language: Python > Style: DEFAULT > Background colour is sufficient for you.

    For example:
    433c1575-a1d1-4852-9fba-c5e9e4aff5e7-image.png

    Caveat: Not all languages have or use a DEFAULT style for whitespace – and some that have the DEFAULT also use it for real text that doesn’t match any of their other Styles while lexing, not just whitespace, so changing the background of a language’s DEFAULT style might not work like you want for all languages … But for what I remember of Python, it doesn’t use the DEFAULT style for anything but whitespace, so it may meet at least some of your desires.

  • Selection Offset

    3
    0 Votes
    3 Posts
    41 Views
    0

    @PeterJones
    Thankyou. Both Scale and Resolution are different.

  • ComparePlugin crashed and lost all files

    19
    0 Votes
    19 Posts
    265 Views
    xomxX

    @Kiran-Chatha

    0x40000015 means STATUS_FATAL_APP_EXIT, usually it means that something caused an unhandled runtime exception in app and a terminating signal (SIGABRT/SIGTERM/SIGINT) has been raised (e.g. by the Microsoft C-Runtime abort() func). Faulting module name: ComparePlugin.dll means for us a confirmation that the problem is most likely in the plugin and not in the N++ app
  • changing font not working in v8.6 (but changing size and color does work)

    25
    1 Votes
    25 Posts
    5k Views
    xomxX

    @Andi-Kiissel said in changing font not working in v8.6 (but changing size and color does work):

    In N++ UI this can not be changed,

    In the upcoming N++ version (probably v8.7.8) these Scintilla rendering modes will be accessible via the standard N++ Preferences > MISC.: GitHub commit.

    @Tobias-Lind said in changing font not working in v8.6 (but changing size and color does work):

    When DirectWrite is enabled, I can only use the base version of the font. Any other variant will default to some fallback font.

    The whole problem with the N++ DirectWrite mode & fonts is in the fact that the DirectWrite uses WSS (Weight-Stretch-Style) font family model whereas the older GDI RBIZ (Regular-Bold-Italic…) one. Notepad++ originally supported the older GDI font handling only, then it makes the newer DirectWrite mode accessible but did not accommodate the existing N++ GDI font handling code to match the WSS model of the DirectWrite font families.

    There was a nice patch for the Scintilla library, which solves exactly that but unfortunately it has not been accepted. So someone has to fix that directly in the N++ codebase. There is the MS DirectWrite interface IDWriteGdiInterop helper intended exactly for that job, so maybe a challenge for someone capable with free time…?

  • 2 Votes
    3 Posts
    64 Views
    CoisesC

    @HalfOffHell said in notepad not responding due to searching the regular expression "(?-i)\u*(?=[^\l])" in a file that has "└" as the last character:

    put “└” at the end of a file
    Ctrl+F
    paste “(?-i)\u*(?=[^\l])” into da box
    click “Find All in Current Document”
    notepad not responding

    I’ve filed an issue for this.

  • Windows content is blank on remote notepad++ sessions

    16
    0 Votes
    16 Posts
    2k Views
    A

    I made an account just to mention this might be an issue with the display driver for windows 11. While the solution of changing the rendering technology works, I have had issues with other programs not rendering correctly due to Windows 11 not knowing what to do when the lid of the laptop is closed with remoting in.

    The solution I am using for my job on remote machines is to add a virtual display adapter. Method 3 uses a display driver which once installed renders windows previously having issues. This is the method I have been using with much success. Here is the link to the explanations and files:

    https://itproexpert.com/windows-server-vm-screen-resolution-fix/

  • Button to toggle Tabs/Spaces?

    12
    0 Votes
    12 Posts
    708 Views
    PeterJonesP

    @Torax-Malu ,

    @Alan-Kilborn messaged me a link to this post, where he shared a script for the PythonScript plugin, which can be used to set the current file to either tabs or spaces

    Useful link: FAQ: How to install and runscripts with PythonScript plugin – also includes instructions for assigning a keyboard shortcut. And you can even use the Plugins > PythonScript > Configuration… to add a script to the toolbar, allowing you to have a toolbar button to activate it.