• Close on last tab exit missing in settings

    General Discussion
    2
    0 Votes
    2 Posts
    30 Views
    PeterJonesP

    @Erin-Phillips ,

    In v8.8, the tab bar settings were moved to their own page of preferences, no longer in General.

    2f342be0-f3f6-4e55-9141-23e28da560bd-image.png

    See the v8.8 release notes or the user manual.

    Occasionally, preferences are moved to a different or separate page of the dialog, because new options require more room than exist on the original page – for example, recent additional tab bar settings made it impossible to fit them all with the “general” settings, so they were moved to their own page, so that there’s room for them again.

    The User Manual tries to note all of those moves, so if you have a preference that you cannot find, just search for the preference text (like last tab or exit on close), and it will tell you where it moved to, and where it used to be. (After a few years, the “(changed in vX.Y.Z)” is removed, to avoid too much clutter; but we try to make it easy to find.)

  • File empty after opening it as Adminitrator

    Security
    2
    0 Votes
    2 Posts
    47 Views
    PeterJonesP

    @podlipom51-podlipom51 said in File empty after opening it as Adminitrator:

    I was unable to save file. Suggested to open as Administrator after accepting my file is empty. It is very important file for me what to do?

    Where were you trying to save the file? To somewhere in c:\program files\ or c:\windows or similarly protected area? Or were you trying to save to a normal writeable directory on your machine’s local drive? Or a mounted network drive? Because it only suggests Administrator if it gets a “permission denied” error when you try to write the file.

    after accepting my file is empty. It is very important file for me what to do?

    Bummer. Unfortunately, if you already restarted Notepad++, and it didn’t have the Settings > Preferences > Backup set to take “session snapshots and periodic backups”, your unsaved changes were never written to disk anywhere. As soon as Notepad++ exited, those bits were removed from active memory, and were lost. Since the files were likely never written to disk, I doubt that an external file-recovery utility like Recuva would work for you, but you might try directing such at the `c:\users<username>\AppData\Roaming\Notepad++\backup

    See our FAQ on backups for more details about how the Notepad++ backup settings work, how the AutoSave plugin can help improve things, and best-practice suggestions for avoiding data loss in the future.

    Also, I think one of the frequent contributors is actively working on a solution to have Notepad++ be able to get UAC permission for a file-save without needing to restart the application – such a feature would definitely help in your case. Unfortunately, I’ve spent the last few minutes trying to find the Issue or PR where that was being discussed, and haven’t found it yet.

  • Notepad++ v8.8.2 Release

    Announcements
    15
    4 Votes
    15 Posts
    7k Views
    PeterJonesP

    @Craig-Harbison said in Notepad++ v8.8.2 Release:

    I have both 8.8.2 and 8.8.3 versions.
    they both work fine on my Win10 laptop but neither will read or let me edit my json files on my new Win11 laptop.

    Really sucks.

    I can read and edit JSON just fine with both those versions. I doubt it’s a regression, but we can help you investigate what’s going wrong for you if you start a new Topic to discuss it. If it does end up finding a problem with Notepad++, we can then direct you to the right location to inform the developer.

    If you really want help figuring out your problem, please go to the Help Wanted category, click New Topic, and write a detailed post: list your exact steps for how you are trying to read or edit JSON (ie, how you are opening the files, where the files are located, whether on your local drive, a USB drive, a network drive, etc) and what messages or circumstances indicate to you that the JSON file is not being read or edited? Please also go to your ? menu on the right of the Notepad++ menu bar, and click Debug Info, and Copy debug info to clipboard, and paste that in your new topic.

  • update notepad++

    Help wanted · · · – – – · · ·
    12
    0 Votes
    12 Posts
    25k Views
    PeterJonesP

    @lιƒєlιηє-__,

    Just press the question mark (?) button in Notepad++, located near the Windows key,

    The Windows key is a physical thing on the keyboard, the ? menu is a graphical element you can click in the Notepad++ menu bar. How a menu-entry can be “near” a key on your keyboard is completely and totally beyond comprehension.

    If you’re going to bother posting to a topic that had been answered and left dormant years ago, the least you could do is not bring in false information.

    (And the advice to “press the question mark (?) button … and click’Update Notepad++'” had already been given in various forms three years ago. So that added nothing new.)

  • 0 Votes
    52 Posts
    6k Views
    Alan KilbornA

    @Alan-Kilborn said in Running a macro on all the open docs ?.:

    Here’s the PS bug report: …

    The aforementioned bug is fixed in PS release 3.0.23.

  • 2 Votes
    9 Posts
    175 Views
    Alan KilbornA

    @Neil-Schipper said in "Join Lines" with trailing whitespace anomaly, older npp versions:

    I couldn’t see a way to edit the commit msg

    Well, the owner of it would be the only one with the power to edit it.

    or even leave a comment

    Not everything is commentable.

    so I invite a keener to fix it as the task is beyond my weight class

    No one would really want to expend the tedious effort required to fix it (make the links go to the right place). It’s an unfortunate copy/paste result. Perhaps in the future more attention will be paid to it and Notepad++ could be used to replace # with “base url to Scintilla bug list site”.

  • Closing np++ closes program behind it.

    General Discussion
    3
    0 Votes
    3 Posts
    88 Views
  • Digital certificate for open source projects

    Security
    3
    0 Votes
    3 Posts
    90 Views
    xomxX

    @PeterJones said in Digital certificate for open source projects:

    be able to trace that signature to a Certificate Authority in the windows certificate manager store

    IMO - not an option for N++.
    Even the GitHub does not recognize the sign, so I doubt the MS will, moreover the needed x509 cert is a short-lived one (expires immediately?):

    https://docs.sigstore.dev/about/faq/#i-signed-my-commit-with-gitsign-but-it-shows-up-as-unverified-in-my-github-repository-page-why

    The Sigstore CA root is not a part of GitHub’s trust root. Gitsign’s ephemeral keys are only valid for a short time, so using standard x509 verification would consider the certificate invalid after expiration. Verification needs to include validation via the transparency log to verify that the certificate was valid at the time it was used.
  • Read-Only does not work

    Help wanted · · · – – – · · ·
    8
    1 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @Alan-Kilborn said:

    Ideally there would be three options:

    clear readonly (as it now functions) make readonly in Notepad++ (as it now functions – only disallows you from editing in the buffer – file system attribute unaffected) set readonly (currently missing! would set the readonly attribute in the file system as well as disallow editing in N++ buffer)

    In Notepad++ 8.8.2 and later are two “new” checkmarkable choices at the bottom of the Edit menu:

    5886cb49-dc35-4684-a952-f1d43fd6906e-image.png

    I use quotes because they aren’t entirely new; they replace old items whose functionality has been reworked a bit to cover all needs.

    The menu text is fairly self-explanatory for the functionality.

    Really, the only new part of it is that the readonly attribute in the file system can now be set as well as cleared.

    One more bit of newness: When the file system’s readonly attribute is set on a file, its tab icon will appear with an F on it, presumably standing for “File System”. (Truly, it would have been better for the menu text to have been “Read-Only Attribute in File System”…)

    Also, there can be a double level of protection: If Read-Only in Notepad++ is set first, then the Read-Only Attribute in Windows is applied, Read-Only in Notepad++ will be greyed but still checkmarked. Later if Read-Only Attribute in Windows is removed, Read-Only in Notepad++ will again be enforced.

    I’m sure all this and more appears in the user manual, I’m just modernizing an old thread here in case someone reading this is confused by the now outdated info above.

  • 0 Votes
    2 Posts
    43 Views
    PeterJonesP

    @Fern99 ,

    A few years back, I shared a macro here that pasted the clipboard and then adds a newline sequence. I think this is what you want.

  • Notepad++ replacing '!='

    Help wanted · · · – – – · · ·
    6
    1 Votes
    6 Posts
    468 Views
    PeterJonesP

    @Michael-Goessmann-Matos said,

    @PeterJones

    Actually, I configured Notepad++ to update as soon as an update is available so I wonder how this could have happend.

    As I said above,

    or you previously had an older version that got upgraded without changing your setting (if you originally had DirectWrite off, and upgraded to a version that had it on by default, it would not generally overwrite your previously-saved setting).

  • XBrackets Lite v1.4.0 has been released!

    Notepad++ & Plugin Development
    5
    2 Votes
    5 Posts
    115 Views
    Michael VincentM

    @Vitalii-Dovgan said in XBrackets Lite v1.4.0 has been released!:

    The uniqueness of XBrackets is in its external simplicity and internal complexity.

    Thank you. I get 3) from the SurroundSelection plugin. Notepad++ has “Go To Matching Brace” in Search menu, but I think it only includes { [ ( ) ] }, not quotes.

    Cheers.

  • 0 Votes
    4 Posts
    51 Views
    Alan KilbornA

    @Alan-Kilborn said:

    I think it should be an absolute requirement that the title bar always starts with Notepad++ -

    Hmm, this is what I get for posting when I don’t have Notepad++ right in front of me (i.e., I get it wrong). :-(

    Now that I have it in front of me, the Notepad++ title bar shows pathname - Notepad++ or filename - Notepad++.

    My point was mainly about Notepad++ remaining somewhere in the titlebar, because this bit of consistency aids in other programs in locating the N++ main window, via the FindWindow Win32 API call. I do this a fair amount, and thus I’m projecting that I’m not alone and that others do this as well.

    Here’s a bad example; some PythonScript code:

    notepad.hwnd = user32.FindWindowW(u'Notepad++', None)

    (It’s “bad” because it isn’t necessary any longer, because newer versions of PythonScript have the notepad.hwnd variable predetermined for you – but for a long time this was not the case)

    But, if Notepad++ weren’t in the title bar text, it would not be as “easy” to locate the window, for those that need to.

    Note that the OP made no suggestion to drop Notepad++ from the title bar text; I was just thinking if the original idea was extended (as tends to happen), I’m sure someone would come up with that idea. And @Coises did call the text redundant, so that could be construed as a first step at “removal” – in quotes because of course all of these suggestions would be for optional things.

  • 0 Votes
    11 Posts
    98 Views
    Alan KilbornA

    @PeterJones said:

    The script he was linking to is now in the second post in this topic.

    OK.

    I think the use of “script” for that (OP’s usage, not Peter’s) is a bit confusing.
    It’s just a command-line invoking Notepad++, albeit a rather complex one.
    I understand that it could be called a “shell script”, of course.

  • 4 Votes
    1 Posts
    64 Views
    No one has replied
  • 0 Votes
    9 Posts
    1k Views
    EkopalypseE

    @notdodgeball

    thanks - I’ve changed it accordingly.

  • 0 Votes
    8 Posts
    252 Views
    Vitalii DovganV

    @Coises

    SCI_BRACEMATCH is pretty useful as well, when dealing with (), [], {} and <>.

    As for “” and ‘’ (as well as other possible situations when SCI_BRACEMATCH returns -1), the internal functions findLeftBracket and findRightBracket in XBrackets Lite do pretty good job there.

    The exported functions GoToMatchingBracket and SelToMatchingBracket already work, though may need some tuning. The source code is here:
    https://github.com/d0vgan/npp-XBracketsLite/commits/feature/GoToNearestBr/

  • 0 Votes
    8 Posts
    140 Views
    Alan KilbornA

    @PeterJones said in Legacy Print dialog freeze (Windows):

    In Emacs (and possibly other unixy apps), control key combos are indicated with…

    Nice to know, I guess, but I could’ve lived without that knowledge. :-)

    As Notepad++ is a Windows (only) app, let’s try to stick to its (and Windows’) notations when discussing it: Ctrl+X Current Microsoft notation

  • 9 Votes
    45 Posts
    11k Views
    PeterJonesP

    @Lycan-Thrope said in Config Files Need Updating, Too:

    more likely you’re just overworked and missed

    Typo fixed

  • Editar formulas de excel en Notepad

    General Discussion
    8
    0 Votes
    8 Posts
    128 Views
    Chris Martin 1C

    Hola Jhorbam,

    Lo que estás buscando se puede lograr parcialmente en Notepad++ utilizando resaltado de sintaxis personalizado (User Defined Language, UDL). Notepad++ no tiene soporte nativo para fórmulas de Excel, pero puedes crear una definición de lenguaje personalizada que resalte palabras clave como SUMA, PRODUCTO, operadores como +, =, *, (, ), y los signos de dólar $.

    Pasos para hacerlo: Abre Notepad++. Ve a “Lenguaje” → “Definir tu lenguaje…”. Crea un nuevo lenguaje con un nombre como ExcelFormulas. En la pestaña “Palabras clave”, añade funciones de Excel que uses, como SUMA, PRODUCTO, SI, etc. En la pestaña “Operadores y delimitadores”, puedes agregar =, (, ), {, }, $, y otros símbolos. Personaliza los colores de texto para que se parezcan a los del editor de fórmulas de Excel. Guarda tu configuración y aplícala al archivo.

    Esto no será tan avanzado como el editor de fórmulas de Excel, pero puede ayudarte visualmente al copiar y revisar fórmulas extensas.

    También puedes exportar/importar configuraciones si quieres compartir tu UDL con otros.

    Saludos.