• I need a function/plugin to extract only unnecessary text from lines

    15
    0 Votes
    15 Posts
    888 Views
    mpheathM

    @PeterJones said in I need a function/plugin to extract only unnecessary text from lines:

    @Ragnar-Lodbrok ,
    I think the answer is “there is no way to do it in one meaningful regular expression, because your data is not consistent enough”

    The data is not consistent as it appears to be harvested data:

    https://github.com/RagnarLodbrok1981/proxy-scraper-checker
    forked from
    https://github.com/monosans/proxy-scraper-checker

    That may explain the pipe characters in the log like as shown in the repository’s readme image. This appears to be dishonest obtained data.

  • 1 Votes
    8 Posts
    451 Views
    D

    @gerdb42 Thanks. A little tricky, but will be useful once I’ve worked on a couple of simple ‘test’ examples. It’s not exactly like the Npp version, apparently, but will serve as ‘fairy bike wheels’ until I master this stuff a little more. :-)

  • Run truncates two or more spaces to one space

    3
    0 Votes
    3 Posts
    216 Views
    László BotkaL

    Thank you, your help was very useful and effective.

  • Replace Notepad++ as Default W10 editor. How to ?

    2
    0 Votes
    2 Posts
    345 Views
    PeterJonesP

    @AlainCh2 said in Replace Notepad++ as Default W10 editor. How to ?:

    Activated in right click > Open With
    Open with >Choose another App \ Browse to Program Files/Notepad++ 🙄

    -That’s not enough … …crazy as it can be,

    That always worked for me back when I was using Win10. And I just verified I had no difficulty in Win11 getting it to keep Notepad++ as an Open With for .ini files.

    BUT now you have fixed it as > Edit with Notepad++,

    If all you are looking for is the Edit with Notepad++ choice in the right-click menu, when you run the installer initially, assuming it prompted with the UAC prompt, your installation should have included the ShellExtension DLL C:\Program Files\Notepad++\contextMenu\NppShell.dll (assuming you installed newer than v8.5.1; older versions used a different name, and didn’t work with Win11). And it should have registered that DLL so that the Windows Explorer context menu includes that. If something went wrong with that registration, you could open a cmd.exe or PowerShell window in that contextMenu directory, probably using “as Admin” when open that window, and then follow the manual DLL registration instructions instructions from the user manual. (That page in the user manual has a lot of different tactics to get the Edit with Notepad++ or similar, including a registry entry that adds it as a verb to all files, so that you don’t have to do the OpenWith on each file type. But the Shell Extension DLL is really the preferred method, because it’s designed to do things the way Windows likes.)

    With the modern Notepad++, that same DLL should work to get the right-click entry with either Win10 or Win11.

    If you got it working using an alternate method (like the registry edit shown in the first post), great. This is just presenting an alternate method, and the way that Notepad++ intends you to get Edit with Notepad++ functionality.

  • Font size is different (wrong) in the latest version

    3
    0 Votes
    3 Posts
    229 Views
    CoisesC

    @TG-King:

    In addition to @PeterJones’ suggestions, also be sure you haven’t accidentally zoomed out (for example, by using the mouse wheel with the Ctrl key down): View | Zoom | Restore Default Zoom will set zoom back to normal.

  • Open files with NPP_EXEC then switch to the tab of the first opened file?

    5
    0 Votes
    5 Posts
    380 Views
    Vitalii DovganV

    I’ve added this case to the Manual!
    https://d0vgan.github.io/nppexec/?q=4.6.20

  • 0 Votes
    7 Posts
    452 Views
    Julian RedGJ

    @Mark-Olson I updated all the plugins because, as you suggested, they were too outdated
    thanks a lot

  • Sudden issue with increasing cursor offset proportional to column

    4
    1 Votes
    4 Posts
    264 Views
    Jon LesterJ

    Thanks for the replies both.

    @Coises that seems to have solved it! - all is good again after switching to Direct Write - many thanks!

    I haven’t updated video drivers, but Win10 installed a couple of updates at some point today (KB5065429 and KB5065957) - maybe there was a related change there somewhere.

  • easy way to move a file tab in the open file list

    6
    0 Votes
    6 Posts
    480 Views
    mathlete2M

    @PeterJones said in easy way to move a file tab in the open file list:

    I am assuming you are talking about the sub-window/panel toggled using View > Document List

    Ah, now the original question makes sense. I wasn’t familiar with that feature until now, so without the “>”, I figured that “View Document List” from the post and “open file list” from the title were both referring to the list of files that you see in the File menu, and that they hadn’t noticed that this list is different from the active set of tabs.

    FWIW, I’m a bit surprised that you can’t reorder files from within the View > Document List feature via click-and-drag. I can understand why some people would prefer this vertical layout over the horizontal layout of the tabs; it’s certainly more intuitive than the layout that you get when you check the Vertical option in the Tab Bar section of Settings > Preferences, so perhaps there needs to be a “stacked” sub-option for this layout.

  • Please recommend encryption plug-in

    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Justin-Brown said in Please recommend encryption plug-in:

    @PeterJones I know this is an old thread, but it is precisely what I was looking for. But I am curious if you are concerned about the ability to “undelete” the temp file when you use your script. Does rm fully remove the file, including overwriting bits? Or has Windows improved it’s undelete such that it is no longer a concern?

    I hadn’t noticed I used rm. That’s an old win32 port of the gnu linux rm command (from the gnuwin32 bundle; hasn’t been updated in years). I have never looked into the source code, so I don’t know for sure if it overwrites first, but it’s doubtful.

    I also no nothing about the advanced features of windows del or the powershell equivalent. However, I don’t know whether microsoft has made those secure deletes, either. (A Notepad++ forum isn’t the best place to research about windows features, especially the more esoteric aspects.)

    If research in appropriate places doesn’t give you the answers you want or hope for with regard to windows file deletion, you might look into installing a secure command-line-based file deleter; it would very much surprise me if such a utility didn’t exist, but I have never gone looking for it, so I have no specific recommendations. But if you find such a utility that you trust, then use it (with its appropriate command-line options) in place of the rm -rf that I used in the script

  • Folding without closing parentheses or tags

    4
    0 Votes
    4 Posts
    347 Views
    Mister SmittM

    @rdipardo

    This is the perfect option!

  • Alt key interferes with work

    12
    0 Votes
    12 Posts
    2k Views
    PeterJonesP

    @Wester said in Alt key interferes with work:

    Same problem here – I’m studying the software and taking notes in Notepad in both Russian and English, and every time this stupid layout pops up and blocks input.

    As @Michael-Vincent said 3 years ago, hitting Alt is used as an accelerator to keyboard-access menu bars in almost every win32-api-based Windows application. Include Microsoft’s own notepad.exe.

    Who even came up with this?

    A small company called Microsoft has been using that feature in their operating system for decades. I am sorry this bothers you.

    The devs of a program whose only purpose is text input didn’t consider that pressing Alt would ruin typing when switching languages? Or did no one think that there are not only Americans but also people who actually use multiple keyboard layouts? And what are all these weirdos even writing here?

    And then you switch to full on insult mode, being rude to people who had nothing to do with that design decision that happened decades ago. Brilliant, and well argued. (That last sentence was sarcasm, in case you couldn’t tell.)

  • Assigning a special UDL Languages

    5
    0 Votes
    5 Posts
    290 Views
    Franz-Josef BadeF

    @PeterJones
    Again, thanks a lot and good luck/success for your further work.
    Ps. Do you know perhaps an old program “VEDIT”? I worked with it for some decennies ;-) , but …

  • N++ opens ANSI file incorrectly in Win11 - why?

    12
    2 Votes
    12 Posts
    725 Views
    Kim S. AndreasenK

    @Coises
    Thanks, but I am pretty sure that I have tried that without success,
    Perhaps the reason it didn’t work is that I probably had the ‘Use Unicode UTF-8 for worldwide language support’ checked, which according to @Peter Jones would invalidate the solution.

    Thanks a lot to both of you for valuable and knowledgeable support!

  • No me salen tildes ni s'imbolos del idioma espa;ol

    4
    0 Votes
    4 Posts
    244 Views
    CoisesC

    Since you typed this message in Spanish, I guess you speak primarily Spanish.

    Since you did not get proper letters with accents or tildes in your message, I guess you are using a computer that was set up for English. What to do depends on whether this is your computer or whether you are using a computer that belongs to someone else.

    If you are using a computer that belongs to someone else, or that is controlled by your school or your employer, then you should explain your problem to them and ask for assistance.

    If it is your own computer, then you should change the language settings to use a Spanish keyboard. You should be able to find instructions by searching for something like how to install Spanish keyboard on Windows. Unfortunately, this is not the right forum for a detailed discussion of that, since it is really a Windows problem, not a Notepad++ problem. The problem can be fixed; you will get better answers by searching than anything I could just paste in here.

    Traducido del inglés con Google Translate:

    Como escribiste este mensaje en español, supongo que hablas principalmente español.

    Como no se ven las letras con acentos ni tildes correctas en tu mensaje, supongo que estás usando una computadora configurada para inglés. La solución depende de si es tuya o de si usas una computadora de otra persona.

    Si usas una computadora de otra persona, o que está controlada por tu escuela o tu empleador, deberías explicarles tu problema y pedir ayuda.

    Si es tu propia computadora, deberías cambiar la configuración de idioma para usar un teclado en español. Deberías encontrar instrucciones buscando algo como cómo instalar un teclado en español en Windows. Lamentablemente, este no es el foro adecuado para una discusión detallada sobre esto, ya que es un problema de Windows, no de Notepad++. El problema se puede solucionar; obtendrás mejores respuestas buscando que cualquier cosa que yo pueda simplemente publicar aquí.

  • Help REPLACING content with incremental order (by +1)

    10
    1 Votes
    10 Posts
    1k Views
    CoisesC

    @samsung-s6-Lite said in Help REPLACING content with incremental order (by +1):

    using your method I managed to work out how to do it PARTIALLY using this.

    Find what: SnapRestSeconds = \d+
    Replace with: SnapRestSeconds = (?=match)
    Search mode: Regular expression

    This starts them at number at ‘2’ I need it to start at 30 please, can you help?

    If it started at 2, then you did one sequential Replace with the same replace expression first. That’s OK — just be aware that replacing “continues from where you left off” if the expression hasn’t changed. After you close and reopen the Replace in indicated region dialog, change the expression, do a Replace All or select Clear History from the drop-down menu beside Replace All, counting will start again from 1.

    The expression you want is (?=match+29). (Since match will start from one, add 29 to match to start from 30.)

  • Help required with regular expression

    3
    1 Votes
    3 Posts
    266 Views
    Dominique MegardD

    @Terry-R Oops, I knew it was simple, just the \' which should not have been escaped. And on the site regex101.com only the “Rust” flavor pointed it out !!!
    Thanks anyway for the tips …

  • problem in search

    3
    0 Votes
    3 Posts
    235 Views
    PeterJonesP

    @Ioannis-Karadimitropoulos said in problem in search:

    I search for the string γεα.
    I get all these liens that have γεα inside the verses
    but I do not get those having γεα at the end of verse

    The “like the verse” example you gave is literally in the list of matching results you showed us:
    36801032-dfcb-4995-8a1c-2384713c5f53-image.png

    And, to confirm, when I paste the majority of your post into Notepad++, both of the Line 14919 lines match the γεα

    d7a87610-50de-4dba-bd73-72bf0493d969-image.png

    I

  • Is there a way to retrieve 'temporary' files after closing?

    5
    0 Votes
    5 Posts
    5k Views
    Sakis G.S

    @Nicholas, looks like you cant!

    as @Alan-Kilborn pointed out, the option is there, but it’s greyed out.

    is there a toggle that enables editing?

  • Smart Highlight not working

    12
    0 Votes
    12 Posts
    2k Views
    Michael BelewM

    @Ekopalypse I know this is very old post, I have just lived with it till now. I started to try and find the answer again and found my own old post. You are correct the background for the Global Style Smart Highlighting was set to the default background. This fixed my issue.