• Cant find plugin - textfx characters

    4
    0 Votes
    4 Posts
    566 Views
    Alexey IvanovA

    @patrickdrd Спасибо большое, на 32 плагин появился .

  • regex in balise html

    5
    0 Votes
    5 Posts
    619 Views
    Robin CruiseR

    Regex: Select text between two tags/strings: You can try also:

    FIND: (?s)(<head>).*?(</head>)
    REPLACE BY: \1\2

    OR

    FIND: (<head>)\K[^>]*(?<!/)(</head>)|\1
    REPLACE BY: </head>

    OR

    FIND: (<head>)\K[\s\S]*?(</head>)|\1
    REPLACE BY: </head>

  • Change text direction for single tab

    2
    0 Votes
    2 Posts
    230 Views
    PeterJonesP

    @vahid-ghasemi ,

    Not yet. It was asked for in the official feature request location last year, but the developer hasn’t made it a priority. You might want to go upvote that request.

  • Copy entire code group?

    11
    0 Votes
    11 Posts
    5k Views
    arel3A

    @rdipardo said in Copy entire code group?:

    @arel3,
    Have you heard about the HTML Tag plugin?

    npp_841_x64_htmltag_v123.gif

    This is the solution, thank you!

  • Notepad++ opening outside of screen

    7
    0 Votes
    7 Posts
    13k Views
    Jared SchmidtJ

    just wanna say thanks; this fixed the issue for me and I was searching for a solution for a long time, thank you so much!

  • How to hide line folding symbols.

    2
    0 Votes
    2 Posts
    276 Views
    PeterJonesP

    @c-bacca ,

    Set Settings > Preferences > Margins/Border/Edge > Folder margin style = None

  • Replace in Files doesn't work when re-using a directory

    3
    0 Votes
    3 Posts
    400 Views
    Hans PNWH

    @peterjones Thanks for taking the time to respond, Peter – I’ll check back with the user. Yes, agreed: hard to poke at the problem from across the internet.

  • Error at startup please help me out

    4
    0 Votes
    4 Posts
    274 Views
    Wieraj GanpatW

    @peterjones Thank you very much! It work ;)

  • Character position

    11
    0 Votes
    11 Posts
    57k Views
    PeterJonesP

    @steve-lawson ,

    Then thank you for the information. And maybe someone else reading this in the future will appreciate my suggestion of using the PythonScript plugin to write a script to implement it in a different manner than the GotoLineCol plugin.

    (BTW, it wasn’t my question, it was Scott’s.)

  • Double-click to highlight words not working in Dark Mode

    2
    0 Votes
    2 Posts
    228 Views
    PeterJonesP

    @brian-wheldale ,

    It works fine for me:

    The thing I would check if I were you is if your Settings > Preferences > Global Styles > Selected text colour > Background colour is compatible with Dark Mode – that is, if it contrasts with … > Current line background > Background colour and with … > Default Style > Background colour.

    19c0c64d-592a-4f53-ba24-33fe3c985d94-image.png

    For a fresh download, the DefaultDarkMode theme (which is auto-selected when you switch to Dark Mode) has DefaultStyle=(63,63,63), CurrentLine=(16,16,16), and SelectedText=(88,88,88). Some might not see enough contrast between DefaultStyle and SelectedText with those selections.

  • RegEx set number of spaces bevore captured group in replace

    5
    0 Votes
    5 Posts
    401 Views
    Neil SchipperN

    @black_cat Do you know about Edit -> Colum Editor? If your files are well behaved, it can be used to insert a rectangle (full of blanks) to left of existing text.

    Also, do you know about recording macros? You can record a macro that does, for ex.

    <Home><3 spaces><Home><Down>

    and then run it on the whole file when you want to prepend 3 spaces. You can save it as a named macro. You can make a separate macro for each width you routinely need.

  • How to use RegEx to split 5000 characters but preserving sentense?

    9
    0 Votes
    9 Posts
    1k Views
    Brent ParkerB

    @brent-parker

    For future reference, I’ll post the the full updated script for creating the documents and appending additional text to the top/bottom of each generated document here just in case any future people are interested.

    # encoding=utf-8 """in response to https://community.notepad-plus-plus.org/topic/19738/ , the 2022-May-10 add-on set nChars to be the maximum "chunk" size, replace ENTER YOUR TEXT HERE with your own text, then run this script. """ from Npp import editor, notepad import os.path nChars = 9000 regex = r'(?s).{1,' + str(nChars) + r'}(\R|\z)' counter = 0 originalFullname = notepad.getCurrentFilename() originalPath, originalFile = os.path.split( originalFullname ) originalBase, originalExt = os.path.splitext( originalFile ) def withChunk(m): global counter counter += 1 newPath = "{}\\{}_{:03d}{}".format(originalPath, originalBase, counter, originalExt) #console.write( "{}\tlength={}".format(newPath, len(m.group(0)))+"\n") notepad.new() editor.setText(m.group(0)) editor.documentStart() editor.addText('ENTER YOUR TEXT HERE\n\n') editor.appendText('ENTER YOUR TEXT HERE') notepad.saveAs(newPath) notepad.close() notepad.activateFile(originalFullname) editor.research(regex, withChunk)
  • Copy Paste from NPP to Verse loses new lines between paragraphs

    4
    0 Votes
    4 Posts
    1k Views
    Mojo RisingM

    Macro works a treat. Champion.

    If anyone googles this then you need to record a macro that does a search and replace using the Regular Expression

    Search
    \r\n\r\n

    Replace
    \r\n\r\n\r\n

    Type your email and then save it.

    Then run your macro and copy and paste your modified text.

    Then close without saving so you get the unmodified version in your saved text file.

  • NPP keep instance in memory

    4
    0 Votes
    4 Posts
    488 Views
    PeterJonesP

    @florent-blanchon ,

    Unfortunately, I cannot replicate your problem. If I run v7.7.1, with ComparePlugin added, and put my settings at “Open session in a new instance of NPP” to match yours, and load a few sessions, it opens Notepad++ in the same number of sessions. When I look at Task Manager, I see multiple instances. (So far, this matches yours, and matches expectations.)

    But when I exit one of the Notepad++ instances (using Windows X in the upper right or File > Exit), it fully exits that instance, and the number of instances of Notepad++ in Task Manager properly goes down by one. If I have three instances open, and close one, Task Manager shows it drop from 3 to 2; as I close the next two sequentially, Task Manager shows it drop to 1 then to 0.

    I cannot replicate your problem discription. I am sorry. Maybe someone else will have an idea of how to help.

  • How to replace / delete in bulk

    4
    0 Votes
    4 Posts
    887 Views
    Pablo UP

    @alan-kilborn said in How to replace / delete in bulk:

    @pablo-u

    Find: ^Line \d+:
    Replace: nothing
    Search mode: Regular expression

    @alan-kilborn Thank you very much, worked like a charm!!!

  • Mark all text who have word searched

    7
    0 Votes
    7 Posts
    972 Views
    ElBriak BadrE

    Very wonderful ,
    Thanks a lot @guy038 ,
    that make me love notepad++ more !!

    I am grateful for your support.

  • Get normal text and find all

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @neil-schipper said in Get normal text and find all:

    It should be understood why a file would look so different in the two programs. Perhaps Fred could provide screenshots (see FAQ)

    Unless Fred comes back, we might never know. My experiments show that the situation will not arise: looking at a valid RTF in a word processor like Word Pad, you will see a pretty, word-processed document; but if you look at it in a text editor, whether it is MS Notepad or our Notepad++, it will show the underlying code, as seen below:

    a8707f36-7e26-4292-9fc0-e8d3d05eca51-image.png

    So I cannot replicate the initial situation that Fred described. My first guess is that Fred was mistaken, and was actually looking at the RTF in WordPad or some other word processor, not in notepad.exe like was originally stated. But if there is proof to the contrary, I would be curious to see enough evidence to be able to replicate what I believe is an impossible situation.

    That said, Neil’s regular expression (regex) solution is the right way of doing the search in Notepad++. But it won’t “copy the results.” If Fred needs the “copy” as well, then use the Mark dialog with the same regular expression; once xyz or abc are marked, then use Search > Copy Styled Text > Find Mark Style (or Find Style (Marked) in slightly older versions of Notepad++) will place all the text that was highlighted in the Mark action into the clipboard. But that seems a bit silly, because it will just end up with N copies of xyz or abc in the clipboard, without any of the surrounding text… If Fred actually wanted to copy any lines that contain either xyz or abc, then the regex would have to be modified to select the whole line: (?-s)^.*(abc|xyz).*$. So, as you said, unless Fred does a much better job of describing what is actually wanted, Fred will likely be disappointed with the results of our guessed solutions.

    ----

    Some bonus info for @fred339:

    Useful References Please Read Before Posting Template for Search/Replace Questions FAQ: Where to find regular expressions (regex) documentation Notepad++ Online User Manual: Searching/Regex
  • PyNPP supported Version

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @sinnamonsnow ,

    It looks like the author never submitted it to the nppPluginList, which is why it’s not showing up in Plugins Admin. Which means you would have to download the plugin yourself from https://github.com/mpcabd/PyNPP

    Given that it hasn’t been updated since 2019, it might have a problem with Notepad++ v8.3 or newer… but if they don’t use any of the changed API calls, then there’s a good chance it will work with those newest ones. If not, then it should work with v8.2.

  • GoLang suggestion hint help

    4
    0 Votes
    4 Posts
    355 Views
    ImmusamaI

    @peterjones

    Thank you!, I will look into it and report back once I managed to get something to work.

  • Modify tabulation to insert space for user defined language

    2
    0 Votes
    2 Posts
    280 Views
    PeterJonesP

    @firepowi ,

    There was a discussion on that a bit ago: https://community.notepad-plus-plus.org/topic/22857/adding-the-extension-of-prg-in-the-tab-settings-list/6

    The short version is: not natively in UDL. However, using Python Script plugin, it’s doable.

    There is an example script near the end of the conversation