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

    12
    0 Votes
    12 Posts
    237 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 :)

  • Reading typescript of terminal session

    9
    1 Votes
    9 Posts
    212 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 :

    Too late !

    Best Regards,

    guy038

  • Searching for text returns same Line twice

    Moved
    3
    0 Votes
    3 Posts
    83 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
    1k 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.

  • trouble with cursor in notepad++

    4
    0 Votes
    4 Posts
    89 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
    71 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.

  • The "OPEN" window is now full screen

    7
    0 Votes
    7 Posts
    2k Views
    mkupperM

    @Susan-Pemble Besides the things @PeterJones suggested you could also try double clicking the title bar area at the top of a window. That will toggle the window it between being a resizable “window” and being full screen maximized.

    It may also help for you to post a screen shot of the window you are asking about much like the screen shot you made of Notepad++'s About dialog box in your first post.

  • Disabling clicking beyond end of line

    8
    0 Votes
    8 Posts
    2k Views
    Jim SageJ

    Thanks for straightening this out, it was driving me crazy!

  • Advance Replace including right trim (repost with example)

    15
    0 Votes
    15 Posts
    376 Views
    Alan KilbornA

    @Mike-Albers said:

    (?s)^(?:[^\r\n;];){N}.{0,3996}\r\n|^((?:[^\r\n;];){N}.{0,3996}).?\r\n|^(?:[^\r\n;]?)\r\n

    Unfortunately, your regular expression was corrupted because you didn’t post it correctly.
    Probably a moderator will come along and examine your “raw” original post and correct it.

  • How to enable syntax highlighting for *.ps1 Powershell script files?

    4
    0 Votes
    4 Posts
    187 Views
    PeterJonesP

    @Claudia-Svenson said in How to enable syntax highlighting for *.ps1 Powershell script files?:

    How can I enable syntax highlighting for *.ps1 Powershell script files?

    Which Theme are you using? It’s possible that your theme file is out-of-date, or that you are a using a theme that has never had the powershell highlighting added, which would prevent Notepad++ from syntax highlighting, even when it is named blah.ps1.

    Please see my post here explaining why; and the User Manual’s Themes: Keeping Stylers/Themes Up-to-date entry for more.

  • It changes the encoding every time I open it.txt file

    4
    0 Votes
    4 Posts
    120 Views
    Alan KilbornA

    @xomx

    The problem with uncheckmarking Auto detect character encoding is that most times you want Notepad++ to autodetect the encoding.
    It’s only when it does it wrongly that you don’t want it to. :-)

  • Stop window size from saving to the cloud

    29
    0 Votes
    29 Posts
    709 Views
    Lycan ThropeL

    @Lycan-Thrope ,
    In hindsight, and after re-reading the issue, it seems that other than the app change removing the AppPosition from the config.xml file(unlikely?), @Alan-Kilborn 's suggestion would be the best for using his GoogleDrive Cloud setup with just one config.xml for multiple machines. He has already rebuffed that, so unless he reconsiders, I guess we’ll have to wait and see if his feature request gets approved and implemented. Moving on.

  • [formatting] Autocomplete, auto indent, insert custom snippets

    4
    0 Votes
    4 Posts
    103 Views
    Alan KilbornA

    @Mark-Olson said:

    the core developers of Notepad++ prefer Microsoft Visual Studio to Notepad++ for working on the Notepad++ source code. Make of that what you will.

    That’s probably because an IDE is wanted for this work, and, as you say, Notepad++ is not the greatest IDE.

    and most major programming languages (like the C or C++ it appears you are writing) have better productivity tools elsewhere.

    Well, I for one have done pretty well with only Notepad++ for embedded C/C++ work, as well as Python work.

  • Run multiple search and replace - one after another

    5
    0 Votes
    5 Posts
    119 Views
    Mark OlsonM

    @Ramses505 said in Run multiple search and replace - one after another:

    Out of interest - can I run some sort of python script that would do this as well ?

    Yes. If you already know Python, the PythonScript plugin can let you automate Notepad++ with Python.

    If you don’t know Python, this forum is not the place to discuss how to learn Python. There are countless tutorials on the internet for that purpose. I’ll just mention the re library and leave it at that.

  • Unable to see Data in the Notepad++

    26
    0 Votes
    26 Posts
    2k Views
    PeterJonesP

    @mathlete2 said in Unable to see Data in the Notepad++:

    FWIW, the Delete part was misleading; the actual instructions say to rename the config file, which backs it up.

    You are right, they gave conflicting instructions, saying to “delete/reset” the config file, but then “actually” only saying to rename it. But in general, their advice was bad – and elsewhere, in posts that another moderater had already deleted, that person spammed with links to their own website, which I confirmed had nothing to do with Notepad++, despite claims in the spam posts that going to their website would help solve a N++ problem. They were a spammer, probably assisted with generative AI posts, both of which are forbidden here and grounds for immediate banning.

  • Running external app on window content?

    3
    0 Votes
    3 Posts
    204 Views
    PeterJonesP

    Ah, right. I’ve written so many FAQ for the Community, I forgot FAQ: How do I … Convert my Text exists. That might explain things better, since it had more time put into writing it.