• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    5k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    14
    0 Votes
    14 Posts
    1k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    6k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • Notepad++ not remembering where the current file is saved

    3
    1 Votes
    3 Posts
    36 Views
    Ben HardyB

    @PeterJones yes that was it!
    So indeed it was an easy one - you’d think I would have figured that out. Haha
    Thank you for pointing me to the setting!

  • 0 Votes
    5 Posts
    45 Views
    byzodB

    @PeterJones said in Break a string by delete paired quote will unfold folded codes in some language highlight:

    @byzod said in Break a string by delete paired quote will unfold folded codes in some language highlight:

    What cause this difference?

    Every built-in language references a specific Lexer, and each Lexer is coded separately (and often by different people).

    And UDL is a separate lexer from every built-in language.

    How can I improve the UDL to act like Javascript highlighting?

    You cannot. The behavior of the folding for each language is compiled into the program, and cannot be affected by the end user.

    You could, in theory, report the bug to the Notepad++ developer (see our FAQ on reporting bugs), but UDL bugs almost never get fixed, and there have been some long-standing ones reported years ago that are still open (and much more annoying that just unfolding a block when you type near the block). Sorry to be the bearer of bad news.

    Glad to found out why though

    btw I found a workaound fortunately: enable the auto pairs for () [] {} "" etc, then it won’t trigger this bug, mostly. Sometimes still bomb all codes out but it improves the experience a lot already

  • How to find a comma that is embedded in a string?

    3
    1 Votes
    3 Posts
    32 Views
    John BlueJ

    @PeterJones, thank you so much!

  • need help to look for a word

    4
    0 Votes
    4 Posts
    67 Views
    Alan KilbornA

    @Alex-Yuan-CA

    In case you are trying to do any other possible text manipulation, searching, highlighting, etc, etc, or anything you can possibly think of doing to your text, please consult the Notepad++ online user manual, because your answer is probably found there.

  • Function List does not work properly after update

    3
    0 Votes
    3 Posts
    46 Views
    PeterJonesP

    @Annie-Chuang ,

    In addition to @Alan-Kilborn’s request, you can also go to ?-menu’s Debug Info, and paste that here.

    Please also tell us the full path of the filename where you put the XML file – was it c:\users\___\AppData\Roaming\Notepad++\functionList\XyzPdq.xml or c:\Program Files\Notepad++\functionList\XyzPdq.xml or somewhere else?

    I referred to many documents

    Unfortunately, you don’t tell us which ones, so we cannot know whether they were telling you the right thing, or not.

    Here are some reasonable documents to consult:

    User Manual: Function List = https://npp-user-manual.org/docs/function-list/#how-to-customize-function-list User Manual: Function List Config Files = https://npp-user-manual.org/docs/config-files/#function-list Including instructions on how to upgrade from a v7.9-or-earlier FunctionList (from before November 2020) to one that works with modern Notepad++ = https://npp-user-manual.org/docs/config-files/#upgrading-old-function-list-entries Community Forum FAQ: Function List Basics = https://community.notepad-plus-plus.org/topic/19480/faq-function-list-basics

    re-created the XML file and put it into FunctionList Folder

    As per the User Manual, there are two files that need to be edited to add the FunctionList – you need to have the XML specific to your language, and you need to edit the functionList\overrideMap.xml – if you didn’t do the latter, then just creating the XML isn’t enough.

    Also, you have to make sure it’s named correctly, and that you’ve got your User Defined Language (UDL) already set up and working, too.

  • PythonScript: editor.setProperty() and editor.getProperty()

    12
    0 Votes
    12 Posts
    165 Views
    EkopalypseE

    @Coises

    Maybe I just didn’t understand the meaning behind it.

    So that’s right. :-)

    It looks like I don’t need to do this kind of work that would benefit from a cloned view, or not often enough. In the cases where I need to jump to different places, I use bookmarks, but I understand that you’d rather have the other area in the second view if you need to do that repeatedly.

    As for notifications, I’d have to look in my notes, which I don’t have access to at the moment, but from what I remember it was about both npp and scintilla notifications. I suspect this will be one of the issues that will be addressed when everything else is working and the plugin is officially released.

  • Inserting date/time

    10
    0 Votes
    10 Posts
    15k Views
    BryanB

    Hi guys, just wanted to thank you all for this post!

    I love shortcuts and just today learned of a way to do it in NP++ thanks to @Alan-Kilborn :)

  • Negative lookbehind regular expression not working on Notepad++

    31
    0 Votes
    31 Posts
    476 Views
    dr ramaanandD

    @guy038 I will understand it only after you post that regular expression (RegEx) here

  • Reading typescript of terminal session

    9
    1 Votes
    9 Posts
    146 Views
    guy038G

    Hello, @collingsjj, @peterjones, @alan-kilborn and All,

    @collingsjj, if you don’t mind to study a simple plain text, just send me, by e-mail,

    An example of your code containing the ESC sequences and similar codes. If possible, a text between 20 and 100 lines !

    A snapshot of your corresponding code on your terminal

    I’ll try to find out a regex search which could delete ALL these codes

    For example, as a first approach, the following regex :

    FIND (?-i)\x1b\[\d*(;\d+)?m

    REPLACE Leave EMPTY

    Would modify this INPUT text, taken from your GitHub issue #16437 :

     | Cannot find path 'E:\SharedData\jDownloader\cfg\downloadList4838991.zip' because it does not exist. Get-ItemProperty: P:\Backup\BackupScripts\ArchiveAttributeUpdate.ps1:3 Line |  3 |  . es -ea SilentlyContinue -value ((Get-ItemProperty $_.fullname).Attrib .  | 

    Into this clean OUTPUT text :

    | Cannot find path 'E:\SharedData\jDownloader\cfg\downloadList4838991.zip' because it does not exist. Get-ItemProperty: P:\Backup\BackupScripts\ArchiveAttributeUpdate.ps1:3 Line | 3 | . es -ea SilentlyContinue -value ((Get-ItemProperty $_.fullname).Attrib . |

    My temporary e-mail address is :

    tguy.038@gmail.com

    Best Regards,

    guy038

  • Searching for text returns same Line twice

    Moved
    3
    0 Votes
    3 Posts
    64 Views
    Alan KilbornA

    @PeterJones said:

    if the line is long enough, Search Results can split the results on a single line into multiple entries in the Search Results panel

    Can we quantify “long enough”?
    Is this behavior worth documenting in the user manual?

    Note that the above discussion presumes this setting is checkmarked:
    2ed6b732-e13b-4d33-901f-700fb46d2f83-image.png

    If it is uncheckmarked, then each match for sure gets its own line in Search results regardless of length of line.

  • Missing lexers from Lexilla?

    12
    0 Votes
    12 Posts
    1k Views
    PeterJonesP

    Update from the far future: SAS was officially enabled in Notepad++ in v8.7.8, so you no longer need to use a script to enable SAS highlighting.

    I wanted to add the Stata lexer at the same time I did SAS, but without a GitHub issue requesting it, I couldn’t justify it. If someone can create a GitHub Issue requesting Notepad++ enable the Stata lexer, I could add it to my TODO list, since I now have experience enabling those missing/hidden lexers in Notepad++. You can use https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16148 as an example of an issue requesting a language be enabled – but I would ask that you include keyword lists: The Stata lexer has 2 keyword lists – one for normal keywords, one for data types – so if the Issue/request could include those two lists of keywords, it would make it much easier for someone who knows nothing about Stata to do the addition (since I wouldn’t have to go googling to try to figure out keywords and try to determine which should be called “normal keywords” and which as “types”). If you do create an Issue, please also paste a link here, because I don’t see all new Issues in the repo.

  • 0 Votes
    20 Posts
    951 Views
    xomxX

    @David-MS said in Notepad++ v8.7.1 (32-bit) NppShell.dll is intermittently crashing Windows Explorer.:

    Does exists a workaround

    If you mean by this a workaround to not have to completely uninstall the N++ for preventing the Explorer crashes, then yes - unregistering of the NppShell context-menu handler helps: https://community.notepad-plus-plus.org/post/99261

    or a fix?

    I could not exactly reproduce the issue myself but found some potential problematic places in the NppShell source code and put a “hardening” of that code to my TODO. Unfortunately not enough free time yet. More info and possible future progress in the GitHub issue.

  • Bold font style change on Linux Mint

    3
    0 Votes
    3 Posts
    91 Views
    mathlete2M

    @kapenike maybe double-check the Language that you are editing the default style of; the one for Global Styles applies to plain text, and the Bold box in the Style Configurator seems to work for each language I’ve tried on my Ubuntu 24.04 LTS VM.

  • trouble with cursor in notepad++

    4
    0 Votes
    4 Posts
    67 Views
    PeterJonesP

    @Jschoerner ,

    Sorry, I don’t see anything out of the ordinary. Hopefully, someone else will be able to come in and provide some guidance, because I don’t know what could cause such a glitch.

  • Adding a shortcut to a language....

    4
    1 Votes
    4 Posts
    2k Views
    Riyas Aboobaker Abdul RahmanR

    @PeterJones Thanks!!

  • Replace Notepad on Windows 11

    23
    0 Votes
    23 Posts
    14k Views
    Christian JanssenC

    @jadelise

    FTW! - Many thanks for providing the solution (the nice simple hack the user asked for) - tested on 24H2.

    Now I can (finally, after years!) right click on and edit .cmd files. What a relief not to be nagged to install an new version of notepad (even though I have explicitly removed the UWP instance of notepad from the user’s profile. (next – looking for a way to do that globally for the machine. I thought I did so quite a while ago with win10 and “mail and calendar”, but I could very well be mistaken.)

  • Spracheinstellung (Syntaxhervorhebung - php) geht immer verloren

    2
    0 Votes
    2 Posts
    68 Views
    PeterJonesP

    @Robert-Kampfl said in Spracheinstellung (Syntaxhervorhebung - php) geht immer verloren:

    It’s set to A = ActionScript when opening any file.

    Do you mean “any .php file” or “any .myphp file” or “any file with any extension, whether it’s .txt or .php or .as”?

    How or where can I set this to happen automatically again?

    Notepad++ generally decides on which syntax highlight Language to use based on the file extension. So, if the file ends in .php, it should automatically be recognized as a PHP file and highlighted properly. Do your files end in .php, or something else?

    If they do end in .php, you will want to look at Settings > Style Configurator for PHP and Action Script and make sure there aren’t any conflicting values in the Default ext.: or User ext.: boxes for the two.

    A fresh v8.7.5 installation has the following settings for those two languages:

    ec7954fe-4085-4256-9922-1ec47d87c74c-image.png

    8237e1ef-b8cf-473c-9caa-ddb77405fb0e-image.png

    If you have another file extension that is neither .php* nor .as/.mx (for example, blah.myphp), then you might want to add that extension (without ., like myphp) to the User ext.: box for PHP.

    My default setting was always PHP.

    Do you mean it used to always use PHP highlighting for .php files by default? Or it used to use PHP highlighting for some other custom extension (like .myphp)? Or do you mean that it used to use PHP highlighting when you create a new file (File > New), even before it’s been saved?

    Because the first should be automatic, unless you have a setting conflict. The second, you would have to set the User ext for PHP, as I said earlier. The third, you could set in Settings > Preferences > New Document:

    6c8aebc2-96ad-474d-9778-33d61b93f6c8-image.png

    update: It also might be related to which Theme were you using before relative to now. Because if you had been using one theme (for example, “Hello Kitty”), and had customized the User ext: for “Hello Kitty” on the old installation, but when you upgraded, if you switched to a differernt theme (like the default stylers.xml), then the User Ext would go away (because those are saved on a per-theme basis); or, if you overwrote the theme definition when you upgraded (ie, if you deleted your old installation before installing the new), then when the old copy (“Hello Kitty.xml” for example) was deleted/overwritten, your customizations (including User ext) would be overwritten.