- fix ignored-qualifiers warnings
- fix inconsistent-missing-override warnings
- use -O3 flag for GCC builds to keep inline with scintilla and lexilla
- add clang default settings in props
- add clang detection in debug info
Fix#13099, close#13100
update to https://www.scintilla.org/scintilla533.zip with:
1. Released 8 February 2023.
2. Fix SCI_LINESJOIN bug where carriage returns were incorrectly retained. Bug #2372.
3. Fix SCI_VERTICALCENTRECARET to update the vertical scroll position.
4. When an autocompletion list is shown in response to SCN_CHARADDED, do not process character as fill-up or stop. This avoids closing immediately when a character may both trigger and finish autocompletion.
5. On Cocoa fix character input bug where dotless 'i' and some other extended Latin characters could not be entered. The change also stops SCI_ASSIGNCMDKEY from working with these characters on Cocoa. Bug #2374.
6. On GTK, support IME context. Feature #1476.
7. On GTK on Win32, fix scrolling speed to not be too fast. Bug #2375.
8. On Qt, fix indicator drawing past left of text pane over margin. Bug #2373, Bug #1956.
9. On Qt, allow scrolling with mouse wheel when scroll bar hidden.
and https://www.scintilla.org/lexilla522.zip with
1. Released 8 February 2023.
2. C++: Fix keywords that start with non-ASCII. Also affects other lexers. Issue #130.
3. Matlab: Include more prefix and suffix characters in numeric literals. Issue #120.
4. Matlab: More accurate treatment of line ends inside strings. Matlab and Octave are different here. Issue #18.
5. Modula-3: Don't treat identifier suffix that matches keyword as keyword. Issue #129.
6. Modula-3: Fix endless loop in folder. Issue #128.
7. Modula-3: Fix access to lines beyond document end in folder. Issue #131.
8. Python: Don't highlight match and case as keywords in contexts where they probably aren't used as keywords. Pull request #122.
9. X12: Support empty envelopes. Bug #2369.
update CMakeLists.txt to latest changes within vcxproj file
Close#13082
In 94b83158dc, closing doc in document list was on middle mouse button down.
This commit make it on middle mouse button up (for aligning with closing tab behaviour in Notepad++, also with OS middle mouse button click behaviour).
Word autocomplete change from case sensitive search to variable search based on _ignoreCase unless language type is text. This allows text documents to retain case sensitive search to respect typed case as the issue only affects case insensitive Data/Programming languages. If normal.xml exist in the autocomplete folder then xml defaults apply for text so would be case insensitive by default unless overridden by the xml setting <Environment ignoreCase="no" />.
Fix#13060, close#13062
Add translations for these commits:
* Add support selection for "EOL to Space" commands (81a77f13a6)
* Add setting for panels to ignore '-nosession' (307fd2fcd2)
Close#12750
Currently, it's only JSONC (with js comment supported).
It will be enhanced in the future.
Usage: set your file to JSON5 via language menu, or change file extension to .json5 or .jsonc.
Note that the keywords and stylers are shared with JSON.
Fix#11676, fix#11713, close#12761
Prevent in function list panel entries of procedure/function declarations placed in interface section of a Pascal unit as they are superfluous duplicates.
Fix#12693, fix#12687, close#12686, close#12694
1. Fix custom theme (in %APPDATA%) not changing if it is not in default theme dir (in the installation location).
2. Fix default dark theme not applied in dark mode if config is missing (For example, the 1st launch of Notepad++ after its installation).
3. Fix theme not working in cloud issue and portable mode.
Fix#6092, fix#10801, fix#12296, close#12662
Add translations for these commits:
* Add localization for Length label in the Customize Maximum Length popup (bc1487881a)
* Update localization files (11ccc415e7)
* Fix localization files (3fcad98883)
* Fix inconsistencies at OS-forced Notepad++ (v8.4.7) exit (bd4c323d75)
* Make tab context menu customizable (aa8ae48b99)
Close#12542
Also some fix to remove useless space characters.
update to https://www.scintilla.org/scintilla532.zip with:
Released 6 December 2022.
Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix and suffix to be marked as modified in change history.
Draw background colour for EOL annotations with standard and boxed visuals.
Add SCI_GETSTYLEDTEXTFULL to support 64-bit document positions on Win32 replacing SCI_GETSTYLEDTEXT which is not safe for huge documents. Feature #1455.
Send SCN_AUTOCCOMPLETED for SCI_AUTOCSHOW triggering insertion because of SCI_AUTOCSETCHOOSESINGLE mode. Feature #1459.
Change 'paragraph up' commands SCI_PARAUP and SCI_PARAUPEXTEND to go to the start position of the paragraph containing the caret. Only if the caret is already at the start of the paragraph will it go to the start of the previous paragraph. Bug #2363.
Change release compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang.
On Win32, avoid blurry display with DirectWrite in GDI scaling mode. Bug #2344.
On Win32, use the top-level window to find the monitor for DirectWrite rendering parameters. Temporarily switch DPI awareness to find correct monitor in GDI scaling mode. Bug #2344.
On Qt, implement SCI_SETRECTANGULARSELECTIONMODIFIER for all platforms.
On Qt, allow string form XPM images for SCI_REGISTERIMAGE.
and https://www.scintilla.org/lexilla521.zip with
Released 6 December 2022.
Update to Unicode 14. Feature #1461.
Change default compilation optimization option to favour speed over space. -O2 for MSVC and -O3 for gcc and clang.
Batch: Fix comments starting inside strings. Issue #115.
F#: Lex signed numeric literals more accurately. Issue #110, Issue #111.
F#: Add specifiers for 64-bit integer and floating point literals. Issue #112.
Markdown: Stop styling numbers at line start in PRECHAR style. Issue #117.
PowerShell: Recognise numeric literals more accurately. Issue #118.
Close#12624
Implement support for Win32 Namespace prefixed file name in Notepad++.
(Ref: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-file-namespaces)
Support the Win32-filenames escaped by \\?\ or \\?\UNC\, possible globbing in filenames (\\?\C:\fil?.txt) and shell links (\\?\C:\file.txt.lnk) included.
Unsupported (temporarily - it needs further patches for Notepad++):
- any raw filename with length exceeding the MAX_PATH.
- any nonstandard Windows OS filename: with 'dot' or 'space' char(s) at the name end, WinOS reserved ones: AUX, CON, PRN, NUL, COM1-9, LPT1-9 and the ones with invalid ASCII chars in it (0-31, <, >, | , ").
Fix#12453, close#12613
This commit uses the same mechanism (8e85110b5e) for organization of macro menu:
Add attribute `FolderName="sub-menu name"` in "Command" node to have the sub-menu.
Close#12617
This fixes users reported inconsistency in between the usual Notepad++ exit initiated manually by a user and the Windows OS forced one in case that the Notepad++ backup mode is ON.
Fix 2nd part of the #12541Close#12600
Use tabContextMenu_example.xml for the customization:
1. rename to tabContextMenu.xml
2. modify it
3. copy it beside notepad++.exe or to %APPDATA%\Notepad++\ according to your Notepad++ conf
4. relaunch Notepad++
Note for the localization:
1. You have to use the newest localization file (or modify your existing localization file with the newest english.xml).
2. The customized sub-menu entry cannot be translated. User can use his/her native language as value of attribute "FolderName" in tabContextMenu.xml file.
3. User can always add any command beyond the default commands in tabContextMenu.xml file. But such command won't be translated.
Fix#12170, close#12576
Now if the Notepad++ will have an unsaved data and is still running at the OS restart/shutdown, there will be one universal messagebox "Windows session is about to be terminated but you have some data unsaved. Do you want to exit Notepad++ now?".
When Notepad++ backup mode is ON, answer:
- YES ... Notepad++ simply quits (Notepad++ backup engine silently handles all the stuff needed)
- NO ... Notepad++ stays running, user is on his/her own
When Notepad++ backup mode is OFF, answer:
- YES ... Notepad++ behaves identically as in the case of the usual Notepad++ IDM_FILE_EXIT or WM_CLOSE messages (save dlgs appears etc., it depends on the current user Notepad++ settings)
- NO ... Notepad++ stays running, user is on his/her own
Fix v847