Commit Graph

4649 Commits (3750cf8fa34470e3196fd041254960d88534cd80)

Author SHA1 Message Date
yasmise e99d2eb696 update japanese.xml to v8.1.9.2
Added these translations:
* Add "Notepad++ User Defined Languages Collection" project website ... (add9f64104)
* Update english.xml (7aa0a56320)

Close #10848
2021-12-05 01:10:54 +01:00
kubalav 1574deb570 Update Slovak translation to 8.1.9.2
Close #10834
2021-12-05 01:07:31 +01:00
rddim a4c29c96c1 Update Bulgarian localization
Close #10830
2021-12-05 01:00:56 +01:00
Patriccollu 1ae7490092 Update Corsican translation for Notepad++ 8.1.9.3
Close #10813
2021-12-05 00:58:59 +01:00
Hugo Carvalho 50ed14367e Update portuguese.xml v8.1.9.1
Close #10808
2021-12-05 00:55:54 +01:00
Don Ho acb8a9db47 Add logs for nul content corruption issue
These logs are written for debugging NUL file-corruption issue (#6133) and session lost issue (#10402) which are still problematic probably.
The writting log info will be triggered only when Windows notifies Notepad++ to end session.
The log file will be in "%APPDATA%\Notepad++\" or in Notepad++ installation folder if doLocalConf.xml is present.
To disable the log, just remove nppLogNulContentCorruptionIssue.xml.

Close #10871
2021-12-04 15:33:32 +01:00
Don Ho 1039c10bae Add lua function list into installer 2021-12-04 03:07:18 +01:00
Simon Buhrow feac018149 Add lua function list capacity
Fix #4563, close #10867
2021-12-04 02:27:15 +01:00
Don Ho 12a13b1c0a Fix saving file and false alert on network drive issues
And add log ability for debugging network drive file status detection issue.

To activate log, user should:
1. Add an empty "nppLogNetworkDriveIssue.xml" file beside of notepad++.exe, or if user has no admin previlege, he/she can add this file into %APPDATA%\Notepad++\.
2. Create "C:\temp\" directory, if it doesn't exist yet.
3. Start notepad++.exe, and wait for the file status (timestamp) detection error from the network drive. If the errors occur, there should be some trace in "C:\temp\nppLogNetworkDriveIssue.log".

People who have had the network drive file status detection issue in #10688, #10753, #10757, #10751 & #10787 are welcome to download the binary and provide the generated log in order to fix this issue.

Fix #10751, fix #10688, fix #10753, fix #10757, fix #10751, fix #10787, close #10847
2021-12-01 20:42:35 +01:00
Don Ho e87342fef6 Fix Notepad++ dockable panels lose bg color issue when swiching it back
It's rather a bug of Windows' API than the bug of Notepad++. The visual glitch comes from TreeView (FunctionList, Folder As WorkSpace, Project Panels etc ...) but ListView (ASCII Insertion Panel & Document List) works fine.
I have done some fixes about this issue. However, it's not perfect when use mouse to do the snapshot.
OTOH, once the click done to show Notepad++, it becomes normal.
This is the best fix I can offer for this bug.

Fix #2202, fix #2937, fix #5980, fix #8980, fix #9905, fix #10091
2021-12-01 02:32:33 +01:00
Don Ho bab3573be7 Fix detection of backup file restored back problem
Fix #10839, close #10843
2021-11-27 16:27:59 +01:00
vlakoff e7bf582ffd Add some new PHP 7.3 function keywords
Add some new PHP 7.3 function keywords for highlighting and autocompletion.

Fix #8410, close #10819
2021-11-27 05:02:03 +01:00
jimcarst 567e0456bb Support "Taggle line comment" command for LaTeX
Fix #10836, close #10837
2021-11-27 04:48:54 +01:00
rddim 7aa0a56320 Update english.xml
Close #10831
2021-11-27 04:40:29 +01:00
Don Ho add9f64104 Add "Notepad++ User Defined Languages Collection" project website access command 2021-11-23 00:31:37 +01:00
Don HO 21dd62bb0d Notepad++ release 8.1.9.2 2021-11-21 15:02:30 +01:00
Don HO dc082ba2fd Fix dark mode not working on Windows 10 2H22
Fix #10810
2021-11-21 04:01:26 +01:00
~GOLEM~ b28ea17a91 Update russian.xml v8.1.9.1
Updated to v8.1.9.1:
- minor fix

Close #10780
2021-11-20 15:59:20 +01:00
rddim 240134958a Update Bulgarian localization
Close #10782
2021-11-20 15:56:59 +01:00
Sapziller ce2de092c4 Update korean.xml 8.1.9.1
Close #10785
2021-11-20 15:54:35 +01:00
sk-zk 3a33c83762 Fix UDL folding breaking with delimiters issue if UNIX EOL
This fixes a bug where UDL folding breaks if 1) the file uses
non-Windows line endings and 2) delimiters are defined.

Fix #350, fix #2873, fix #3372, fix #5499, close #7930
2021-11-19 03:08:25 +01:00
Ashfaaq18 c7140f279b Fix disabling alnative icons on tab in dark mode issue
Fix #10775, close #10798
2021-11-18 18:33:46 +01:00
Don Ho 9662b2e7d3 Remove unnecessary file 2021-11-18 16:25:26 +01:00
Don Ho 990c92540d Fix fallure of erasing & saving server logs (of network drive) issue
Fix #10794
2021-11-18 02:32:21 +01:00
Christian Grasser f52c2b022d Fix crash in regex search
Avoid unhandled std::range_error exceptions in case of an text input issue by providing an user-supplied byte-error string
see https://en.cppreference.com/w/cpp/locale/wstring_convert/from_bytes and https://en.cppreference.com/w/cpp/locale/wstring_convert/to_bytes

Fix #10773, close #10783
2021-11-16 00:05:04 +01:00
Don Ho a22a0bfedf Fix UDL generic dark mode via UDL UI bug
Fix #10781
2021-11-15 00:58:24 +01:00
Don HO aa06651a39 Notepad++ 8.1.9.1 release 2021-11-13 19:02:22 +01:00
MarkusBodensee bd082e8205 Update german.xml with mainly the date time translations
Add all missing date time translations from v8.1.5.
Update 42083 and 42078 to not use the word sort (sortieren) because english.xml doesn't either.
Move items 41025 and 44109 to the same order like in english.xml for more easy diffing.
Delete obsolete/doubled item 42079 (it was there two times in german.xml).

Close #10730
2021-11-13 02:08:28 +01:00
Don Ho df396b9e69 Fix reload false alarm from the network drive
This regression is due to the saving routine's change:
9aa9ecb664

Normally, on each save, buffer's timestamp is updated for the future comparison with the timestamp on the disk, in order to detect the modification from outside.

It seems the new saving routing makes the change (ONLY on network disk) with the timestamp before buffer's timestamp, for unknown reason.

The fix is: if timestamp got directly from the file on disk is earlier than buffer's timestamp, it's an absurd case and we ignore it. The buffer's timestamp will be only updated if the file on disk timestamp is later than buffer's one.

Fix #10688, fix #10753, fix #10757, close #10774
2021-11-13 00:45:57 +01:00
Don Ho 20990d3197 Fix a regression of saving problem
Some users encounter the issue that files cannot be saved sometimes.
It's due to the share parameter in CreateFile() set as 0, which makes sense for preventing other process from accessing to the file being written. However, when Notepad++ tries to write the file, it opens the file for writing. If at that moment the file is already opened by other program and the share flag is zero, then the system is instructed to deny opening the file on share conflict and the open fails.
Setting share parameter to "FILE_SHARE_READ" instead of 0 solve this problem.

Fix #10751, close #10765
2021-11-11 02:12:22 +01:00
Rajendra Singh 3112466930 Fix obsolete way of struct declaration
with which it failed to compile with VS2022:
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5208?view=msvc-160

Close #10758
2021-11-08 02:08:09 +01:00
Don HO eeaa4576f3 Add Auto-Updater icon
WinGup for Notepad++ has been added a customizable icon capacity:
728ac51975
An icon is added in the commit for Notepad++ updater.
2021-11-08 01:48:55 +01:00
Andrey Smolyakov 8c3c30efae Fix VHDL comments highlighting
Comments styles in stylers.model.xml are inconsistent with Scintilla's states
described in /scintilla/include/SciLexer.h. Moreover, block comments are
highlighted with not the same style as line comments, but with style used for
"COMMENT LINE BANG" in other languages.
I eliminated the "COMMENT LINE" style, which Scintilla does not generate, fixed
the "COMMENT BLOCK" style to be the same as regular "COMMENT", and added a
separate style, "COMMENT LINE BANG", for special comments.

Close #10748
2021-11-06 00:57:02 +01:00
Don HO 32d5307edd Make UDL generic dark mode possible via UI
Checkboxes "Transparent" of bg & fg color are added for each styler.
The bg color and/or fg color set in current Styler will be ignored and the dark/light theme's bg/fg color will be used, if the checkbox "Transparent" is checked.

To make generic UDL for all dark themes, user has to enable "Transparent" checkboxes for both bg and fg color in "Default Style", then set all the other styles with bg color transparent, or set both non-transparent, according the need of your token to be colorized.

Fix #10738
2021-10-31 15:09:32 +01:00
Don HO 0fd8cecf8b Fix UDL Styler UI not load bg & fg color completely
Fix the info of background or/and forground transparency being ignored while open Styler dialog in UDL dialog.
2021-10-31 01:48:22 +02:00
Don HO 91a7cc6d39 Add plugins' description into installer
More info:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5489
2021-10-29 15:18:25 +02:00
Rodrigo Cesar 0fd0e5dab1 Add "when" reserved word of C# 6.0 in auto-completion
Close #9667
2021-10-29 11:53:20 +02:00
YanisBft 1d2f662f73 Add Java sealed classes-related keywords
Close #9754
2021-10-29 11:50:38 +02:00
Don HO 40fbae1f76 Enable backup on save (simple) feature by default
Fix #10725
2021-10-28 12:37:25 +02:00
xomx 09711cee28 Fix phantom docked panels issue after restoring from systray
Fixes visual bug and potential crash in the #10512.

Fix #10512, close #10711
2021-10-26 19:28:01 +02:00
Don HO d192f58b5b Make icons in Function list/Project panel/Folder as Workspace display correctly under high DPI
And do some refactoring
2021-10-24 13:50:03 +02:00
Don HO abd1ea43c9 Notepad++ 8.1.9 release 2021-10-22 00:05:22 +02:00
Don Ho 1a02319a8a Fix empty file with non-Unicode encoding cannot be saved issue
The PR fixes the regression due to the saving file API being changecd from POSIX functions to Win32 native API:
The old used function "fopen" using "wbc" as argument, according Microsoft document:
"w" 	Opens an empty file for writing. If the given file exists, its contents are destroyed.
(https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-160)
so to save a 0 length document, it was unecessary to "write nothing" explicitely on disk, since fopen did it for you.
Whereas our new implementation which uses Win32 native API passes "OPEN_ALWAYS" - that needs to "write nothing" explicitely.

Fix #10699, close #10702
2021-10-21 21:14:59 +02:00
jofon 38de8b2306 Fix language list not being reloaded issue in Style Configurator
Fix #9512, close #10686
2021-10-21 15:47:00 +02:00
Don HO 0c2508d3d1 Notepad++ release 8.1.8 2021-10-19 19:17:40 +02:00
Don Ho 386366d7f2 Fix config files (XML) saving performance regression
Instead of writting on hard disk little by little all the time,
all data is collected in a string buffer to write once on the disk at the end.

Fix #10678, fix #10674, close #10691
2021-10-19 15:39:34 +02:00
Don Ho 5d086f93a8 Workaround Microsoft dark mode API bug of Windows 11
Notepad++ dark mode works fine under Microsft Windows 7, 8, 8.1 & 10.
Under Windows 11 while Notepad++ being switched into dark mode,
the hightlighting (background) of toolbar's hot-track icons remains in light mode.
Hence this workaround to remedy Notepad++ dark mode visual glitchy due to the bug of Windows 11.

Fix #10510, close #10685
2021-10-18 00:30:14 +02:00
Don HO d80b0b254e Notepad++ 8.1.7 release 2021-10-15 11:46:40 +02:00
Don Ho 6cae886dde Fix empty file not being saved regression
When open a non-empty text file, empty the file and save it, the file is not saved on disk.
This PR has fixed this regression.

Fix #10667, close #10668
2021-10-15 00:52:26 +02:00
Andrey Smolyakov 4c34652e14 Add VHDL unresolved numeric_std types highlighting
Close #10632
2021-10-15 00:50:36 +02:00