• Using Makefile syntax highlighting as a base for Justfile UDL?

    2
    0 Votes
    2 Posts
    106 Views
    Terry RT

    @Ky-Waegel
    I don’t use any of these functions (currently), however a quick search of the forum came up with this post by one of our more experienced users. Have a read of this post. I think it might answer some of your questions (hopefully).

    Terry

  • Switch to previous/next document... was this previously asked ?

    8
    1 Votes
    8 Posts
    203 Views
    PeterJonesP

    @Alex-De-Lara said in Switch to previous/next document... was this previously asked ?:

    @PeterJones we were talking about next document/previous document so those are the keys I referred to on my post: remapped them to use F11/F12 and whatever was there before, I simply assigned “None” because I don’t use those.

    You were describing behaviors (opening of the Doc Switcher) which those menu entries cannot do, because they are not making use of the Ctrl+Tab which DocSwitcher uses; thus, because what I believed you were describing seems impossible to me, I asked for clarification. I want to confirm: is this the popup you are seeing?

    a6e2c9f1-fab8-445e-9c55-8b35058ad6c1-image.png

    Because that’s the DocSwitcher popup. If it looks different, then you might be seeing something other than the DocSwitcher.

    There are no conflicts: I took the time to look all shortcuts.

    The Shortcut Mapper shows any conflicts in a reddish tone, so it would have been obvious.
    6b1fe995-e795-4c95-8ccc-6bb989bc8786-image.png

    The two checkboxes in the “Document switcher” box are not selected.

    Then I do not see how you could ever see the Document Switcher popup. When those are disabled, there is no way that I know of that can get the Document Switcher to appear.

    I think you might have actually been seeing something else, or you have a plugin that has taken over the actions and is somehow mimicking or invoking the Document Switcher in a non-standard way.

    You are right: I don’t upgrade often… like my granpa used to say, “If ain’t broke…”

    There have been lots of bugs fixed in the last year and a half – so it was broke, and you were not fixing it. Including security fixes. But if you want new features or bugfixes, you’re going to have to update.

    But seriously, every time I upgraded my configuration xml files got clobbered and I got tired of running after the saved copies to restore them.

    Some people have come here to claim, but so far no one has ever been able to show a repeatable set of instructions which is guaranteed to overwrite the %AppData% settings when running ?-menu’s Update Notepad++ action. By default, the updater goes to great lenghts to not overwrite any of your customized settings – to the point where people complain that they don’t get updated syntax highlighting because it is correctly not overwriting their outdated-but-customized old syntax highlighting.

    Since it seems to happen frequently for you, sharing the ?-menu’s Debug Info, plus sharing the permissions on your %AppData%\Notepad++ folder, and any of the XML files in that directory.

    Of course, if you aren’t using the installer (as @Terry-R suggested), or if you’re not using the %AppData%\Notepad++ location for your configuration (and the ? > Debug Info that @Terry-R requested will tell us either of those), then it might be easier for it to accidentally clobber.

    I’m running 8.6.7 now which is working the way I wanted

    That’s still more than 6 months out of date, and again, there should be no difference between 8.6.7 and 8.7.5 in how Document Switcher responds to Ctrl+Tab based on the settings, and how Notepad++ responds to the View > Tab > Next/Previous Tab commands or their keyboard equivalents.

    You never told us the results of your portable-zip experiment, but maybe if you did, we could help you figure out whether you are doing something wrong, or whether you’ve found a difficult-to-notice bug, due to your unique situation… but in order to do that, we would need an exact and explicit set of instructions to reproduce. Something like:

    Download official 8.7.5 64bit zip and unzip into a unique folder (not the place where you normally have Notepad++; we want a separate, independent copy) Run notepad++ from that folder, and create a few new files so that new 1 and new 2 and new 3 are available for forward/backward tab navigation Make the following changes to Shortcut Mapper (include screenshots) Make the following changes to settings (include screenshots) Hit F11 or F12 (or whatever) to cycle, and Document Switcher comes up, even though think it shouldn’t Using View > Tab > Next/Previous tab does or does not also show this popup

    These are just my guess as to the approximate situation. You need to tell us the exact steps necessary for you to replicate the problem from a fresh, unmodified copy of portable Notepad++, otherwise it’s going to be impossible to debug the problem. Explain the steps in excruciating detail, like you’re explaining it to a computer-newbie grandma or to a 5-year-old (don’t make any assumptions or leave out any steps).

    but again, had to reset the colors schema the way I wanted (every one us have our preferences right ?).

    In my years of using Notepad++, using the updater, I cannot remember a single time where it accidentally overwrote my stylers.xml. If you’re just unzipping a portable, then yes, you either have to not unzip the stylers.xml or whatever theme, or you have to do some extras to merge new config files into your old, so you don’t lose settings – this is made quite explicit in the Online User Manual’s “upgrading” page (https://npp-user-manual.org/docs/upgrading/#upgrading-a-portable-edition)

    When you are “upgrading” or “downgrading” Notepad++, what are the exact steps you are taking? (again, please include enough detail that a newbie grandma or a 5yo would be able to repeat exactly what you did)

    It’s all good now.

    Ignoring a problem isn’t “good”. But it’s your choice.


    NOTE: by describing a “newbie grandma” or “5yo”, I am not trying to imply that your particular grandmother (or any 5 year old that you know) is stupid or incompetent, or any such thing. I am using “newbie” to describe such a person who has no experience with Notepad++, and might not have a lot of experience with computers in general: in other words, someone whom you would need to take through little tiny steps to do anything new on the computer. If you have a grandma or 5yo who doesn’t need handholding when using Notepad++ or computers in general, that’s great. And if your newbie grandma or 5yo does need help, that’s perfectly understandable and acceptible, and I am not disparaging them or you.

  • Unicode character not displayed correctly

    3
    1 Votes
    3 Posts
    126 Views
    Carl JohnsonC

    @Alan-Kilborn That was it. Thank you!

  • Notepad++ Table plugin

    4
    0 Votes
    4 Posts
    282 Views
    Mark OlsonM

    Based on some Googling, it looks like the Notepad++ Table plugin consists of a single GUI form and a button that lets the user create an HTML table with customizable parameters. A decent Python programmer could probably cobble together something with comparable capabilities in PythonScript in a couple of hours.

  • Delete every line below a bookmarked line.

    47
    1 Votes
    47 Posts
    2k Views
    PeterJonesP

    @Antheds-Kennel said in Delete every line below a bookmarked line.:

    since there are 397,580 rows

    So that’s a good reason to avoid (1), but nothing you have said explains why you think (2) won’t work for you.

    I have to give up

    Don’t lie to yourself. If you give up, it’s your own choice. All the information you have given us says that (2) will work for you, but you are choosing to ignore that option without explaining why.

    that I have to sort somehow.

    This is the first you’ve mentioned sorting, that I noticed.

    Until you accurately describe what you are actually wanting, no one can help you.

  • Recent Files submenu 64-bit

    3
    0 Votes
    3 Posts
    135 Views
    deleeleeD

    @Alan-Kilborn said in Recent Files submenu 64-bit:

    It’s however Windows itself wants to display it; it has nothing to do with Notepad++.

    Thanks, Alan.

  • can i use function list in Notepad++ 7.9.5?

    13
    1 Votes
    13 Posts
    4k Views
    mpheathM

    @Dan-I-2072 said in can i use function list in Notepad++ 7.9.5?:

    You must make the file changes above within the %AppData%\Notepad++\functionList dir, which means it has to be done separately for each user of the PC.

    Trying to instead make the same changes for all users of the PC, within the C:\Program Files\Notepad++\functionList dir, results in Notepad++ entirely ignoring the configuration.

    The all users path might be %ProgramData%\Notepad++\functionList or the older Environmental Variable path of %ALLUSERSPROFILE%\Notepad++\functionList. I do not know if Notepad++ searches in those paths.

  • Hide horizontal line at folds?

    2
    0 Votes
    2 Posts
    80 Views
    PeterJonesP

    @0Villitz ,

    Unfortunately, there is not yet a configuration option to allow users to change that color. As mentioned in the Hide Fold Lines discussion, there may be messages that plugins can send – that topic had an example of hidden lines, but I was able to find an equivalent for the fold line: the PythonScript plugin could send

    editor.setElementColour(ELEMENT.FOLD_LINE, (0,0,255,255))

    where the color is (RED,GREEN,BLUE,ALPHA) where ALPHA should be 255

    here’s the results of me running that command in PythonScript 3:
    dd61ca72-575e-4a11-92d2-440a75a20b09-image.png

    and then I changed it to GREEN instead of BLUE:

    editor.setElementColour(ELEMENT.FOLD_LINE, (0,255,0,255))

    cd974739-3173-49bb-b3f3-8859f56ffe3b-image.png

    And hiding it completely can be done by either setting the ALPHA to 0, or editor.setFoldFlags(0) in PythonScript (or the equivalent, as shown in that other discussion, in NppExec or other such plugin)

    This feature was requested in 2023, but neither the developer nor any other volunteers have apparently put in a PR to implement it. I’ve just “bumped” the discussion, with links to a few related discussions here; if you’d like to go upvote that, and/or put in your 2cents, that might encourage someone to put in the effort.

  • iOS or iPad app which can open Cloud Backed Notepad++ files

    2
    1 Votes
    2 Posts
    146 Views
    CoisesC

    @Neeraj-Shrivastav said in iOS or iPad app which can open Cloud Backed Notepad++ files:

    Can anyone tell or guide me to any iOS or iPad app which can open Cloud Backed Notepad++ files?

    Notepad++ edits files as plain text files on Windows. The files are not special in any way, and Notepad++ doesn’t have any associated cloud service.

    So, if you have cloud backup for the files you edit in Notepad++, you are using a cloud provider (iCloud, Google Drive, Dropbox, OneDrive, whatever). You would have to look to people familiar with that provider to find out the best way to access plain text files on that service from iOS.

  • Notepad customization is it possible?

    11
    0 Votes
    11 Posts
    2k Views
    G

    @PeterJones Thanks for the detailed reply. Much appreciated.

    Your suggestion to look for workarounds that would result in the document being centered led me to solution that works for me… the Explorer plugin. Having a filetree directory of the left side is helpful and since its width is adjustable it allows me to have documents centered exactly where I need them on the screen. Wanted to mention it in case anyone else finding this topic in the future might also find it a useful workaround for them too.

  • Find text, display line with text and the next line

    9
    0 Votes
    9 Posts
    343 Views
    Robert Or Janet DiebelR

    @guy038 said in Find text, display line with text and the next line:

    (?-is).Luka\R.\R?

    I do not take the gift of anyones time lightly.
    Many thanx, much appreciated.
    Most helpful.

  • Temporary files are lost after upgrading to 8.7.5

    12
    0 Votes
    12 Posts
    397 Views
    L

    @Alan-Kilborn

    Thank you for your insight.
    I guess there are many ways of working.

    I am in an environment where add-ons are not readily available. Using the native capability over time has been my best option, and so I have not explored alternatives.

    Backup is not a deprecated feature, so expecting it to be reliable, as I do for any other saved file.

    Whether the number of un-named files is large or small, this highlights what can happen when the user changes the saved location, and is, I now think, a good case for consideration when designing or testing code modifications around the backup location.

  • [Python] Edit > Block Comment doesn't use triple double-quotes

    9
    0 Votes
    9 Posts
    388 Views
    Alan KilbornA

    In the script code, I accidentally left out the r I was preaching about earlier.

    quot3_comment_start = 'pass; {three}START-BC '.format(three=quot3)

    should be:

    quot3_comment_start = 'pass; r{three}START-BC '.format(three=quot3)

    See the r? I bolded it in the revised line of code. :-)

    BTW, I added the START-BC (start block comment) and END-BC (end block comment) text in there so one can be sure that the triple quoted string stuff really IS temporarily commented out code. If you don’t want that, just remove the text of those strings from the source code for the script.

  • Issue with user define function after 8.7.5 update.

    8
    1 Votes
    8 Posts
    281 Views
    Zachary DeckerZ

    @PeterJones Thanks for all the help. Yes, your suggestion fixes this issue!

    Best
    Zach

  • UDL Folding Sought

    1
    0 Votes
    1 Posts
    68 Views
    No one has replied
  • RegEx Quandary

    12
    1 Votes
    12 Posts
    285 Views
    guy038G

    Hello, @roy-simpson, @terry-r, @peterjones and All,

    @roy-simpson, may be the following regexes may help you to achieve your goal !

    For the example below, don’t forget to tick the Wrap around option in the Replace dialog !

    Given your last single line INPUT text, that you’ll paste in a new tab :

    <math display="inline"><semantics><mrow> <mrow> <mtable columnalign="left"> <mtr columnalign="left"> <mtd columnalign="left"> <mrow> <mn>0</mn><mo>=</mo><mo>|</mo><mn>4</mn><mi>x</mi><mo>+</mo><mn>1</mn><mo>|</mo><mo>−</mo><mn>7</mn> </mrow> </mtd> </mtr></mtable></mrow></mrow><annotation-xml encoding="MathML-Content"><mrow> <mtable columnalign="left"> <mtr columnalign="left"> <mtd columnalign="left"> <mrow> <mn>0</mn><mo>=</mo><mo>|</mo><mn>4</mn><mi>x</mi><mo>+</mo><mn>1</mn><mo>|</mo><mo>−</mo><mn>7</mn> </mrow> </mtd> </mtr></mtable></mrow></annotation-xml></semantics></math>

    With this regex S/R :

    FIND (?-s)(?:<.+?>)+([^< \r\n]|\Z)

    REPLACE $1

    You would be left with this tiny OUTPUT text :

    0=|4x+1|−70=|4x+1|−7

    Now, with this simple regex S/R :

    FIND .

    REPLACE $0\x20

    The OUTPUT becomes :

    0 = | 4 x + 1 | − 7 0 = | 4 x + 1 | − 7

    And finally, with this third and last regex S/R :

    FIND (.+)\1

    REPLACE \\\( $1\\\)

    You get your expected OUTPUT :

    \( 0 = | 4 x + 1 | − 7 \)

    May be, get rid of the space char, between 4 and x, to simulate an implicit multiplication sign !

    Happy New Year !

    Best Regards,

    guy038

  • Windows 10 Crash

    2
    1 Votes
    2 Posts
    83 Views
    CoisesC

    @Moisey-Oysgelt

    Does this crash happen immediately when you try to start Notepad++, or after it is already open?

    If you can get Notepad++ to start, please click on the ? at the right end of the main menu, select Debug Info…, then click the button Copy debug info to clipboard.

    Add a reply to your original message and paste in what it copies. That might help us guess what is going on.

    If you can’t get Notepad++ to start at all, then the question has to be, what changed recently in your system? If you can’t think of anything at all, one thing you could try is to download a portable version from the downloads page, unzip the file and see if that will run. What happens when you try that might give you, or us, a clue.

  • 0 Votes
    2 Posts
    100 Views
    PeterJonesP

    @Doc-Farmer ,

    Is there a new shortcut for Edit>Blanks>Trim Trailing Space?

    v8.5.7 was from November 2023 – a year ago. Do you really mean that, or do you mean the most-recent v8.7.5 from December 2025?

    Regardless, Edit > Blanks > Trim Trailing Space does not have a default shortcut in either v8.5.7 or v8.7.5 – the Alt+Shift+S keystroke is assigned to Macro > Trim Trailing Space And Save in both v8.5.7 and v8.7.5.

    I suggest you look at both menus to see if either says that, or if not there, then Preferences > Shortcut Mapper: filter for trim on the Main menu tab to see Trim Trailing Space, and filter for trim on the Macros tab to see Trim Trailing Space and Save:

    accc074f-c88c-4967-9c6b-18c28d3da1f2-image.png 7a1a2b8b-e016-4c38-a999-aad4130d7f17-image.png

    I get the Find drop-down

    Do you mean the Search menu drop-down? If so, then my guess is that your keyboard isn’t correctly sending the Shift when doing Alt+Shift+S (maybe an intermittent problem with that key on your keyboard), because Alt+S is the Windows OS “menu accelerator” sequence for "the menu with the accelerator S, which in Notepad++ is the Search menu – so that says that Notepad++ is hearing Alt+S instead of Alt+Shift+S from the OS.

    Though it is possible all your shortcuts got cleared – for example, if %AppData%\Notepad++\shortcuts.xml somehow got deleted or corrupted for you, then the Macro wouldn’t be there anymore and thus nothing would be assigned to that sequence, at which point I believe that Notepad++ would fall back to pretending the Shift wasn’t in your sequence and interpret it as Alt+S for the Search menu. If it did get cleared, you should be able to exit Notepad++, copy the one from C:\Program Files\Notepad++\shortcuts.xml to %AppData%\Notepad++\shortcuts.xml , and then run Notepad++ again, and the shortcuts and macros should all be back to their defaults.

    So my guess is that the problem is that you misremembered, and you’ve really been doing Trim Trailing Space and Save macro shortcut, and that now your Shift key isn’t coming through, or that your shorcuts.xml got cleared.

    All that said, with the Shortcut Mapper, you can change the shortcut for either of the actions I’ve mentioned, or most other menu entries, to whatever you like.

  • How to Find and Replace a value bigger than 100(Float)

    13
    1 Votes
    13 Posts
    1k Views
    Mark OlsonM

    FWIW, JsonTools v8.3.1.3 (see instructions for downloading an unreleased version) now has a function that would allow JsonTools to solve this problem without knowing the full structure of the JSON document.

    recurse_until(@, and(@.Value > 100, @.Name == Intensity))[:].Value = 1.0 will convert all the Value instances greater than 100 where the Name was Intensity to 1.0.

    For example, in {"foo": [{"Value": 101, "Name": "Intensity"}, {"Name": "Blah", "Value": 200}], "bar": {"Name": "Intensity", "Value": 60}}, running this query would return {"foo": [{"Value": 1.0, "Name": "Intensity"}, {"Name": "Blah", "Value": 200}], "bar": {"Name": "Intensity", "Value": 60}}

    I should note that the recurse_until method is very slow compared to other JsonTools functions because it can potentially throw and catch an exception for every node in a document, so I do not endorse this approach for very large documents.

  • How to hide columns like the way we hide rows?

    5
    0 Votes
    5 Posts
    189 Views
    Mark OlsonM

    If you need to quickly navigate to the tags of an HTML document while ignoring whitespace, maybe a tree view would help. From a quick trip to Google, it seems like XMLNavigator might be a reasonable option, although it hasn’t been updated in a few years. I haven’t used it myself, but if it seems interesting to me I may try to fork and update it.