• Copy-pasting & Replacing NUL characters

    9
    0 Votes
    9 Posts
    10k Views
    PeterJonesP

    @deefeecee said in Copy-pasting & Replacing NUL characters:

    Re: Copy buffer converts NUL to SPACE

    If you’re going to link to a previous discussion (which happens to be the issue that originally brought me to this forum!), you could at least read through the end. That post explained that there is an Edit > Paste Special > menu, with entries Copy/Cut/Paste Binary Content. That was there in 2015 when I originally asked (though I didn’t know it, and none of the regulars pointed it out), and would have worked with an unedited, plain-vanilla installation of Notepad++ v6.8.7 (which was state-of-the-art in Dec 2015); it still worked in 2019 (after the First Plugin Conversion in v7.6.3); and it still works in the latest-and-greatest v8.3.3 in March 2022:

    Oops, the animation clipped the menu; here’s a static version:
    001311b6-aa41-4ffc-9c16-56a1918591b2-image.png

    The steps are:

    Highlight the text that has the NUL character(s) in it Edit > Paste Special > Copy Binary Content Move to where you want to paste Edit > Paste Special > Paste Binary Content

    Those four simple steps will accomplish your goal, without having to go back to 2016’s NPP v6.9 and edit Scintilla.

  • Search for a wrong comma in csv file

    7
    0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @guy038 said in Search for a wrong comma in csv file:

    your solution, Alan, works only for more than 6 comma chars, found in text, but it misses text containing less than 6 commas !

    Yes (but actually it is your – generic – solution I used!)

    I just try to give them what they ask for:

    Is it possible to search for lines with more than 6 comma?

    And, truly, I think the OP is looking for the case where some program output csv-like text without regard for embedded commas in the data, so it is very likely that the less-than-6-commas case never occurs. (Certainly good to check for it, though).

  • Style All Occurrences of Token is not working

    4
    0 Votes
    4 Posts
    1k Views
    Gabriel PelayoG

    @alan-kilborn
    It worked. It seems that checkbox was added between v.7.9.5 and v.8.3.2. Thank you so much!

  • 0 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @anonymous-guy said in Notepad++ regex to move a line with certain string after a line with another string:

    I’m really grateful and if anyone has a buy me coffee page or any other way I can at least symbolically show my gratitude let me know.

    I can take care of that as well:

    d9f10465-fc9c-4403-a4d5-e1b1f7ae76b9-image.png

  • Find and Replace names in several text files

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @samuel-geremias said in Find and Replace names in several text files:

    but I have no experience coding.
    Can someone please write a little command to be used on the replace tool from notepad ++ to solve this problem? I believe it is possible.

    Most anything is possible with “coding”. :-)

    Yes, this is a task that you aren’t going to get anywhere on without some coding.

    Perhaps this OTHER RECENT THREAD has some starter information for this task…

  • Notepad++ Updater Server URL

    2
    0 Votes
    2 Posts
    2k Views
    EkopalypseE

    @richard-watt

    This is a two-step process.
    The information is requested from
    https://notepad-plus-plus.org/update/getDownloadUrl.php
    and then downloading from e.g.
    https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.2.1/

    See gup.xml in the update folder.

  • White text characters on black background, how to convert?

    4
    0 Votes
    4 Posts
    1k Views
    EkopalypseE

    @chrischris

    This means that your ANSI code page is different than expected.
    Another way to make this visible is probably to use the 1250 encoding

    0b02d3cd-346e-42e5-a1bd-764d3314e77b-image.png

  • Help wanted with REGEX Search

    10
    0 Votes
    10 Posts
    2k Views
    IanChaykowskiI

    @peterjones said in Help wanted with REGEX Search:

    $1:L P[$2] WELD_SPEED FINE\r\n: Weld End[1,1];

    That worked beautifully, thanks so much

  • How do I toggle block comment?

    4
    0 Votes
    4 Posts
    506 Views
    nutnutwinN

    @ekopalypse

    Where do you see an advantage in using block comments over line comments?

    A very refreshing point indeed…
    Yes for many language with decent single line comment it is totally fine
    while for Markdown for example, only block comment is properly defined

    <!-- your comment -->

    the built-in markdown use “#” for single line comment, which is reserved for paragraphs in markdown

    Yes I can change to to like “//”, but is not compatible when I open the file in other Editors, say, VSCode.

    Thank you.

  • How do I always open txt with certain Syntax(eg. Markdown

    3
    0 Votes
    3 Posts
    874 Views
    nutnutwinN

    @peterjones

    Thank you so much! it worked

  • Several plugins not getting installed in 8.3.2 32-bit with hash incorrect

    3
    0 Votes
    3 Posts
    5k Views
    rdipardoR

    @bill-nardone,

    Plugins : combine.dll [ . . . ]

    That must be from a previous installation: the hosting domain for that plugin was taken down a month ago: https://community.notepad-plus-plus.org/topic/22645/combine-plugin-gone/7

  • turkish characters problem

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @ogün-kovan

    https://community.notepad-plus-plus.org/topic/22636/debug-info-dialog-what-does-current-ansi-codepage-mean/5

    Those links are focused on changing the codepage to UTF8 (65001)… but should be able to work for changing to 1254 as well.

  • No more autocomplete

    6
    0 Votes
    6 Posts
    711 Views
    Magnus WillattsM

    @peterjones Will do, cheers.

  • Notepad++ crashes, by opening more than x files at the same time

    5
    1 Votes
    5 Posts
    1k Views
    PeterJonesP

    @luca-cavandoli said in Notepad++ crashes, by opening more than x files at the same time:

    NPP with -noPlugin per default

    That’s not the right long-term solution. To be able to do that, you would have to edit one or more entries in your registry; since you’ve got definite problems, I would not recommend doing that, unless you know what you’re doing. (And, to be blunt, if you knew enough for it to be safe for you to edit your registry, you wouldn’t be asking how to run a program with a specific command line option by default.)

    The right long-term solution is to uninstall the plugin or plugins that are causing the problem, after which point Notepad++ will load properly.

    Anyway I temporarily deleted all the plugins in the plugin folder and it still crashes, so I don’t think it’s caused by any plugin.

    I am dubious. Are you sure you don’t have multiple copies of Notepad++ lying around, and you deleted the plugins from one but it’s actually a different one that’s trying to run? And are you sure you deleted/renamed the actual plugins (the folder(s) containing the DLLs, that is, C:\Program Files\Notepad++\plugins\), not just the %AppData%\Notepad++\Plugins directory (probably c:\users\username\AppData\Roaming\Notepad++\Plugins), which should only contain the configurations for plugins, not the plugin DLLs themselves?

    Could you show us the updated Debug Info after you are confident that the plugins are really out of the picture?

    It crashes when opening more than 2 files btw, 2 files at the same time works fine.

    I have never seen that happen. What is the exact sequence of events you are taking that leads to this?

    Command Line : “C:\01 Projects\00_SCS-PFA\00_SVN\Trunk\Packages\R2.x.x\4_Tools\eData_v3.5\Templates\Param\MM_AP001_L_S1.scl”

    Given the length of the filename on your command line, I wonder if when you are selecting 3 or more files, whether the total length of the command line is too long for Windows to deal with (Windows has some length limitations in the “verb action” interface). If you select each of the files one-at-a-time and open them with Notepad++, does it load those same files properly?

  • Changing the color of a single letter with a UDL

    4
    0 Votes
    4 Posts
    345 Views
    EkopalypseE

    @perniculous

    seems to work for me

    e63c9103-c539-41cc-95a4-90fdd6041bde-image.png

    Are you sure that it is not part of other styling parts?

  • Notepad ++ 8.3.2

    2
    1 Votes
    2 Posts
    204 Views
    PeterJonesP

    @amogh-datar ,

    You probably have one or more incompatible plugins (v8.3 and newer have a change that makes it incompatible with many/most plugins that used to work with v8.2.1 and earlier).

    Assuming your Notepad++ is in c:\program files\notepad++, then rename c:\program files\notepad++\plugins to something else, then try re-running notepad++.

  • Convert Case to option greyed out

    3
    0 Votes
    3 Posts
    427 Views
    guy038G

    Hello, @michael-vincent,

    Should be obvious, anyway !

    BR

    guy038

  • Is it possible to use regex to achieve this?

    16
    0 Votes
    16 Posts
    5k Views
    Neil SchipperN

    @guy038 said:

    \A … works properly ONLY SINCE the 7.9.1 N++ release

    Thanks, good to know. (I probably skimmed that factoid in the past but it wouldn’t have made an impression on me since I’m a novice user of \A.)

    Refer also at the end of this topic

    Those posts don’t say how \A behavior changed, and I’m not inclined to chase down and crawl through the Boost doc versions or developer issue discussions and commit comments to find out! If you happen to know, maybe share a sentence or two about how it behaved prior to 7.9.1, or link to something (brief!) where one can get a user-level idea of it.

  • Find in files - find extensionless files

    4
    0 Votes
    4 Posts
    972 Views
    PeterJonesP

    @dada-a said in Find in files - find extensionless files:

    Is there a way to achieve exclude all files with extensions?

    What you want to exclude are all files that have at least one character after the extension. But *.* matches zero-or-more characters after the extension, so !*.* excludes all files, with or without extension.

    If you want to guarantee that it excludes only files with at least one character after the extension, use !*.?*, where the ? matches one character, and the * after it matches zero or more characters in the extension.

    So the full Filters setting of *.* !*.?* (or !*.?* if you’re on Notepad++ v7.8.7 or later) will only match files that have no extension.

    https://npp-user-manual.org/docs/searching/#find-in-files-tab
  • Tabs are floating after upgrade to 7.9.5

    11
    0 Votes
    11 Posts
    2k Views
    Qamar4PQ

    Just hide it by resizing the editor window to the left, right, top, bottom. Exit and reopen it will remember the bigger window.