• Login
Community
  • Login
  1. Home
  2. General Discussion
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • J

    How to Get Filenames within Regex??

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Dec 13, 2022, 7:49 PM
    Dec 13, 2022, 7:00 PM
    0 Votes
    3 Posts
    626 Views
    T Dec 13, 2022, 7:49 PM

    @Jerry-Goedert said in How to Get Filenames within Regex??:

    I would like to know if I could add the Filename within the file itself using regex with search and replace??

    As @Alan-Kilborn stated your question is a bit vague and if you gave more info, especially examples we might be able to help or direct you in some way to help you find the solution.

    However I do recall a couple of old posts that may relate in some manner to your question.
    See batch function - need to add filename at the end of each paragraph
    and
    How to get the Filenames after running “Find in Files” ?.
    They may give you some inspiration.

    Terry

  • R

    Which questions can I ask here?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 13, 2022, 12:23 PM
    Dec 13, 2022, 10:38 AM
    0 Votes
    2 Posts
    196 Views
    A Dec 13, 2022, 12:23 PM

    @Robert-Aarons said in Which questions can I ask here?:

    I’m new to this community. How can it help me?

    Welcome to the Community.
    It’s for user discussion about Notepad++, so that should tell you how it can help you.

    I’m a web developer and developed many websites
    I’d love to hear your thoughts on that

    The thoughts are: Don’t discuss that here, unless you are having some Notepad++ problem that relates to it.

  • D

    find and compare single word notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    7 Dec 11, 2022, 12:01 PM
    Dec 11, 2022, 7:49 AM
    0 Votes
    7 Posts
    491 Views
    D Dec 11, 2022, 12:01 PM

    i found the missing <end> tag manually at the file’s pointer

  • S

    Backards match selected text in Find pop-up broken

    Watching Ignoring Scheduled Pinned Locked Moved find backwards
    2 Dec 6, 2022, 4:26 PM
    Dec 6, 2022, 4:20 PM
    0 Votes
    2 Posts
    182 Views
    A Dec 6, 2022, 4:26 PM

    @Steve-Michel said in Backards match selected text in Find pop-up broken:

    This must have been changed during the update

    Update process doesn’t change this.

  • C

    Is there a setting to not show quotes?

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Dec 6, 2022, 4:03 PM
    Dec 6, 2022, 3:16 PM
    0 Votes
    5 Posts
    585 Views
    C Dec 6, 2022, 4:03 PM

    @PeterJones Well there you go! Thank you!!! :)

  • P

    Names of character sets

    Watching Ignoring Scheduled Pinned Locked Moved character set
    22 Dec 6, 2022, 1:34 PM
    Nov 10, 2022, 2:27 PM
    0 Votes
    22 Posts
    3k Views
    H Dec 6, 2022, 1:34 PM

    Thanks for the discussion guys. It really helps me to figure out my problem.

  • D

    File Specific word wrap (vs. global enable)

    Watching Ignoring Scheduled Pinned Locked Moved feature request word wrap
    22 Dec 6, 2022, 11:53 AM
    Dec 21, 2015, 7:29 PM
    1 Votes
    22 Posts
    16k Views
    A Dec 6, 2022, 11:53 AM

    I revisit the original topic of this thread HERE.

  • B

    Replace symbols around a word

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Dec 5, 2022, 10:34 AM
    Oct 31, 2022, 1:10 PM
    0 Votes
    9 Posts
    2k Views
    K Dec 5, 2022, 10:34 AM

    Replacing symbols is very simple if you use Facebook symbols. I learned a lot from this website, which has a great article on each symbol. You can convert your whole article into a symbol if you have knowledge about it.

  • D

    "In selection" checkbox for replacing in selected lines

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Dec 4, 2022, 9:18 PM
    Dec 4, 2022, 9:50 AM
    0 Votes
    3 Posts
    322 Views
    A Dec 4, 2022, 9:18 PM

    @Alan-Kilborn said in “In selection” checkbox for replacing in selected lines:

    But… it does seem a bit inconsistent and “at odds” that when enough text is selected to cause In selection to be auto-checked, that the selected data is also copied into the Find what box.

    I created an official ISSUE for this oddness.

  • T

    Invert Background and forground colors on select words in a document

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 1, 2022, 6:10 PM
    Dec 1, 2022, 5:02 PM
    0 Votes
    2 Posts
    403 Views
    P Dec 1, 2022, 6:10 PM

    @Tony-Mongiello said in Invert Background and forground colors on select words in a document:

    Is there a way to “format” selected characters in a document and invert the fore and background colors?

    Not permanently. This is a text editor, and text (like a .txt file) doesn’t store things like font and color.

    There are ways to convince Notepad++ to higlight things: you can use the Mark dialog to temporarily mark things, or the Search > Style All Occurrences / Style One Token actions to add color (similar to inverse video) temporarily. But that doesn’t get saved in the file, because that’s not a feature of text files.

  • W

    find and replace:why i just can type 3640 bytes in find Input box

    Watching Ignoring Scheduled Pinned Locked Moved
    8 Dec 1, 2022, 11:39 AM
    Nov 30, 2022, 3:46 PM
    0 Votes
    8 Posts
    587 Views
    W Dec 1, 2022, 11:39 AM

    @Alan-Kilborn Thank you very much for your patience

  • D

    Enable Close All confirm dialog

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 30, 2022, 12:26 PM
    Nov 30, 2022, 10:45 AM
    0 Votes
    2 Posts
    219 Views
    A Nov 30, 2022, 12:26 PM

    @datatraveller1 said in Enable Close All confirm dialog:

    Does this mean it will come true?

    One never knows…

    There’s a PythonScript that solves the problem HERE if you want to have a solution to your desire right now.

  • José Luis Montero CastellanosJ

    Space bar candidate for auto-completion key ;¬).

    Watching Ignoring Scheduled Pinned Locked Moved
    11 Nov 30, 2022, 12:03 AM
    Nov 29, 2022, 6:07 PM
    0 Votes
    11 Posts
    1k Views
    José Luis Montero CastellanosJ Nov 30, 2022, 12:03 AM

    @Michael-Vincent
    Thanks for your observations,
    I’ll try your suggestion and see what happens.

    Although my exposed idea is precisely so that Notepad++ does not need PhythonScript or NppExe, that is to say that it is self-sufficient (autoFillup).

    I have noticed in some comments (not in this thread) that to support an argument, the exception is used and not the rule.

    If programming were based on exceptions, trillions of different algorithms would be needed to handle each particular case, thing which @PeterJones once used as an argument in one of our entertaining debates :)

    Currently, I am studying the PythonScript manual to put it into practice, something that @PeterJones himself suggested. Until then, It is possible that my answer will take time and end up giving everyone the reason… Will I be able to? ;-)

    Have a good afternoon.

  • s sS

    I want to prevent the font size from changing with the mouse wheel

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Nov 29, 2022, 5:07 PM
    Nov 28, 2022, 11:37 AM
    0 Votes
    4 Posts
    615 Views
    s sS Nov 29, 2022, 5:07 PM

    @Michael-Vincent
    Wow, I didn’t know there was such a plugin.
    thank you very much. solved.

  • Infinix DXBI

    New version of Notepad++ has an undesirable addition

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 29, 2022, 8:45 AM
    Nov 29, 2022, 7:35 AM
    0 Votes
    2 Posts
    266 Views
    EkopalypseE Nov 29, 2022, 8:45 AM

    @Infinix-DXB

    Settings->Preferences->Backup should contain everything you need, right?

  • kanishknisharK

    Problem with regex

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 29, 2022, 5:26 AM
    Nov 29, 2022, 4:46 AM
    0 Votes
    2 Posts
    213 Views
    T Nov 29, 2022, 5:26 AM

    @kanishknishar said in Problem with regex:

    and it works too (except the last) but when I try it on Notepad++ it finds no matches. What’s going on?

    Your regex is looking ONLY for \n whereas normally you would use \r\n which refers to carriage return AND line feed, or \R which means any type of line ending, \n, \r or \r\n .\r\n is the normal line ending in a Windows TXT file.

    However the last line will not have these so I’d change your current \n for a $ which means end of line, just before the carriage return and line feed. By not selecting the actual line endings you don’t need to return it as a replacement.

    Terry

    PS you could even use this version of your regex if all the closing brackets finish the line

  • A

    Linked text to open other files into Notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    28 Nov 29, 2022, 1:41 AM
    Dec 16, 2021, 9:50 PM
    4 Votes
    28 Posts
    14k Views
    Richard J OtterR Nov 29, 2022, 1:41 AM

    Just wanted to thank the Alan for his code and instructions and offer a couple of clarifications. This “add on” to NotePad++ has made my work much more productive.

    First- When configuring NotePad++ preferences, “Cloud & Link” panel, URI Customized schemes- be aware that the items are separated by a space character. The display on my machine didn’t make this clear and I fumbled around for quite a time before I added a space before the “edit:” addition I made. One might mention that once the preference change is made, the edit URIs in text will start to act like non-working links. Do that first to be sure you got the preference change right.

    Two- I am using the UriIndicatorAltClick2.py code because my main use case is opening up images pointed to in my text.
    In the startup.py file, I had to add these 2 lines-

    import UriIndicatorAltClick2 uiac2 = UriIndicatorAltClick.UIAC2()

    Three- I also use lots of non-ASCII unicode in my text, but, so far all my file names are simple ASCII, so I don’t have to worry about the py code handling unicode properly and updating to PythionScript3.x
    All of my python dev experience has been with python 3 so I was concerned about whether PythonScript2.0 using Python 2 would cause problems. As far as I can see, the Python 2 stuff is isolated to the one dll installed in the plugin folder.

    Thanks again.
    Richard Otter

  • E

    Some types are not highlighted in C header files

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Nov 27, 2022, 1:34 PM
    Nov 27, 2022, 6:15 AM
    0 Votes
    13 Posts
    1k Views
    A Nov 27, 2022, 1:34 PM

    At the very least (sorry), these keywords are missing from the C++ default keyword list, and should be added:

    int_least8_t int_least16_t int_least32_t int_least64_t

    I suppose whether you like your header (.h) files to be considered “C” or “C++” is a matter of individual choice, so I don’t think there’s anything more to do other than what @Ekopalypse has already indicated.

  • lodak80L

    Double click a word with special character

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Nov 26, 2022, 12:03 AM
    Nov 25, 2022, 10:20 PM
    0 Votes
    2 Posts
    723 Views
    P Nov 26, 2022, 12:03 AM

    @lodak80 ,

    Settings > Preferences > Delimiters > ☐ Add your character as part of word is the option which influences what characters can be grabbed by the double-click action.

  • Daryl TitcombD

    Cannot load 32bit plugin even when 64bit versions of all are installed

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Nov 25, 2022, 12:39 PM
    Nov 23, 2022, 3:50 PM
    0 Votes
    13 Posts
    2k Views
    A Nov 25, 2022, 12:39 PM

    @Daryl-Titcomb

    The misleading error message was resolved, see HERE; however the improvement request for more specific error messages remains incomplete as of now.

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