6644 Commits

Author SHA1 Message Date
Randy Fellmy
e30a4d6788 Fix context menu truncated regression on localization change
Don't skip preliminary switch to English when changing Localization to English -- it breaks NppParameters::getContextMenuFromXmlTree.

Regression was introduced by:
446cc980e8 (diff-686f6d3c1ec15b51f312bb5a68130dfa62292a8d19594fb0f3621c179970fa1fR816)

Fix #17249, close #17250
2025-12-02 16:10:45 +01:00
Christian Grasser
ac46fab1d2 Update nlohmann json to version 3.12.0
from https://github.com/nlohmann/json/releases/download/v3.12.0/json.hpp

Close #17242
2025-12-02 03:08:24 +01:00
PeterCJ
c64b81e3a3 Add update users' langs.xml & stylers.xml from model XML files ability
- langs.model.xml -> langs.xml
    - Copy any missing <Language> element/hierarchy from model to langs.xml
    - Copy any missing <Language> attribute from model to langs.xml
    - Copy any missing <Keywords> element from model to langs.xml
    - Copy any missing words in <Keywords> element from model to langs.xml

- stylers.model.xml -> active stylers.xml or themes\___.xml
    - Copy any missing <LexerType> element/hierarchy from model to destination
    - Copy any missing <WordsStyle> element from model to destination
    - Copy any missing <WordsStyle> attribute from model to destination (for example, required to fix local config when keywordClass was added to model but isn't in theme)
    - Copy any missing <WidgetStyle> element from model to destination
    - Copy any missing <WidgetStyle> attribute from model to destination

- stores the .model.xml file's MD5 in the modelMD5 attribute in the active langs.xml and stylers.xml||themes\___.xml, and doesn't bother checking against the .model.xml if the model's MD5 hasn't changed.

The logic will never remove or overwrite existing information: it will just add things that are in the model that aren't in the user copy.

Fix #17128, close #17205
2025-12-02 01:49:48 +01:00
xomx
878b00e53f Fix corrupted file loading for Windows full UTF-8 Code page System
Fix corrupted file loading for UTF-8 files bigger that the Notepad++ blockSize when using default system CP 65001.

Notepad++ loads files in chunks of blockSize (128 * 1024 + 4 == 131076). For the 1st chunk, it detects the possible BOM present, but for the later chunks not.
If there is the Windows Region Administrative feature "Beta: Use Unicode UTF-8 for worldwide language support" ON, Notepad++ currently fails to correctly set the file encoding for the later file-chunks loaded.

The wrong logic was introduced by:
8149f72#diff-2d5c277be2799a7e43a90232d8ef9add2e788e252c8692bf9416abc69836957d

Fix #17234, close #17237
2025-12-01 20:02:09 +01:00
ozone10
86e3be5f6e Fix wrong system font scaling on Windows 7
Fix #17066, close #17238
2025-12-01 18:22:51 +01:00
Don Ho
bcf2aa68ef Security Enhancement: verify certificate & signature on update installer
Force WinGUp to verify the code signing certificate & to validate the signature on the downloaded installer.
If the signature is not valid or the certificate is incorrect, the update will be aborted.
2025-12-01 02:03:35 +01:00
Don Ho
db3ff05efb Make Command Line Arguments more readable 2025-11-30 17:23:02 +01:00
Don HO
e7b5a47f0d MSI code enhancement: refactoring and break down the big file to small ones 2025-11-27 20:38:26 +01:00
Don HO
8bec8ecc40 MSI improvement: Suppres REBOOT & add NOUPDATER option
Ref: https://community.notepad-plus-plus.org/topic/27250/notepad-8-8-8-release/12
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2326#issuecomment-3578029731
2025-11-26 19:19:24 +01:00
ozone10
95dc9dcfd2 Code enhancement: Use modern subclass on ScintillaEditView
Fix #17229, close #17230
2025-11-24 23:52:43 +01:00
xomx
25792fcf29 Undo & redo enhancement: restore vertical scroll position
Support the Scintilla v5.5.7+ SC_UNDO_SELECTION_HISTORY_SCROLL flag.

Close #17194
2025-11-24 20:47:35 +01:00
xomx
9a1c7c5be0 Fix mouse wheel horizontal scrolling amount not respecting Windows setting
Let the Scintilla handle the original WM_MOUSEHWHEEL (instead of changing it to WM_HSCROLL).

Fix #9480, close #17193
2025-11-24 20:27:20 +01:00
ozone10
477d2c06e4 Fix document map regression with keyboard input
- fix some warnings
- optimize document map global variables

Regression is introduced by: 7da0c061d9

Fix #17224, close #17225
2025-11-24 19:37:53 +01:00
Blackspirits
9f658e1d44 Improve some localization descriptions
Close #17218
2025-11-24 18:59:51 +01:00
ozone10
8e01545f35 Code enhancement: Use modern subclass for Finder
- fix some warnings

Fix #17222, close #17223
2025-11-24 18:30:26 +01:00
Don Ho
a8dfadefe8 Use an explicite function name 2025-11-24 17:52:00 +01:00
ozone10
4184d7cbbb Fix wrong keywords used for HTML lexer
- fix some warnings
- remove unused function

Fix #17220, close #17221
2025-11-24 16:33:27 +01:00
Christian Grasser
b06678d738 Update to Scintilla 5.5.8 & Lexilla 5.4.6
Scintilla Release 5.5.8 (https://www.scintilla.org/scintilla558.zip)

    Released 10 November 2025.
    Change format for SCI_GETSELECTIONSERIALIZED. Feature #1563.
    Ensure selection drawn correctly when selection restored by undo. Bug #2487.
    Update to Unicode 16. Feature #1569.
    Fix bug when indenting rectangular selection. Feature #1567.
    Add PTRDIFF_DOESNT_ALIAS_INT preprocessor choice.
    On Win32, force autocompletion list colours to be opaque. Enlarge bitmap to avoid visible blank background between items. Bug #2482.
    On Cocoa, fix crash with bidirectional mode when scrolled before start of document.
    On Cocoa, use same default calltip colours as other platforms for consistency. Bug #2486.

Lexilla Release 5.4.6 (https://www.scintilla.org/lexilla546.zip)

    Released 10 November 2025.
    Lexer added for SINEX "sinex". Pull request #329.
    Update character categories to Unicode 16. Feature #1569.
    Errorlist: Allow "bright" ANSI sequences (ESC[90m - ESC[97m). Pull request #332.
    Progress: Treat '.' as part of compound identifiers instead of as an operator between identifiers. Pull request #316.
    Python: Support t-strings t\"var={var}\" added by Python 3.14. Pull request #328.

Close #17191
2025-11-23 21:09:16 +01:00
ozone10
c696f6fa79 Optimize constants in ScintillaEditView.h to reduce binary size
by using inline/static constexpr.

Fix #17198, close #17199
2025-11-22 16:07:10 +01:00
ozone10
ebf3657d67 Use modern subclass on FindReplaceDlg combo boxes
- fix regression with temp search text not recovered
- fix warnings with overloaded virtual functions

Fix #17202, close #17203
2025-11-22 15:39:52 +01:00
Gurparshad Bansal
0745cd922d Add field-sizing as 1 of keyword of CSS for syntax highlighting
Fix 17208, close #17209
2025-11-21 23:24:41 +01:00
ozone10
9a4e1c468e Update issue templates
- update Github Actions dependencies

Close #17210
2025-11-21 23:08:52 +01:00
Don Ho
ea572cec88 Code enhancement: Make returned value safer
A crash regression (Fixed by cf0a5c8edc) has been caused by the returned null pointer.
This commit makes the returned value safer: use empty string instead.

Close #17212
2025-11-21 19:57:07 +01:00
Don Ho
1f3b2ebe2d Fix "Select & Find Next" command not working regression
Regression introduced by:
be59048c5e (diff-ce3b24898ed0287ecacacc4d6c1712fb9eaf1ed67b36fd87315b8e80950de03aL1463)

Fix #17200, close #17206
2025-11-21 18:01:12 +01:00
ozone10
c6aa7f9ec8 Code enhancement: Remove old dpiManager
- fully replace it with V2
- add text scaling support to task dialog list
- modernize task dialog code
- clean and remove unused include headers

Close #17189
2025-11-20 17:35:00 +01:00
ozone10
2cdc66501a Code enhancement: Use subclass for menu bar
- clean header includes
- use static constexpr for compile-time calculated variables

Fix #16444, close #17178
2025-11-20 03:46:06 +01:00
Don HO
9d87ac96d1 Notepad++ v8.8.8 release v8.8.8 2025-11-18 17:50:39 +01:00
Don HO
3daa59326d Security enhancement: Add force domain URL from Notepad++ for update
From Notepad++ side, force domain prefix of download url (of WinGUp) to prevent the download URL from being hijacked.

Ref: 59c9938e29
2025-11-16 20:19:13 +01:00
Don HO
a9ceeb5192 Update azerbaijani.xml
Close #17084
2025-11-12 21:27:44 +01:00
Don HO
16683667e1 Fix an small error in path 2025-11-12 18:31:36 +01:00
Don HO
dc4660364b Better MSI build integration 2025-11-12 03:01:00 +01:00
Waldi Ravens
3a1c88c57d Update dutch.xml to 8.8.7
Close #17177
2025-11-11 16:18:10 +01:00
Don HO
c4587de442 Add Notepad++ MSI for enterprise IT deployment
Dev environment:
* Wix Toolset v6.0.2
* .Net SDK 8.0.415

The Notepad++ MSI is for enterprise IT deployment only (and x64 only). For users who want to customize their installation, kepp using NSIS installer.

Fix #2326, fix #2368, fix #16767, close #17169
2025-11-11 03:49:55 +01:00
xomx
b129dad6f5 [xml] Update czech.xml
Close #17175
2025-11-11 02:54:17 +01:00
yasmise
9fda542221 [xml] Update japanese.xml
Add Japanese translation lines for this commit:
* Add tab label length limitation option to have reasonable tab width (d6ad801)

Close #17144
2025-11-10 19:16:24 +01:00
kubalav
d43a785f5f [xml] Update Slovak translation
Close #17139
2025-11-10 19:15:06 +01:00
~GOLEM~
5f08c0790f [xml] Update russian.xml
Close #17146
2025-11-10 19:13:34 +01:00
Richárd Stockinger
6613fba850 [xml] Update hungarian.xml
1. Translate "Add tab label length limitation option" feature (see: d6ad801)
2. Fix (shorten) too long Format labels in the Column Editor

Close #17147
2025-11-10 19:11:46 +01:00
schnurlos
64f9a46346 [xml] Update German language file
Following d6ad80125d & 7837bf1070

Close #17151
2025-11-10 19:07:30 +01:00
Marcellomco
d37bb5bca6 [xml] Update brazilian_portuguese.xml
Close #17138
2025-11-10 19:05:49 +01:00
Karlo-F
3177dfc609 [xml] Update croatian.xml
Close #17155
2025-11-10 19:02:21 +01:00
Waldi Ravens
af52b54142 Update dutch.xml to 8.8.1
Close #17095
2025-11-10 18:59:34 +01:00
rddim
f61398a8f2 [xml] Update Bulgarian localization
Close #17160
2025-11-10 18:57:52 +01:00
flybird
c37ee66642 Update chineseSimplified.xml to 8.8.6
Close #17085
2025-11-10 18:55:46 +01:00
A. Regnander
0bfcd72038 Update swedish.xml
Added new strings, fixed indenting for ColumnModeTip, reworded some menu entries

Close #17171
2025-11-10 18:40:31 +01:00
Don Ho
75fc7e9bd0 Update Taiwanese Mandarin & French localization files (v8.8.7) 2025-11-10 18:16:07 +01:00
ozone10
bf646f0e16 Update dpiManagerV2 API
- enable PmV2 dpi handling for Plugins Admin, Preference, and Style Configurator dialogs

Close #17165
2025-11-10 16:38:45 +01:00
ozone10
00ed50fcac Fix text scaling not applying on some controls
- fix text scaling for FindReplace dlg buttons
- fix text scaling for Hash dlg edit controls
- remove unneeded subclass for FindReplace dlg swap button
- remove unused header includes in Common.cpp

Fix #17167, close #17168
2025-11-10 05:05:20 +01:00
Don HO
3ae5af89e9 Add forgotten localization file in installer 2025-11-09 21:13:03 +01:00
ozone10
7da0c061d9 Use modern subclassing on some controls
- string dialog edit control
- document map
- preference dialog edit control for vertical edge
- document list list view
- document switcher
- hash dialog edit controls

Fix #17158, close #17159
2025-11-08 19:17:37 +01:00