• Windows 10 - NotePad++ v8.4.2 File Associations

    3
    0 Votes
    3 Posts
    355 Views
    Ed RedondoE

    Found out I had to run NotePad++ as administrator.
    Now all file associations work.

    My bad.

  • opening *.link files in notepad++

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @adam-kalinowski

    .lnk files are binary files; Notepad++ is a text editor. So, even if you could open them in Notepad++, it wouldn’t be a great plan to edit them with it.

  • NULL where blanks should be - Turn this off

    7
    1 Votes
    7 Posts
    23k Views
    Leon SuL

    I have the same issue: why Notepad++ displays space character as NUL in a .txt file?
    The .txt file just displayed fine in any other text editors including UtraEdit.

  • CSVLint.dll problem during setup

    5
    0 Votes
    5 Posts
    756 Views
    Fabio Dalla VillaF

    @lycan-thrope Thank you!

  • File TabBar Context Menu

    5
    0 Votes
    5 Posts
    407 Views
    TekBearT

    @alan-kilborn said in File TabBar Context Menu:

    @tekbear

    Yes, see HERE.

    Thanks, I just finished getting it done (debugging a spelling mistake is painful). For the benefit of others here is an example:
    npp custom context menu.png

  • Find/Replace - keeping a part of the find, remove everything else

    4
    0 Votes
    4 Posts
    1k Views
    guy038G

    Hello, @gabriel-mourão, @alan-kilborn and All,

    I’m sorry, Gabriel, but your final search regex seems invalid -:((

    May be it’s some typos, introduced by the forum syntax, but one correct syntax is :

    !\\[([^]]+[A-Za-z{}=\\/!_-\s])\\]\([^)]+[A-Za-z{}=\\/()!_-\s]

    Using the free-spacing mode, (?x), this syntax can be split as below :

    (?x) !\\[ ( [^]]+ [A-Za-z{}=\\/!_-\s] ) \\] \( [^)]+ [A-Za-z{}=\\/)!_-\s]

    Note that :

    On one hand :

    The part [^]]+ matches the chars range ![\vec{Q}=m \cdot \vec{\Delta v}

    The part [A-Za-z{}=\\/!_-\s] matches the single char ]

    On the other hand :

    The part [^)]+ matches the chars range (vec{Q}=m_!cdot_!vec{!Delta_v}

    The part [A-Za-z{}=\\/)!_-\s] matches the single char ), at the end

    I suppose that it’s not exactly what you want !

    Your need could rather be expressed as :

    First search for an exclamation mark and an opening square bracket ![

    Then, search for the smallest range of chars…

    Till an ending square bracket ]

    Now, search for an opening parenthese (

    Then, search for the smallest range of chars…

    Till an ending parenthese )

    This leads to this simple regex S/R :

    SEARCH (?-s)!\\[(.+?)\\]\(.+?\)

    REPLACE \$$1\$

    Best Regards,

    guy038

  • Can I set the default save location?

    3
    0 Votes
    3 Posts
    2k Views
    xebicoX

    @alan-kilborn Works for me! I had it on Follow current document, but if NPP wasn’t open already, it still defaulted to Public Documents. (Odd, because I never use Public Documents for anything.)

    Thank you for helping — I figured it would be something simple that I overlooked.

  • 0 Votes
    12 Posts
    13k Views
    Alan KilbornA

    @alan-kilborn said in How to show ascii value of one selected character or a double byte character?:

    I will create an issue on your github page

    I did this HERE.

    (Sorry for getting off-topic.)

  • How to join some lines with desired specifications in notepad++

    3
    0 Votes
    3 Posts
    722 Views
    AliMirzaei5778A

    @peterjones
    Thank you very much. Everything is perfect.

  • find and replace with wildcards

    16
    0 Votes
    16 Posts
    4k Views
    john EskiJ

    @guy038 Thanks Guy and Terry

    this is a machine file so certain piece have more operations than others (operations like Dimple)

    terry’s code worked really well. Thank you again Terry, now i just have to do the reading to comprehend

  • Grab text from chrome

    2
    0 Votes
    2 Posts
    240 Views
    PeterJonesP

    @lisa ,

    Not built in. Notepad++ does not know how to remote-control Chrome (or any other app)

    That said, as a workaround, just copy the URL from Chrome yourself, and paste it into your Notepad++ document.

    Or use Chrome’s built-in bookmark feature, as that is that feature’s reason existence

  • Modify shortcut menu entry executes HTMLTidy

    3
    0 Votes
    3 Posts
    273 Views
    aranapatonaA

    @konrád-lőrinczi said in Modify shortcut menu entry executes HTMLTidy:

    When I press the Macro > Modify shortcut / Delete macro menu entry in Notepad++, HTMLTidy is executed on the current file, then I get a popup error dialog:
    TextFX
    “Writing error summary to C:\winprg\Notepad++\plugins\NppTextFX\Config\tidy\HTMLTIDY.ERR”

    Debug info:
    Notepad++ v8.1.9.3 (32-bit)
    Build time : Dec 6 2021 - 19:16:45
    Path : C:\winprg\Notepad++\notepad++.exe
    Command Line :
    Admin mode : ON
    Local Conf mode : ON
    Cloud

    Config : OFF

    OS Name : Windows 7 Professional (64-bit)
    OS Build : 7601.0
    Current ANSI codepage : 1250
    Plugins : BetterMultiSelection.dll ccc.dll ComparePlugin.dll DSpellCheck.dll HTMLTag_unicode.dll mimeTools.dll NppCalc.dll NppCCompletionPlugin.dll NppConverter.dll NppExport.dll NppFavorites.dll NppSnippets.dll NppTextFX.dll NppTextViz.dll PreviewHTML.dll QuickText.dll Remove Duplicate Lines.dll SelectQuotedText.dll SessionMgr.dll SherloXplorer.dll SurroundSelection.dll Translate.dll WebEdit.dll WindowManager.dll

    How to fix this problem?

    Thanks!

    this happened to me too, just remove textfx and reinstall it, problem is am already defined macro (alt-shift-s) that is conflicting with textfx

  • Python console, Goto line appears to have stopped working

    4
    0 Votes
    4 Posts
    396 Views
    rdipardoR

    It’s already been reported to the PythonScript devs: https://github.com/bruderstein/PythonScript/issues/234

  • Paste the output of an executable (exe) in Notepad++ current file

    4
    0 Votes
    4 Posts
    2k Views
    AmitA

    @peterjones I will give pythonscript plugin a try. Thank you. Really appreciate a detailed answer.

  • 0 Votes
    7 Posts
    466 Views
    Ken ShawK

    @peterjones
    Woot my company installed the latest version of NotePad ++ so very happy

  • Is multi-caret editing bugged?

    25
    0 Votes
    25 Posts
    7k Views
    Alan KilbornA

    I just noticed an ISSUE that seemed very relevant to this thread.

  • 0 Votes
    7 Posts
    605 Views
    Robin CruiseR

    @guy038

    I try myself to find a generic, from your regex. Works well, except doesn’t work for " (double quotes) because is repeated in the tag construction. I change those extra quotes on the content of tags, with a work, like “BOOM” and it find/replace it well beetween start and ending tag.

    These are the generic regex for your second solution. Are almost the same, short and long version. Makes the same thing, find and replace just well between start and ending tags.

    (?<!=\x20)(?<!=)FR(?!>|ESR|\x20>|\x20/>|\?>|\x20\?>|BSR)

    OR

    (?<!=\x20)(?<!=)FR(?!>|ESR|\x20>|\x20/>|\?>|\x20\?>|\x20BSR)

    OR

    (?<!=\x20)(?<!=)FR(?!>|ESR|\x20\?>|\x20BSR)

  • Copy only the not hidden text.

    4
    0 Votes
    4 Posts
    2k Views
    guy038G

    Hello @kanagi, @alan-kilborn and All,

    In addition to the Alan’s python script, I advice you to read this post first

    Then, if not confidential, you could share with us some text with possible hidden parts and we’ll probably be able to find out some regexes to bookmark the non-hidden sections or the hiden ones !

    See you later,

    Best Regards

    guy038

  • Multi-Line Indent No Longer Working in v8.3.3

    2
    0 Votes
    2 Posts
    217 Views
    PeterJonesP

    @vincil-stockdale ,

    It works for me: select multiple lines, hit TAB to move them one tabstop right, and Shift+TAB to move them one tabstop left, which is exactly what I expect:

  • select products with a certain category (tag)

    4
    0 Votes
    4 Posts
    408 Views
    PeterJonesP

    @massimo-la-terra said in select products with a certain category (tag):

    thanks for the answer, sorry for my translated English, in practice with a click I would like to display only the products of the Subcategory> SALUMERIA </Subcategory>

    Notepad++ is an editor, not an XML Presentation filter, so it will never give you exactly that. Its job is to make it easy to edit the raw text as a whole, not easy to just see filter the sub-categories you want

    My first set of instructions will allow you to hide everything, and then you just do the search (as described above) to find the next occurrence of that; after you’ve cycled through enough “Find Next”, you will have shown all the product groups with the subcategory SALUMERIA. Problem solved.

    For example,

    start with <Product> <irrelvant>...</irrelvant> <Subcategory>SALUMERIA</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>OTHER</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>SALUMERIA</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>OTHER</Subcategory> <irrelvant>...</irrelvant> </Product>

    So there are two products in the SALUMERIA subcategory, and two that aren’t.
    2. Hit Alt+0 to hide everything
    5e748307-197b-4df7-9b0c-02556eafd883-image.png
    3. FIND = <Subcategory>SALUMERIA</Subcategory>
    86d57c15-5f0a-42bc-b00b-2cc2dc9e50a1-image.png
    4. FIND NEXT will show the second one as well:
    31a7eb58-9bbd-403a-89b5-8be4b4b45ed4-image.png
    5. Repeat FIND NEXT until they have all been revealed.

    It’s not a single click, but it doesn’t take all that long.