• run JavaScript on Noepad++ file

    3
    0 Votes
    3 Posts
    3k Views
    JRJ

    @PeterJones lol! great repsonse. ill look into the jN plugin

  • regex replace syntax

    2
    0 Votes
    2 Posts
    151 Views
    Terry RT

    @I-neuw said in regex replace syntax:

    What am I missing?

    Well, it could be anything, as we don’t know what P++ is, maybe you meant to say NPP or Notepad++.
    A regex I’d use would be
    Find What:\x20
    Replace With:\n

    But then be aware that a \n is not normal for a windows text file. Windows uses \r and \n normally. Unix and Mac use one of them each (different ones).

    Possibly showing a bit more detail and examples if possible of what you saw when trying to do the replacement might help us to understand what could have gone wrong.

    Terry

  • What is going on with this user defined language?

    14
    0 Votes
    14 Posts
    942 Views
    Ksomeone Msomeone 0K

    @PeterJones said in What is going on with this user defined language?:

    @Ksomeone-Msomeone-0 said in What is going on with this user defined language?:

    I’ll try to get around to bug reporting this.

    It looks like someone did report this as issue#10007 – given the example screenshot, I’m assuming it’s the same person, despite the different username.

    That’s mine, yes.

  • regex specific char change by anther without change the found sentence

    2
    0 Votes
    2 Posts
    158 Views
    PeterJonesP

    @Kirill-Nudelman ,

    Doesn’t a normal Search > Replace, Find What = ., Replace with = _, Search Mode = Normal do that? It does for me.

  • YAML extension, Search 2 Value and Replace

    10
    0 Votes
    10 Posts
    866 Views
    Mark LozadaM

    @PeterJones
    I have my final search string, thanks to you sir! In order for the search to distinguish if it’s missing the “Slots” entry, I have to searched from "Range: to “Job:”

    Search:
    (Range: \d)+(\s*)(?!Slots: \d+)(\s*)Jobs:$
    Replace:
    \1 \r\n\tSlots: 4 \r\n\tJobs:

  • Regex: Select all between double quotes ""

    3
    0 Votes
    3 Posts
    422 Views
    Robin CruiseR

    thanks @guy038

  • Question About Formatting

    4
    0 Votes
    4 Posts
    317 Views
    Alexander Elan ConstantinoA

    @Terry-R said in Question About Formatting:

    For getting an exact copy use the windows explorer function to make a copy which will be a clone. However since it appears you are trying to alter settings so your app will be customised to your needs, using Notepad++ to perform edits on this file will very likely end in abject failure.

    Okay, that makes sense! Thank you for the information about binary files!

  • function list questions

    3
  • how do i delete the whole line based on a find argument

    3
    0 Votes
    3 Posts
    5k Views
    dinkumoilD

    @Ben-Robertshawe

    There is also a solution without using regular expression searches.

    Open the Find dialog box and navigate to register Mark. Enter your search tag in Find what. Tick option Bookmark line. You may also tick options Purge for each search and Wrap around. Furthermore tick option Normal in Search mode group box. Click on button Mark All. Navigate to (menu) Search -> Bookmark and click on submenu entry Remove Bookmarked Lines.
  • 0 Votes
    11 Posts
    415 Views
    Robin CruiseR

    I found a solution that works with PowerShell, that will replace all lines with the canonical link tag:

    $sourcedir = "C:\Folder1\" $resultsdir = "C:\Folder1\" Get-ChildItem -Path $sourcedir -Filter *.html | ForEach-Object { $content = Get-Content -Path $_.FullName -Raw $replaceValue = (Select-String -InputObject $content -Pattern '(?<=<link rel="canonical" href=").+(?=" />)').Matches.Value $content = $content -replace 'https:\/\/.+.html',$replaceValue Set-Content -Path $resultsdir\$($_.name) $content }
  • How do I Replace all at end of Line?

    3
    0 Votes
    3 Posts
    346 Views
    Nathan HeathN

    @PeterJones Thank you, it worked perfectly.

  • Plugin Admin not installing any plugins

    3
    0 Votes
    3 Posts
    5k Views
    jnappo64J

    go to proxy configuration and delete 0.0.0.0

  • Flickering when changing tabs

    3
    0 Votes
    3 Posts
    496 Views
    T

    Debug info:
    Notepad++ v8 (64-bit)
    Build time : Jun 6 2021 - 18:38:25
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Home (64-bit)
    OS Version : 2004
    OS Build : 19041.1052
    Current ANSI codepage : 1252
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll RunMe.dll VisualStudioLineCopy.dll

    Although it also occurs when I use a fresh portable version. The files are relatively small XML files. It is especially visible in the document map. It only occurs when the »Word wrap« option is enabled, but then also on another (powerful) PC.

  • "Replace All" is not working

    7
    0 Votes
    7 Posts
    11k Views
    VikktourV

    Uncheck “In selection” worked for me

  • Can the number of spaces represented by a tab be changed?

    3
    0 Votes
    3 Posts
    178 Views
    Charles Anon 0C

    @mere-human

    That’s it - thanks very much!

  • How to Trun on Windows 10 Text Cursor Indicator in Notepad++?

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @tjor ,

    I searched the internet for “windows 10 text cursor indicator” and found a variety of sites that mentioned the Windows 10 > Settings > Ease of Access > Text Cursor settings page. But none of them showed the nifty quarter-circle indicators above and below like you showed: 12faa02a-6292-4c60-aa94-8a3b00ecde06-image.png The help pages I looked at (this and that) showed something that looked more like thick [ characters instead of the normal |.

    But when I looked in my Windows 10, I didn’t have that setting. Mine, in the Ease of Access, has something called “Cursor & pointer” instead of “Text Cursor”, where you can change the size and shape of the arrow pointer and the thickness of the | typing-cursor. And all of those are Windows settings, which appear to slightly vary from one version to the next (and/or maybe from one localization to the next, since you appear to be using a different native language than I use).

    Notepad++ for me honors the arrow settings (hollow/filled, size, etc) from “Cursor & Pointer”, but it doesn’t use the thickness setting. That’s probably because Notepad++ (or Scinitlla) is defining its own cursor caret thickness through the setting that @Alan-Kilborn already pointed out to you, rather than using the windows standard caret which is implemented in windows tools and applications (like windows dialogs, notepad.exe, and the like).

  • Jak naprawić to ( aplikacja świeżo po zainstalowaniu)

    2
    0 Votes
    2 Posts
    170 Views
    PeterJonesP

    @The-Martha ,

    What do you want to fix? As far as I know, Java .jar files are binary files, not text files. Notepad++ is a text editor.

    If you are trying to get at the Java source code behind the .jar file, your best bet is to find the source files for the .jar – if it’s open source, you should get that from the author/distributor; if it’s closed source, good luck. You might be able to find a Java forum where you could ask how to “uncompile” or “reverse compile” or otherwise extract the source code – that is not a topic for this forum, because it has nothing to do with Notepad++. I know with .exe compiled files, “reverse compilers” can come up with code that is effectively similar, but it won’t necessarily have the same readable structure that you would find in the original source code. But this Forum is not the right place to pursue such questions.

    If you found a .jar-to-source-code conversion application elsewhere, and wanted to ask here “how can I use this in conjunction with Notepad++”, there are ways in Notepad++ to run external processes (like the Run menu, or NppExec plugin, or similar) – and the basic ideas are covered in the FAQ: “How do I use Notepad++ to Compile my Source Code (or Convert My Text)?”

  • Search and Replace Value on a Table (LUA)

    4
    0 Votes
    4 Posts
    543 Views
    Mark LozadaM

    @guy038

    Thank you very much! It worked wonderful
    Thank you for your time!

  • 0 Votes
    10 Posts
    1k Views
    Alan KilbornA

    @mere-human said in Icons of some plugins don't appear after applying the new Fluent icons in Notepad++ v8:

    I don’t think this is good, but it just happens.

    I don’t see any other way of doing it, in practice.
    This isn’t a commercial product.
    I for one am cutting it some slack on this.
    Meaning, I’m okay with such growing pains.
    Now, if it corrupts my text files…that’s another story (but there’s no indication of any issues like that).
    I upgraded to v8 quickly for some of the non-dark new features.

  • Установка Notepad++

    5
    0 Votes
    5 Posts
    404 Views
    mere-humanM

    @Michael-Vincent said in Установка Notepad++:

    Alas, I now just use NppExec to hook external debuggers.

    Wow, it’s interesting to know that you use Notepad++ coupled with a debugger!