Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • Deniss JohanssenD

      We are with Ukraine

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      3
      -1 Votes
      3 Posts
      491 Views
      Aaren MyattA

      Yes where can I find a notepad++ version that doesn’t “stand with The Ukraine.”?

    • أحمد حمدي حمدينأ

      Feature Request: Insert Current Date and Time Like Excel

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      65 Views
      PeterJonesP

      @أحمد-حمدي-حمدين said in Feature Request: Insert Current Date and Time Like Excel:

      Hi Notepad++ Team,

      I’d like to request a simple yet useful feature:

      Feature already exists. No request needed. (If a request were needed, this isn’t the right place, as our FAQ makes clear)

      Currently, Notepad++ does not appear to have a built-in shortcut or menu option for this (the old “Edit → Time & Date (F5)” seems to be missing in newer versions).

      Edit > Insert > Date/Time (…) exists. It doesn’t default to any keystroke, but Shortcut Mapper can remedy that.

      User Manual:

      https://npp-user-manual.org/docs/editing/#edit-menu https://npp-user-manual.org/docs/preferences/#multi-instance-and-date

      By the way, you claimed,

      the old “Edit → Time & Date (F5)”

      That never existed in Notepad++. MS notepad.exe used that menu name and hotkey, but never Notepad++. Don’t believe everything that hallucinating AI tells you

    • W

      Feature request - Make font size in tabs adjustable

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      1 Votes
      2 Posts
      57 Views
      Mark OlsonM

      There’s another topic on this subject; it would probably be best if further discussion happened there.

    • FranzF

      Tail with filter

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      80 Views
      PeterJonesP

      @Franz ,

      Natively, no. Notepad++ doesn’t have a “filter” feature that just hides text without deleting it.

      There might be some plugins that do a “filter”-like feature, but I don’t know which they are, and it would be doubtful if they’d work correctly with the Monitor (tail -f) feature of Notepad++. If someone else knows of a way, they can chime in.

      As a workaround: assuming you have the logfile.log open as the current file (doesn’t need to be in “tail” mode, but it can be): Run > Run…

      powershell -command "Get-Date -Format 'MM/dd/yyyy' >> '$(CURRENT_DIRECTORY)\filtered.log' ; Get-Content -Path '$(FULL_CURRENT_PATH)' -Wait | Select-String -pattern '^[AEOIU].*$' >> '$(CURRENT_DIRECTORY)\filtered.log';"

      and then File > Open filtered.log, and set Monitor (tail -f).

      This example filters your original logfile.log for any line in that starts with a vowel, and pipes it into filtered.log in the same directory; when you then open filtered.log in tail-mode, only the text that matches the filter will make it into filtered.log , which you are watching as it goes, so it gives you the basic effect, even though Notpead++ doesn’t do it natively.

      If you want something other than “starts with a vowel”, change the '^[AEOIU].*$' from the command I gave to a valid powershell regular expression (make sure to keep it wrapped in single quotes, like the example regex was). (In this forum, we’re good at Notepad++ regular expressions; but powershell regex are not our area of expertise, so, if you need help with the powershell regex aspect, this forum probably isn’t the best place to ask)

    • Martin NeoselM

      Orange highlighting of everything I copy and paste into a document

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      53 Views
      PeterJonesP

      @Martin-Neosel ,

      Do you mean the orange bar on the left margin, as shown in this screenshot?
      90102f0a-b5ce-44ca-9472-e03bf0a8d861-image.png

      That’s the Change History. We have a FAQ that explains that feature, and how to turn it off (but also explains why it’s a good idea to leave it on, now that you know what it is).

    • Manish PatelM

      Escaping delimiters does not work with UDL.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      94 Views
      PeterJonesP

      @Manish-Patel,

      Based on your description, I assume you are seeing something akin to
      e28deaed-860a-4b30-9409-669bbcf0badd-image.png
      … where the regex starts looking like a quote starts inside.

      In that example, I also showed examples of how the escape is actually intentended to work: the “Escape” character escapes the various open/close symbols _when embedded between open/close symbols. So "In \" quotes", it properly treats the \" as being inside the string, not ending the string, and similarly for the single-quote example.

      Since, based on your <Keywords...> line, you don’t have regex defined as delimiters, the parser is not in a mode where it knows it needs to escape them.

      If you define regex wrappers as delimiters as well, like:
      c4459c06-30a2-4102-b735-97449b2d96f2-image.png

      … then you can get it to treat the regex as a string:
      9c3810c4-bef3-4bb0-b24e-9443e312a000-image.png

      The reason the quote isn’t starting a string inside the regex is because, by default, UDL doesn’t allow nesting of delimiters, unless you tell it to in the Stylers. This is more obvious if I do the same regex, but with the quotes not escaped:
      186dddd5-94e5-4595-a12f-d3b85b0f2d2b-image.png

      The quotes are still not treated as string-starters, because the regex delimiters were not defined to allow nesting of the string delimiters.

      On the other hand, if you define Delimiter 5 to be [ and \ and ] and then in the Styler definition you also allow nesting of Delimiters 1 and 2:
      f6821207-5207-450b-98b9-5168b42c7068-image.png

      … then you can get another example, which shows quotes embedded in brackets, and escaped brackets:
      347cbe63-ed9c-482b-8cbd-97498d8cc7f3-image.png

      If you escape the quotes when inside brackets, they will not be recognized as embedded quotes anymore:
      8ec9e14d-4e2d-48fe-848b-4b5bf5931cd6-image.png

      So I believe these are the kinds of setups you will want. Defining the regex wrappers as delimiters as well should go a long way to giving you what you want, I think.

    • Andrea Astolfi 0A

      Fullscreen - X icon to close isn't enought on top right corner

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · aspect
      2
      0 Votes
      2 Posts
      65 Views
      Alan KilbornA

      @Andrea-Astolfi-0

      Didn’t you already say this, HERE ?

      This is a long-known issue; I could be wrong but I believe the reason it hasn’t been fixed is that it is related to other problems Notepad++ has with “high dpi” screens…

      If you’d like, you can find the issue in the official Notepad++ issue list, start HERE, and add a comment (to the existing issue) in the form of an “I noticed this too and would like it fixed”.

    • donhoD

      Notepad++ v8.8.1 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      2
      5 Votes
      2 Posts
      615 Views
      donhoD

      Another regression has been found here:
      https://community.notepad-plus-plus.org/topic/26815/notepad-v8-8-release/4?_=1746291034345

      The regression has been fixed in the new binaries:
      http://download.notepad-plus-plus.org/repository/8.x/8.8.1.RC2/

    • grievousangel-wtjG

      New User Questions?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      108 Views
      mkupperM

      @grievousangel-wtj Have you seen the gcode add-on for Notepad++ https://ncnetic.com/notepad-gcode-plugin/

      It’s for G-code while you mentioned G/M-code. I don’t know if that makes a difference.

      As I don’t have a CNC I don’t know if the plugin offers the coding help features you are looking for.

    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      3
      3 Votes
      3 Posts
      302 Views
      Jim DaileyJ

      Hello to you, @guy038. You said

      BTW, The parentheses to surround the part FNR,$0 are not mandatory, at least with gawk v4.0.2.

      You are correct, but I can’t bring myself not to use parenthesis with print() and printf(). But that’s just the start of my “non-standard” AWK behaviors. As an example, any substantial script I write will start thusly:

      BEGIN {exit}

      How’s that for non-standard?! :-)

    • C BaccaC

      On install regsvr32 has stopped working

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      85 Views
      xomxX

      @C-Bacca said in On install regsvr32 has stopped working:

      On windows Server 2013

      Do you mean Windows Server 2012 R2 (Windows 8.1 based)?

      (I can try to test the same in a VM but has to be sure which Windows…)

      @C-Bacca said in On install regsvr32 has stopped working:

      I have limited permissions to install on this dev machine so I installed

      From your error messages is clear that there is a problem with registering the Notepad++ context menu shell extension (NppShell). Since only “system-wide” registration (which in turn needs the admin-rights anyway) is currently supported for NppShell, I would simply choose to install without this shell extension during installation:
      npp-installer-no-NppShell.png

      Other workaround is to use a portable N++ version instead, e.g. here is the link to the latest v8.8 (x64): https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8/npp.8.8.portable.x64.zip

      Just unzip that to your writable folder of choice and run there the Notepad++.exe. And portable N++ versions do not contain the NppShell at all, so no similar regsvr32 problem is possible…

    • Code with PritamC

      I'm new I want to know c ++ and i followed all steps in notepad++. Can anyone told me what can I do here means how run my program and other staff? ⚕️

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      111 Views
      PeterJonesP

      @Code-with-Pritam ,

      Notepad++ is a text editor. You type your C++ code in there, and the syntax highlighting in Notepad++ will make it easier to visually parse the code you are typing. Then you use an external compiler to compile your source code, then you run the executable. In a bog-standard approach, all Notepad++ is used for is typing.

      If you have a plugin like the NppExec plugin, you can help automate some of the steps. For example, I have written a script for NppExec plugin that I call gcc-CompileAndRun, which saves the active file, runs gcc on that file to create an executable with the same name, then runs the executable in the NppExec console window:

      NPP_SAVE cd "$(CURRENT_DIRECTORY)" gcc -o "$(NAME_PART)" "$(FILE_NAME)" $(NAME_PART)

      (This script only works on a self-contained, single-file c program. if you used g++ instead of gcc, it would work on a self-contained, single-file c++ program. You could have a similar script which runs your own copy of make – or similar, as appropriate to what C++ compiler and build system you have: the Notepad++ source code, when you are building it with mingw-based g++, uses mingw32-make; strawberryperl comes with a mingw-based gcc/g++ compiler setup, uses gmake (which might be just a rebranded mingw32-make, but I’m not sure); and I know I’ve heard that some c++ setups on Windows can use CMake – but, anyway, if you have a makefile with your project, you could easily do a similar NppExec script that would run the right flavor of make with an appropriate target, rather than directly compiling one c/c++ file and running its executable.

      (Personally, I stick with NppExec for the single-file programs, but for anything more complex, I’m more likely to just do the code editing in Notepad++ and then go to a Windows command-line-prompt to run makefiles and the like. And for C++ apps built with the VisualStudio ecosystem, I have given in and started to use that full IDE environment, because debugging is more convenient that way.)

      This forum actually has a FAQ entry on how to Compile using an external compiler from Notepad++, which reiterates some of what I told you above, and also has a bit more on the specifics of the NppExec plugin.

      This forum is not really the best resource for learning C++, because C++ is just one of the 90+ languages that Notepad++ knows how to syntax highlight, and this forum is focused on the Notepad++ aspects, not on the specific coding language you want to use or programming tasks you want to accomplish. There are tons of websites out there dedicated to helping you learn C++; and there are other forums (like stackexchange) that are better suited to getting answers to coding questions, so you’ll get better answers to coding questions someplace like that than you will here.

      So, if you have specific questions about the use of Notepad++ and its plugins that the FAQ and my brief introduction to using NppExec for compiling C++ code didn’t cover, feel free to ask, because questions specific to Notpead++ is the reason this Forum exists and most of the regulars come to answer questions.

    • G

      Where to find shortcut keys for special characters ! & $ ( )- = , / \\ :.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      110 Views
      PeterJonesP

      @GuFengEn0d ,

      Where can I find shortcut keys for special characters?

      Do you mean: “how do I type those characters in my file?” You use your keyboard. If your keyboard doesn’t have those, you would enter the characters the same way you would in any text eidtor or normal typing application on your computer.

      Do you mean: “how do I use those characters for keyboard shortcuts?” You use Settings > Shortcut Mapper, double click on the command whose shortcut you want to change, and pick the “special character” from the drop-down list – note that a character on its own cannot be a shortcut; you need to use a modifier (like Ctrl or Alt) along with it. Please note:
      - In v8.7.6 or newer, the keys specific to your keyboard should be listed in the Shortcut Mapper’s character pulldown
      - In v8.7.5-and-earlier, the mapper only shows the US-EN keys, and you might need to read this FAQ for how to map ~ [ ] ; ' \ / <> and Num . (numeric keypad .) to what keys they actually are on your keyboard: it gives some example mappings for a handfull of keyboards, and shows you a website where you cand

      Do you mean: “how do i search through the Shortcut Mapper to see whether those keys are used in any existing shortcuts?” Use the Filter: ____ field on each page of the Shorcut Mapper.

      See the User Manual’s Shortcut Mapper section for more.

    • donhoD

      "I wanted to make it April 1, but I didn't want to be accused of April Fool's Day... but we're going to do it in April. I'm a very superstitious person"

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      4
      5 Votes
      4 Posts
      475 Views
      donhoD

      @xomx said in "I wanted to make it April 1, but I didn't want to be accused of April Fool's Day... but we're going to do it in April. I'm a very superstitious person":

      like promoting the use of Bermuda Triangle know-how for garbage collectors.

      Brilliant !

    • Mark ColvinM

      Notepad++ v8.7.1 (32-bit) NppShell.dll is intermittently crashing Windows Explorer.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      20
      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.

    • EkopalypseE

      New polls have arrived, hurry, only while stocks last.

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      0 Votes
      1 Posts
      1 Views
      No one has replied
    • J

      Coloring log files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      5k Views
      PeterJonesP

      @PeterJones said in Coloring log files:

      It looks to me like you want Notepad++ to display your logfile which uses ANSI ESCAPE SEQUENCES in the colors that those ANSI escape sequences define.

      v8.1.1 includes the ErrorList higlighting for .log and .err, which allows ANSI escape sequences higlighting, including recognizing and using the ANSI foreground color escape sequences for choosing the foreground color.

    • deleeleeD

      Npp website spelling error

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      1
      3 Votes
      1 Posts
      146 Views
      No one has replied
    • sepodeleS

      Restore closed window?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      4k Views
      Andrew 1A

      @PeterJones

      4 years later, and option 1 just saved me some grief.

      I had 2 sessions open and autoindent started misbehaving, so I closed the window in which I had about 40 files open, and realized it, just too late. Re-opening one of the files, of course, opened it in the other session, where I had 1 file open. Luckily, the session.xml file had the large session, so all is good.

      It’s not that my files were unsaved, it’s just that the session was set up in a convenient way for the work that I was doing.

      Cheers for a helpful solution!

    • OliverO

      My Travel-Inspired Coding Routine (With Cruise Quotes!)

      Watching Ignoring Scheduled Pinned Locked Moved Blogs
      1
      0 Votes
      1 Posts
      106 Views
      No one has replied