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
    • 王阿喵王

      notepad++,政治言论独裁的软件而已

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      2
      -1 Votes
      2 Posts
      105 Views
      Jonathan JohansenJ

      @王阿喵 I’m a new member of the forums. I’m sorry that statement upsets you. It’s a benefit of being a person where you won’t be censored, that you can say what you want. The bananas metaphor may just lead to a worse relationship, right? Open source projects can be copied though, and if you can get a few people to agree, you can start a competing open source product, right? May the peace of Christ be with you, friend.

    • Maxim RodinM

      How do I prevent the line numeration from being shown when exporting a text file into PDF format"

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

      @Maxim-Rodin ,

      Settings > Preferences > Print, uncheck Print Line Number

    • Nachum ShmilovitzN

      notepad++ freeze on large SQL file with stored procedures running on Server 2022, no issue on Server 2019

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      173 Views
      Mark OlsonM

      @Nachum-Shmilovitz
      Do you have any plugins installed? A plugin might be responsible.

      It’s also possible that the SQL lexer is causing this slow performance. You can disable this lexer (removing all syntax highlighting) by selecting Language -> None (Normal Text) from the Notepad++ main menu.

    • Ling LingL

      How to Remove "Edit with Notepad++" from the Right-Click Context Menu

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

      @Ling-Ling ,

      When you install Notepad++, it installs the right-click context-menu entry using a “Shell Extension”. The User Manual has an entire page on the Shell Extension, including a secion on how to unregister the Shell Extension so that the “Edit with Notepad++” entry goes away

    • Aria JamesA

      Efficient Way to Format and Debug Arduino Code in Notepad++

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

      @Aria-James,

      Recommended plugins for C/C++ syntax highlighting, auto-indentation, or even code suggestions for Arduino.

      Syntax highlighting occurs without plugins in Notepad++. You can set Settings > Style Configurator > Language: C++ to have user ext.: = ino so that Arduino sketches automatically get associated with C++ language.

      Further, you can set the USER KEYWORDS # > user-defined-keywords per my post here to add the Arduino-specific keywords to the syntax highlighter.

      Notepad++ does some auto-indentation natively: see Settings > Preferences > Indentation > Indent Settings = cpp to control tabs-vs-spaces on a per-language basis, and the Auto-indent = basic vs advanced which applies globally throughout Notepad++ (described in more detail here in the User Manual). But it’s not super-fancy, and is only “as you add new lines”, so it won’t clean previous code. @Michael-Vincent shares an example script for the NppExec plugin that is able to run an external “pretty print” utility for multiple languages depending on file extension in this post: his script does it for C, HTML, Perl, and Python, but once you understand what you shared, you could definitely call one for a different language (like C++: I am betting that most c pretty-printers are really c++ pretty-printers, too).

      Code suggestions – there is some auto-completion, but it won’t go as far as code suggestions (and it’s definitely not going to be a copilot AI or anything like that).

      Is there a way to integrate serial monitor output or debugging processes within Notepad++ or via external tools? Is there a recommended workflow that allows me to combine Notepad++ with the Arduino IDE or PlatformIO for compiling and uploading, while primarily coding in Notepad++?

      I’ve never tried anything like that, so maybe someone else will be able to give more advice on that end.

    • Ahu LeeA

      Double Ctrl+F won't bring the find dialog to the front of the primary window.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      17
      0 Votes
      17 Posts
      6k Views
      PeterJonesP

      @Marshall-Brooks said in Double Ctrl+F won't bring the find dialog to the front of the primary window.:

      Also - somewhere along the way (8.81 or prior), Alan’s suggestion was implemented:

      v8.3.3 in March 2022, so a few months after Alan’s 2021 post. See https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Changes#833

    • Ertan KüçükogluE

      Pascal multi line string highlight

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

      @Ertan-Küçükoglu said in Pascal multi line string highlight:

      It would be nice to have it visualized as string in Notepad++

      Notepad++ uses a library called “Lexilla” to handle deciding what characters in a document to syntax highlight. When I use their testbed “SciTE” editor, it is showing that it’s treating the line ending with ''' as an “unterminated string”. But it apparently doesn’t know that Delphi recently added multi-line strings with the triple-quote syntax.

      The Lexilla project has ome reported issues about Pascal and Delphi – you can look through those, and see if any mention the multi-line strings. If not, you might want to request that they add it. Once they add it, and Notepad++ updates its Lexilla library, then Notepad++ could add that new styleID to the Style Configurator options for Pascal. But until they add the support, there’s nothing Notepad++ can do about the official lexing of the language.

      However, as a workaround, there is a plugin called “EnhanceAnyLexer”, which allows you to add regex-based foreground colors. Doing multi-line stuff with a regex is risky if there’s a mismatched triple-quote somewhere, but once you install EnhanceAnyLexer, open your Delphi/Pascal file, use Plugins > EnhanceAnyLexer > Enhance current language, which will open up a [pascal] section in the EnhanceAnyLexerConfig.ini. Set it to the following

      [pascal] ; Everything between pairs of triple-ticks is colored cyan 0xCCCC00 = (?s)'''.*?''' ;excluded_styles = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20,21,22,23

      (make sure you use the ; or # to coment out the excluded_styles, otherwise it won’t color properly; you can, of course, pick any 0xBBGGRR values you want to choose your own color, as described in the comments of the INI file.)

      With that INI saved, it will mean that from now on, the EnhanceAnyLexer plugin will color triple-quote multi-line strings in Delphi/Pascal files. like this example:
      5ba5abdd-c30f-4536-b470-290f55647f1a-image.png

      Since some people aren’t clear when I’ve given such instructions: once you save the EnhanceAnyLexerSettings.ini, the EnhanceAnyLexer will always apply that regex-based coloring to Pascal/Delphi files (you don’t have to run Enhance current language every time you want to turn it on; with the plugin installed, and the ini saved, it will be automatic).

    • Paul CobbenP

      Cannot get Autocompletion to work for my own language

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

      @Paul-Cobben said in Cannot get Autocompletion to work for my own language:

      What am I doing wrong?

      Per the User Manual section on the autoCompletion definition file syntax (https://npp-user-manual.org/docs/auto-completion/#create-auto-completion-definition-files), with emphasis added:

      The basic character set used to recognize keywords is made of letters a-z, A-Z, digits 0-9, and the underscore _. Punctuation might work for auto-completion; however, if you want to use the parameter hints, you should not use punctuation in the keyword name.

      You are relying on the : at the start of the keyword and the - in the middle. This is a double-whammy against you. However, if you go to Settings > Preferences > Delimiter and set ⦿ Add your character as part of word to :- so that those two characters are more “word-like”, then restart Notepad++, it will be able to show up in the function-name autoCompletion:

      6c680cbc-5b88-4169-b76d-affbf204618e-image.png

      However, the parameter hint portion has two more problems:

      The easy one is you need func="yes" in the <KeyWord name="..." func="yes"> tags, otherwise Notepad++ doesn’t pay attention to the overload/param elements nested in the KeyWord. This might not ever work, because the internal regex that Notepad++ uses to determine if it’s valid to prompt for function parameters refuses to work because of the - in the keyword. If I have the delimiter setting as above, and added a keyword :FUNCT_SETTEXT which has the : as the prefix but does not include the hyphen, like:<KeyWord name=":FUNCT_SETTEXT" func="yes"> <Overload retVal="void" descr="Set a value in the STATUS.DAT file."> <Param name="Section" /> <Param name="Key" /> <Param name="Value" /> </Overload> <KeyWord> then when I type :FUNCT_SETTEXT(, it will prompt with the parameter hints as well: bf355c03-a51b-45ad-b0a3-47534ee92e2d-image.png As a workaround, you could “cheat” the - limitation by defining a second keyword which includes just the stuff that comes after the - in the keyword, like,<KeyWord name="SETTEXT" func="yes"> <Overload retVal="void" descr="Set a value in the STATUS.DAT file."> <Param name="Section" /> <Param name="Key" /> <Param name="Value" /> </Overload> </KeyWord> This will allow Notepad++ to see the - as a boundary and then the SETTEXT as a separate function, which then allows for the function parameter completion, as in this screenshot: d52f6232-de08-4b85-89cc-e2b852801a90-image.png
      (notice that it thinks the function is SETTEXT, not :FUNCT-SETTEXT, when doing the parameter prompting) Since punctuation isn’t guaranteed in function/parameter autoCompletion, that’s likely not going to be “fixed”, as it’s already relying on an unspecified edge case.

      In conclusion, if you just want the function autocompletion for the names with leading : and embedded -, you can do that by setting the Delimiter setting to :- , and it will work as in my first screenshot. If you want parameter hints when there are not hyphens in your function name, you can get that by setting the func="yes" in your <KeyWord...> tags, and that will work as in my second screenshot. Unfortunately, you cannot get the parameter hints directly if your keyword has the - because of a limitation in the internal processing that decides when parameter hints can be shown (though you can trick it as shown in item3).

    • M

      Notetab++ novice questions

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

      @mapsonx said in Notetab++ novice questions:

      Notetab++

      I think you mean “Notepad++”

      I’ll answer your last one, first, because it’s not related to the others:

      If I add content to a new file, I am not prompted to save/dismiss, but when i open notepad++, that content is still there?? Is there a filw created. I’ve never experienced that type that of behavior before.

      That’s Settings > Preferences > Backup > ☑ Enable session snapshot and periodic backup option being turned on: as described in the backup settings in the User Manual, in that mode, Notepad++ will periodically take a snapshot of any edited files, and even remember those unsaved changes the next time you restart Notepad++. I, personally, am not a fan, because it lulls people into foolish behavior (like never saving/naming a file). However, that has been Notepad++'s default behavior for years… and it’s been there long enough that Microsoft took a page from Notepad++'s book (because in the “app” version of MS notepad that gets shipped with Windows 11 – the version that also now has tabbed editing, not the old win10-and-earlier one-window-per-file – now also keeps your unsaved changes from run to run).

      If you don’t want to keep unsaved changes, and you want to be prompted before exiting Notepad++, you can turn off that option: congratulations for wanting to control your data. To better understand this feature, and other backup-related issues, I highly recommend reading the backup settings in the User Manual and this forum’s backup FAQ, just to get a better handle on what’s going on.

      Now to your first question:

      1 I have both portable versions, from here and portableapps.

      Downloading from the official website is great. Downloading the portableapps version is a bad idea, because they edit the binary without saying what they change (in violation of the open-source license, IMO); we cannot guarantee that the portableapps version behaves in any way, shape, or form like the official Notepad++ release. Use portableapps at your own risk (or better, don’t use it, ever).

      How do I update the version form this site and maintain tre current settings. I tried to keep the current .xml files bu that did not help.

      It helped, but you might not have kept all the right files. The official Online User Manual for Notepad++ has a section devoted to upgrading the portable edition: https://npp-user-manual.org/docs/upgrading/#upgrading-a-portable-edition

      Toolbar size and labels. I want the larger toolbar, and if possible, button labels., but aI like the fancier icons I don’t know why the toolbars look different.

      For builtin icons, the “large” icons only come in the new “Fluent UI” look, hence the names in the Settings > Preferences > Toolbar section (was a sub-section of the General tab, before v8.8.0) are “Fluent UI: large” and “Filled Fluent UI: large”. If you have one portable set to “standard icons (small)” and another to “Fluent UI: large”, of course your toolbars are going to look different.

      Also, this is strange. Upon opening this sites version after I trying to update it, both toolbars were now identical to portableapps, and it had the same content as the portableapps version.

      When you updated your portable copies, you presumably overwrote all your config files, including your choice of which toolbar icon set you were using, so they went back to the same. (Though I’m surprised they went back to the “Fluent UI: large”, which your screenshot appears to be showing, because

      Are they cloud connected? Yes, I know, doesn’t make sense.

      No. (Well, not unless you had set the Cloud settings in the preferences dialog, and set them both to the same cloud folder.)

      For builtin toolbar icons, your only choices are big/small and hollow/filled versions of the Fluent UI icons, or the old small-only standard icons. (That “standard icon” set has not, as far as I can remember, been published in a large-icon version. In Notepad++ 7.9.5 and earlier, before there were the “Fluent UI” icons, there were the ancient “small icons” and “big icons” and the “standard icons” (which were small, even then); I just double-checked v6.5 from 2013, the oldest copy I have downloaded right now, and the “standard” ones were only small, even then.)

      You can customize the icons, if you don’t like any of the four Fluent options or the “standard icon” set. The Toolbar Customization section of the User Manual explains how to do that, and even provides a link to a zipfile with a copy of the ancient “big icons”, which are now called the “legacy” icons. But that download doesn’t come with big versions of the “standard icons”, either… so if that’s what you wanted, you’d still be out-of-luck. It might be possible to use image editor software and grab the “standard icons” out of the Notepad++ source code, and scale them from 16x16 .ico files to 32x32 .ico files – but I don’t know of anyone who has done that and made them public.

    • Rowan Sylvester-BradleyR

      How to highlight text?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      12
      0 Votes
      12 Posts
      150k Views
      PeterJonesP

      @Farhan-Yazid said in How to highlight text?:

      Hi, any shotcut button to assign the highlight funtion?

      By default, the Style One Token / Style All Occurrences of Token commands do not have keyboard shortcuts.

      But if you use Settings > Shortcut Mapper, set Filter = style, you can choose any of them and use Modify to set a keyboard shortcut for that token-highlight style.
      1ccdb944-484d-4a28-9bc6-c301a59b0478-image.png

      (In case it’s not clear: Style all using Nth style in that dialog corresponds to Search > Style All Occurrences of Token > Using Nth Style [or the right-click context menu equivalent]; Style one using Nth style corresponds to Search > Style One Token > Using Nth Style [or the right-click context menu equivalent]. And for further clarification: the Search > Mark All that @Alan-Kilborn mentioned 6 years ago is the same as what’s now known as Search > Style All Occurrences of Token)

    • Alfonso MuñozA

      Notepad++ blank all the time, even with existing files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      852 Views
      gerdb42G

      @Berend-Engelbrecht
      Would you mind sharing your graphics adapter information (Brand/model/Driver Version etc.) in this thread? If we can collect as many infos as possible about Graphic adapters affected by the DirectWrite problem, it might show a pattern allowing clues about the cause.

    • Steve LawtherS

      UDL - Is there a numeric wildcard character within keywords

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      171 Views
      EkopalypseE

      @Steve-Lawther

      I think that the EnhanceAnyLexer plugin and a corresponding regex, e.g. Item\d+\w+ would be easiest here.

    • Sebastián Orias SenderS

      Notepad++ funciona en linux?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      729 Views
      EkopalypseE

      @ANDRES-MARIANO-MARTINEZ-PEÑA

      Yo sólo utilizo versiones portables, es decir, versiones que no necesitan ser instaladas, sino que simplemente se copian en un directorio.
      Para instalar un paquete de instalación sin entrada, hay que pasar el parámetro /S a setup.exe. https://npp-user-manual.org/docs/command-prompt/#installer-options.

      I only use portable versions, i.e. versions that do not need to be installed, but simply copied to a directory.
      To install an installation package without input, you have to pass the /S parameter to setup.exe. https://npp-user-manual.org/docs/command-prompt/#installer-options.

    • Brian EdgeleyB

      Right Click Context Menu 'Edit with NotePad++' does nothing.

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

      @Brian-Edgeley ,

      Surely someone has mentioned this before?

      If it didn’t work for anyone, then yes, obviously, someone would have mentioned it before. The fact that no one has mentioned it (or very few) indicates that, in reality, it works for the vast majority of people who use it.

      I use it on a daily basis, and have for years, and it’s always worked for me, both on my old Win10 setups I used to use and my new Win11 machine.

      If you want help debugging why it’s not working for you, please go into your ?-menu and choose Debug Info, then copy that information and paste it here – that will give us specific version-info about your N++, as well as other useful information that helps us understand your setup. Once we know a little more about your setup, we might be able to start giving insight or hazarding guesses.

      The biggest and most obvious culprit – so frequent that it actually has a paragraph in the Online User Manual – is that if you’re running Notepad++ “as Admin” (it would have “Administrator” in the title bar, and the Debug Info would tell us if you were, even if you didn’t know), then the shell extension’s Edit with Notepad++ action might not be able to open the file into Notepad++.

      Beyond that, I would probably suggest trying to un-register the shell extension then re-register it (both those steps are here in the User Manual)… but before I could give specifics to help you through that process, I would need to know what version you were using and where your Notepad++ was installed (again, through the Debug Info)

      So, other than “check to make sure Notepad++ is not in Administrator mode”, I cannot give any solid advice until you share your Debug Info.

    • fml2F

      Replace in Files / "Directory" field scrolls right when clicked

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      23
      0 Votes
      23 Posts
      6k Views
      fml2F

      @Alan-Kilborn Hehe, “for in much wisdom is much grief”.

    • Sebastian FreehS

      How to jump to a bookmark and show the bookmarked line at the top of the screen, not in the middle

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · bookmark bookmarks navigation
      32
      0 Votes
      32 Posts
      19k Views
      PeterJonesP

      @Hashir-Maher ,

      I didn’t understand it two years ago when @sky-247 suggested it, and I still don’t understand it now that you reply saying it was a good idea: how does changing font size or zoom level change whether the “jump to next/prev bookmark” takes you to the middle or the top of the screen?

      I mean, I can understand that when zoomed fully in, that there are so few lines that the “middle” and the “top” are close to each other.
      2280b82f-16c2-477a-85f2-c24580232355-image.png

      But when you zoom back to normal, it’s still a few lines from the top, rather being at the top, like was requested. And I don’t see how you can make “jumping to bookmarks feel a lot smoother” using zooming in.

      And if you zoom out, it’s the exact opposite of what the original poster requested in 2020, in that the middle, where it jumps to, is even farther from being at the top of the screen. I mean, if it’s a short enough file, then all the bookmarks will be “near” the top, but it will be unreadable:
      13efed98-64fb-412b-bd31-abc1a3fc8074-image.png
      , and when you return to normal zoom, the window might not be anywhere near the bookmark you just jumped to, so it makes the zoom-out version even more useless than the zoom-in version.

      Can you explain why you think that @sky-247’s suggestion is at all helpful for the original question of how to show the jumped line at the top of the screen?

    • donhoD

      Love the term “some random person”!

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      2
      3 Votes
      2 Posts
      396 Views
      ThosRTannerT

      From here https://xkcd.com/2347/ - I think the author understands our digital infrastructure only too well.

    • L

      Script To Fix ASCII->Hex Byte Limit

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      5
      0 Votes
      5 Posts
      666 Views
      Mark OlsonM

      It occurs to me that I could implement a feature in HugeFiles that would load a chunk of a file, run a plugin command on that chunk, append it to a new file, and repeat for each chunk.

      Such a feature would AFAICT eliminate the need for scripts like the one posted above.

      If this post gets at least 4 upvotes, I will consider implementing this feature. I expect it would be a lot of work but potentially useful.

    • donhoD

      Sometimes when one door closes in life, another one opens

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      1
      7 Votes
      1 Posts
      58 Views
      No one has replied
    • Deniss JohanssenD

      We are with Ukraine

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      4
      -1 Votes
      4 Posts
      1k Views
      王阿喵王

      @Deniss-Johanssen 虽然乌克兰遭到了毁灭,但则连斯基的人民得到了那些所谓的明主自由