• Please Read This Before Posting

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

    Pinned
    15
    0 Votes
    15 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.

  • posting code (by copy & paste) with line numbers

    7
    0 Votes
    7 Posts
    138 Views
    Lycan ThropeL

    @Alan-Kilborn said in posting code (by copy & paste) with line numbers:

    Your solution comes with some caveats, at least for me.

    You implied after printing that the next step is to open the PDF document created. The ability to copy from this document will depend upon the program opening the PDF, but I suppose it is usually the case that copying will be allowed. (For me it wasn’t, but that’s because I use Irfanview as my PDF viewer; doing an “open-with” with Chrome did allow copy-from with that source.)

    Yeah, I guess I should have thought of that, as I’m using the Adobe Acrobat program, which is free, so I figured everyone must be using it, my bad.

    Another thing I noticed is that any wrapped lines were rendered with hard line breaks at the wrap point. Not a problem per se, but something to note.

    Good catch. I tend, as I’ve mentioned before, that I try to stay within the 80 character mark, which is why you see my screenshot showing my marker set at the 80 character mark. (Green line) Most of my text is under 80, or continued in dBASE Plus with ; semi-colons.

    I did not replicate your experience with syntax coloring being copied over.

    Good point also, and I just checked by duplicating that copy/paste and it appears it defaults to the D language color coding for some reason. Now we both know more. :-)

  • Grouping tabs and group renaming.

    4
    0 Votes
    4 Posts
    45 Views
  • How to disable FindHistory and FileEditViewHistory? auto-clear at exit?

    6
    0 Votes
    6 Posts
    87 Views
    mathlete2M

    @mkupper said in How to disable FindHistory and FileEditViewHistory? auto-clear at exit?:

    Notepad++ loads the config.xml file when it’s started and writes it back out when you exit Notepad++. That’s why in step 2 above you needed to use an editor other than Notepad++ to make the changes to config.xml.

    The Configuration Files documentation also suggests using a portable copy of NP++ to do the editing, but another way to work around the overwrites is to:

    Copy config.xml to another directory. Edit the copy with your usual NP++ installation. Close the session. Rename the original file to back it up. Copy over the edited file.
  • Bold font style change on Linux Mint

    10
    0 Votes
    10 Posts
    209 Views
    mathlete2M

    @PeterJones said in Bold font style change on Linux Mint:

    Which contradicts the original claim that Windows and Wine were behaving differently.

    Agreed - that’s why I said that I didn’t think the settings were unique to Wine. I suspect that NP++ hasn’t changed the setup of these settings for quite some time, so I’m guessing that the OP did their Windows setup some time ago, and simply forgot about the subtleties of these configurations.

  • need help to look for a word

    10
    0 Votes
    10 Posts
    142 Views
    PeterJonesP

    @dr-ramaanand said in need help to look for a word:

    simply because it is easier

    That’s apparently a matter of opinion. To me, negative lookbehind, where it’s telling you “look behind the current position, and make sure it’s not XYZ” is a lot easier to read/understand than “match something, then say, wait no, I don’t actually want to match that, let’s fail this whole path and move on to the alternation”. (And, from what I can tell, that’s not really a good explanation of skip+fail, because it takes our regex guru pages of text to explain it, whereas I can successfully convey the meaning of a negative lookbehind in one sentence.)

    Since your first version of the skip+fail post was wrong, and you couldn’t tell this immediately, even after it was pointed out to you that it was wrong, I am not convinced that it’s truly as “simple” – even for you – as you are implying.

    I am going to stick with recommending solutions that i could explain if necessary; I will only personally link to the skip+fail formula if I know of no other way to do something (and I wouldn’t tell anyone it’s “simple”)

    But if it truly makes more sense to you than a negative lookbehind, that’s great for you; everyone is different.

  • Cannot select bold character in replace in files

    8
    0 Votes
    8 Posts
    46 Views
    Alan KilbornA

    @Game-Movies:

    This is indeed what your data looks like:

    <strong>$1</strong>!

    Your search screen capture shows that you are using Regular expression search mode. This isn’t going to allow you to match the $ as that is a special character.

    You’d want:

    <strong>\$1</strong>!

    But if you remove that, wouldn’t you also want to remove the line (now empty) that it is on as well? And what about the <p> and </p> lines that wrap it?

    I get the sense that you are just kind of hacking at this, and are likely to end up with a mess in the end.

  • Negative lookbehind regular expression not working on Notepad++

    43
    0 Votes
    43 Posts
    865 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • Find 'Not Found' Matches in list

    6
    0 Votes
    6 Posts
    139 Views
    guy038G

    Hi, @fern99, @terry-r, @mkupper and All,

    An other example :

    To list all files which do NOT contain the strings ABC AND JKL AND XYZ, in upper case, from your opened documents, use :

    FIND (?s-i)(?=\A.*(?:ABC|JKL|XYZ))(*SKIP)(*F)|\A.

    Check the Wrap around option

    Click on the Find All in All Opened Documents button

    REMARK : Do keep the LAST regex dot ( . ), after \A. If omitted, consecutive searches of this regex does *NOT give the same results ! ( Bug ? )

    BR

    guy038

  • 0 Votes
    6 Posts
    81 Views
    mpheathM

    @byzod

    This issue mentions about the unfolding that can happen with numerous lexers.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12121

    I posted a LuaScript script in a comment in that thread that trades the behavior for another behavior by changing the editor.AutomaticFold setting temporarily in the 2nd script. Certain characters will set the automatic folding off which changes the header fold lines to become invisible sections and back again once continue editing. It is not a solution but rather a swap of side-effects to help to keep the current fold state.

    I have little knowledge of AutoHotkey syntax and it’s UDL issues so at the moment cannot offer an updated LuaScript script for calling editor.AutomaticFold.

    The objective-c lexer seems unaffected with /* multi-line comments and not sure why yet compared to looking at the lexers source code. Obviously the styling continues on past the folding though why it does not open the folds seems like possibly the folding is delayed in some lexers and so like the LuaScript script does is to cause a delay though that is just a theory at the moment.

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

    3
    1 Votes
    3 Posts
    63 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!

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

    3
    1 Votes
    3 Posts
    64 Views
    John BlueJ

    @PeterJones, thank you so much!

  • Function List does not work properly after update

    3
    0 Votes
    3 Posts
    63 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
    229 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
    182 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
    76 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.