• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • C

    Search accent-insensitive

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 16, 2024, 12:55 PM
    Feb 4, 2020, 9:09 PM
    0 Votes
    5 Posts
    708 Views
    P Sep 16, 2024, 12:55 PM

    @VERSEAU44 said in Search accent-insensitive:

    Why have I this result (white rectangles) when I copy/paste tables in my NotePad++ ?

    Because your font (Notepad++ menu Settings > Style Configurator > Language: Global Styles > Style: Default Style > Font name) doesn’t include glyphs for those characters. You might be able to toggle Settings > Preferences > MISC > ☐ Use Direct Write and restart Notepad++, and it might help the OS grab glyphs from other fonts to use in Notepad++ when your active font doesn’t have a specific glyph.

  • R

    INI files opening in wrong language (Temporary fix found)

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 15, 2024, 6:53 PM
    Sep 15, 2024, 8:57 AM
    0 Votes
    2 Posts
    305 Views
    P Sep 15, 2024, 6:53 PM

    @Red-Green ,

    when I take a portable v8.6.9 (which just has the default extensions from langs.xml, with no changes in the Style Configurator user-ext) and open an ini file, it appropriately identifies it as an INI.

    0ea277b6-4e19-4f07-bb1f-576d151e3dc7-image.png

    Can you use the </> button in your reply and paste in a short .ini file which consistently is mis-identified, so we can try to reproduce the problem? Because right now, “it works for me”.

  • A

    Is Visual Basic dependent on .NET?

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 15, 2024, 2:36 PM
    Sep 12, 2024, 2:03 PM
    0 Votes
    3 Posts
    348 Views
    A Sep 15, 2024, 2:36 PM

    @PeterJones I only asked since I saw it as an option in Language and I’d rather use N++ than VSC. Sorry for the confusion.

  • S

    Facebook login broken

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 14, 2024, 1:08 PM
    Feb 24, 2023, 6:39 PM
    1 Votes
    2 Posts
    240 Views
    D Sep 14, 2024, 1:08 PM

    @Steve-C FYI:
    https://community.notepad-plus-plus.org/topic/26114/facebook-login-is-not-working-and-will-be-removed

  • J

    Style token not saved

    Watching Ignoring Scheduled Pinned Locked Moved
    30 Sep 13, 2024, 9:45 PM
    Aug 23, 2019, 4:33 PM
    0 Votes
    30 Posts
    12k Views
    S Sep 13, 2024, 9:45 PM

    @PeterJones thank u sir I got it

  • M

    Notepad ++ connecting to browsers from program

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 13, 2024, 5:58 PM
    Sep 13, 2024, 3:28 PM
    0 Votes
    3 Posts
    216 Views
    M Sep 13, 2024, 5:58 PM

    You could also right-click on the tab for a file and select Open in Default Viewer from the drop-down menu that appears. If, for example, your default viewer for a .html document was Firefox, that would open that file in Firefox.

    I have no idea which NPP version that option was first introduced in.

  • P

    alphabetic order

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 13, 2024, 5:44 AM
    Sep 12, 2024, 7:48 AM
    1 Votes
    4 Posts
    250 Views
    P Sep 13, 2024, 5:44 AM

    thanks Alan and Coises will see the plugin

  • S

    A simple search and replace

    Watching Ignoring Scheduled Pinned Locked Moved
    8 Sep 12, 2024, 8:01 PM
    Sep 11, 2024, 8:39 PM
    0 Votes
    8 Posts
    287 Views
    M Sep 12, 2024, 8:01 PM

    @guy038 said in A simple search and replace:

    To my mind, all these statements can be solved with the two following regexes :

    Regex A : (?-s)"(?:\\.|.)+" Regex B : (?-s)"(?:\\.|.)+?"

    I would use Regex B with a slight modification; the +? should be a *? to correctly handle the empty string "".

    Thus, I think the simplest regex we can use for this task is probably (?-s)"(?:\\.|.)*?"

    There is one important caveat here: these regexes for recognizing JSON strings will break if you start the search in the middle of a string.

    For example, if you have this text

    "foo" "bar" "from\r\n\t[\"\\\"here\\\"\", \"to\", \"here\" is all one string]"

    the best regex, (?-s)"(?:\\.|.)*?", will correctly identify exactly three strings in the file if you start the search at the beginning of the file.

    But if you start with the caret after the word from on the second line, you will incorrectly identify "\\\"here\\\"\", \"to\", \"here\" is all one string]" as being a valid string.

  • A

    Hotkey for Search Results > Copy Selected Line

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 12, 2024, 6:43 PM
    Sep 12, 2024, 1:36 PM
    1 Votes
    3 Posts
    245 Views
    A Sep 12, 2024, 6:43 PM

    @PeterJones
    I thought it would be in the release.
    Since the status on GitHub is implemented.
    Sorry!

  • M

    How to (auto) format text to start at column 25, 85 and 115

    Watching Ignoring Scheduled Pinned Locked Moved
    10 Sep 12, 2024, 3:16 PM
    Sep 11, 2024, 2:17 PM
    0 Votes
    10 Posts
    1k Views
    A Sep 12, 2024, 3:16 PM

    Another editing technique that might help; say you have this:

    218c1177-23de-4b20-b9a1-2db2b1d6c785-image.png

    Clearly all of the data in the second column needs to be lined up.

    If you create a column caret using Shift+Alt+arrows and make it look like this:

    93212e91-ccf9-4b6f-8a93-0d3cbaf7aaf7-image.png

    and then press Ctrl+Delete, you’ll get something looking like this:

    3f7b30e7-d6e8-427b-9c70-bb66c644d59a-image.png

    It’s then a simple matter to press space-bar a few times to get all of the data aligned, and in the correct column:

    289e96d7-55b3-4b4a-a488-285d26cd325a-image.png

    Note that in the create-column-caret step, the column caret does NOT touch any of the text to be aligned, there is one or more intervening space(s) (this is a very important point).

  • G

    Notepad data deleted after clicking "Yes" to prompt

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 12, 2024, 11:17 AM
    Aug 15, 2024, 4:16 PM
    0 Votes
    5 Posts
    454 Views
    A Sep 12, 2024, 11:17 AM

    @githubtools101 said:

    there is a way to TURN OFF that unnecessary prompt for the future:
    Under “File Status Auto-Detection” click Disable from the drop-down menu
    Now, you will NEVER be given this prompt again!
    I don’t understand why Notepad++ has this feature to begin with

    So @githubtools101 had a problem with data loss, and your solution is to give him a method that can guarantee future data loss? Nice job…

  • Lakshman Prasath ŠL

    To align single line content to multiple lines

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 12, 2024, 6:35 AM
    Sep 12, 2024, 6:01 AM
    0 Votes
    2 Posts
    152 Views
    CoisesC Sep 12, 2024, 6:35 AM

    @Lakshman-Prasath-Š said in To align single line content to multiple lines:

    Try this:

    From the main menu, choose Search | Replace….

    In the dialog, enter:
    Find what: Updated
    Replace with: Updated\r\n
    Wrap around checked
    Search mode: Extended
    then click Replace All.

  • HaPe KrummenH

    Combine 2 searches

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Sep 11, 2024, 6:57 PM
    Sep 11, 2024, 2:19 PM
    0 Votes
    6 Posts
    339 Views
    HaPe KrummenH Sep 11, 2024, 6:57 PM

    @Mark-Olson @PeterJones

    thank you for your help. ChatGPT wrote me a routine that worked with a dozen files on my directory testfiles … now I copy all files to a directory to test it tonight with 25000 files

    I’m really surprised how easy this can be.

    And I’m reading the code to understand, what the script is doing as I apreciate any help but want to learn :-)

  • Nataly FlowerN

    How to group lines with same beginning

    Watching Ignoring Scheduled Pinned Locked Moved
    12 Sep 11, 2024, 2:26 PM
    Sep 6, 2024, 6:18 PM
    0 Votes
    12 Posts
    1k Views
    M Sep 11, 2024, 2:26 PM

    @Alan-Kilborn said in How to group lines with same beginning:

    Python’s re uses a different engine than Notepad++ does. While this can be a “good thing”, sometimes it will trip a user up – they’ll get a “tricky” regular expression working in Notepad++, and then run into trouble when trying to automate using the same expression in a script.

    This does in fact happen in multiple places in my script. I’ll just break down how the regular expressions I used had to change to be compatible with Python’s re engine.

    STEP 1 REGEX CHANGES

    (?-s)^([^\$\r\n]*)(.*\R)(?:\1(.*)(?:\R|\z))*
    becomes
    (?m)^([^$\r\n]*)([^\r\n]*(?:\r?\n|\r))((?:\1(?:[^\r\n]*)(?:\r?\n|\r)?)*)

    (?-s) is unnecessary (because . already does not match newline by default in re) (?m) is necessary to make it so that ^ matches at the beginning of the file and at the beginning of lines. In Notepad++ regex, ^ matches the beginning of lines by default. Every instance of . must become [^\r\n] because in Python . matches \r, which is bad because that is the first character of the \r\n sequence that indicates a newline in Windows. Every instance of \R (shorthand for any newline) must become (?:\r?\n|\r), which matches the three most common newlines (\n, \r\n, and \r)

    The Step 2 regex also needs to be changed from (?-s)(\R?)(\x07)?([^\$]*)(\$+)(.*) to ((?:\r?\n|\r)?)(\x07)?([^$\r\n]*)(\$+)([^\r\n]*) because of point 3 above (the lack of \R in Python’s re)

    Finally, I had to create callback functions (the def replacer1(m): and def replacer2(m)) above, because the replacement regexes I used in Notepad++ don’t work in Python.

  • HaPe KrummenH

    search / replace /delete parts of URL on several hundred pages

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Sep 11, 2024, 8:34 AM
    Sep 8, 2024, 7:16 PM
    2 Votes
    9 Posts
    534 Views
    HaPe KrummenH Sep 11, 2024, 8:34 AM

    Just wanted to say THANK YOU for your help!

    Beeing able to use regular expressions changes a lot and makes searching / replacing and deleting of texts so much easier.

    Have a good day!

  • Paul TranterP

    Opening files in Macintosh and i need in windows

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 10, 2024, 4:39 PM
    Dec 26, 2016, 12:12 PM
    0 Votes
    4 Posts
    8k Views
    John RinconJ Sep 10, 2024, 4:39 PM

    @Scott-Sumner . Thanks Scott.

    September 2024 and this message is still very helpful. I had the same problem loading a file that usually loads without problems.

    This time, the problem was the one related with your diagnosis. The line terminators CRLF in the end of line of the records.

    Thanks for help the community.

  • John DouglasJ

    Run C++ without compiling

    Watching Ignoring Scheduled Pinned Locked Moved
    7 Sep 10, 2024, 4:31 PM
    Sep 9, 2024, 10:26 PM
    0 Votes
    7 Posts
    860 Views
    rdipardoR Sep 10, 2024, 4:31 PM

    The directory will change automatically after clicking on NppExec’s “Follow $(CURRENT_DIRECTORY)” option (which I thought was enabled by default – sorry):

    Screenshot 2024-09-10 121533.png

  • H4P3RH

    How can I setup that when I close NotePad++ all tabs will close?

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 9, 2024, 6:09 PM
    Sep 9, 2024, 5:38 PM
    0 Votes
    3 Posts
    225 Views
    H4P3RH Sep 9, 2024, 6:09 PM

    @PeterJones thank you very much!

  • Ronald DupasR

    How to integrate Notepad++ and Microsoft Edge?

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 8, 2024, 4:24 PM
    Dec 10, 2022, 11:31 PM
    0 Votes
    5 Posts
    1k Views
    mkupperM Sep 8, 2024, 4:24 PM

    @Thomas-S said in How to integrate Notepad++ and Microsoft Edge?:

    The solution works also with EDGE, you only have to create this entry in the registry:

    This either does not work on Windows 11, no longer works, or maybe I need to reboot. As the registry path was for IE I also did the same for Edge.

    Attempts to view the source of a web page in Edge still create a new Edge tab with the URL set to something like view-source:https://community.notepad-plus-plus.org/topic/23872/how-to-integrate-notepad-and-microsoft-edge/4

    I added these, first as a test to see of plain old Notepad.exe was launched. I had also tried the full path to Notepad++. No joy.

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Edge\View Source Editor\Editor Name] @="Notepad.exe" [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\View Source Editor\Editor Name] @="Notepad.exe"

    Google for site:answers.microsoft.com "View Source Editor" finds most of the answers are for Windows 7. This forum post on answers.microsoft.com is more generic as far as the Windows version goes and is presumably is the source of the information in @Thomas-S’ post.

  • SinghRajenMS

    How to update title of plugin

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 8, 2024, 5:39 AM
    Sep 7, 2024, 4:22 PM
    0 Votes
    5 Posts
    308 Views
    SinghRajenMS Sep 8, 2024, 5:39 AM

    @rdipardo

    The - separator is indeed fixed.

    Yes, it is fixed as we can see it here. Also, it seems we need to ensure tbData.pszAddInfo remains valid. If you want to change anything there, update the text on the original pointer.

    I feel, instead passing _hself to LPARAM, it should pass tTbData to NPPM_DMMUPDATEDISPINFO.

    Anyway, - is very minor stuff here. I am good with it. Thanks for the help on this.
    Cheers!

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors