• How can I search a specific numbers in between two numbers?

    Locked
    2
    0 Votes
    2 Posts
    332 Views
    Alan KilbornA

    @rab_road

    Why did you post the same thing in two different threads??
    Please don’t do that

    Here’s the other: https://community.notepad-plus-plus.org/topic/22315

    Anyone thinking of replying to THIS thread, please see existing replies in the linked thread first, and, if you want to post, do so THERE, not HERE.

  • Display a file in hexadecimal.

    3
    0 Votes
    3 Posts
    15k Views
    artie-finkelsteinA

    @josé-antonio-da-silva

    There is a HexEditor plugin. Of the many flavors available, I’ve found the version listed in Plugins Admin NPP_HexEdit to be the least unstable. (Note: I’ve never put the time into tracking down the cause of the occasional unstable behavior on my system, as I rely on HxD for my hex editing needs.)

  • What is backup (in Notepad++ context)? ... let the flames raise high

    12
    6 Votes
    12 Posts
    2k Views
    UsefulBackupU

    @artie-finkelstein said in What is backup (in Notepad++ context)? ... let the flames raise high:

    Programs are tools. Tools are force magnifiers. It’s my responsibility to use my tools correctly. Sometimes, this means I have to read a manual, sometimes it means I have make a test run to prove a particular tool function works correctly before I start a critical task, but that’s actually still part of MY responsibility.
    As the aphorism goes: It’s a poor worker that blames their tools.

    Let’s take the safety features off of manufacturing machines that can turn a person into spaghetti then(I’ve seen a video).

    As if there’s been no advancement to tools throughout history to make them easier, more accurate and safer to use. Anyone who uses that aphorism must exist nowhere other than in lines of code and doesn’t work in the real world… Hey, why do you use NotePad++ and not Windows NotePad?

    @gstavi said in What is backup (in Notepad++ context)? ... let the flames raise high:

    I think that improving verbose backup could make it a reasonable enabled-by-default backup system.
    It could backup files into some folder at %APPDATA% but will need some auto-limit-and-cleanup on the amount of backup (a few MB) to prevent a user from finding after 2 years, 200,000 files (from 200,000 save operations) consuming 4GB of storage he did not explicitly requested. Such auto-limit is not trivial to define but could be fine tuned. For example, I would not backup at all files over some threshold (e.g. 300KB) which are unlikely to be “hand written”.

    This is the only reasonable, rational, logical thing said in this thread.

    This is how my other professional software works, I think the default .bak limit per projects is 10, but the user can set it to whatever they want. The .baks are stored with/in the project folder where the working master file is saved.

    It’s really not a big deal, at all.

  • Useless Backup System

    34
    0 Votes
    34 Posts
    4k Views
    UsefulBackupU

    @pnedev said in Useless Backup System:

    It is becoming rather a philosophical discussion now but the other perspective is how often people will find the behavior of the editor awkward.

    For all the time Notepad++ has been out there AFAIK @Resonant-Mind is the first to ask for that backup by default (not trying to be disrespectful here, just stating the facts).
    I think what @Alan-Kilborn is kind of worried about is that since the change there are already several (two AFAIK) help requests in this forum asking why the .bak files appear and how to stop that. Those are coming from not power users obviously. And since @Alan-Kilborn and a few other folks here are the guys that are actually spending time and effort answering such queries and trying to help it is normal for them to measure the pros. and cons. of such change from the perspective of “How much confusion it will bring and how much maintenance effort”.

    I understand both views and since we have prioritized the security and stability here (.bak ON by default) maybe it is worth creating post in the FAQ section describing how one can stop that default behavior.
    @Alan-Kilborn , what do you think?

    A couple users coming in to ask how to disable it, is not the same thing as a couple forum Golems b!tching about the change and then proceeding to be bigger cry babies than the person that lost data.

    These elitist power users fail to recognize, that a lot of professional paid for / not free software out there have their own .bak system and is enabled by default.

    So, welcome to being a professional.

  • Notepad++ encoding auto-detect potential problems

    7
    3 Votes
    7 Posts
    4k Views
    Robert CarnegieR

    I see at Github that Notepad++ can have a preference setting stored not to “auto detect encoding”. The effect seems to be that a file is treated as “UTF-8 without BOM”, including your “test.txt” file.

    Also in https://npp-user-manual.org/docs/command-prompt/

    launch settings now exist to choose a different location of stored settings (allowing alternative settings,), to launch a second or third Notepad++ window when one is open already, which may or may not have independent settings, and to set a “language” (programming language) and “localization” (whose effect I don’t know). So you could perhaps run “normal” Notepad++ alongside “only UTF-8” Notepad++.

    Also, option: -qf=“D:\path to\file”
    “Launch ghost typing to display a file content”
    types the file into the open or “new 1” tab possibly treating any file as UTF-8 - it does not mutilate your “test.txt”. However, this is slow and it does not really solve any problem. The “Encoding” menu does not seem to help, either.

    And none of this means that there isn’t a bug. On the other hand… I expect it’s possible to create a text file which really can’t have its encoding auto detected. Strictly, without assuming an encoding first, you can’t interpret a file.

  • 2-byte characters recently broken? Or do I misremember?

    5
    0 Votes
    5 Posts
    1k Views
    Jay LiboveJ

    Thanks very much @Alan-Kilborn
    I’ll jump in to the other thread (levicki).
    -Jay

  • Seasons Greetings

    3
    6 Votes
    3 Posts
    249 Views
    EkopalypseE

    From me too, I wish you all a Merry Christmas, happy and relaxed holidays. Stay healthy!

  • 0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @alan-kilborn said in Reopen files that do not exist, next time. And please latest used, instead of latest opened.:

    So, it follows that, like the default session, if you do this and you are NOT logged into your network drive (according to the OP’s described situation) at the time, you will lose track of your network files. :-(

    I did try another test, where I made the session file read-only (per the file system). In this case, temporary unavailability of a file did NOT cause the file to be forgotten. So this could be a workaround, I suppose.

  • 3 Votes
    38 Posts
    9k Views
    EkopalypseE

    … but bear in mind that this is in an early alpha stage and that there is another plugin that already covers some pitfalls when it comes to implementing LSP for Npp and Scintilla.

  • Reduce Some Typos

    5
    1 Votes
    5 Posts
    470 Views
    Alan KilbornA

    @eric-bloch

    There is perhaps an argument for additional functionality, specifically “Set Read Only Flag”, but I wouldn’t change or remove existing functionality if it were up to me.

    THIS THREAD may interest you, as it provides a means to add in the additional functionality.

  • Increase Find Window Size

    5
    0 Votes
    5 Posts
    456 Views
    Alan KilbornA

    @alan-kilborn said in Increase Find Window Size:

    There is no real way to do this.

    Well, not a great way.
    But you may want to have a look HERE to find a similar discussion.

  • Ancient Greek 'digamma' (ϝ) character

    4
    0 Votes
    4 Posts
    392 Views
    Vasile StancuV

    Thank you for the explanations. I noticed that kind of discrepancy and I thought it might be useful to make it known because I thought it was related to the application, rather than the ‘internals’ of the font itself, because the same character is correctly displayed, with the same font, in other applications. (Hereby attached is a capture of the character map related to this font).

    Digamma-character_map_palatino_linotype.JPG

    But I have no problem myself; I can manage the work I am doing using some other fonts. Thanks again.

  • How to properly migrate/clone style settings from 1 PC to many others?

    7
    0 Votes
    7 Posts
    897 Views
    Alan KilbornA

    @peterjones

    Yea, what I was trying to get to the bottom of was: “Is there anything that Notepad++ itself needs that wouldn’t be copied over in your original technique?”

    The items in your four bullet points would NOT be a concern for that. If users wanted those things to carryover for the first 3 bullet points, it is on them because it is “data”, not part of N++ that is needed. The point about plugins is “meh” because if plugin developers choose to hardcode paths, that’s their development choice, and well, the N++ devs and the support people can’t be expected to save them from themselves (nor account for that kind of stuff for all possible plugins when answering a question such as the OP’s).

    But I did realize that just copying %AppData%\Notepad++ may miss a couple settings…

    Good info. And another argument for using the portable version.

  • Compiling the application

    2
    0 Votes
    2 Posts
    902 Views
    PeterJonesP

    @фулстек-разработчик ,

    Hello dear developers. I have been using the Notepad code editor for about 10 years.

    Hello dear Notepad++ user (note that the ++ is significant; “Notepad” without the ++ is the Microsoft Windows default application for editing text).

    The primary Notepad++ Developer does not hang out in this forum. This forum is a Community of fellow Notepad++ users, not developers.

    5 years of which I have been using this editor in an operating system with a Linux kernel. …
    Please compile this application for Linux kernel systems

    You have been using Notepad++ on Linux for 5 years? Great for you. Glad it’s worked. But during that time of using Linux, you must have come across the difference between Windows and Linux, and you must have heard that binaries aren’t compatible between the two.

    The reason you have needed to use Wine is because the WIN32 API (“Windows Messaging”) calls that Windows applications use a different calling structure than native Linux programs. The “Windows Messaging” around which Notepad++ and most other Windows applications are written is completely incompatible with Linux, and to run such a beast on Linux, there needs to be a compatibility layer (“Wine” provides that layer).

    “Now wait”, you might say, “I have seen applications that were written in such a way that they can be compiled on both Windows and Linux and run just fine, like XXXX and YYYY”. Yes, you have. There are plenty. But they are written from the ground up in the Linux style, with the Linux-style libraries, and UI modules like GTK or similar that have had their UI libraries ported to work on Windows as well. Notepad++ was not written that way, and cannot be compiled natively for Linux without being completely re-written, at which point it would cease to be Notepad++.

    But unfortunately it is still not possible to install this editor from the repository, there are no deb and rpm packages on the site to install.

    Notepad++ has never provided pre-built packages for Linux because Notepad++ is a Windows application, not a Linux application, and the developers do not support Linux, nor have ever claimed to. Pre-built packages are available on some Linux distros (I think Ubuntu is one I’ve heard does have a pre-built package, but I cannot be sure).

    According to Ubuntu’s help page for Wine, all you should need to do to install a Windows application in Wine that you don’t have a prebuilt package for is to download the application’s installer EXE (like Notepad++'s current version of https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.9.3/npp.8.1.9.3.Installer.x64.exe) and save to a directory on your Linux machine, then cd into that directory and run wine npp.8.1.9.3.Installer.x64.exe, which will run the installer under Wine; then it will be installed in Wine, and you can follow their instructions for how to run it under Wine. It looks simple enough.

  • Incognito note

    7
    0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @w1t3c

    than we need to guarantee , that this file will be always in same place

    Tabs don’t move on their own.
    First position is best.
    Just leave it there.

    You seem to be trying to find problems with the “solution” I provided, which is actually quite workable.

    I suggest you embrace the solution, because (IMO) you won’t ever see such a thing as your original idea in Notepad++.

  • Note Pad Private Message

    2
    0 Votes
    2 Posts
    858 Views
    PeterJonesP

    @anthony-delbaglivo ,

    Notepad++ does not have a chat feature. It is a text editor. It is not the right platform for a private/encrypted/secret chat, and if that’s what you’re thinking, it doesn’t make sense.

    The “Forum private message” post you linked to was talking about a direct-message feature for this forum (aka “chat” aka “private message”) – at the time of that discussion, there was no such feature in this forum, but it has since been added. But that feature is just for doing a quick message to someone in this forum, it’s not a generic chat application made for connecting random people; it’s a way for members of this forum to communicate outside of just posts. You should not be planning to use that feature of this Forum as a generic private/secret chat with someone else who isn’t part of the Notepad++ text-editor community. It is not guaranteed secure; it is not something for general users to sign up for just to use “private chat” with each other; it is not a competitor to WhatsApp and similar applications; it is a chat for members of this Forum, where a member of this forum is anyone who wants to publically discuss Notepad++ and/or help answer the many questions that are asked here; the direct-message feature is not the primary purpose of this forum, and if it starts getting abused, the host is likely to turn it off an not allow us to continue to use it. Please do not abuse this feature.

  • Deployment

    4
    0 Votes
    4 Posts
    454 Views
    A

    @peterjones Thanks that help me so much

  • How to add custom color to a tag in json language

    3
    0 Votes
    3 Posts
    368 Views
    ziggi slawZ

    @peterjones Thanks, I’ll check it out.

  • need some help with regular expressions

    4
    0 Votes
    4 Posts
    411 Views
    guy038G

    Hello @eugene-fishgalov, @terry-r and All

    Thanks for your two examples, but I still couldn’t imagine the general goal :-(. Here is how I proceeded to get a better idea of the problem :

    Firstly, I copied all your Wikipedia article in a new tab.

    Secondly, I marked all the ranges <ref>•••••••</ref> with the regex <ref>.*?</ref> in red ( Ctrl + M )

    I then clicked on the Copy Marked Text button

    After pasting, I sorted all these lines ( Edit > Lines Operations > Sort Lines Lexicographically Ascending )

    I re-organized some adjacent ranges <ref>•••••••</ref> one per line

    Finally I tried to manually sort this list by similarity and I got :

    <ref>AS, Rn. 120, S. 57.</ref> <ref>AS, Rn. 127 S. 60</ref> <ref>AS, Rn. 127 S. 60</ref> <ref>AS, Rn. 129 S. 61</ref> <ref>AS, Rn. 130 S. 62</ref> <ref>AS, Rn. 131 S. 62</ref> <ref>AS, Rn. 131 S. 62</ref> <ref>AS, Rn. 132 S. 62<</ref> <ref>AS, Rn. 134 S. 63</ref> <ref>AS, Rn. 142, S. 71.</ref> <ref>AS, Rn. 151, S. 77.</ref> <ref>AS, S. 101, Rn. 186.</ref> <ref>AS, S. 102, Rn. 189.</ref> <ref>AS, S. 102, Rn. 190.</ref> <ref>AS, S. 105, Rn. 194.</ref> <ref>AS, S. 106, Rn. 195-196.</ref> <ref>AS, S. 82, Rn. 159, Fn. 238.</ref> <ref>AS, S. 82, Rn. 159.</ref> <ref>AS, S. 83, Rn. 161.</ref> <ref>AS, S. 84, Rn. 161.</ref> <ref>AS, S. 87, Rn. 164; S. 99; Rn. 184.</ref> <ref>AS, S. 93, Rn. 174.</ref> <ref>AS, S. 93-94, Rn. 175.</ref> <ref>AS, S. 97, Rn. 180.</ref> <ref>AS, S. 98, Rn. 181.</ref> <ref>AS, S. 98, Rn. 182.</ref> <ref>BGHZ 40, 272; 50, 227; 56, 228; 72, 246.</ref> <ref>BGHZ 58, 188</ref> <ref>Baur/Stürner, Sachenrecht, 18. Aufl. 2009, § 37 Rn. 48; Vieweg/Werner, Sachenrecht; 7. Aufl. 2015, § 15 Rn. 27</ref> <ref>Büdenbender, Grundsätze des Hypothekenrechts, JuS 1996, 665.</ref> <ref>MüKoBGB/Lieder, 7. Aufl. 2017, § 1113 Rn. 83; Baur/Stürner, Sachenrecht, 18. Aufl. 2009, § 37 Rn. 48; Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, § 10 Rn. 711 ff.</ref> <ref>Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, Rn. 714; Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27.</ref> <ref>Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, Rn. 714; Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27.</ref> <ref>Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27</ref> <ref>[[:Файл:RGZ 150, 1.pdf|RGZ 150, 1]]; BGH [https://dejure.org/1982,163 NJW 1983, 1420].</ref> <ref>[[:Файл:RGZ 161, 52.pdf|RGZ 161, 52]]; [https://dejure.org/1958,549 BGHZ 28, 164]; [https://dejure.org/2015,13297 BGHZ 206, 69].</ref> <ref>[https://dejure.org/1959,456 BGHZ 29, 157]</ref> <ref>[https://dejure.org/1963,7 BGHZ 40, 272]</ref> <ref>[https://dejure.org/1970,170 BGHZ 53, 144]; [https://dejure.org/1971,21 57, 137]</ref> <ref>[https://dejure.org/1971,21 BGHZ 57, 137]</ref> <ref>[https://dejure.org/1973,48 BGHZ 61, 289]</ref> <ref>[https://dejure.org/1976,124 BGHZ 66, 362]; [https://dejure.org/1976,156 66, 372]; [https://dejure.org/1976,288 67, 75]; [https://dejure.org/1983,140 87, 393, 396]; [https://dejure.org/1983,362 88, 232, 235]</ref> <ref>[https://dejure.org/1978,150 BGHZ 72, 9, 12]</ref> <ref>[https://dejure.org/1980,384 BGHZ 78, 216]</ref> <ref>[https://dejure.org/1983,362 BGHZ 88, 232, 236]</ref> <ref>[https://dejure.org/1984,281 BGHZ 89, 376]; [https://dejure.org/1984,915 BGH NJW 1984, 2205]</ref> <ref>[https://dejure.org/1994,893 BGHZ 126, 105]</ref> <ref>[https://dejure.org/2001,9 BGH NJW 2001, 1127]</ref> <ref>[https://dejure.org/2002,1296 BGH NJW 2002, 3772]; [https://dejure.org/2003,62 BGHZ 155, 380]; MüKoBGB, § 814, Rn. 12.</ref> <ref>[https://dejure.org/2008,1843 BGH, 13.02.2008 - VIII ZR 208/07, NJW 2008, 1878].</ref> <ref>[https://dejure.org/2015,20967 BGHZ 205, 377]</ref> <ref>[https://dejure.org/2015,4962 BGH, 04.03.2015 - XII ZR 46/13, NJW 2015, 1523.]</ref> <ref>https://lorenz.userweb.mwn.de/urteile/vizr36_00.htm</ref> <ref>В данном случае речь идёт не (обязательно) о договоре поручения, а о «указании» в описанном выше кондикционно-правовом смысле. Немецкие термины Anweisender, Angewiesener и Zuwendungsempfänger используются только в рамках этого специфического института, тогда как доверитель и поверенный в собственно-юридическом смысле называются Auftraggeber и Auftragnehmer.</ref> <ref>В дореволюционном переводе: https://viewer.rusneb.ru/ru/rsl01003642821?page=193 — «удовлетворение»</ref> <ref>В нем. юриспруденции согласно так называемому «горизонту получателя», нем. Empfängerhorizont.</ref> <ref>За применение кондикции: [https://dejure.org/1973,841 BGH NJW 1973, 612]; за правило о нарушении основания сделок как специальный закон: [https://dejure.org/1992,508 BGH NJW 1992, 2690].</ref> <ref>Основанные на: Westermann, Sachenrecht, 5. Aufl. § 128 III 1; Baur, Sachenrecht, 4. Aufl, § 55 B II 2 a</ref> <ref>Со ссылкой на Kregel in RGRK 11. Aufl. Anm. 8; Staudinger/Spreng, 11. Aufl. Rdz. 10; Palandt/Degenhart, 27. Aufl. Anm. 3 a und Erman/Rinke, 2. Aufl. Anm. 3, к § 1204 ГГУ.</ref>

    I, then, understood that we should stay concentrated on the <ref>AS, •••••••</ref> ranges, only ! so, after a manual sorting, I got the shorter list, below :

    <ref>AS, Rn. 127 S. 60</ref> <ref>AS, Rn. 127 S. 60</ref> <ref>AS, Rn. 129 S. 61</ref> <ref>AS, Rn. 130 S. 62</ref> <ref>AS, Rn. 131 S. 62</ref> <ref>AS, Rn. 131 S. 62</ref> <ref>AS, Rn. 132 S. 62<</ref> <ref>AS, Rn. 134 S. 63</ref> <ref>AS, Rn. 120, S. 57.</ref> <ref>AS, Rn. 142, S. 71.</ref> <ref>AS, Rn. 151, S. 77.</ref> <ref>AS, S. 82, Rn. 159.</ref> <ref>AS, S. 83, Rn. 161.</ref> <ref>AS, S. 84, Rn. 161.</ref> <ref>AS, S. 93, Rn. 174.</ref> <ref>AS, S. 97, Rn. 180.</ref> <ref>AS, S. 98, Rn. 181.</ref> <ref>AS, S. 98, Rn. 182.</ref> <ref>AS, S. 101, Rn. 186.</ref> <ref>AS, S. 102, Rn. 189.</ref> <ref>AS, S. 102, Rn. 190.</ref> <ref>AS, S. 105, Rn. 194.</ref> <ref>AS, S. 106, Rn. 195-196.</ref> <ref>AS, S. 93-94, Rn. 175.</ref> <ref>AS, S. 82, Rn. 159, Fn. 238.</ref> <ref>AS, S. 87, Rn. 164; S. 99; Rn. 184.</ref>

    Note that one line contains a wrong ending tag <</ref>. You can easily modify these lines with the regex S/R :

    SEARCH (<+)|>+

    REPLACE ?1<:>

    Now, I succeeded to find out a correct regex S/R for almost all the above lines. However, could you tell me how to change the two lines , below :

    <ref>AS, S. 82, Rn. 159, Fn. 238.</ref> <ref>AS, S. 87, Rn. 164; S. 99; Rn. 184.</ref>

    For all the other cases, my regex S/R do give the expected result ;-))

    See you later,

    Best regards,

    guy038

  • Using plug-ins in macro

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @garry-weil ,

    my plug-in has a subcommand. Is there a way to specify that via a xParam ?

    I am not sure what you mean by “subcommand”. In Windows menus, there are either separator lines, submenus, or command entries. Command IDs are only available for command entries, nothing else has a command ID.

    For example, as NppUISpy shows in my current Notepad++ environment:

    fc4147e2-4fd6-471b-a374-b0bbd1609728-image.png

    Plugins > Python Script is a submenu, so it has a command ID of “0”. Then it has some actions which are 22108-22111. Then it has a Scripts submenu with id=0. Then there is the startup script command entry inside that menu, with id=23034, another couple of submenus, then a script that is called aaa123 with id=23127. So if I wanted to run the aaa123 script from a macro, I could create a macro that calls that number, such as

    <Macro name="Example" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="2" message="0" wParam="23127" lParam="0" sParam="" /> </Macro>

    There is also a keyboard shortcut for the subcommand. Is there a way to execute that in the macro?

    If that keyboard shortcut is editable using the Notepad++ built-in shortcut mapper, then the chances are, it will be able to run that using the number that UI Spy shows you. But plugins can also define keyboard shortcuts not using the Shortcut Mapper (though that’s an evil practice, since it makes for unknown shortcut conflicts) – so having a shortcut is not a guarantee that the plugin is playing nice.

    (note: didn’t see your “nevermind” until after I had the whole post basically written, so I am including it for future readers, and you if you care to have the extra info)