Commit Graph

6258 Commits

Author SHA1 Message Date
Christian Grasser e38a0f2ec9 Update to scintilla 5.5.5 & Lexilla 5.4.3
Release 5.5.5 (https://www.scintilla.org/scintilla555.zip)

    Released 25 February 2025.
    Remember selection with undo and redo. Controlled with SCI_SETUNDOSELECTIONHISTORY. Feature #1273, Bug #1479, Bug #1224.
    Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED and SCI_SETSELECTIONSERIALIZED.
    For Win32, update Direct2D and DirectWrite interfaces used to 1.1 and add a lower-level approach to calling DirectWrite 1.1 by specifying SC_TECHNOLOGY_DIRECT_WRITE_1. Since Windows Vista does not support these API versions, Scintilla o longer supports DirectWrite on Windows Vista and will fall back to using GDI.
    Fix segmentation of long lexemes to avoid breaking before modifiers like accents that must be drawn with their base letters. For wrapping, try to break lines without separating letters from modifiers.
    For GTK on Windows, replace reverse arrow cursor with hand as reverse arrow was small in scaled modes. Bug #2460.
    Fix bug on Qt where double-click stopped working when Scintilla instance had been running for weeks.

Release 5.4.3 (https://www.scintilla.org/lexilla543.zip)

    Released 25 February 2025.
    C++: Fix evaluation of != in preprocessor condition. Issue #299.
    Modula-3: Allow digits in uppercase identifiers. Issue #297.
    Pascal: Fix asm style extending past end. Issue #295.
    Python: Fix detection of attributes and decorators. Issue #294, Pull request #302.
    Ruby: Implement substyles for identifiers SCE_RB_IDENTIFIER.
    Ruby: Recognize name as SCE_RB_DEFNAME in def when `::` used as well as `.`. Issue #300.

Close #16235
2025-03-12 16:09:49 +01:00
Don Ho 1068b5359a Notepad++ release 8.7.8 2025-03-08 04:12:53 +01:00
Don Ho 8793825b34 Fix FuncList not refresh correctly due to large files perf improving
Fix #16221 completely
2025-03-07 17:02:20 +01:00
xomx 829cd9d119 Fix FunctionList not refresh correctly on change of current doc's lang
Synchronize FunctionList panel with the current tab/buffer syntax set.
Ensures automatic switching to the currently used tab/buffer lang.

Before, the FunctionList remained populated according to the previously used lang, even if the user switched to a different one. In such a case a manual FL-reload/re-init was needed.

Fix #16221, close #16245
2025-03-07 15:25:05 +01:00
PeterCJ a1f5405387 Fix SQL Backslash Preference state regression (from v8.7)
Move IDC_CHECK_BACKSLASHISESCAPECHARACTERFORSQL BM_SETCHECK from IndentationSubDlg processing to LanguageSubDlg processing to fix the regression in v8.7.

Fix #16249, close #16253
2025-03-06 21:45:22 +01:00
Patriccollu 1331002c74 [xml] Update Corsican translation for Notepad++ 8.7.8
Close #16237
2025-03-06 21:42:56 +01:00
Don Ho ba3b955a45 Fix syntax hiliting err while switch lang on untitled doc regression
The regression was introduced by commit b2152d983e

Fix #16250, close #16254
2025-03-06 21:39:20 +01:00
Don Ho 99d3f86d8b Fix irish.xml copy error in installer 2025-03-02 14:51:52 +01:00
xomx bb0ed32d40 Fix installer silent mode doLocalConf.xml setting handling issue
Fix #16233, close #16234
2025-02-27 17:08:03 +01:00
Don Ho aecc0e4a3b Update French & Taiwanese Mandarin localization 2025-02-26 02:27:32 +01:00
Andrei Miloiu 9044a085fe [xml] Update romanian.xml
Close  #16227
2025-02-25 22:24:11 +01:00
Don Ho 977391c5cb Enlarge the text fields of 2 control for the localization files
Fix #16199
2025-02-25 17:13:51 +01:00
A. Regnander 9008ae79f9 Update swedish.xml
Close #16204
2025-02-25 16:26:12 +01:00
Don Ho eb5ed6c527 Add a new quote 2025-02-25 05:08:55 +01:00
Don Ho 0a42806515 Fix regression of keeping saving backup file even w/o modification
The regression was introduced by commit fc051a1231, and the regression is from v8.7.1 to v8.7.7.

Fix #16186, close #16225
2025-02-24 23:49:11 +01:00
xomx 72e44cea4d [xml] Update czech.xml to v8.7.8
Close #16224
2025-02-24 13:52:50 +01:00
Don Ho 123f5abc1c Remove deleted line from the localization files 2025-02-24 04:45:12 +01:00
kubalav c93d769863 [xml] Update Slovak translation
Close #16168
2025-02-24 01:42:37 +01:00
rddim 624152be67 [xml] Update Bulgarian localization
Close #16170
2025-02-24 01:40:30 +01:00
schnurlos afcf7af123 [xml] Update german.xml
Following 706d7ae6de (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472) & e094814133

Close #16171
2025-02-24 01:39:10 +01:00
Matteo Concato 9694f95562 [xml] Update italian.xml
Close #16222
2025-02-24 01:33:48 +01:00
Marcellomco 933097b5f1 [Xml] Update brazilian_portuguese.xml
Added translation for "Set User Defined Languages online help to Notepad++ User Manual URL"

Close #16164
2025-02-24 01:29:52 +01:00
Andrei Miloiu 250fe38032 [xml] Update romanian.xml
Close #16166
2025-02-24 01:11:22 +01:00
Krazal 5b45909550 Update hungarian.xml
Consolidated updates since v8.7.3:
• Add "User Defined Languages online help"
• Make some translations more professional
• Make translation up-to-date (adding support for other Scintilla rendering modes)

Close #16209
2025-02-24 00:17:23 +01:00
Karlo-F 9b334f1a52 [xml] Update croatian.xml to v8.7.8
Close #16220
2025-02-24 00:15:48 +01:00
~GOLEM~ dba97be975 [xml] Update russian.xml v8.7.8
Close #16178
2025-02-24 00:13:35 +01:00
yasmise bdf84ef57a [xml] Update japanese.xml
Update japanese translation file for this commit:
* Set User Defined Languages online help to Notepad++ User Manual URL (e094814)

Close #16174
2025-02-23 20:06:45 +01:00
Don Ho 3d4a53adb4 Add the ability to hide selected toolbar buttons via a XML conf file
Usage:
Move & rename toolbarButtonsConf_example.xml to %APPDATA%\Notepad++\toolbarButtonsConf.xml, modify the XML file content & save it in your favorite editor (Notepad++, whatelse? ;) ), then relaunch Notepad++.

This PR simplies largely the logic of PR #15999 to make the code maintainable.

Fix #15106, fix #15440, fix #16000, close #16216
2025-02-22 20:31:05 +01:00
Don Ho 83755ca155 Improve folding/unfolding performance for large files
- Use the Scintilla dedicated command SCI_FOLDALL to replace the inefficient loop for "Fold All" command.
- Fix "Fold level" & switching back to large files folding performance.
- Refactoring the hide/show lines functions.

Note that there might be a regression of URL link:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16200/files#r1961937279

The commit is based on code of #16064.

Fix #16064, close #16200
2025-02-22 17:23:58 +01:00
Coises a52738c1dd Fix count operation on regex makes Notepad++ hang
Fix #16207, close #16208
2025-02-22 15:32:48 +01:00
PeterCJ 17287d7567 Style Configurator: reorder Global Override style in all themes
Fix #16214, close #16215
2025-02-21 21:48:49 +01:00
PeterCJ c2f84143d9 Enhance Style Configurator: reorganize Language and Styles
Change Language to a COMBO and stack them so they can be wide rather than narrow.

Fix #15939, close #16212
2025-02-21 21:42:01 +01:00
xomx fd2157729a Make other existing Scintilla rendering technology modes accessible
Adding support for other Scintilla rendering modes:
* SC_TECHNOLOGY_DIRECTWRITERETAIN (2)
* SC_TECHNOLOGY_DIRECTWRITEDC (3)
* SC_TECHNOLOGY_DIRECT_WRITE_1 (4)

Fix #16126, close #16201
2025-02-19 18:42:39 +01:00
Liushui 414baea93c Add latest AS3 keywords for auto-completion
Close #16189
2025-02-16 16:07:40 +01:00
PeterCJ 4f295de864 Adds SAS programming language support
Enable Sctintilla's SAS lexer, populate langs.model, stylers.model, and themes.
(includes keyword lists from UDLs, notepad4, and SAS documentation)

Fix #16148, close #16183
2025-02-16 15:45:47 +01:00
Don Ho 7ac7f9a0e6 Remove unecessary lines for accelerating switching into large files
ref: #16064
2025-02-14 18:05:41 +01:00
Don Ho 0b98007883 Minor refactoring & rename varibles 2025-02-13 15:12:45 +01:00
Don Ho 5dfc9709c9 Fix a syntax highlighting regression while switching among UDL files
Fix #16154, close #16181
2025-02-13 02:40:38 +01:00
xomx abbe60e74c Allow using the Scintilla DirectWrite in non-Core Windows Server
Fix #15916, close #15921
2025-02-09 12:28:06 +01:00
Don Ho db0bc136d6 Use a common abbreviation of a specific control code
Use VTS instead of LTS.

Fix #16107, close #16138
2025-02-08 17:13:59 +01:00
Don Ho e094814133 Set User Defined Languages online help to Notepad++ User Manual URL
Fix #13737
2025-02-08 16:18:14 +01:00
Don Ho b2152d983e Optimize switching programming language performance for large files
Fix #16106, close #16109
2025-02-07 19:39:57 +01:00
Don Ho 706d7ae6de Notepad++ release 8.7.7 2025-02-07 15:42:32 +01:00
schnurlos ec961c895c [xml] Update german.xml
Close #16101
2025-02-03 07:32:21 +01:00
Don Ho d888fb5f12 Improve NPPM_ADDSCNMODIFIEDFLAGS API
Improve NPPM_ADDSCNMODIFIEDFLAGS API so plugins can call it anytime for taking the effect immediately.

Ref: https://community.notepad-plus-plus.org/topic/26595/new-api-to-fix-eventual-regression-regarding-scn_modified-for-some-plugins/9?_=1738384417702
2025-02-01 07:26:25 +01:00
Don Ho 80319a71ee Improve the code example of new API NPPM_ADDSCNMODIFIEDFLAGS
Fix https://community.notepad-plus-plus.org/topic/26595/new-api-to-fix-eventual-regression-regarding-scn_modified-for-some-plugins/9?_=1738384417702
2025-02-01 06:34:34 +01:00
Don Ho 6fd3830b42 Add NPPM_ADDSCNMODIFIEDFLAGS to fix regression for Plugins
Add **NPPM_ADDSCNMODIFIEDFLAGS** message for plugins which need the SCN_MODIFIED notification of other events.

BOOL NPPM_ADDSCNMODIFIEDFLAGS(0, unsigned long scnMotifiedFlags2Add)
Add needed SCN_MODIFIED flags so your plugin will recieve the notification SCN_MODIFIED of these events for your specific treatments.
By default, Notepad++ only forwards SCN_MODIFIED with the following 5 flags/events SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT | SC_PERFORMED_UNDO | SC_PERFORMED_REDO | SC_MOD_CHANGEINDICATOR to plugins.
If your plugin need to process other events of SCN_MODIFIED, you should add the flags you need by sending this message to Notepad++, just after recieving NPPN_READY.
wParam: 0 (not used)
lParam[in]: scnMotifiedFlags2Add- Scintilla SCN_MODIFIED flags to add.
Return TRUE

Ref: https://community.notepad-plus-plus.org/topic/26588/notepad-v8-7-6-released/2?_=1738167940554

Fix #16121, close #16120
2025-01-31 18:25:04 +01:00
Don Ho 5f004411af Notepad++ release 8.7.6 2025-01-28 08:20:49 +01:00
Don Ho 8042e50b19 Remove unnecessary calls to remedy the plugin issue (regression)
Ref: https://community.notepad-plus-plus.org/topic/26567/notepad-v8-7-6-release-candidate/6?_=1737703232720
2025-01-24 08:18:27 +01:00
IoeCmcomc 3eb1253d50 [xml] Update Vietnamese.xml to v8.7.6
Close #16098
2025-01-22 03:40:09 +01:00