Compare commits

...

5719 Commits

Author SHA1 Message Date
PeterCJ
b3884c18af Add NPPM_GETNPPSETTINGSDIRPATH message to get Notepad++ settings directory path
Fix #16944, close #16946
2025-09-04 02:55:28 +02:00
xomx
4b0fc8d316 Improve Notepad++ UAC operations largely
This native implementation of UAC (User Account Control) operations in Notepad++ is designed not only to substitute the deprecated & problematic NppSaveAsAdminPlugin - which interferes with the FlushFileBuffers WINAPI used by Notepad++ - but also to support any future Notepad++ feature which may require elevated privileges.

When a user attempts an operation that fails due to indufficient rights, the system performs only that specific requested action with elevated privileges. After completing it, the elevated Notepad++ instance immediately exits, returning the user to his/her original Notepad++ instance seamlessly, as if nothing unusual occured.

This mechanism is independent of any Notepad++ features such as backup-snapshot or multi-instance mode. All UAC-related operations are executed at the very beginning of the wWinMain function, ensuring they are not affected by mutex handling, or other internal logic.

Importantly, this approach eliminates the need for a separate signed helper executable like NppAdminAcess.exe. Everything is handled within the main Notepad++ project, just as before.

In this commit, the NPP_UAC_SAVE, NPP_UAC_SETFILEATTRIBUTES & NPP_UAC_MOVEFILE are implemented.

Summary of the changes:

added last _dwErrorCode in:
.\PowerEditor\src\MISC\Common\FileInterface.h
.\PowerEditor\src\MISC\Common\FileInterface.cpp

FileManager::saveBuffer adjustment for the NPP_UAC_SAVE_SIGN in:
.\PowerEditor\src\ScintillaComponent\Buffer.cpp

N++ UAC ops signatures definitions & new invokeNppUacOp common func, toggleReadOnlyFlagFromFileAttributes func adjustment for the NPP_UAC_SETFILEATTRIBUTES_SIGN in:
.\PowerEditor\src\MISC\Common\Common.h
.\PowerEditor\src\MISC\Common\Common.cpp

only to fix Notepad_plus::doSave for isEndSessionCritical() in:
.\PowerEditor\src\NppIO.cpp

added getLastFileErrorState() & m_dwLastFileError in:
.\PowerEditor\src\Utf8_16.h
.\PowerEditor\src\Utf8_16.cpp

UAC ops handling at the very start of wWinMain + added new NPP_UAC_ handling nppUacSave and nppUacSetFileAttributes funcs in:
.\PowerEditor\src\winmain.cpp

Fix #886, fix #8655, fix #9561, fix #10302, fix #14990, fix #15008, fix #15137, fix #15323, close #16933
2025-09-02 19:20:59 +02:00
Don HO
dc58d41359 Enhance Column Editor
1. Change the order of GUI items to make the insert mode (dec/hex/oct/bin) more explicit.
2. Reduce the showing time of the warning baloon tip from ~10 seconds to 3.5 seconds.
3. Use ESC keystroke to cancel the warning baloon tip.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16931#issuecomment-3236582042

Note that while the baloon tip showing then clicking on the upper-right 'X', the dialog won't be closed. Instead, the baloon tip will be cancel.
Curiously, clicking on the "Cancel" button under the same context closes the dialog.
The reason could be, while the "Cancel" button being clicked, the focus is changed and the system hides the baloon tip. Whereas the click on the upper-right 'X' doesn't make the focus changed, then the system does nothing.
Anyway such behaviour is a bug, but can happen very rarily.

Close #16959
2025-08-31 12:26:19 +02:00
Don Ho
06750919ac Fix column editor egression: insert column with bad parameters
The regression was introduced by: 1a0e8bea75

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16931#issuecomment-3236873787

Close #16951
2025-08-29 18:52:55 +02:00
PeterCJ
1a0e8bea75 Use radix for GUI input fields to match the output in Column Editor
Use hex/oct/bin for GUI input fields, to match the output, and allow choosing a-f vs A-F for output.

Fix #16912, close #16931
2025-08-29 13:15:47 +02:00
PeterCJ
dab30de9c6 Fix font size inconsistencies
No fontSize definitions except in Default Style, and Default Style always = 10pt

Fix #16924, close #16928
2025-08-20 14:07:05 +02:00
Alan Kilborn
5933f791c4 Prevent stale search-result from making selection inside a multibyte character
Fix #16879, close #16897
2025-08-17 22:40:35 +02:00
Don HO
4467a4c99e Notepad++ 8.8.5 release 2025-08-14 01:32:08 +02:00
Don HO
faaa9bee78 Notepad++ 8.8.4 release 2025-08-12 12:09:17 +02:00
Karlo-F
8b5fafca0b [xml] Update croatian.xml translation
Close #16902
2025-08-10 13:25:49 +02:00
Don HO
b56ac80ff7 Fix MSIX singing issue
"error 0x8007000B: The signature hash method specified (SHA512) must match the hash method used in the app package block map (SHA256)."
"The hashAlgorithm specified in the /fd parameter is incorrect. Rerun SignTool using hashAlgorithm that matches the app package block map (used to create the app package)"

Ref: https://learn.microsoft.com/en-us/windows/msix/package/signing-known-issues

Fix https://github.com/notepad-plus-plus/nppShell/issues/70
2025-08-10 13:08:47 +02:00
xomx
5542066816 [xml] Update czech.xml
Close #16906
2025-08-10 12:35:15 +02:00
wzsx150
aed12006a6 Update chineseSimplified.xml
Added and corrected some translations.

Close #16909
2025-08-10 12:31:24 +02:00
Don HO
df87c76724 Fix "Edit with Notepad++" not removed by uninstaller regression (from v8.8.3)
The regression was introduced by:
889efad2e8 (commitcomment-161831592)

Fix #16896
2025-08-05 18:19:06 +02:00
rddim
67693a84a2 [xml] Update Bulgarian localization
Close #16893
2025-08-03 03:00:36 +02:00
Don Ho
3a90f4f8c3 Make NFO font overridable by adding fontName in Lexer "nfo" of stylers.xml
Fix #16839
2025-08-03 02:49:11 +02:00
ArkadiuszMichalski
559085be82 [xml] Update polish.xml to the latest commit
Close #16890
2025-08-02 18:36:10 +02:00
Tmp341
c9f750fe15 [xml] Update Turkish localization
Close #16793
2025-08-02 04:03:49 +02:00
kubalav
4ddcd0b9a6 [xml] Update Slovak translation
Close #16837
2025-08-02 04:01:48 +02:00
Marcellomco
5f101df77e [xml] Update brazilian_portuguese.xml
Close #16842
2025-08-02 03:59:18 +02:00
yasmise
1ccdacc198 [xml] Update japanese.xml
Close #16844
2025-08-02 03:56:45 +02:00
A. Regnander
fb5f1171b9 Update swedish.xml
Close #16843
2025-08-01 21:23:32 +02:00
~GOLEM~
1afd680efb [xml] Update russian.xml
Close #16851
2025-08-01 21:18:32 +02:00
schnurlos
9e7ab3f0fc [xml] Update german.xml
Close #16853
2025-08-01 21:05:08 +02:00
Patriccollu
8c0db1450b [xml] Update Corsican translation for Notepad++ 8.8.3
Close #16857
2025-08-01 20:55:20 +02:00
Andrei-Valentin Miloiu
a75832cf93 Update romanian.xml
Close #16858
2025-08-01 20:45:40 +02:00
Thomas De Rocker
8abf5814fa Update dutch.xml
Close #16866
2025-08-01 20:41:58 +02:00
Krazal
95996b9db9 [xml] Update hungarian.xml
• Make translation up-to-date (see: d6ad51a, f5a34dc, 22c5063)
• Fix too long (truncated) setting labels/options

Close #16880
2025-08-01 20:39:30 +02:00
PeterCJ
6f65d6fa48 Add pyi extension to Python
Fix #16623, close #16888
2025-08-01 18:07:05 +02:00
Don Ho
76c3e30fe3 Fix JavaScript indent settings incorrect behaviour
1. More understandable naming: "javascript.js" to "JavaScript".
2. Disassociate the value of Embedded JS & JavaScript, and remove Embedded JS from the list.
3. Prevent from eventual crash due to null pointer.

Fix #16884, close  #16885
2025-07-31 18:30:31 +02:00
xomx
c710439b51 Fix possible heap memory leak
Close #16883
2025-07-31 17:41:19 +02:00
Christian Grasser
c367ab8966 Some code improvements
Close #16876
2025-07-30 00:06:08 +02:00
Don Ho
bf6fd373d4 Fix JavaScript listed twice in Language Preferences issue
Fix #16861, fix #4521
2025-07-29 20:23:37 +02:00
Don Ho
8fd2d12ab5 Fix crash on indent settings after changing lang name in lang.xml
Fix #16881, close  #16882
2025-07-29 18:53:20 +02:00
Don Ho
07a49ca0f1 Reduce stack memory usage to eliminate the compiling warning
Follow 36aeb8f681

Close #16874
2025-07-27 16:24:13 +02:00
Don Ho
36aeb8f681 Refactoring: use dynamic allocation to reduce stackoverflow risk
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16865#issuecomment-3120357091

Close #16871
2025-07-26 19:20:09 +02:00
Don Ho
71fbdae005 Revert "Increase CURRENT_LINESTR variable length of run dialog"
This reverts commit 11bc8107b0947c9b86ce27fd698730497312f65b,
due to the crash caused by stackoverflow.

Fix #16865
2025-07-26 15:40:49 +02:00
Don Ho
11bc8107b0 Increase CURRENT_LINESTR variable length of run dialog
Increase CURRENT_LINESTR variable length from (2048 - 1) to (16384 * 2 - 1).

Fix #16840, close #16859
2025-07-25 14:43:59 +02:00
Don Ho
fe3f609361 Add asNotepad.xml status to Debug Info
Also make debug info readable again.

Fix #16795
2025-07-24 18:46:29 +02:00
Don Ho
22c5063d26 Increase search input length from 2046 to 16383
* The search input length has been extended from (2048 - 1) up to (16384 - 1) characters.
* For saving find input history, only search strings shorter than 2048 characters will be stored for the next session.
* The tooltip warning is displayed in both cases above.

Fix #16749, fix #1088, close #16855
2025-07-23 21:00:50 +02:00
Don Ho
f5a34dcc9f Enhance "Go to settings": guide users to the related setting explicitly
Fix #16846, close #16847
2025-07-21 23:45:01 +02:00
Don Ho
1582c67b63 Update tip info 2025-07-21 14:37:02 +02:00
Don HO
fe42d71db7 Update MVS to v17.14 (MS Visual Studio Community 2022)
Info:
```
Microsoft Visual Studio Community 2022
Version 17.14.0
VisualStudio.17.Release/17.14.0+36109.1
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022   00482-90000-00000-AA924
Microsoft Visual C++ 2022
...
```

Close #16581
2025-07-20 17:22:56 +02:00
Don Ho
d6ad51a022 Add warning tip for the max length text on search (Find/Replace)
Fix #16749, close #16834
2025-07-20 15:15:11 +02:00
Don HO
0d98bd24f1 Fix -notabbar & asNotepad.xml stop hiding tabbar regression (from v8.7.9)
The regression is due to the refactoring of tabbar:
ff734af115

Fix #16794, close #16825
2025-07-17 17:18:53 +02:00
Don Ho
f897972070 Fix external lexers showing several time in tab_settings
Fix #16462, close #16826
2025-07-17 17:00:10 +02:00
Don HO
47d120a6cf
Fix the validation date of Notetepad++ certificate
Fix #16827
2025-07-17 00:10:08 +02:00
Don Ho
e8b93575be Revert "Fix "Follow Windows" option makes external lexers show twice in tab settings"
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16462#issuecomment-3079457421

This reverts commit f234207f5dd8f45ecd97cb08a21aa993e7469b65.
2025-07-16 23:27:21 +02:00
Don Ho
f234207f5d Fix "Follow Windows" option makes external lexers show twice in tab settings
Fix #16462
2025-07-15 21:10:30 +02:00
Gargaj
a6cd3de8a7 Add button to insert variables in the run dialog
Close #16820
2025-07-15 14:44:17 +02:00
Konstantin Kotenko
a93b533e81 Reword German FolderAsWorspaceSubfolderExists
The German message was incomprehensible and did not mention the workspace panel at all - it was just telling to "remove the folder"

Close #16822
2025-07-15 14:28:52 +02:00
Don Ho
aef5ff18af Remove SHA256 for X.509 certificates 2025-07-12 19:52:38 +02:00
Don Ho
83d5b18d4d Fix resizing Shortcut Mapper height makes a mess
Regression was introduce by:
dddbf24ff5

Fix #16817
2025-07-12 19:44:07 +02:00
Niranjen P
dddbf24ff5 Add a clear button for filter field in Shortcut Mapper
Fix #15742, close #16713
2025-07-11 16:13:51 +02:00
Don HO
45ce3418da
Add more Notepad++ Root Certificate download locations 2025-07-10 00:01:34 +02:00
Don Ho
ebc6af14c0 Notepad++ release v8.8.3 2025-07-09 21:23:06 +02:00
Don Ho
03063ebf4b Use self-signed certificate 2025-07-03 21:06:35 +02:00
A. Regnander
dfa7417daa Update swedish.xml
Close #16771
2025-07-03 20:50:04 +02:00
Maverick Doan
889efad2e8 Fix uninstaller security issue (CVE-2025-49144)
Fix #16787, close #16788
2025-07-03 18:49:12 +02:00
ozone10
11cd8c55f0 Improve security for DLL loading
Use "/DEPENDENTLOADFLAG:0x800" to limite module search path to the %windows%\system32 directory.

Fix #13964, close #16762
2025-06-30 21:32:24 +02:00
Don Ho
cc45875c60 Notepad++ v8.8.2 release 2025-06-30 15:59:47 +02:00
Radoš Milićev
ae8bd95a73 [xml] Update Serbian
Close #16764
2025-06-28 01:44:13 +02:00
Juan
19a4106038 [xml] Update spanish.xml
Close #16757
2025-06-28 01:42:09 +02:00
Juan
8aef10b7e2 [xml] Update galician.xml
Close #16758
2025-06-28 01:38:54 +02:00
~GOLEM~
91be70dd11 [xml] Update russian.xml
Close #16741
2025-06-27 20:07:50 +02:00
Marcellomco
a76957aff4 [xml] Update brazilian_portuguese.xml
Fix #16753
2025-06-27 18:59:14 +02:00
Anthony Lee Stark
84692afd8b Update vietnamese.xml
Close #16760
2025-06-27 17:23:35 +02:00
schnurlos
e8fe145746 [xml] Update german.xml
Following f0f8f7ec2f

Close #16747
2025-06-27 15:11:56 +02:00
kubalav
a1e9d0defc [xml] Update Slovak translation
Close #16746
2025-06-27 15:04:53 +02:00
Andrei-Valentin Miloiu
9e711e6577 [xml] Update romanian.xml
Close #16745
2025-06-27 15:03:36 +02:00
rddim
6e13916738 [xml] Update Bulgarian localization
Close #16743
2025-06-27 15:00:50 +02:00
Krazal
751c141373 [xml] Update hungarian.xml
Make the translation up-to-date, considering the following commits: #bc99de0 (exit feature), #f0f8f7e (read-only attribute warning).

Close #16740
2025-06-27 14:57:01 +02:00
ArkadiuszMichalski
ec8f7ac9ea [xml] Update polish.xml to the latest commit
Close #16732
2025-06-27 14:55:01 +02:00
Karlo-F
5a6ae6b7d6 [xml] Update croatian.xml
Close #16727
2025-06-27 14:52:23 +02:00
Patriccollu
4a21d2e211 [xml] Update Corsican translation
Close #16714
2025-06-27 14:37:11 +02:00
yasmise
b6f67d22b1 [xml] Update japanese.xml
Add Japanese translation line for this commit:
* Add warning message on "Read-only attribute in Windows" command failure (f0f8f7e)

Close #16750
2025-06-27 02:42:47 +02:00
xomx
3d44ddc0cf [xml] Update czech.xml translation
Close #16750
2025-06-27 02:40:41 +02:00
Blackspirits
ab8d29399e [xml] Update portuguese.xml
Close #16751
2025-06-27 02:38:43 +02:00
PeterCJ
441b32c5e7 Themes: get rid of fontSize overrides
Themes should not mess up monospacing by changing font size for only certain languages/styles: they should all inherit their font-size from the Default Style in that theme

Fix #16667, close #16756
2025-06-26 21:46:18 +02:00
Don Ho
7b613b1fff Fix typos 2025-06-26 01:08:01 +02:00
Don Ho
f0f8f7ec2f Add warning message on "Read-only attribute in Windows" command failure
Follow e38016e3f5
2025-06-24 16:02:51 +02:00
xomx
e38016e3f5 Fix toggling "Read-only attribute in Windows" command wrong behaviour
Fix toggling "Read-only attribute in Windows" command wrong behaviour due to invalid file attribute(s) or insufficient user rights.

Fix #16734, close #16733
2025-06-24 02:54:58 +02:00
schnurlos
e8843222ae [xml] Update german.xml
Following bc99de07bb

Close #16726
2025-06-23 17:04:54 +02:00
Marcellomco
5bcf24a7ab [xml] Update brazilian_portuguese.xml
Added translation for "Add update Notepad++ on exit feature"

Close #16728
2025-06-23 17:00:40 +02:00
~GOLEM~
650d0dcd27 [xml] Update russian.xml
Close #16729
2025-06-23 16:55:06 +02:00
Don Ho
999ec7a6c1 Enable SHA256 verification between Notepad++ & internal components 2025-06-23 16:25:54 +02:00
rddim
7f837a04fb Update Bulgarian localization
Close #16724
2025-06-22 13:31:57 +02:00
kubalav
222779cf7e [xml] Update Slovak translation
Close #16725
2025-06-22 13:29:07 +02:00
yasmise
538b69a6d4 [xml] Update japanese.xml
Update japanese translation lines for this commit:
* Add set read-only attribute on file feature (2214d10)

Close #16708
2025-06-22 13:24:36 +02:00
schnurlos
0443199436 Update Obsidian.xml
Fix #16590, close #16640
2025-06-21 19:06:00 +02:00
Don Ho
f2346ea00d Code enhancement: Use the absolute path instead of an unspecified path 2025-06-21 18:35:36 +02:00
xomx
e76e6462ae [xml] Update czech.xml translation
Close #16720
2025-06-21 17:09:29 +02:00
Don Ho
0b9ebf443d Update French & Taiwaese Madarin localization files 2025-06-21 17:07:19 +02:00
xomx
bc99de07bb Add update Notepad++ on exit feature
And add `/relaunchNppAfterSilentInstall` into installer (ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15280#issuecomment-2246816010)

Fix #16601, fix #13749, fix #10317, fix #8495, fix #8457, fix #3755, close #16626
2025-06-21 16:38:57 +02:00
Don Ho
abba79ceaa Remove unnecessary and wrong "Clear" word 2025-06-20 14:41:41 +02:00
Shridhar Kumar
76b1cba609 Add new plugin notification: NPPN_TOOLBARICONSETCHANGED
Fix #16646, close #16647
2025-06-18 12:24:12 +02:00
ArkadiuszMichalski
b81e38ef60 [xml] Update polish.xml to 8.8.2
Close #16691
2025-06-18 03:33:44 +02:00
Krazal
f6b18fe79b [xml] Update hungarian.xml
Make the translation up-to-date, considering Commit 2214d10

Close #16692
2025-06-18 03:30:33 +02:00
~GOLEM~
b48efff53d [xml] Update russian.xml
Close #16695
2025-06-18 03:28:36 +02:00
schnurlos
8851345660 [xml] Update german.xml v8.8.1
Following 2214d10ce2 (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)

Close #16696
2025-06-18 03:26:54 +02:00
Andrei-Valentin Miloiu
46cedd2112 Update romanian.xml
Close #16697
2025-06-18 03:25:28 +02:00
kubalav
8a28d27cd6 [xml] Update Slovak translation
Close #16700
2025-06-18 03:22:48 +02:00
ozone10
fb82d79042 Enhance NPPM_DARKMODESUBCLASSANDTHEME: Enable darkmode progress bar for plugins
Fix #16675, close #16687
2025-06-17 20:16:20 +02:00
Don Ho
2214d10ce2 Add set read-only attribute on file feature
So user can toggle (set/remove) R/O attribute of a file.

Note: only 42033 (Clear Read-Only Flag) but not 42028 (Set Read-Only) entries are removed from the localization files.
Because 42028 (Set Read-Only) command is only reworded, its functionnality remains the same.
Whereas 42033 (Clear Read-Only Flag) command has changed its behaviour, hence the deletion.
Though 42028's translation of "Set Read-Only" can be remained, the translators are suggested to reword your translation with "Read-Only in Notepad++" in order to avoid the confusion of users.

Fix #326, fix #4594, fix #6216, fix #7841, fix #12520, fix #15571, fix #16603, close #16686
2025-06-16 14:01:15 +02:00
schnurlos
663f09baa5 [xml] Update german.xml
Close #16511
2025-06-16 13:20:09 +02:00
~GOLEM~
27e40e1b71 [xml] russian.xml v8.8.1
Close #16507
2025-06-16 03:39:28 +02:00
Andrei-Valentin Miloiu
bac4d91eb6 [xml] Update romanian.xml
Close #16617
2025-06-16 03:36:16 +02:00
Don HO
a758c35b7a
Add translation PR rule for the version number 2025-06-15 17:25:41 +02:00
Terry Chao
ccd155d605 [xml] Update ChineseSimplified.xml
Close #16523
2025-06-15 17:14:13 +02:00
A. Regnander
5eafd7009d Update swedish.xml
Close #16530
2025-06-15 17:12:50 +02:00
Blackspirits
b8b7583ac8 Update portuguese.xml
Close #16535
2025-06-15 17:06:12 +02:00
Marcellomco
379ea1f82b [xml] Update brazilian_portuguese.xml
Close #16563
2025-06-15 17:03:06 +02:00
Juan
a45980f364 [xml] Update spanish.xml v. 8.8.1
Close #16612
2025-06-15 16:54:36 +02:00
Juan
5e74415adc [xml] Update galician.xml v. 8.8.1
Close #16613
2025-06-15 16:52:17 +02:00
kubalav
08e014d61e [xml] Update Slovak translation
Close #16510
2025-06-15 16:49:20 +02:00
rddim
b9d7a1988b [xml] Update Bulgarian localization
Close #16506
2025-06-15 16:47:06 +02:00
Krazal
116a17019e [xml] Update hungarian.xml
Make translation up-to-date:

• Translate "Use the first line of document..." (commit abc2371)
• Add missing labels (commit 393815b) + a small adjustment (file header & version)
• Translate Locale-based line sort feature (commit a9d8dca)
• Make some expressions even more appropriate / user friendly
• Add/Place some accelerator letters more precise

Close #16632
2025-06-15 16:32:32 +02:00
yasmise
38cb135302 [xml] Update japanese.xml
Add translation lines for this commit:
* Add labels in Preferences Tab bar section (393815b)

Close #16570
2025-06-15 16:03:32 +02:00
ozone10
61084f1c93 Fix scrollbar sometimes not drawn in listbox in dark mode
Fix #16674, close #16676
2025-06-13 20:47:23 +02:00
ozone10
a8ff8bb78e Dark mode enhancement for tab control
- enable to use in generic dark mode subclass for plugins
- handle more styles (button style, usage of icons)
- double buffer to avoid flicker
- focus rect when keyboard is used for navigation

Fix #16668, close #16673
2025-06-13 20:34:36 +02:00
Don Ho
7cc002680a Fix right click on caption bar unhidding main menu
Fix #16652, close #16682
2025-06-13 20:06:49 +02:00
Christian Grasser
e85c354135 Update to scintilla 5.5.7 & Lexilla 5.4.5
Release 5.5.7 (https://www.scintilla.org/scintilla557.zip)

Released 8 June 2025

1. Add SCI_SCROLLVERTICAL method to restore view position and maintain it while performing line wrapping.
2. Add SC_UNDO_SELECTION_HISTORY_SCROLL flag to SCI_SETUNDOSELECTIONHISTORY which controls whether undo and redo restore vertical scroll position.
3. Tweak SC_MARK_BAR to be slightly wider by using next higher whole pixel instead of next lower for margin width / 3.
4. Scale images in autocompletion lists with SCI_AUTOCSETIMAGESCALE to match high DPI screens. Initially only on GTK and Qt.
5. Fix wrapping bug for UTF-8 where \r\n could wrap between the characters. Notepad++ Pull Request #16373.
6. Fix crash during painting when scroll bars changed. Bug #2481.
7. On GTK, reset vertical scroll bar synchronously in SCI_SETDOCPOINTER to fix bug where scroll position not restored in non-wrap mode. Bug #2416.
8. On GTK, fix IME problem when tentative composition interfered with delete surrounding. Feature #1476.
9. On GTK, update IME cursor position inside retrieve surrounding to better position candidate window. Feature #1488.

Release 5.4.5 (https://www.scintilla.org/lexilla545.zip)

Released 8 June 2025

1. Dart: Add error state SCE_DART_STRINGEOL for unterminated string. Pull request #315.
2. Makefile: Add a keyword list to makefile lexer to highlight GNU Make directives like 'ifdef' and 'vpath' as SCE_MAKE_PREPROCESSOR since these are similar to NMAKE directives like '!IFDEF'.
3. Nix: Add error state SCE_NIX_STRINGEOL for unterminated string. Pull request #315.
4. TOML: Add error state SCE_TOML_STRINGEOL for unterminated string. Pull request #315.
5. Zig: Add error state SCE_ZIG_STRINGEOL for unterminated string. Pull request #315.

Close #16649
2025-06-13 15:12:33 +02:00
Don Ho
5b26ef1ca8 Fix rename tab error msg while no change tab name
Fix #16661, close #16665
2025-06-12 04:10:48 +02:00
Don HO
299d7cb26e
Minor changes in CONTRIBUTING.md 2025-06-06 17:50:29 +02:00
Don Ho
0478caebf1 Fix use1stLineAsTabName feature called twice while undo/redo
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16585#issuecomment-2944075642

Close #16635
2025-06-06 02:54:22 +02:00
PeterCJ
1911875411 Fix Python FunctionList absorbing next function issue if space after colon
Allow spaces between ':' and EOL.

Fix #16636, close #16637
2025-06-06 02:52:55 +02:00
PeterCJ
8435308b02 Add XSD-based validation for the various XML files
And fix the themes and javascript.js functionlist that don’t match XSD.

Fix #16618, close #16619
2025-06-04 19:42:01 +02:00
xomx
d767fd846c Fix DisplayInfo maxAdapters searching limitation
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16588#issuecomment-2906537768

Close #16633
2025-06-04 19:24:22 +02:00
PeterCJ
dfba125356 Remove .log from errorlist lexer's default extensions
Fix #16627, close #16628
2025-06-04 18:23:32 +02:00
rdipardo
19267aa0ea Make raw string syntax highlighting work for Golang
Enable the raw string lexer property for Golang.
Also: add a new 'STRING RAW' style to all Golang themes.

Fix #16609, close #16615
2025-06-04 14:55:30 +02:00
Anthony Lee Stark
abc23714db Add new feature of using first line of untitled document for its tab name
Fix #3994, fix #16584, close #16585
2025-06-04 14:11:24 +02:00
Anthony Lee Stark
6459905816 Fix Notepad++ try icon lost after Windows Taskbar crashes & being recreate
Re-add the tray icon when the taskbar is re-created.

Fix #16588, close #16589
2025-06-03 03:03:33 +02:00
ArkadiuszMichalski
703e2e1726 Fix not enough room 4 translation of "Transparency" item in Style Configurator
Fix #16549, close #16555
2025-05-29 19:37:15 +02:00
Gitoffthelawn
da579eece9 Improve toolbarButtonsConf_example.xml documentation
Close #16508
2025-05-29 19:10:12 +02:00
Don Ho
1f48115666 Fix regression of folding state not being remembered through sessions
The regression is introduced by:
83755ca155 (diff-d88ddee57a027ab23daf332c4778ced0cee352edcb34efdda1b218e8a75c61b2L2636)

The culprit of this regression is the deletion of following 4 lines in the commit above:
```
void ScintillaEditView::fold(size_t line, bool mode, bool shouldBeNotified/* = true*/)
{
	auto endStyled = execute(SCI_GETENDSTYLED);
	auto len = execute(SCI_GETTEXTLENGTH);

	if (endStyled < len)
		execute(SCI_COLOURISE, 0, -1);
```
The method "ScintillaEditView::fold()" is called not only on manual folding by the users, but also on:

1. startup's loading session to restore the folding state programmatically.
2. after startup, switching among the documents to restore the folding state programmatically.

The above lines are important for the case 1.

However, these lines are necessary only on the first load of each file after the startup of Notepad++.
"execute(SCI_COLOURISE, 0, -1);" needs to be run for once (the case 1), not twice or more (the case 2).

So if there's a way to detect if a document has been run "execute(SCI_COLOURISE, 0, -1);" once (in the case 1),
and don't run it again (the case 2), it will save the time to switch among the document.

Fix #16597, close #16599
2025-05-29 17:54:14 +02:00
ozone10
19a1897eaa Fix changing toolbar icon set not change to matched panel icon set issue
Synchronize dockable panel tab icons with toolbar icons.

Fix #16595, close #16556
2025-05-27 13:46:39 +02:00
xomx
8bc77857a7 Fix "Go To Settings" links in Style Configurator regression (from v8.8)
Regression is introduced by commit:
e45f72ae39

Fix #16592, close #16593
2025-05-27 13:05:30 +02:00
PeterCJ
a10cebe2cd Change from Nimrod to Nim in three themes
Fix #16578, close #16579
2025-05-22 16:25:54 +02:00
Don Ho
8696d28cfd Fix typos (part 2) 2025-05-21 17:57:33 +02:00
Anthony Lee Stark
d3e846162a Fix Windows dialog file list not react with keystroke (character match)
Fix #2239, close #16572
2025-05-21 17:21:41 +02:00
Don Ho
b742c540bb Fix typos
and clean-up.

Close #16576
2025-05-21 03:16:30 +02:00
ozone10
9232226d3f Improve dark mode updown control appearance in dark mode
Fix #16560, close #16568
2025-05-20 17:55:07 +02:00
Don Ho
2de6260610 Deprecate 3 APIs
Deprecate NPPM_GETOPENFILENAMES, NPPM_GETOPENFILENAMESPRIMARY & NPPM_GETOPENFILENAMESSECOND.

Fix #15997, close #16569
2025-05-19 00:19:28 +02:00
Don Ho
140b11a835 Fix regression of tab background highlighting issue after drag&drop
Fix #16559
2025-05-18 15:35:25 +02:00
Don Ho
393815b99f Add labels in Preferences Tab bar section
and do some clean up.
2025-05-16 19:05:37 +02:00
ozone10
3548696bd7 Fix updown control style not changing when toggling dark mode
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16548#issuecomment-2884419833, close #16553
2025-05-16 15:43:14 +02:00
Shridhar Kumar
5406b82fb4 Add new plugin API: NPPM_GETTOOLBARICONSETMODE to get toolbar icon set choice
Fix #16547, close #16548
2025-05-15 17:58:43 +02:00
Don Ho
0e249b1bb9 Sync plugin header (part 4) 2025-05-14 18:51:34 +02:00
Shridhar Kumar
3310a613e4 Fix URL Link controls color in dark mode consistent issue for plugins
Fix #16537, close #16538
2025-05-14 17:01:35 +02:00
Don Ho
f677a0c5db Update plugin header (part 3) 2025-05-14 15:10:54 +02:00
Don Ho
3395108c59 Update plugin header file (part 2) 2025-05-14 02:08:35 +02:00
Don HO
c24bf54ae5
Bring Back Political Incorrectness!
From "main" to "master" in release-notifier.yml.
2025-05-14 02:00:58 +02:00
Anthony Lee Stark
108e555557 Mark modified files with "*" in Windows menu dropdown
Fix #16542, close #16551
2025-05-13 23:22:40 +02:00
Don Ho
bf1f4769ec Clean up header file (part 1) 2025-05-13 22:47:40 +02:00
xomx
b7faa4d70d Add basic DisplayInfo for the DebugInfo
Fix #16519, close #16541
2025-05-13 21:08:33 +02:00
PeterCJ
dbce73c8fa Add release-notifier workflow for synchronizing the headers with 2 plugin demos
ping the plugintemplate & plugindemo repos anytime that a push to master branch includes changes to the 7 plugin-related source-files

(see https://github.com/npp-plugins/plugintemplate/issues/13#issuecomment-2867953737)
2025-05-13 19:43:55 +02:00
Don Ho
1da3312c73 Refactoring & clean up 2025-05-13 18:58:02 +02:00
Don Ho
b1cd1a9f29 Remove unused header file tchar.h 2025-05-08 05:02:12 +02:00
Christian Grasser
34677a5415 Code enhancement: Avoid usage of non FULL scintilla interfaces
- disabled versions with usage of Sci_PositionCR restricted to 2GB files on windows
- didn't adapt ScintillaStructures.h yet to avoid disabling/patching of functions for SCI_GETTEXTRANGE, SCI_FINDTEXT, SCI_GETSTYLEDTEXTFULL and SCI_FORMATRANGE already now

Ref: discussion at https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16467

Close #16522
2025-05-07 19:14:34 +02:00
Don HO
51eea9827b
Update CONTRIBUTING.md 2025-05-07 05:27:58 +02:00
Don Ho
0f79a51646 Fix an unresponsive issue due to hide lines
Fix swiching back to document which has processed hide lines makes Notepad++ unresponsive due to an infinite loop.
Fix also setting language makes hiding lines unhidden issue.

Fix #16316, close #16512
2025-05-05 15:52:03 +02:00
Don Ho
910f02dfd5 Notepad++ release 8.8.1 2025-05-05 04:21:55 +02:00
Don Ho
e719c56708 Fix Find in files progress bar visual regression (from v8.8)
Regression is introduce by:
a23955742c

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16387#issuecomment-2848676406

Fix #16504
2025-05-03 18:16:31 +02:00
yasmise
46b4d35c5d [xml] Update japanese.xml
Update Japanese translation texts for this commit:
* Add Locale-based line sort feature (a9d8dca)

Close #16499
2025-05-03 04:13:57 +02:00
Marcellomco
8c5f461c70 [xml] Update brazilian_portuguese.xml
Added translation for "Add Locale-based line sort feature".

Close #16500
2025-05-03 04:11:58 +02:00
xomx
8bc333dbd1 [xml] Update czech.xml to v8.8.1
Close #16497
2025-05-03 01:45:43 +02:00
Andrei-Valentin Miloiu
e2c1362373 [xml] Update romanian.xml
Close #16498
2025-05-03 01:44:37 +02:00
xomx
eb1b7977f6 Enable Scintilla undo/redo selection history
Ref:
https://www.scintilla.org/ScintillaDoc.html#SCI_SETUNDOSELECTIONHISTORY

Fix #16488, close #16496
2025-05-03 01:11:17 +02:00
Randy Fellmy
a9d8dca832 Add Locale-based line sort feature
Fix partially:

Fix #13456, fix #927, fix #8481, fix #11261, fix #16406, fix #16409, close #16490
2025-05-02 23:31:25 +02:00
CennoxX
be00dd5544 [xml] fix wrong toolbar-accent-tip in German
The Windows settings in German are named "Einstellungen > Personalisierung > Farben", not "Einstellungen > Optionen > Farben".

Close #16482
2025-05-02 21:52:09 +02:00
Karlo-F
01dcaf01ab [xml] Update croatian.xml to v8.8
Close #16463
2025-05-02 19:39:38 +02:00
kubalav
fc2fa4bb10 Update slovak translation
Close #16483
2025-05-02 19:28:42 +02:00
PeterCJ
30976ec8d2 Fix ShortcutMapper displays wrong shortcut while editing regression (from v8.7.6)
Fix double clicking chosen command in ShortcutMapper displays wrong shortcut due to the bad index.

- there was off-by-1 when building the oemVkUsedIDs vector, which was caused by using the index based on .size() instead of .size()-1 to get the most-recently-added.
- also cleared the vector each launch of the dialog, because the .push_back() was causing the vector to grow without bounds, messing up the indexing on subsequent runs of the dialog, causing it to pick _none_ of the entries.

The regression was introduced by:
6dfbc1f7e8

Fix #16491, close #16492
2025-05-02 16:20:56 +02:00
PeterCJ
19e356d616 Add ErrorList syntax highlighting
Enable the errorlist lexer
- Associates ".err" and ".log" with Language > E > ErrorList
- When in ErrorList file, toggling View > Show Symbols > Show Control Characters & Unicode EOL will show/hide the whole `ESC[1;31m` sequence, not just the ESC symbol

Related issues/topics:
- https://community.notepad-plus-plus.org/topic/26801/reading-typescript-of-terminal-session
- https://community.notepad-plus-plus.org/topic/23787/show-printable-ascii-characters-only
- https://community.notepad-plus-plus.org/topic/23147/missing-lexers-from-lexilla
- https://community.notepad-plus-plus.org/topic/22994/ansi-escape-sequences-color-rendering
- https://community.notepad-plus-plus.org/topic/16612/interprete-ansi-color

Fix #16437, fix #8078, close #16480
2025-05-02 04:33:56 +02:00
Don Ho
0feb209e94 Enlarge your FindReplaceDlg
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16485#issuecomment-2841648658

Close #16489
2025-05-02 01:43:29 +02:00
Ekopalypse
0ffd606053 Fix tab settings for external lexers cannot be saved issue
Allows the configuration of tab settings for external lexers to be saved through the sessions.

Fix #16460, close #16461
2025-05-01 16:14:25 +02:00
ozone10
cfbb4de52a Fix inconsistent find dialog '<<' button position when resizing
Close #16485
2025-04-30 13:27:21 +02:00
xomx
28978d3a16 Fix wrong directory defined in Preferences for opening files
Fix wrong offered dir defined in Preferences for opening files caused by Preferences-dlg init.

Fix #16465, close #16471
2025-04-30 03:26:09 +02:00
xomx
13b08d0a5c Fix disabled Paste command with no previous text-data in clipboard
Previously, a Notepad++ editor user activity or focus switching was needed for enabling possible clipboard Paste after a successful Copy command.

Fix #16456, close #16458
2025-04-30 02:46:53 +02:00
Don Ho
51449b09de Fix search result cut off result content due to nul characters ('\0')
Fix #6281, fix #15216, fix #16466, close #16469
2025-04-29 22:51:47 +02:00
Don Ho
8a4aa48ed7 Code improvement: improve header readability
Fix #16447, close #16451
2025-04-29 17:25:24 +02:00
Don Ho
08084d2b14 Use "(?)" static text instead of "?" button for the tip/info/message
Close #16478
2025-04-29 14:18:29 +02:00
Don Ho
4bc0d7f74b Notepad++ release 8.8 2025-04-28 17:25:18 +02:00
Don Ho
48d953693a Fix the wrong IDs of translation 2025-04-23 21:12:57 +02:00
Don Ho
a506fb583d Reposition checkbox in tab bar section in Preferences
Close #16459
2025-04-23 16:54:23 +02:00
Don Ho
08c9774ea5 Remove items from the localization files 2025-04-22 18:34:49 +02:00
Krazal
e8f94c7412 Update hungarian.xml
Make translation up-to-date, based on the latest commits (a239557, 2a3152c, 6bc7abb and 6bd3d9b).

Close #16457
2025-04-22 16:51:51 +02:00
rddim
928e832e27 [xml] Update Bulgarian localization
Close #16396
2025-04-22 02:59:02 +02:00
Matteo Concato
8c4278759e Update italian.xml
Close #16416
2025-04-22 02:56:54 +02:00
Radoš Milićev
0e32c63987 Update Serbian to v8.8
Close #16454
2025-04-22 02:53:32 +02:00
Andrei Miloiu
b07f120e74 [xml] Update romanian.xml
Close #16376
2025-04-21 14:27:16 +02:00
kubalav
22275b31bf [xml] Update Slovak translation
Close #16362
2025-04-21 01:30:39 +02:00
Marcellomco
c02c8c9739 [xml] Update brazilian_portuguese.xml
Close #16363
2025-04-21 01:28:55 +02:00
schnurlos
779c97a660 [xml] Update german.xml
Close #16375
2025-04-21 01:26:33 +02:00
yasmise
963b7f4982 [xml] Update japanese.xml
Close #16383
2025-04-21 01:23:14 +02:00
~GOLEM~
f4e9257ee2 [xml] Update russian.xml
Close #16395
2025-04-21 01:21:32 +02:00
xomx
8cc7bfe7f2 [xml] Update czech.xml to v 8.8
Close #16424
2025-04-21 01:19:45 +02:00
Patriccollu
794e2bc419 [xml] Update Corsican translation for Notepad++ 8.8
Close #16449
2025-04-21 01:06:32 +02:00
ozone10
faec21b57e Fix accent tooltip behaviour and enhance '(?)' static control appearence
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16434#issuecomment-2817077992

Close #16448
2025-04-21 00:56:09 +02:00
ozone10
9f2326d30c Fix GDI leak in setStartupBgColor
- remove unneeded icon color constants

Fix #16442, close #16443
2025-04-20 10:23:31 +02:00
ozone10
4ddad4683b Make dark mode menu bar color in inactive state similar to light mode
Fix #16445, close #16446
2025-04-20 02:49:52 +02:00
xomx
a449c5e804 Fix breaking of the cloned file status after Notepad++ restart
Fix #16412, close #16440
2025-04-20 00:23:00 +02:00
xomx
b324a68bc6 Fix inactive buffer reloading problem
To reproduce: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16344#issuecomment-2800159956

Fix #16344, close #16431
2025-04-19 23:49:06 +02:00
Don Ho
6bd3d9bfbe Add accent tip for toolbar settings & update localization files
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16434#issuecomment-2814666495
2025-04-19 15:08:47 +02:00
Hernan Martinez
29c71c46bb Fix compiling failure by LLVM/Clang's Windres
Call Windres with explicit UTF-8 encoding for reading .RC files.

Fixes #16410, close #16411
2025-04-18 14:08:51 +02:00
xomx
17cdde3622 Fix Find dialog status text too left visual glitch
Text was visible but positioned too left. This visual glitch was accented in Windows 11 due to its rounding-wnd-corners effect.

Fix #16359, close #16415
2025-04-18 14:04:54 +02:00
ozone10
b3b4782848 Apply dark mode on rebar chevron
Fix #10103, close #16421
2025-04-18 13:56:27 +02:00
ozone10
714eeafc45 Apply dark mode on treeview edit controls
- simplify code

Fix #16418, clos #16419
2025-04-18 02:27:36 +02:00
Don Ho
1657dbbc53 Fix wrong toolbar color picker custom color between black/light mode
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16370#issuecomment-2813190727
2025-04-17 22:33:09 +02:00
Don Ho
b68f25f3d6 Fix toolbar icon color picker's incoherent behaviour
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16370#issuecomment-2810227200
2025-04-17 12:29:05 +02:00
ozone10
d5b5e5e107 Refactor fluent icon color feature code
- fix visual glitches when toggling dark mode
- make english names consistent

Close #16435
2025-04-17 02:39:04 +02:00
WildByDesign
331030ce66 Add Accent Color for filled Fluent icons
Close #16434
2025-04-16 23:04:16 +02:00
Don Ho
e45f72ae39 Reorganize GUI of Preferences dialog
Follow 5447ef76235d7bdac7bdd1020d896dd9eb5cae28
2025-04-16 13:53:08 +02:00
ozone10
5447ef7623 Add option to apply different color to fluent toolbar icons
Fix #16369, fix #15430, close #16370
2025-04-12 14:57:03 +02:00
WildByDesign
f2b13814e8 Add Fluent Icons Accent
Ref: #15430, #16370

Close #16414
2025-04-12 14:52:52 +02:00
Don Ho
4f649d24dd Use only toolbarButtonsConf.xml for toolbar buttons/icons customization
Merge toolbarIcons.xml into toolbarButtonsConf.xml for toolbar buttons/icons customization and remove toolbarIcons.xml.

Fix #16402, close #16407
2025-04-11 16:32:10 +02:00
Don Ho
a23955742c Make some control names more accurate for dark mode
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16387#issuecomment-2786729453

Close #16401
2025-04-09 22:39:16 +02:00
ozone10
07e8d84e04 Fix crash when using custom toolbar icons
Fix leak when using custom icons for toolbar.

Fix #16366, close #16367
2025-04-09 17:16:38 +02:00
Christian Grasser
5c1813185a Update to scintilla 5.5.6 & Lexilla 5.4.4
Release 5.5.6 (https://www.scintilla.org/scintilla556.zip)

    Released 2 April 2025.
*   Disallow changing case of protected text. Bug #2463.
*   Return enumeration type from MarkerSymbolDefined to match MarkerDefine. Bug #2469.
*   On Win32, use DirectWrite for autocompletion lists when DirectWrite chosen for document text.
*   On Win32, optimize case-insensitive DBCS search to be around 5 times faster by using 64K memory to cache folding data for each DBCS code page used.
*   On Win32, fix a crash with bidirectional text.
*   When using Visual C++ through nmake, fix building for ARM64. Feature #1546.
*   On Qt, draw clipped UTF-8 text correctly. Bug #2464.
*   On Qt, avoid a dwell start when the mouse is moved outside the Scintilla widget. Bug #2466.
*   On Qt, autoCompleteSelection converts from local encoding when not in Unicode mode. Bug #2465.

Release 5.4.4 (https://www.scintilla.org/lexilla544.zip)

    Released 2 April 2025.
*   Fix building for ARM64. Pull request #308.

Close #16373
2025-04-08 18:41:39 +02:00
ozone10
f127ba02d0 Rename darkmode functions, variables
Rename darkmode functions, variables with name 'softer', 'pure' to 'ctrl', 'dlg'.

- remove unneeded `WM_ERASEBKGND` and check in some `WM_CTLCOLORSTATIC`
- fix wrongly used colors

ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16350#issuecomment-2779111617

Close #16387
2025-04-08 00:02:36 +02:00
Don Ho
2a3152cd1a Update localization files 2025-04-07 23:54:26 +02:00
Don Ho
dba2a9890e Add "Make the selected text foreground a single color" option on GUI
and remove the usage of zero length enableSelectFgColor.xml file.

Close #16391
2025-04-07 23:35:18 +02:00
Don Ho
673c3ee6cf Fix vertical tab bar messed up regression
Fix #16385
2025-04-05 19:13:07 +02:00
Don Ho
f7884726cf Add "Show only pinned button" option to prevent from inacurate click
Fix #15963, close #16334
2025-04-05 17:51:20 +02:00
ozone10
8537f022b1 Improve slider control's look in dark mode when it's disabled
Fix #16379, close #16380
2025-04-05 15:58:05 +02:00
Randy Fellmy
f59777b0b3 Fix a hanging issue on regexp
The hanging issue is introduced by a52738c1dd.

Close #16371
2025-04-04 19:20:21 +02:00
ozone10
df74c19269 Make combobox in dark mode similar to standard visual style
Fix #16349, close #16350
2025-04-04 18:23:50 +02:00
xomx
bb61d0fabc Fix invalid dot-char(s) handling in filenames checking
Remove the restriction of file extesion on reserved name in Windows system.

Fix #16328, close #16331
2025-04-04 18:16:08 +02:00
ozone10
15b92c69d7 Adjust hot and control (softer) colors
Fix #16353, close #16354
2025-04-04 01:10:56 +02:00
Don Ho
9122f45bdf Force npcNoInputC0 value as "true" by default to avoid C0 code input
Follow #16338

Fix #16326, fix #15839 , fix #15729
2025-04-03 18:01:39 +02:00
xomx
38ee65fdb2 Fix default installation setting for preventing control characters input
Before, a missing npcNoInputC0 config.xml entry caused the feature to incorrectly reset to false/no (the default for any missing config.xml boolean setting) during the first launch of the Notepad++.

Fix #16326, fix #15839, fix #15729, close #16338
2025-04-03 17:49:54 +02:00
xomx
2ae5df05b9 Fix "Keep selection when right-click outside of selection" not work issue
Make right-click message handler x-margin calculation right.
Previously, the incorrectly used unsigned variable (size_t) overflowed with negative numbers due to incorrect calculation of margin size.x (where possible horizontal scrolling was not taken into account...).

Fix #16325, close #16332
2025-04-03 17:31:28 +02:00
Don Ho
6bc7abb021 Make some items translatable (in UDL & on status bar)
Fix #15426, fix #8004, fix #8972, close #16347
2025-04-03 01:20:35 +02:00
Don Ho
11e01d9abc Use '/' instead of English "or"
Fix #16206, close #16339
2025-04-03 01:17:42 +02:00
Don Ho
09abbad3d7 Fix -pluginMessage needing filename to work.
Remove filename restriction for -pluginMessage.

Fix #16273, close #16340
2025-04-03 01:15:31 +02:00
Don Ho
3ae0875a8c Add class & method recognization ability for JavaScript function list
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13013#issuecomment-1899399803

Fix #13013, close #16342
2025-04-03 01:13:51 +02:00
Don Ho
2a24867e98 Fix an easter egg not showing issue
Fix #15170, close #16341
2025-04-03 01:12:10 +02:00
MarkusBodensee
b9bf6d64c6 Fix CMake build error
Update CMakeLists.txt to cmake_minimum_required(VERSION 3.10).
2025-04-03 00:32:35 +02:00
Don Ho
f3bc1881a3 Notepad++ release 8.7.9 2025-04-02 18:57:02 +02:00
Juan
9279c8e204 [xml] Update spanish.xml v. 8.7.9
Close #16320
2025-03-26 00:29:38 +01:00
Juan
ccb6993ab2 [xml] Update galician.xml v. 8.7.9
Close #16321
2025-03-26 00:27:47 +01:00
Karlo-F
13e2f5556b [xml] Update croatian.xml to v8.7.9
Close #16322
2025-03-26 00:25:06 +01:00
Hugo Carvalho
f9cd28e06f [xml] Update portuguese.xml
Close #16323
2025-03-26 00:23:12 +01:00
Don Ho
8ce442bd2d Fix a regression introduced by refactoring
The regression was introduce by:
ff734af115372eb3e6660c2891e55a914efb30bd

Fix https://community.notepad-plus-plus.org/topic/26716/notepad-v8-7-9-release-candidate/2?_=1742869287530
2025-03-26 00:06:08 +01:00
Don Ho
100164ff8d Update Taiwanese Mandarin 2025-03-23 17:55:03 +01:00
xomx
9eb2598ea4 Add version of external libraries (Scintilla/Lexilla/Boost) into Debug Info
Dynamically collects all the version info needed and creates NppLibsVersion.h file by the help of a pre-build event.

Fix https://community.notepad-plus-plus.org/topic/21513/determining-supporting-library-versions

Fix #11466, close #16318
2025-03-23 15:44:32 +01:00
Christophe Mateos
56795061c5 [xml] Update French translation
Close #16314
2025-03-22 17:52:31 +01:00
Don Ho
39d9525845 Fix switching different languages regression
This regression was introduced by de9ffd2.

Fix #16309, close #16312
2025-03-21 01:13:38 +01:00
Krazal
d3563cafac Update hungarian.xml
Make the translation up-to-date:
• Enable new low-level DirectX11 DirectWrite 1.1 Scintilla rendering mode

Close #16287
2025-03-19 16:11:31 +01:00
Andrei Miloiu
85477b7800 Update romanian.xml
Close #16288
2025-03-19 15:53:57 +01:00
kubalav
9e1184c771 [xml] Update Slovak translation
Close #16290
2025-03-19 03:41:58 +01:00
rddim
46525827ff [xml] Update Bulgarian localization
Close #16291
2025-03-19 03:39:27 +01:00
schnurlos
0b7162cf95 [xml] Update german.xml
Following a679e8ebfb

Close #16292
2025-03-19 03:24:24 +01:00
Radoš Milićev
ce64d99023 Update Serbian
Close #16308
2025-03-19 03:21:30 +01:00
A. Regnander
f4746ceeee Update swedish.xml
Close #16295
2025-03-19 02:26:40 +01:00
Marcellomco
33d90b7587 [xml] Update brazilian_portuguese.xml
Added translation for "Enable new low-level DirectX11 DirectWrite 1.1 Scintilla rendering mode"

Close #16296
2025-03-18 23:59:13 +01:00
xomx
48a68a7937 [xml] Update czech.xml to v8.7.9
Close #16302
2025-03-18 23:56:52 +01:00
~GOLEM~
3577dff9f7 [xml] Update russian.xml
Close #16304
2025-03-18 15:52:15 +01:00
yasmise
a06c257a07 [xml] Update japanese.xml
Update Japanese translation texts for this commit:
* Enable new low-level DirectX11 DirectWrite 1.1 Scintilla rendering mode (a679e8e)

Close #16306
2025-03-18 15:48:38 +01:00
Don Ho
ff734af115 Refactoring & cleanup Tabbar (part 2)
Remove unnecessary static functions, centralize the Tabbar settings on _tabStatus.

Close #16297
2025-03-17 13:02:37 +01:00
xomx
a679e8ebfb Enable new low-level DirectX11 DirectWrite 1.1 Scintilla rendering mode
Allow selection of the Scintilla v5.5.5 SC_TECHNOLOGY_DIRECT_WRITE_1 (Windows 7 SP1 and newer only).

Close #16284
2025-03-16 03:38:47 +01:00
Don Ho
659330e81a Fix plugin button hidings being ignored bug in toolbar button conf
Fix plugin button hidings settings being ignored bug in toolbar button config,
if the value of "hideAll" attribute of "Standard" node in "toolbarButtonsConf.xml" is set to "yes".

Fix #16280, close #16285
2025-03-15 23:31:22 +01:00
Don Ho
0ead95eb86 Fix incorrect syntax hiliting by switching from wrong langType to right one
Regression was introduced by commit b2152d983e3b20aed7f687ba1d9e916ae6065b24

Fix #16271, close #16281
2025-03-15 03:52:50 +01:00
Don Ho
25a40b9a62 Refactoring & clean up for TabBar (part 1)
Close #16275
2025-03-14 16:14:23 +01:00
PeterCJ
88bc3955e9 Fix SQL Backslash Escape preference not taking effect immediately
Refresh SQL lexer(s) on preference change.
With new internal message, able to send the SQL property to the each SQL buffer.

Fix #16244, close #16258
2025-03-13 20:06:32 +01:00
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 b2152d983e3b20aed7f687ba1d9e916ae6065b24

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 fc051a1231065731205ff5e315684ce3bfb19033, 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
pryrt
236bbf5aa5 Allow shortcuts for keys specific to non-en-US keyboards
Add keyboard-specific customizable keys to shortcut mapper.

Fix #16071, close #16095
2025-01-22 03:36:53 +01:00
Juan
1d4e3c5067 [xml] Update spanish 8.7.5.xml
Close #16018
2025-01-21 05:35:38 +01:00
Juan
8c4c2c2fe3 [xml] Update galician.xml v.8.7.5
Close #16097
2025-01-21 05:31:03 +01:00
Krazal
e00f338d95 Update hungarian.xml
Close #16093

Up-to-date Hungarian language file:
• Show buttons on inactive tabs
• Shorter Menu Settings/Preferences
• HowToReproduce comment (FindCharRangeValueError)
• Search and Shortcuts warnings (FindAutoChangeOfInSelectionWarning and Need2Restart2ShowMenuShortcuts)
2025-01-20 09:53:52 +01:00
Karlo-F
ae8df71e77 [xml] Update croatian.xml to v8.7.5
Close #15977
2025-01-20 09:36:41 +01:00
indiff
f5fbff5927 Update chinese.xml
Close #15988
2025-01-20 09:23:44 +01:00
Christophe Mateos
6113b73038 [xml] Update french.xml
Close #15996
2025-01-20 09:21:24 +01:00
Hugo Carvalho
874043bfaa [xml] Update Portuguese.xml
Close #16004
2025-01-20 09:15:38 +01:00
Juan
b6c177088d [xml] Update galician 8.7.5.xml
Close #16019
2025-01-20 09:00:51 +01:00
A. Regnander
79b59ff0b5 Update swedish.xml
Added string for the "Follow current doc." checkbox, which was removed in commit 6453379

Close #16024
2025-01-20 08:53:26 +01:00
kubalav
190a04fde5 [xml] Update Slovak translation
Close #16028
2025-01-20 08:48:24 +01:00
Marcellomco
59e1005a61 [XML] Update brazilian_portuguese.xml
Added translation for "Fix wrong replace all while 2nd time replace in selection"

Close #16030
2025-01-20 07:31:53 +01:00
Patriccollu
b9da6067a8 [xml] Update Corsican translation for Notepad++ 8.7.6
Close #16037
2025-01-20 07:25:42 +01:00
yasmise
1ba37e0faa [xml] Update japanese.xml
Update translation lines for this commit:
* Fix wrong replace all while 2nd time replace in selection (4b637b4)

Close #16038
2025-01-20 07:11:49 +01:00
Andrei Miloiu
bb2af02063 [xml] Update Romanian translation for Notepad++ 8.7.6
Close #16040
2025-01-20 07:09:07 +01:00
Matteo Concato
6a08f0a0ed [xml] Update italian.xml
Close #16049
2025-01-20 06:49:05 +01:00
schnurlos
f7881f61c0 Update german.xml
Following 4b637b4fc8.
Fixed https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16052 (thx @octaeder)
Fixed https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15795 (thx @cyclingcat)
Hopefully fixed https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16045 (thx @ all)

Close #16055
2025-01-20 06:35:11 +01:00
Radoš Milićev
5d6cefcc79 Sync Serbian with v8.7.6
Close #16068
2025-01-20 06:03:06 +01:00
~GOLEM~
b110c4d65e Update russian.xml 8.7.6
Close #16074
2025-01-20 06:00:10 +01:00
rddim
8794247420 [xml] Update Bulgarian localization
Close #16078
2025-01-20 05:57:59 +01:00
xomx
85acdbc8a0 [xml] Update czech.xml to v8.7.6
Close #16086
2025-01-20 05:55:02 +01:00
xomx
b09b89799b Fix floating panels position resetting in multimon extended mode
This fixes a regression caused by PR #15236 (Fix for the "lost" panels problem).

As the Virtual Screen in the extended multi-monitor mode can start not a the point 0,0 (as the primary monitor does) but also at some negative coordinates, we have to deal with it.

The MS Virtual Screen concept ref:
 https://learn.microsoft.com/en-us/windows/win32/gdi/the-virtual-screen

Fix #15498 , fix #16077, close #16079
2025-01-19 19:46:13 +01:00
pryrt
6dfbc1f7e8 Add ShortcutMapper MultiLingual ability
When application is first loaded, it scans through the VK mappings on the active keyboard, and for the keyboard-specific keys (focused on the VK_OEM_# and similar keys), it will read what Windows says is the actual character associated with that virtual key code, and will populate a mapping for display purposes; when Notepad++ is showing the shortcut keys in menus or in the Shortcut Mapper, it will display the keyboard-specific character rather than the default en-US character.

(Debugged locally using Windows' `osk.exe` virtual keyboard app, and users with alternate physical keyboards have verified it for me as well, including the original requester.)

Fix #15966, Fix #14395, close #16072
2025-01-19 06:10:59 +01:00
Don Ho
1cf112a342 Fix "Show buttons on inactive tabs" option inconsistent behaviour
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16059#issuecomment-2589933587
2025-01-15 09:36:36 +01:00
Don Ho
0d484da68e Add "download" attribute in HTML
Fix #16036
2025-01-15 08:41:10 +01:00
Alan Kilborn
b962835fef Fix backup file renaming bug for untitled tabs
Fix #16043, close #16047
2025-01-15 06:51:27 +01:00
Don Ho
3921812175 GUI enhancement: hide right menu shorcuts on the fly
Make the option "Hide right shortcuts + ▼ ✕" (in Preferences->General->Menu) hide right menu shortcuts immediately.
2025-01-15 05:59:45 +01:00
Don Ho
c2d1ec6c85 Add localization entry & clean up 2025-01-14 12:34:17 +01:00
Don Ho
8fde4bd8aa Make "Show close/pin button on each inactive tab" optional
Fix #15912, fix #16035, close #16059
2025-01-14 12:33:37 +01:00
Don Ho
26c3008525 Make current line/position copiable in Go to line dialog
Fix #15950
2025-01-13 09:54:16 +01:00
Alan Kilborn
d7ddb6ea3a Enhance UX in "Find in file" action while Directory field is empty
Move the input focus to Directory edit control if Directory field is empty while launching Find in files search.

Fix #16051, close #16057
2025-01-13 08:28:03 +01:00
Don Ho
e28324b8d0 Fix reload losing syntax highlighting regression
The regression is introduced by:
de9ffd2ea8

Fix #16027, close #16042
2025-01-11 04:48:57 +01:00
rdipardo
9e1db77f81 Fix literals wrong style for server side JavaScript
Add styles for SCE_HJ_TEMPLATELITERAL and SCE_HJA_TEMPLATELITERAL in styles.xml.

Fixes #15821, close #15822
2025-01-09 11:29:05 +01:00
Mmaloy
4fc044ed67 Add "color-scheme" keyword for CSS
Fix #15825, close #15930
2025-01-09 11:06:29 +01:00
Alan Kilborn
104cc8af73 Fix crash while passing invalid buffer with NPPM_SETUNTITLEDNAME
Fix #15970, close #15975
2025-01-09 10:55:03 +01:00
Don Ho
d9d7c4fbb3 Fix vertical tab crashes on enabling/disabling pin tab feature
Fix #16033, close #16034
2025-01-08 18:50:36 +01:00
Alan Kilborn
4b637b4fc8 Fix wrong replace all while 2nd time replace in selection
Prevent search from running with unintended "In selection" parameter.

Fix #14897, fix #14624, fix #15992, close #15995
2025-01-08 09:00:46 +01:00
Christian Grasser
a6103d5de7 Update to scintilla 5.5.3 & Lexilla 5.4.1
Release 5.5.4 (https://www.scintilla.org/scintilla554.zip)

    Released 18 December 2024.
    Update to Unicode 15.1. Issue #285.
    Improve performance of SCI_BRACEMATCH. Feature #1533.
    Improve performance of DBCS text. Feature #1535.
    Fix wrapping removed lines. Bug #2456.
    Fix moving line down to empty final line and moving empty final line up. Bug #2457.
    On GTK, allow middle click to insert multiple times within a document. Geany Issue #2629.

Release 5.4.2 (https://www.scintilla.org/lexilla542.zip)

    Released 18 December 2024.
    Update to Unicode 15.1. Issue #285.
    Lexer added for Nix "nix". Pull request #282.
    JavaScript: Use correct SCE_HJA_TEMPLATELITERAL style for server-side template literals in HTML instead of client-side style. Issue #286.
    JavaScript: Use correct SCE_HJ_SYMBOLS style for '.' after regex instead of SCE_HJ_WORD. Prevent empty word assertion when non-word character after regex flag. Issue #289.
    PHP: Fix unstable lexing with substyled keyword and unterminated string. Issue #288.
    Rust: Add C string and raw C string literal styles SCE_RUST_CSTRING and SCE_RUST_CSTRINGR. Pull request #292, Issue #268.
    TOML: Don't treat keys without values as errors. Pull request #283.
    Zig: Add SCE_ZIG_IDENTIFIER_STRING for identifiers expressed as strings. Pull request #287.

Fix #15817, fix #10528, fix #15801, close #15982
2025-01-08 07:14:08 +01:00
Don Ho
7544df5348 Fix regressionn while disabling clickable link
The regression was introduced by commit 71be434a334d300487c5d23114dc4afd084b94aa

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15926#issuecomment-2572268207

Close #16025
2025-01-07 05:18:31 +01:00
Don Ho
71be434a33 Improve performance while disabling clickable URL link
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2570310216

Close #16021
2025-01-06 04:40:05 +01:00
Don Ho
c5dd85cd93 Improve performance: Optimize activateBuffer function
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15952#issuecomment-2567521808

Close #16010
2025-01-03 14:08:12 +01:00
Don Ho
c17d1d428d Optimize Scintilla notification code performance (part 2)
Turn off modification events for some Scintilla controls.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2565003286

Close #16009
2025-01-03 08:20:35 +01:00
Don Ho
f40df3cdf1 Optimize Scintilla notification code performance
Treat only main & sub Scintilla views for the most of SCN_* notification:

1. Move all SCN_* together.
2. Add a if (!notifyView) return FALSE; in the begining of case for most of all SCN_* notification.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15981#issuecomment-2565003286

Close #15994
2024-12-31 02:09:54 +01:00
Don Ho
de9ffd2ea8 Enhance large files with syntax highlighting performance
Fix #15952, close #15981
2024-12-30 16:06:35 +01:00
Don Ho
8a8f8b2a89 Notepad++ 8.7.5 release 2024-12-25 05:34:02 +01:00
Don Ho
50c2c3a74a Fix regression "Open Selected PathName(s)" command not working with Ctrl-A
The regression is introduced by:
467182602a

The solution is from:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15960#issuecomment-2553746218

Fix #15960
2024-12-21 03:53:45 +01:00
xomx
0447dc8988 [xml] Update czech.xml to v8.7.5
Close #15971
2024-12-21 03:08:52 +01:00
Matteo Concato
6a8e0d4080 [xml] Update italian.xml
Close #15972
2024-12-21 03:04:12 +01:00
~GOLEM~
0692b4fdbe [xml] Update russian.xml v 8.7.4
Close #15973
2024-12-21 03:00:10 +01:00
rddim
1372001473 [xml] Update Bulgarian localization
Close #15974
2024-12-21 02:57:15 +01:00
Don Ho
2f1cdbbef8 Fix nfo file losing modification issue (regression)
The regression is introduced by:
dd0b557e14 (diff-d88ddee57a027ab23daf332c4778ced0cee352edcb34efdda1b218e8a75c61b2R1864)

Fix #15964, close #15969
2024-12-20 10:58:33 +01:00
Andrei Miloiu
a664213210 Update romanian.xml
Close #15882
2024-12-20 07:46:18 +01:00
Krazal
6c6532b254 Update hungarian.xml
Updates for v8.7.3:
• Updated header and versioning to be more trackable/understandable
• Added translation of missing (un)pin operations
• More consistent translation of tab operations

Close #15910
2024-12-20 07:44:05 +01:00
Radoš Milićev
cfdbfc139a Update Serbian to v8.7.4
Close #15911
2024-12-20 07:41:05 +01:00
schnurlos
5c3d481509 [xml] Update german.xml
Following 83080c3404

Close #15927
2024-12-20 07:33:20 +01:00
Marcellomco
7816c50b06 Update brazilian_portuguese.xml
Added translation for "Fix the localization files to match the new behaviour"

Close #15931
2024-12-20 07:00:59 +01:00
kubalav
795129f4e5 [xml] Update Slovak translation
Close #15933
2024-12-20 06:58:11 +01:00
yasmise
017837f932 [xml] Update japanese.xml
Update translation texts for:
* Enhance "Follow current doc." GUI action/option in Find in files (6453379)
* Make translations clear.

Close #15962
2024-12-20 06:47:16 +01:00
A. Regnander
a6a300dd97 Update swedish.xml
Close #15965
2024-12-20 06:44:37 +01:00
Don Ho
f205b12230 Fix UDL comment & comment line conflicting
Fix #11897, close #15961
2024-12-20 04:37:38 +01:00
Don Ho
cb1172e2a4 Enhabnce updateTimeStamp fuction
Follow the disscussion:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15936#discussion_r1886067242

Close #15968
2024-12-20 04:34:56 +01:00
Don Ho
f535087e5d Code enhancement: remove obsolete code
The removed code in this commit were added for working around Microsoft ReadDirectoryChanges notification issue:
1a97d3c854
Apparently the issue has been fixed. The following issue has been tested with this commit, no issue found:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5591#issuecomment-487313886

This commit could remedy #15819 partially.

Close #15967
2024-12-20 04:32:50 +01:00
xomx
de1a04038b Fix network file wrong modification detection (regression from v8.7.1)
- increased DEFAULT_MILLISEC constant from 1000 to 3000 (some slower networks obviously cannot respond within the previous 1sec response timeout).
- the problematic situation was apparently made worse by the fact that the Buffer::checkFileState() did not issue one GetFileAttributesEx call but also an unnecessary second one (this was probably caused by an incorrect transcription of the previous version of this func for the new non-blocking thread method of calling the GetFileAttributesEx).
- other problem was that the checking func did not check at all whether the threaded call to the GetFileAttributesEx succeeded or had to be forcibly terminated from the main app thread and expected successful calling only.
- the nppLogNetworkDriveIssue logging has been enhanced.
- added option to check possible WIN32API error code of the threaded GetFileAttributesEx call from the main N++ thread.

Fix #15819, close #15936
2024-12-19 05:21:23 +01:00
Don Ho
0c4bb240eb Fix a typo for Kabyle identifier
Fix #15947
2024-12-18 06:02:24 +01:00
Christian Grasser
d6a32d2f0c Added Visual Basic function list + unittest case
Fix #3239, close #15953
2024-12-18 02:28:24 +01:00
pryrt
f5f7c14853 Update Verilog stylers/themes
Update verilog stylers/themes to remove conflicting styleID=2 style named TAGNAME.

Fix #15955, close #15957
2024-12-18 02:16:33 +01:00
Don Ho
a0bb55f0ed Remove the obsolete entry from localization files 2024-12-17 17:57:23 +01:00
Alan Kilborn
6453379ac8 Enhance "Follow current doc." GUI action/option in Find in files
Fix #15908, close #15938
2024-12-17 14:02:07 +01:00
notdodgeball
06a03ea41e Fix Reload Workspace not working
In case of reloading, openWorkSpace() needs to be called forced=true always.

Fix #11551, close #15946
2024-12-17 06:10:16 +01:00
Alan Kilborn
471a308bca Improve Copy-Selected-Lines
Follow the spec: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15803#issuecomment-2515580625

Fix #15803, close #15854
2024-12-14 04:38:24 +01:00
Don Ho
10ae99e790 Fix unsaved documents lost on next launch if portable npp change path
When Notepad++ portable version changes its path (move/rename), the periode backup files (unsaved documents) are lost on the next session, due to the absolute paths in session files. This commit fixes the issue by ensuring the backup path matches with such documents.

Fix #1587, fix #15886, close #15942
2024-12-12 13:30:05 +01:00
xomx
dc583bf34e Code enhancement: Prevent backup worker thread crash at Notepad++ exit
Use thread safe g_bNppExitFlag and optimize the Notepad_plus::backupDocument worker thread.

Fix: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15681#issuecomment-2403168094, close #15935
2024-12-11 05:16:29 +01:00
Don Ho
fdf3ed2714 Add Swift, TypeScript, and Go for advanced Auto-indent
Fix #15900, close #15925
2024-12-09 23:30:42 +01:00
Don Ho
83080c3404 Fix the localization files to match the new behaviour 2024-12-09 22:47:39 +01:00
xomx
d6169c418e Fix unusuability after deleting files in split view
Update _mainWindowStatus before switchEditViewTo for fixing hidden document-view after deleting files in both views from outside.

Fix #15922, close #15923
2024-12-09 02:04:51 +01:00
Christian Grasser
af9af11aec Refactoring for the better performance & smaller binary size
1. remove deprecated std::codecvt
2. replace s2ws -> string2wstring and ws2s -> wstring2string

Fix #15898, close #15913
2024-12-08 16:16:14 +01:00
xomx
4972dcf4b3 Add "Show details" functionality in installer
Fix #15718, close #15719
2024-12-07 16:07:32 +01:00
Don Ho
b3110cdccf Notepad++ 8.7.4 release 2024-12-05 03:14:51 +01:00
Don Ho
11a02f69c8 Fix regression of multi-line tabbar height not updated after closing
Fix regression of multi-line tabbar height not updated after "Close all to the Right" command.

Fix #15905, close #15906
2024-12-04 21:33:56 +01:00
Piotr Kostrzewski
ec0b2b5aa2 Update polish.xml
Close #15862
2024-12-04 21:03:45 +01:00
Hugo Carvalho
8cd3860cec [xml] Update Portuguese.xml
Close #15849
2024-12-04 20:48:45 +01:00
schnurlos
136c8d1197 [xml] Update german.xml
Following 2c1212cba5 & 287c85f8f0

Close #15865
2024-12-04 20:22:23 +01:00
Njardarheim-1337
c0cdb2e432 Updated Norwegian translation 8.7.2
Close #15866
2024-12-04 20:19:05 +01:00
Tmp341
10627b02de [xml] Update Turkish localization
* Used [Compare](bfe27cc..f18d99e (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)).

Close #15896
2024-12-04 20:14:57 +01:00
xomx
da79968bd4 Add some more Debug Info
+ Placeholders
+ DirectWrite
+ Multi-instance Mode
+ File Status Auto-Detection
+ Dark Mode

Fix #15903, close #15904
2024-12-04 16:19:01 +01:00
Don Ho
3426d58339 Fix applying MS-Dos style displayed incorrectly issue 2024-12-03 18:36:08 +01:00
Don Ho
dd0b557e14 Fix encoding of nfo file cannot be changed bug
Fix #8823, fix #9153, fix #13905, close #15902
2024-12-03 17:00:53 +01:00
Don Ho
28244a5996 Buffer small refactoring
Close #15895
2024-12-03 16:16:23 +01:00
pawelzwronek
2ed30a53ee Fix the extension defined by user not override language default extension
Check user defined extensions for styles first when detecting lang from extension.

Fix #8035, fix #8304, fix #15826, fix #10609, close #15888
2024-12-02 16:55:52 +01:00
Don Ho
a7e2faf868 Notepad++ 8.7.3 release 2024-12-01 17:05:43 +01:00
Don Ho
1c3c2f8d3b Update localization files 2024-11-30 15:39:00 +01:00
Matteo Concato
822a0abda4 Update italian.xml
Close #15844
2024-11-30 13:48:23 +01:00
Karlo-F
1fafa4edbc [xml] Update Croatian.xml for Notepad++ 8.7.3
Close #15884
2024-11-30 13:37:17 +01:00
kubalav
e15e4a7e49 [xml] Update Slovak translation
Close #15885
2024-11-30 13:24:33 +01:00
Marcellomco
d774b9b9c2 [XML] Update brazilian_portuguese.xml
Close #15864
2024-11-29 21:23:33 +01:00
xomx
435a8128f1 [xml] Update czech.xml to v8.7.3
Close #15880
2024-11-29 21:19:13 +01:00
春风化雨细如丝
ac7a2a4506 Update chineseSimplified.xml
Chinese Simplified translation for Indentation

Close #15858
2024-11-29 19:25:58 +01:00
Patriccollu
d871bec179 [xml] Update Corsican translation for Notepad++ 8.7.3
Close #15868
2024-11-29 19:22:33 +01:00
xomx
b43eba3f4b Fix docked panels invisibility in multiinst mode
When Notepad++ was set to "Always in multi-instance mode" and the 1st instance has been minimized to the task-bar, then the other instance's docked panels were invisible.

Fix #15873, and fix many Community reports like this link: https://community.notepad-plus-plus.org/topic/26164/v8-7-search-results-missing
2024-11-29 18:04:00 +01:00
yasmise
234ce61b9f [xml] Update japanese.xml
Update translation texts for these commits:
* Rename an option in Preferences dialog to fit other settings (2c1212c)
* Add Pin/Unpin Tab context menu item (287c85f)
* Update localization files to v8.7.3 (16da20e)

Close #15876
2024-11-29 16:42:37 +01:00
yasmise
f18d99e24c [xml] Add a missing line to english.xml
Close #15877
2024-11-29 16:39:53 +01:00
Don Ho
dc883d94d3 Fix a crash while disabling "Pin tab" feature
Fix #15860
2024-11-29 01:18:27 +01:00
~GOLEM~
830979354b [xml] Update russian.xml v 8.7.3
Close #15872
2024-11-29 00:09:50 +01:00
Don Ho
16da20efd6 Update localization files to v8.7.3 2024-11-28 21:54:00 +01:00
Don Ho
61a1ca89ff Add "Close All BUT Pinned" command
Close #15863
2024-11-28 21:49:05 +01:00
xomx
6229e0f5d4 Fix regression: Drag&drop a folder in Notepad++ launch redundant dialog
The regression is introduced by commit: c021c86195

Only returning BUFFER_INVALID in FileManager::loadFile immediately if the file size check == -1. This is a must here because of the following code does not expect such -1 in fileSize.
But an error msg is not appropriate here, as it could also be a legal attempt to open a dir (with files inside) or an attempt to use the N++ globbing feature.
This early return also speeds up the loading stage a bit.

Fix #15869, close #15870
2024-11-28 19:51:00 +01:00
xomx
b1237df06a Fix a possible buffer overflow issue
Fix possible DockingManager::FindEmptyContainer() buffer overflow.

Fix #15850, close #15851
2024-11-28 18:07:04 +01:00
Don Ho
287c85f8f0 Add Pin/Unpin Tab context menu item
Close #15852
2024-11-27 20:01:54 +01:00
Alan Kilborn
2c1212cba5 Rename an option in Preferences dialog to fit other settings
Rename 'Darken inactive tabs' to 'Change inactive tab color' and add "Go to Settings" for "inactive tab" in Style Configurator.

Fix #15800, close #15840
2024-11-27 18:46:04 +01:00
Don Ho
aaf3b3906e Notepad++ 8.7.2 release 2024-11-27 04:15:57 +01:00
Don Ho
ae56752472 Fix "Reduce Tabbar" option on/off not changing to needed tab width
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/17?_=1732420272946
2024-11-25 17:31:38 +01:00
Don Ho
7af3c104d5 Fix copied paths repeated for "Copy Selected Pathname(s)" in Search results
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/11?_=1732379132698

Fixed by: af2b90f0a5 (r149445528)
2024-11-23 17:50:06 +01:00
Don Ho
09332d6f98 Promote Pin Tab feature
Fix: https://community.notepad-plus-plus.org/topic/26388/notepad-v8-7-2-release-candidate/8?_=1732379132695
2024-11-23 17:24:22 +01:00
Don Ho
2556c1e56a Fix xml file structure error 2024-11-22 03:24:54 +01:00
Don Ho
30c6ac778e Remove obsolete entries from localization files 2024-11-22 03:20:39 +01:00
Don Ho
c1244b076a Remove unnecessary translation
ref: c021c86195 (r149366417)
2024-11-22 03:10:54 +01:00
Andrei Miloiu
fbff18fbc7 [xml] Update Romanian translation for Notepad++ 8.7.2
Close #15814
2024-11-22 02:42:47 +01:00
Njardarheim-1337
640e4f3432 Updated Norwegian translation 8.6.9
Close #15829
2024-11-21 23:08:57 +01:00
Matteo Concato
ae290d3d29 [xml] Update italian.xml
Close #15774
2024-11-21 23:07:25 +01:00
schnurlos
5b83d3a24a [xml] Update german.xml
Close #15755
2024-11-21 22:53:31 +01:00
artpoli
6282d90db7 [xml] Update Ukrainian translation
Close #15753
2024-11-21 22:50:27 +01:00
Radoš Milićev
780f77b544 Update Serbian localization to v8.7.2
Close #15836
2024-11-21 19:16:44 +01:00
Don Ho
09202b3270 Update translations 2024-11-21 19:14:24 +01:00
Krazal
241a2dbbf3 Update hungarian.xml
Complete and up-to-date re-translation of the Hungarian language file, including:
• Translating the missing terms
• Adding missing accelerator letters (also for dialogs)
• Correcting the previous spelling errors (e.g. capitalization)
• Re-translating the inaccurate expressions more accurate
• Re-translating the outdated terms

Close #15824
2024-11-21 17:40:29 +01:00
A. Regnander
c25a925370 Update swedish.xml
Close #15760
2024-11-21 16:49:56 +01:00
xomx
76b4045df4 [xml] Update czech.xml to v8.7.2
Close #15835
2024-11-21 16:19:47 +01:00
rddim
4113c85b78 [xml] Update Bulgarian localization
Close #15799
2024-11-20 20:47:20 +01:00
Marcellomco
3273267261 [XML] Update brazilian_portuguese.xml
Close #15761
2024-11-20 20:02:23 +01:00
kubalav
62e80fbe3d [xml] Update Slovak translation
Close #15790
2024-11-20 20:00:07 +01:00
Patriccollu
495e952174 [xml] Update Corsican translation for Notepad++ 8.7.2
Close #15808
2024-11-20 19:55:17 +01:00
pawelzwronek
4c9adcb0fa [xml] Update polish.xml
Close #15809
2024-11-20 16:32:14 +01:00
Karlo-F
c21d0daeae [xml] Update Croatian translation for Notepad++ 8.7.2
Close #15823
2024-11-20 15:54:48 +01:00
~GOLEM~
7df8020d16 [xml] russian.xml v8.7.2
Close #15807
2024-11-20 15:51:03 +01:00
yasmise
975f0b948b [xml] Update japanese.xml
Update translation texts for these commits:
* Add one comment for localization file (ba8cd8c)
* Notepad++ 8.7.1 release (ba3b457)
* Add Pin tab feature (ce58b42)

Close #15783
2024-11-20 15:47:34 +01:00
WildByDesign
dad2353a1b Update Record macro toolbar icon for dark mode
Close #15818
2024-11-19 16:01:30 +01:00
xomx
c021c86195 Code enhancement for file checking
Add missing dwFileAttributes init to INVALID_FILE_ATTRIBUTES.

Close #15820
2024-11-19 15:44:13 +01:00
Don Ho
8f0484caf3 Fix Ctrl-C not doing copy from Search result issue (part 2)
Fix using F7 to switch in Search results not working with Ctrl-C issue.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15739#issuecomment-2481400295
2024-11-19 02:52:48 +01:00
Don Ho
af2b90f0a5 Add ability to open/copy selected files from Search-results (2)
Restoring the ability of copying untitled document name.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15741#issuecomment-2481665911
2024-11-18 16:52:26 +01:00
Don Ho
467182602a Fix selected pathnames in search results localization issue
Bug introduced by commit: b8224808bd (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472L1722)

Fix by https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15741#issuecomment-2480350071

Close #15813
2024-11-17 16:54:07 +01:00
pawelzwronek
30e1319ea8 Fix empty.ico - removed random semi-transparent pixel
Close #15811
2024-11-17 16:38:47 +01:00
Don Ho
c24444acfe Fix Ctrl-C not doing copy from Search result issue
Solution from: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15739#issuecomment-2479671245

Fix #15739, close #15810
2024-11-16 22:09:10 +01:00
pawelzwronek
eeb4753044 Add "Minimize / Close to" option for System tray
Fix #15771, close #15785
2024-11-14 16:56:02 +01:00
Alan Kilborn
b8224808bd Add ability to open/copy selected files from Search-results
Add ability to open/copy selected files from Search-results, not always ALL files.

Fix #15741, close #15763
2024-11-14 16:01:02 +01:00
Don Ho
796b3a40b7 Highlight inactive darken tab on mouse hover
Fix #15791, close #15794
2024-11-13 18:04:46 +01:00
Don Ho
f607044da0 Fix wrong position of pin button while close disabled and pin enabled
After disable close button and enable pin button, relaunch Notepad++ will make wrong position of pin button on tab.
This commit fix the bug.
2024-11-13 02:11:20 +01:00
Don Ho
5f4610293c Hide inactive tab buttons (Close & Pin)
Fix #15298, close #15781
2024-11-12 04:38:34 +01:00
Don Ho
55df104606 Refactoring (part 2) 2024-11-10 03:51:33 +01:00
Don Ho
c5094fee8b Refactoring to move the message definitions to the right place
Move the message definitions of toolbar & tabbar to the right place.

Close #15775
2024-11-10 00:18:28 +01:00
Don Ho
d9c24ad78f Remove dead entry from the localization files
Ref: ce58b424bd (commitcomment-148911101)
2024-11-09 14:43:49 +01:00
Don Ho
ce58b424bd Add Pin tab feature
Fix #5786, close #15750
2024-11-09 03:59:20 +01:00
Coises
5d29f72464 Fix replace field focus losing when Notepad++ is switched back
Fix #6021, close #15756
2024-11-04 19:18:48 +01:00
Don Ho
ba3b4578b2 Notepad++ 8.7.1 release 2024-11-04 14:39:21 +01:00
Don Ho
682570ea6d Fix saved file from new empty doc keeping created time tip issue
Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/11?_=1730165549940
2024-10-31 00:13:35 +01:00
Don Ho
2aa47e3219 Revert "Fix saved file from new empty doc keeping created time tip issue"
This reverts commit 93ecbb004c8a216d17a8b940572a388f010c94ee.
2024-10-31 00:12:37 +01:00
Craftidore
3311924e1c Make auto-completion case sensitive for lua
Fix #15612, close #15613
2024-10-30 02:01:31 +01:00
Don Ho
93ecbb004c Fix saved file from new empty doc keeping created time tip issue
Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/11?_=1730165549940
2024-10-30 01:53:07 +01:00
Juan
ddf7908535 [xml] Update spanish.xml v. 8.7.1
Close #15730
2024-10-29 01:38:58 +01:00
Juan
b29fe57c26 [xml] Update galician.xml v. 8.7.1
Close #15731
2024-10-29 01:33:50 +01:00
xomx
bd415530a3 [xml] Update czech.xml to v8.7.1
Close #15736
2024-10-29 01:29:07 +01:00
xomx
62e6a5378a Fix SaveAs dialog "Append extension" option not working issue
Fix the regression introduced in commit:
f884a39dd4

Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/4
Close #15745
2024-10-29 01:24:22 +01:00
rddim
ef4bedefea [xml] Update Bulgarian localization
Close #15694
2024-10-24 04:27:03 +02:00
Don Ho
c9168cce80 Add 2 unit tests for URL
Follow 7dbb459b55642f48c99bc2e5b806ef7a6e971881
2024-10-23 04:02:19 +02:00
Czespo
7dbb459b55 Fix URL parsing issue with '?' after '#'
Fixes #13583, close #15670
2024-10-22 18:49:19 +02:00
p@pawel-pc
5a02c17803 [xml] Update polish.xml
- Minor fixes and added missing translations

Close #15722
2024-10-21 23:33:14 +02:00
Hugo Carvalho
cc942822fa [xml] Update portuguese.xml
Close #15723
2024-10-21 22:09:48 +02:00
Don Ho
c224a9630e Fix modified Find dialog status msg not being remembered throu sessions
Fix #15724
2024-10-21 17:07:10 +02:00
Karlo-F
911600fa20 [xml] Update Croatian.xml for Notepad++ 8.7
Close #15624
2024-10-21 15:48:23 +02:00
A. Regnander
40c668e77e Update swedish.xml
Updated strings from last english.xml commit, minor correction to existing string

Close #15621
2024-10-21 15:41:33 +02:00
Patriccollu
d34bca6a17 [xml] Update Corsican translation for Notepad++ 8.7.1
Close #15689
2024-10-21 15:35:39 +02:00
~GOLEM~
98a24a4d90 [xml] russian.xml v 8.7.1
Close #15720
2024-10-20 19:42:34 +02:00
schnurlos
f6655850a7 [xml] Update german.xml v8.7
Close #15623
2024-10-20 18:40:29 +02:00
Andrei Miloiu
439456bc43 [XML] Update romanian.xml
Close #15715
2024-10-20 18:25:13 +02:00
Marcellomco
7d9c60ff77 [XML] Update brazilian_portuguese.xml
Close #15710
2024-10-20 18:23:29 +02:00
p@pawel-pc
c8533ddc52 Update translation texts for these commits:
* Add "Close to system tray" in MISC preference (035ef19)
* Improve GUI for commands for the system tray in Preferences (cd45afc)

Close #15700
2024-10-20 18:18:58 +02:00
Matteo Concato
5a20b1e54a [XML] Update italian.xml
Close #15699
2024-10-20 18:17:01 +02:00
yasmise
d3687c1b89 [xml] Update japanese.xml
Update translation texts for these commits:
* Add "Close to system tray" in MISC preference (035ef19)
* Improve GUI for commands for the system tray in Preferences (cd45afc)

Close #15693
2024-10-20 18:10:59 +02:00
kubalav
2097969e73 [xml] Update Slovak translation
Close #15692
2024-10-20 18:08:58 +02:00
Christian Grasser
213e9135ba Update to scintilla 5.5.3 & Lexilla 5.4.1
Release 5.5.3 (https://www.scintilla.org/scintilla553.zip)

    Released 19 October 2024.
    On Win32 change direction of horizontal mouse wheel and touchpad scrolling to match other applications. Bug #2449.

Release 5.4.1 (https://www.scintilla.org/lexilla541.zip)

    Released 19 October 2024.
    Lexer added for Dart "dart". Pull request #265, Pull request #275.
    Lexer added for troff / nroff "troff". Pull request #264.
    Lexer added for Zig "zig". Pull request #267.
    C++: Fix crash for empty documentation comment keyword where '<' occurs at line end.
    F#: Include EOLs in the style range of SCE_FSHARP_COMMENTLINE. Stabilizes EOL detection when folding line comment groups. Issue #276.
    F#: Fix per-line folding in F# documents. Issue #277.
    HTML: Improve SGML/DTD lexing. Don't terminate SGML when > inside quoted string. Lex both [ and ] as SCE_H_SGML_DEFAULT. Nested sections handled instead of switching to SCE_H_SGML_ERROR. Issue #272.
    JavaScript: New SCE_HJ_TEMPLATELITERAL and SCE_HJA_TEMPLATELITERAL styles for template literals when lexer is hypertext, or xml. Issue #280.
    PHP: Fix failure to recognize PHP start "<?php' at end of document. Caused by not capping retrieval range at document end causing no text to be retrieved. Issue #269.
    Smalltalk: Fix scaled decimal numbers without decimal separator. Pull request #274.

Fix #15228, fix #15368, fix #15650, close #15717
2024-10-20 17:33:07 +02:00
Don Ho
ba8cd8c46f Add one comment for localization file 2024-10-20 15:05:29 +02:00
Don Ho
ad34461261 Make left behide hide line close marker removable
Fix #15713
2024-10-18 03:57:03 +02:00
Adrian Kulawik
5d2bea5b97 Fix hanging issue while hiding lines
Fix #15630, close #15632
2024-10-18 03:55:50 +02:00
Don Ho
bfe835e8a4 Fix wrong messages for replacement status 2024-10-16 16:56:26 +02:00
Don Ho
901014746c Fix Find dialog status bar wrong messaging
Fix #15662
2024-10-16 05:27:29 +02:00
Don Ho
1890ea65f9 Avoid user confusion between Global override & Default Styles
Fix #15640, close #15706
2024-10-16 00:49:44 +02:00
Don Ho
dc9f58ddac Reduce network file hanging issue due to win32API GetFileAttributes cache (unsynchronized).
STR:
1. Open a network file.
2. Close Notepad++ to have it in the session.
3. Disconnect the network, and launch Notepad++ immediately.
4. Around more than 1 minute's delay, then the "Error" dialog displayed.

The reason for the hanging is that the network file was incorrectly detected by doesFileExist (GetFileAttributesEx) as present, leading Notepad++ to attempt opening a non-existent file with _wfopen. This issue seems to stem from a caching mechanism within the IO function (GetFileAttributesEx). When the network disconnects, the cache is not immediately cleared, causing GetFileAttributesEx to falsely report that the file exists. Consequently, when Notepad++ is launched after a network disconnection, GetFileAttributesEx retains its cache, indicating the file exists, while _wfopen fails to locate the network resource, resulting in a hang.

Unfortunately, there's no efficient solution for this problem. The commit's remedy is to check if the file is on the network and whether its directory still exists. If the directory doesn't exist, we avoid calling _wfopen. We verify the directory's existence instead of the file itself because the cache issue with GetFileAttributesEx occurs before _wfopen is executed. Checking the directory avoids the cache problem due to the identical argument being used.

I've tested this remedy in debug mode, and it works fine. However, the problem persists in release mode. Despite this, I believe it's worth keeping this solution, as it provides some protection in a variable network environment, potentially mitigating the issue when it arises.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15658#issuecomment-2386662974

Improve #4306, #6178, #8055, #11388, #12553, #15540, close #15701
2024-10-15 21:27:44 +02:00
Don Ho
5e3ee3e0e4 Rename variable & enhance the code 2024-10-12 19:32:37 +02:00
Don Ho
3b6f22b357 Fix disconnected network files hanging while saving
This PR prevent hanging when user: Open a network file, modify it. Disconnect the network, then save the file.
It also prevents the zombie process due to blocked CreateFile left behind.

Remove the timeout thread for CreateFile to prevent the zombie process. Use another way for the detection:
If the result of network file existent detection is false, and the network problem found (timeout reached), we just stop and don't call CreateFile routine.

Ref: 1445487

Improve #4306, #6178, #8055, #11388, #12553, #15540
2024-10-12 04:25:09 +02:00
Don Ho
0ca0348e7f Improve code & refactoring
Close #15681
2024-10-11 19:54:11 +02:00
Don Ho
cd45afc020 Improve GUI for commands for the system tray in Preferences 2024-10-11 04:28:19 +02:00
p@pawel-pc
035ef19b17 Add "Close to system tray" in MISC preference
Fix #4075, fix #11627, close #15617
2024-10-11 04:21:21 +02:00
Don Ho
fdb68db3d6 Fix the wrong detection call 2024-10-10 18:43:42 +02:00
Don Ho
1445487bb7 Fix network files hanging while the network disconnected (part 3)
Add thread for CreateFile to fix saving disconnected network file hanging.
STR: Open a network file, modify it. Disconnect the network, then save the file. A huge latency (more than 1 minute) can be observed.

Not that the crash is not reproducible anymore by this PR. If any crash happens for you, please let me know (with the STR).

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15669

Improve #4306, #6178, #8055, #11388, #12553, #15540
Close #15679
2024-10-08 21:08:16 +02:00
Don Ho
fb6d79b3af Fix crash on closing a disconnected network file tab
Context: While the network file is disconnected, it's considered non-existent and might to be deleted.

The reason of crash:
"doClose" on the same buffer happens twice while users clicks X button, then chooses "No" when they are asked whether if this file should be kept in editor.

Explanation:
When user clicks X button on the tab of the file in question to close it, "activateBuffer" is called, then "fileClose" is called.
* activateBuffer: Following "activeateBuffer" call in the depth, "checkFileState" is invoked - that leads the message "The file "xxxxxx" doesn't exist anymore. Keep this file in Editor?". If user clicks on No, "doClose" will close the tab and destroy the buffer.
* fileClose: in "fileClose" call, "doClose" will be invoked and try to close the already-destroyed buffer.

Solution:
Retrieve the buffer ID once again, after "activateBuffer" call, for comparing with old buffer ID. If the buffer was destroyed, the new retrieved buffer ID is not the same.

Note: this commit fixes the crash, but it doesn't fix the misbehaviour: If user clicks on "Yes" to answer the message "The file "xxxxxx" doesn't exist anymore. Keep this file in Editor?", the tab will be still closed.

Fix #15684, close #15685
2024-10-08 16:48:52 +02:00
Don Ho
d2fb03e41c Make log function easier to be called 2024-10-05 21:47:20 +02:00
Don Ho
a3535f385f Fix network files hanging while the network disconnected (part 2)
Refactoring for reducing the I/O calls, fix typos.

Reduce the startup time (while the a dirty disconnected network file is in the session) from about 12-15 seconds to about 6 seconds (on my laptop).

Note that there are 2 cases are not improved by the commit:

* STR 1: Open a network file, modify it. Disconnect the network, then save the file.

There will be a huge hanging time (around 1 minute) to get the warning dialog.
I tried to remedy with thread for CreateFileW in the constructor of Win32_IO_File, however it leads crash due to the lock guard in the caller.

* STR 2:
1. Open a network file.
2. Close Notepad++ to have it in the session.
3. Disconnect the network, and launch Notepad++ immediately.
4. Around more than 1 minute's delay, then the "Error" dialog displayed.

The reason of hanging is that the network file was detected by "doesFileExist" as true, so Notepad++ was trying to open non-existent file (by _wfopen).
I believe that there's some kind of cache during the very short period for the IO function (here's our case GetFileAttributes), and such cache is not immediately synchronized (cleared) while network disconnected. As a result, when we launch Notepad++ after the disconnection of network, GetFileAttributes keeps its memory & responds "FileExists". However for _wfopen it doesn't see the resource of network anymore - that makes hanging.

Ref #15658
Improve #4306, #6178, #8055, #11388, #12553, #15540
Close #15669
2024-10-04 18:04:15 +02:00
Don Ho
f884a39dd4 Fix opened network files hanging issue while the network disconnected
The issue is due to WinAPI's GetFileAttributes function can take a huge amount of time in various situations, like when the target server being offline (usalally).
The current solution is to wait at least 3 seconds for each GetFileAttributes function, then return the default value in case of the problem (or the returned value of the function, in case of normal situation - if it has been executed completely during the 3 seconds).
So there'll still be the hanging time (3 or 6 seconds) while the problem of network connection, but the hanging time (it could be 30 seconds more) is reduced considerablly.

"Wow64EnableWow64FsRedirection" call is also removed from x64 build (in which this call is unnecessary) in this commit to reduce the IO calls.

Fix #4306, fix #6178, fix #8055, fix #11388, fix #12553, fix #15540, close #15658
2024-10-02 04:52:15 +02:00
Don Ho
fc051a1231 Add tab created time tooltip for new opened untitled tab
Note: while create the new tab (empty & clean), there will be a created time displayed. When the document is modified and period backup feature is enabled, a new created time will be assigned and displayed. However, the time of the first modification which makes empty document dirty will be remained as the tab creation time, even with several modification afterward.

Fix #15563, close #15651
2024-09-26 18:44:45 +02:00
xomx
8baa1553fc Fix regression: can't open folder via cammand argument
Fix one incorrect PathFileExists replacement.

Fix #15645, close #15646
2024-09-23 16:57:15 +02:00
Don Ho
595074152d Small refactoring 2024-09-19 18:38:07 +02:00
Don Ho
27ce5f8499 Notepad++ 8.7 release 2024-09-17 19:36:49 +02:00
Don Ho
4201368cde Fix typo 2024-09-16 13:58:46 +02:00
Don Ho
ea08a8929d Fix the crash issue for NPPM_GETNATIVELANGFILENAME
Fix #15627
2024-09-15 18:57:55 +02:00
Karlo-F
45cd29f8ea [xml] Update Croatian translation for Notepad++ 8.7
Close #15608
2024-09-11 15:52:45 +02:00
Juan
8a56d1a4ea [xml] Update galician.xml v. 8.7.0
Close #15589
2024-09-11 15:50:54 +02:00
Juan
291c5c3718 [xml] Update spanish.xml v. 8.7.0
Close #15588
2024-09-11 15:48:37 +02:00
Matteo Concato
8f78f997f8 Update venetian.xml
Close #15491
2024-09-11 15:46:32 +02:00
Sapziller
4728efd5ae Update korean.xml
Close #15483
2024-09-11 15:42:37 +02:00
A. Regnander
af3283fcf0 Update swedish.xml
Close #15479
2024-09-11 15:41:20 +02:00
Hugo Carvalho
06d1e8b068 [xml] Update portuguese.xml
Close #15477
2024-09-11 15:36:00 +02:00
Andrei Miloiu
ccf5342707 Update romanian.xml
Close #15464
2024-09-11 15:34:01 +02:00
Matteo Concato
22e5c2b82f [xml] Update italian.xml
Close #15446
2024-09-11 15:32:14 +02:00
Marcellomco
d932b029f8 [XML] Update brazilian_portuguese.xml
Close #15434
2024-09-11 15:30:13 +02:00
Tmp341
3330661d2a [xml] Update Turkish localization
* According to 912c5ee, 9f6e9c0, 07e9503 and 7a6768b commits.
* Used to [Compare](12548b6..7a6768b (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472))

Close #15432
2024-09-11 15:28:10 +02:00
artpoli
4b0792e7d4 [xml] Update Ukrainian translation
Close #15569
2024-09-10 22:55:23 +02:00
Njardarheim-1337
6308589e7c Update norwegian.xml to 8.6.8
Update norwegian.xml to 8.6.8 according to the last commit.

Close #15419
2024-09-10 22:48:03 +02:00
xomx
d942032cf0 [xml] Update czech.xml to v8.7.0
Close #15618
2024-09-10 20:10:45 +02:00
yasmise
ba24ac84b7 [xml] Update japanese.xml
Update translation texts for these commits:
* Make C-Like indent deactivatable (439bbb0)
* Improve description for settings "Backup" (108b9f0)
* Add missing localization for debug info dialog and print error (ea5e36a)

Close #15455
2024-09-09 17:56:17 +02:00
Patriccollu
ff5c03374d [xml] Update Corsican translation for Notepad++ 8.7
Close #15451
2024-09-09 04:45:03 +02:00
schnurlos
6cbebedb1e [xml] Update german.xml v8.6.9
Close #15438
2024-09-08 18:02:37 +02:00
~GOLEM~
3e977c38eb [xml] Update russian.xml v8.7.0
Close #15444
2024-09-08 16:32:40 +02:00
kubalav
d3ac449432 [xml] Update Slovak translation
Close #15445
2024-09-08 16:22:53 +02:00
rddim
12d46fc61c [xml] Update Bulgarian localization
Close #15458
2024-09-08 16:19:02 +02:00
Don Ho
4393f0ca09 Make naming more accurate 2024-09-07 19:30:43 +02:00
Brian C
d5ec03a464 Fix monitoring large file with frequent writes freezes UI issue
Fix #9661, close #15598
2024-09-06 04:19:00 +02:00
Don Ho
624e315686 Add forgotten entries for individual tab color in theme files
Add the entries forgotten in a16261caaa173689da468d5be66e32866681e152
2024-09-04 03:46:11 +02:00
Christian Grasser
a13d4637bf Add simple version of tex/latex function list
Close #15595
2024-09-04 03:17:54 +02:00
Don Ho
85c390efde Fix NPPM_GETNATIVELANGFILENAME's comment documentation & 2 tipos
Fix #15599
2024-09-03 19:20:51 +02:00
Don Ho
a9b5235402 Fix CVE-2014-9456 (but it's not a "Security Vulnerability")
Fix Notepad++ Debug binary crash issue while opening some special files (crash after some "Assertion fail" message boxes).
Only the Debug binary is impacted. There's no issue for the release binary, so it's not a "security vulnerability".

Also there's no buffer overflow as the description in CVE-2014-9456.

Fix #12669
2024-09-03 00:24:48 +02:00
Don Ho
a866900c8d Make find dlg status msgs color customizable via Style Configurator
Fix #5087, close #15597
2024-09-02 18:51:59 +02:00
Don Ho
43ebe796af Add comments for Style Configurator's parameters 2024-09-01 16:56:06 +02:00
Don Ho
21e5350f90 Refactoring for Find dlg Status messge color 2024-08-31 15:00:11 +02:00
Don Ho
22c03102f2 Recognize Cython files as Python
Fix #3069, fix #3767, close #15591
2024-08-31 00:08:36 +02:00
ozone10
bdf3ccaca9 Fix regression of multiple selections in comboboxes of Find dialog
The regression was introduced from commit e25e15b9b25afee7f56fe6e02ef4a314468f6d7b

Fix #15583, close #15587
2024-08-28 20:41:43 +02:00
Don Ho
446cc980e8 Add new plugin command & notification while native lang being changed
Add new plugin notification NPPN_NATIVELANGCHANGED when the native language has been changed, and add new plugin message NPPM_GETNATIVELANGFILENAME for plugins calling after getting NPPN_NATIVELANGCHANGED notification.

Usage of the command:

	#define NPPM_GETNATIVELANGFILENAME (NPPMSG + 116)
	// int NPPM_GETNATIVELANGFILENAME(size_t strLen, char* nativeLangFileName)
	// Get the Current native language file name string.
	// Users should call it with nativeLangFileName as NULL to get the required number of char (not including the terminating nul character),
	// allocate commandLineStr buffer with the return value + 1, then call it again to get the current native language file name string.
	// wParam[in]: strLen is "commandLineStr" buffer length
	// lParam[out]: commandLineStr recieves all copied native language file name string
	// Return the number of char copied/to copy

Usage of the notification:

	#define NPPN_NATIVELANGCHANGED (NPPN_FIRST + 31)  // To notify plugins that the current native language is just changed to another one.
                                                      // Use NPPM_GETNATIVELANGFILENAME to get current native language file name.
                                                      // Use NPPM_GETMENUHANDLE(NPPPLUGINMENU, 0) to get submenu "Plugins" handle (HMENU)
	//scnNotification->nmhdr.code = NPPN_NATIVELANGCHANGED;
	//scnNotification->nmhdr.hwndFrom = hwndNpp
	//scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero

Fix #15513, close #15582
2024-08-28 17:09:40 +02:00
Alan Kilborn
8e26e08c1c Simplify Python smart indent regex
Fix #15573, close #15574
2024-08-26 18:31:22 +02:00
xomx
d2bb7a2af6 Fix a single undo reverting many changes issue
Fix mismatched SCI_BEGINUNDOACTION:
When there is a SCI_BEGINUNDOACTION without the corresponding SCI_ENDUNDOACTION, it then causes that a single undo reverts many changes in at once.

Fix #9426, close #15577
2024-08-26 17:56:29 +02:00
Don Ho
fb11abc5c0 Add TOML configuration file format
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15564#issuecomment-2305174561

Fix #5631, close #15576
2024-08-26 05:04:06 +02:00
Christian Grasser
b32c07f746 Enhance build in other platforms
Avoid linux issue:
../src/WinControls/DoubleBuffer/DoubleBuffer.cpp:18:10: fatal error: CommCtrl.h: No such file or directory
   18 | #include <CommCtrl.h>
      |          ^~~~~~~~~~~~

Close #15566
2024-08-23 18:03:40 +02:00
ozone10
86adb21480 Improve Styler Configurator performance
ref #15560

Close #15565
2024-08-23 17:56:50 +02:00
Christian Grasser
ad79718fc8 Update to scintilla 5.5.2 & Lexilla 5.4.0
Release 5.5.2 ( https://www.scintilla.org/scintilla552.zip )

    Released 21 August 2024.
    Add SCI_SETCOPYSEPARATOR for separator between parts of a multiple selection when copied to the clipboard. Feature #1530.
    Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its nesting depth.
    Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.
    Add SCI_LINEINDENT and SCI_LINEDEDENT. Feature #1524.
    Fix bug on Cocoa where double-click stopped working when system had been running for a long time.
    On Cocoa implement more values of font weight and stretch.

Release 5.4.0 ( https://www.scintilla.org/lexilla540.zip )

    Released 21 August 2024.
    Inside Lexilla, LexerModule instances are now const. This will require changes to applications that modify Lexilla.cxx, which may be done to add custom lexers.
    Lexer added for TOML "toml".
    Bash: Handle backslash in heredoc delimiter. Issue #257.
    Progress: Fix lexing of nested comments. Pull request #258.
    Force lower-casing of case-insensitive keyword lists so keywords match in some lexers. Issue #259.

Close #15564
2024-08-23 02:59:58 +02:00
Don Ho
d84f9b2048 Fix Styler Configurator performance issue considerably
Improve Styler Configurator modification application performance considerably.

While one of dockable Panels (Folder as Workspace, for example) is loaded heavily, any action (checkboxes & comboboxes) on Styler Configurator reacts very slowly - for example, check "Bold" in "Font Style".
This commit makes difference among the operations, and optimizes each action in Styler Configurator.

Fix #12436, close #15560
2024-08-21 23:24:29 +02:00
Don Ho
c1954e5c44 Fix "User-defined keywords" not being saved properly (Style Config)
When "User-defined keywords" field has been set keywords, removing all keywords then saving doesn't have any change (the keywords are kept after saving). The commit fix it.

Fix #15543, fix #14303
2024-08-16 17:20:20 +02:00
PeterCJ
9e4290094d Add user-defined keyword ability for some supported programming languages
Add new SubStyles and their available keyword lists to specific languages:
- Enable 8 Scintilla's SubStyles (each), which allow for new keyword lists and styles for the languages with SubStyles available: ActionScript, ASP, Bash, C, C++, C#, GDScript, Go, HTML, Java, JavaScript (standalone and embedded), JSP, Lua, PHP, Python, Resource (RC), Swift, TypeScript, and XML.
- The new SubStyles have been added to `langs.model.xml`, `stylers.model.xml`, and the themes, which means users can just use the StyleConfigurator for the SubStyles, just like they do for the original Styles.

Fix #15520, close #15537
2024-08-14 20:01:36 +02:00
WildByDesign
2d79edca95 Enhance FunctionList, FaW & project panels' icons in lite mode
Add Fluent Icons for light mode treeview.

Close  #15541
2024-08-14 15:09:47 +02:00
ozone10
f751ecaf04 Add fluent icons for treeview
ref #14959

Close #15532

Signed-off-by: ozone10 <positronix10@gmail.com>
2024-08-11 23:31:56 +02:00
Alan Kilborn
ae1d09cab8 Improve Python smart indent in case of string
Improve Python smart indent by using style context.

Fix #15534, close #15535
2024-08-11 17:30:59 +02:00
Alan Kilborn
48a2b30c13 Fix Python smart indent wrongly when comment line ends in colon
Fix #15528, close #15529
2024-08-10 00:18:09 +02:00
Don Ho
72751182bf Several enhancements for code - part III 2024-08-06 21:51:07 +02:00
Don Ho
bf72b5ec4a Several enhancements for code - part II 2024-08-05 21:22:45 +02:00
Don Ho
b78b3bdef0 Several enhancements for code
Close #15516
2024-08-05 15:40:44 +02:00
PeterCJ
9fb538d125 Add file type filters for UDL in Save dialogs
Fix #8083, fix #11096, close #15490
2024-08-04 12:53:30 +02:00
Alan Kilborn
e17d77ceab Fix edit zone not getting focus while clicking the active tab
Move input focus to editor when clicking on already-active tab.

Fix #8446, close #15508
2024-08-03 12:29:22 +02:00
Don Ho
a16261caaa Add customizable option for individual tab color
Fix #12156, close #15509
2024-08-03 00:12:23 +02:00
Don Ho
29ff2da823 Fix Style Configurator regression: "URL hovered"'s "Go to Settings" not working
Fix #15493
2024-07-28 21:46:33 +02:00
Don Ho
6b97e68cbb Refactoring - make tab color code on its correct place 2024-07-28 12:34:30 +02:00
Don Ho
6556b17ee2 Fix a typo; Make a function name & comment more accurate 2024-07-28 11:40:38 +02:00
Alan Kilborn
bfe27cc860 Add the ability to open the copy after "Save a Copy" command
Fix #11861, close #15476
2024-07-26 12:32:21 +02:00
Christian Grasser
d8c6350918 Update to scintilla 5.5.1 & Lexilla 5.3.3
Release 5.5.1 ( https://www.scintilla.org/scintilla551.zip )

    Released 22 July 2024.
    SCI_CUTALLOWLINE added which is similar to SCI_COPYALLOWLINE but also deletes the copied text. Feature #1518.
    Can set font used for autocompletion lists with SCI_AUTOCSETSTYLE. Feature #1523.
    Increase maximum zoom set interactively to +60 points. Feature #1517.
    Fix flickering cursor after some mouse action sequences. Bug #2443.

Release 5.3.3 ( https://www.scintilla.org/lexilla533.zip )

    Released 22 July 2024.
    ASP: Control whether ASP is enabled for XML and HTML with lexer.xml.allow.asp and lexer.html.allow.asp. Issue #252.
    JavaScript: Recognize regular expressions at start or after '>' in JavaScript when lexer is cpp, hypertext, or xml. Issue #250, Bug #918.
    JavaScript: Recognize initial #! 'shebang' line as a comment in standalone files. Issue #253.
    Lua: Fix non-ASCII identifiers joined with '.' or ':'. Issue #242.
    Lua: Fix folding for multi-line SCE_LUA_LITERALSTRING and SCE_LUA_COMMENT when performed incrementally. Issue #247.
    PHP: Control whether PHP is enabled for XML and HTML with lexer.xml.allow.php and lexer.html.allow.php. Issue #252.

Close #15466
2024-07-23 13:07:50 +02:00
Don Ho
d805dcb39c Fix typo & minor changes 2024-07-20 19:55:53 +02:00
xomx
19ddb91a64 Fix cannot paste issue after removing read-only via menu
Syncronize Paste and Undo commands with file buffer read-only status.
Previously, after e.g. removing the read-only flag, file editing was possible immediately, but Ctrl-V was not. At least a cursor movement or switching between the N++ tabs or apps-switching was required (SCN_UPDATEUI message generated...).

Fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13742#issuecomment-2233570312, close #15452
2024-07-20 15:29:54 +02:00
xomx
f05f4105de Fix Folder as Workspace for network storage sorting problem
Now Notepad++ ensures that the Folder as Workspace treeview sorting will be ok even for the *nix (Samba, WebDAV, WSL..) storage used.

Fix #10557, fix #15397, close #15457
2024-07-20 14:15:50 +02:00
Jiri Hruska
955b042fcb Enhance DoubleBuffer and fix the debug assert issue
Refactor DoubleBuffer, fix bugs, add comments, allow easy disabling.

Fixes #15363, close #15389
2024-07-19 19:32:54 +02:00
ozone10
bdbd65182c Replace treeview bmp with ico
- use recommended subclassing
- fix missing icons in function list when searching

ref #14959

Close #15405
2024-07-19 19:20:01 +02:00
Don Ho
4cde33048f Use std::wstring instead of generic_string 2024-07-19 04:35:14 +02:00
Don Ho
d13c9bb943 Use wchar_t instead of TCHAR
For making Unicode application status more explicit.

Close #15459
2024-07-19 01:04:42 +02:00
Don Ho
a427ace34c Use explicite L to replace TEXT - part 2 2024-07-18 21:39:08 +02:00
ozone10
8866d4b7fe Add dpi support for panel tab and caption
- use recommended subclassing for docking panel tab and caption
- remove unused function

ref #14959

Close #15394
2024-07-18 19:39:28 +02:00
Don Ho
3bca7bf278 Use L"" instead of TEXT("") - Part 1 2024-07-18 05:26:20 +02:00
ozone10
ea5e36a5be Add missing localization for debug info dialog and print error
Fix #15375, fix #15105, close #15416
2024-07-17 00:41:46 +02:00
Don Ho
108b9f0d24 Improve description for settings "Backup"
Fix #14560, close #15351
2024-07-15 00:34:35 +02:00
Don Ho
0858dfa4af Use GetFileAttributes instead of PathFileExists
Ref: https://github.com/notepad-plus-plus/nppShell/pull/64#discussion_r1664890166
Ref: https://devblogs.microsoft.com/oldnewthing/20071023-00/?p=24713

Fix #14839, close #15400
2024-07-14 22:50:00 +02:00
Don Ho
ac67f15c2b Fix closing unsaved clone document makes periodic backup lost issue
And change the behaviour of closing a cloned document: there's no more "Save or not" dialog appears.

Fix #8227, close #15409
2024-07-14 21:14:44 +02:00
Don Ho
439bbb04d2 Make C-Like indent deactivatable
Add one more option for auto-indent so user can choose among "none", "basic" & "advance".
Also add the indentation section in Preferences dialog.

Fix #15396, close #15414
2024-07-14 21:10:13 +02:00
Don Ho
761060819f Notepad++ v8.6.9 release 2024-07-14 04:42:28 +02:00
Don Ho
504e4ca5df Fix periodic backup's disfunction regression for the main view
The regression was introduced in:
97279d024f (diff-5f6ec155ff896fe5cab66dcf3e3f99c2b72d2498dda4cb68a4002da4468cabda)
2024-07-07 05:17:50 +02:00
schnurlos
1c47c368b8 [xml] Update german.xml
Modified backspace description.

Close #15353
2024-07-05 16:25:19 +02:00
Hugo Carvalho
f47b0e8d2f [xml] Update portuguese.xml
Close #15393
2024-07-05 16:20:49 +02:00
Matteo Concato
163e2712ed Update italian.xml
Close #15395
2024-07-05 16:17:30 +02:00
rddim
955f31562a [xml] Update Bulgarian localization
Close #15401
2024-07-05 15:27:13 +02:00
ArkadiuszMichalski
89910d0bfe [xml] Update polish.xml to 8.6.9
Close #15404
2024-07-05 15:11:04 +02:00
ozone10
5501485c0b Add ability to pre-populate the predefined color sets to the custom tone
Allow to reset custom tone colors with other predefined color sets.

Fix #15055, close #15387
2024-07-02 15:20:35 +02:00
Don Ho
c2da907f34 Fix comiling error in msys2
Close #15388
2024-07-02 00:17:57 +02:00
Don Ho
dbef8cea91 Solve compiling error & fix a regression of "new #"
The regression is introduced by:
f7d9e7c095 (diff-2d5c277be2799a7e43a90232d8ef9add2e788e252c8692bf9416abc69836957d)
2024-07-01 21:02:27 +02:00
Don Ho
a301ffc774 Remove ambiguous symbols (part 9)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271

Close #15386
2024-07-01 20:19:21 +02:00
Don Ho
dc5cea8947 Remove ambiguous symbols (part 8)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271

Close #15385
2024-07-01 19:58:07 +02:00
Don Ho
88bd09e67d Remove ambiguous symbols (part 7)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271

Close #15381
2024-07-01 16:33:00 +02:00
Don Ho
f7d9e7c095 Remove ambiguous symbols (part 6)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.

Follow up: 94af271

Close #15380
2024-07-01 00:38:07 +02:00
Don Ho
3c897f892a Remove ambiguous symbols (part 5)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271

Close #15379
2024-07-01 00:34:44 +02:00
Curious Insatiable
4d8ef955e2 Update french.xml
Essentially there are many deletions of capital letters in the middle of sentences (non-compliant in French)
Replacing the apostrophes ' with ' (alt+0146) (to make it prettier)
Replacement of "" (&quot;) by French quotation marks "" (alt+174 & alt175)(to make it prettier too)
Some formulations which were not very clear, or even incorrect.

Close #15355
2024-06-30 01:34:46 +02:00
Don Ho
97279d024f Remove ambiguous symbols (part 4)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271
2024-06-30 01:10:36 +02:00
Don Ho
10deb9970c Remove ambiguous symbols (part 3)
Relace TCHAR, generic_string & TEXT("") par wchar_t, wstring & L"" respectively.
Follow up: 94af271be9

Close #15378
2024-06-29 22:16:45 +02:00
Don Ho
0842c991d3 Remove ambiguous symbols (part 2)
Replace  TEXT("") and _T('') by the L"".
Follow up 94af271be9

Close #15377
2024-06-29 22:07:21 +02:00
WildByDesign
a68362b48f Fix Replace Icon
Replace icon (findrep_off.ico) Dark Filled and Light Filled both had an additional 3 duplicate layers in the icon file.
Reported here: 53d87d4f62 (commitcomment-143611882)
Those duplicate layers have been removed.

Close #15373
2024-06-29 18:05:55 +02:00
Don Ho
94af271be9 Remove ambiguous symbols
The "ambiguous" symbols (TCHAR & generic_string) are used when Notepad++ suppoted both ANSI & Unicode formats.
Since ANSI format of Notepad++ has been dropped (since long time ago), TCHAR & generic_string will be replaced by wchar_t & wstring respectively.

Close #15371
2024-06-28 18:47:40 +02:00
xomx
982f52224c Add the possibility for opening a shortcut file if change file ext
Do not recognize files without lnk-extension as Windows shortcuts.

Fix also https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15211#issuecomment-2156495651

Fix #9643, fix #11089, fix #10139, close #15364
2024-06-28 18:19:11 +02:00
WildByDesign
d0f5742664 Fluent Icons - Wrap - Alignment Fix
Close #15370
2024-06-27 23:01:46 +02:00
A. Regnander
dfe31e5099 Update swedish.xml
Close #15367
2024-06-27 16:25:23 +02:00
xomx
3c3e7cdadd Fix Encoding "Convert to..." regression
Fix incorrect Clipboard handling. This commit fixes possibly #9426

Fix #15324, fix #15271, fix #3054, close #15346
2024-06-27 14:54:09 +02:00
WildByDesign
53d87d4f62 Fluent Icons Update
- update Find, Replace, Zoom In and Zoom Out icons
- much better consistency between these 4 icons
- significantly improved/sharper in all scaling scenarios
- particularly more distinguishable at smaller sizes
- entirely custom made (following Fluent design guidelines)

Close #15361
2024-06-26 15:27:24 +02:00
Karlo-F
84e310911d [xml] Update Croatian translation for Notepad++ 8.6.9
Close #15352
2024-06-25 19:23:46 +02:00
xomx
c54b33db81 [xml] Update czech.xml to v8.6.9
Close #15347
2024-06-24 13:40:30 +02:00
Juan
f195575467 [xml] Update galician v.8.6.9.xml
Close #15340
2024-06-24 13:35:23 +02:00
Juan
34998e46f4 [xml] Update spanish v. 8.6.9.xml
Close #15339
2024-06-24 13:32:39 +02:00
Alex Prabhat Bara
73ad1efc47 Fix CSS more indentation bug
Fix #14962, close #14968
2024-06-23 16:27:00 +02:00
Alan Kilborn
b3daf0a982 Add plugin command NPPM_SETUNTITLEDNAME to rename untitled tab
Fix #8916, close #15291
2024-06-22 14:44:09 +02:00
WildByDesign
8e1f641472 Improve close button on tab in dark mode (Fluent Icons)
- updated Fluent icons for Close buttons for better scaling

Follow up: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15321

Close  #15336
2024-06-21 19:53:54 +02:00
artpoli
60c8baa4b7 [xml] Update Ukrainian translation
Close #15330
2024-06-21 19:46:34 +02:00
Andrei Miloiu
2928088f0e [xml] Update romanian.xml
Close #15295
2024-06-21 19:44:13 +02:00
Kjell Rilbe
91ecc5f40f Update Swedish localization
Added keyboard hotkeys in Swedish Mark dialog.

Close #15174
2024-06-21 19:40:53 +02:00
Machou
d3500f3aba Update french.xml
Update Fr
Add miss phrases
About:
Contre-oblique se dit [Barre oblique inversée](https://fr.wikipedia.org/wiki/Barre_oblique_invers%C3%A9e) (wikipedia)

Close #15272
2024-06-21 19:38:38 +02:00
Patriccollu
4a64071ddd [xml] Update Corsican translation for Notepad++ 8.6.9
Close #15257
2024-06-21 19:34:53 +02:00
yasmise
e4431e20a0 [xml] Update japanese.xml
Add/Update translation texts for these commits:
* Update English translation for v8.6.8 (indentation setting) (9f6e9c0)
* Add message box with information about disabled backward regex searching (07e9503)

Close #15254
2024-06-21 19:32:01 +02:00
kubalav
88e550ef81 [xml] Update Slovak translation
Close #15251
2024-06-21 19:29:36 +02:00
rddim
e106724be6 [xml] Update Bulgarian localization
Close #15249
2024-06-21 19:26:20 +02:00
Thomas De Rocker
bb5dbd704e Update dutch.xml
Close #15246
2024-06-21 19:23:49 +02:00
~GOLEM~
d2a7a765af [xml] russian.xml v8.6.8
Close #15240
2024-06-21 19:19:52 +02:00
schnurlos
9bd3a0f0b1 [xml] Update german.xml to v8.6.7
Following 912c5ee300

Close #15210
2024-06-21 19:17:38 +02:00
Matteo Concato
5f5f1e7e0a [XML] Update italian.xml
- improved translation of "failed"  to "andare a buon fine"
- shortucts in find dialog
- removed exlamation marks
- minor corrections

Close #15190
2024-06-21 19:14:14 +02:00
Marcellomco
fcf5846898 [XML] Update brazilian_portuguese.xml
Added fix for "Make english language text with colon (':') consistent"

Close #15172
2024-06-21 19:10:05 +02:00
ozone10
25686c22e4 Separate imagelist for tab bar close button icons for dark/light modes
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15321

Close #15326
2024-06-21 17:38:49 +02:00
Don Ho
6b441b738a Prevent DirectWrite from being ON under Windows Sever (Core) 2024-06-21 00:39:24 +02:00
Don Ho
3ee5ef0205 Make LoadIcon error message more clear 2024-06-20 21:36:58 +02:00
ozone10
46c5a0c226 Fix exception/crash on Windows Server Core 2022 (Datacenter)
The exception/crash occurs due to the unsupported icon format in Windows Server Core 2022 (due to the lack of a graphical library).

The commit tries to make loading icons fail-safe, and it represents a balance between the functionality of loading icons and the minimal graphic support required for Notepad++:
In the event of loading problems in a typical Windows version with complete graphical library support (which is unlikely but possible), users will receive alerts, and the ICO ID in question will be displayed in the caption.
However, under Windows Server Core 2022, multiple alert message boxes may appear during Notepad++ launch, but they can be stopped after the first one, allowing the user to use Notepad++ normally.

3 choices on the alert message: "Yes" for ignoring error(s) and launch Notepad++, "No" for stop lauching Notepad++ and quit it. "Cancel" for displaying all message error with the loading failure of ICO ID in caption, and launch Notepad++.

Fix #15313, close #15315
2024-06-20 21:04:55 +02:00
ozone10
965e24859f Fix a regression due to usage of double buffer (2nd part)
Fix black text background in Find dialog status bar
Regression introduced in 5b36e09
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15319#issuecomment-2177773329

Close #15320
2024-06-19 15:43:39 +02:00
ozone10
90762bbdda Fix a regression due to usage of double buffer
Regression introduced in 5b36e097c2
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15296#issuecomment-2171221062

Replace WM_PRINTCLIENT with WM_PRINT to avoid black parts when resizing tabbar in light mode.

Close #15319
2024-06-18 19:18:54 +02:00
ozone10
8760dd2c07 Replace tab bar close button BMP files with ICO
ref #15298

Close #15317
2024-06-18 15:39:47 +02:00
wilk
57a89b257a Update langs.model.xml - TCL keyword "then"
Added TCL's optional keyword "then": https://www.tcl.tk/man/tcl8.5/TclCmd/if.htm

Close #15309
2024-06-17 05:05:51 +02:00
xomx
ace9f49679 Fix renamed last empty clean tab cannot be closed issue
Fix #15306, close #15312
2024-06-17 04:58:39 +02:00
Don Ho
9a27df8f13 Make NPPN_FILEBEFORERENAME notification more efficient 2024-06-16 23:55:42 +02:00
Jiri Hruska
5b36e097c2 Fix status bar and tab bar flicker when updated
Add double buffering for status bar and tab bar to avoid flickering.

Fix #15260, close #15296
2024-06-16 04:51:42 +02:00
Don Ho
6102687faf Fix crash of "Next Search Result" cmd on the empty search result (2nd)
Fix #15247, close #15293
2024-06-15 23:42:21 +02:00
Don Ho
e6a1735236 Fix Find Replace size is not remembered through the sessions issue
Fix #15294
2024-06-15 20:45:58 +02:00
Don Ho
fa2fce2b41 Fix crash of "Next Search Result" cmd on the empty search result
Fix #15247
2024-06-15 05:00:32 +02:00
ozone10
c7ee70cf32 Make panel tabbar icons using BMP use transparency
- modify standard ico files to use transparency

ref #14959

Close #15289
2024-06-15 03:15:35 +02:00
WildByDesign
eb82aac284 Fluent Icons Alignment Fix
- improve the alignment of the Document List, Undo and Redo icons

Close #15288
2024-06-14 15:47:05 +02:00
Alan Kilborn
2e116251e2 Fix the Begin/End Select after deletion problem
Fix #15221, close #15278
2024-06-14 15:38:55 +02:00
WildByDesign
720f5f8a8e Fluent Icons - Tab Bar
- Adding the remaining Fluent icons for the tab bar
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15287
2024-06-14 00:38:36 +02:00
Don Ho
638b5a2043 Make install/update easy & quiet
Add command line parameter "/runNppAfterSilentInstall" for Notepad++ installer.
This parameter launches installed Notepad++ after silent installation.
Of course, the parameter takes effect only when "/S" (silent installation) is used.

Fix partially #8514, follow up #15230

Close #15280
2024-06-13 11:41:02 +02:00
ozone10
dbdeca5b28 Add dark mode search results panel tab bar icon
ref #14959

Close #15286
2024-06-13 17:59:57 +02:00
WildByDesign
7f7dd1df01 Fluent Icons - Panels Toolbar & Tab bar
- Update Fluent Icons for Panels Toolbar and tabbar for better scaling.
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15285
2024-06-13 16:02:40 +02:00
ozone10
f2fbeadfea Refactor docking panel tab bar to improve dpi compatibility
- reduce flickering when resizing panels

Ref #14959

Close #15282
2024-06-13 15:36:38 +02:00
Alan Kilborn
7a6768b029 Add Backspace unident option
Fix #15180, close #15277
2024-06-13 15:12:22 +02:00
ozone10
6cbb1273a3 Tweak Find in File Progress hits text position
- increase width for Find dialog In selection checkbox
- increase width for Preference Autocompletion html/xml close tag checkbox

According the community's decision:
https://community.notepad-plus-plus.org/topic/25874/poll-find-in-files-hits-position

ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15187#issuecomment-2159602146

Fix #15244, fix #13426, close #15268
2024-06-13 14:47:06 +02:00
Coises
f2e5739d4d Fix rectangular selection copy-paste bug
Restore old paste into rectangular selection behavior: only call pasteIntoMultiSelection for multiple stream selections and not for rectangular selections.

Fix #15139, fix #15151, close #15261
2024-06-12 15:56:23 +02:00
ozone10
dc53d1b7a7 Add F13-F24 keys to Shortcut Mapper
Fix #11975, close #15269
2024-06-12 02:19:13 +02:00
Alan Kilborn
721a845bec Fix unsaved tab containing tab character display glitch
Disallow tab character via pasting when renaming a file tab.

Fix #15202, close #15211
2024-06-12 01:24:42 +02:00
ozone10
f37f2d0ffe Use new dpi scaled size for docking panel tab icons
Ref #14959

Close #15267
2024-06-11 03:26:30 +02:00
xomx
83f1195bc1 Add installer new option '/closeRunningNpp'
New Notepad++ NSIS installer cmdline option.

If specified on the cmdline, it first tries to use the usual app-closing by sending the WM_CLOSE message to the running Notepad++.
If that standard closing fails, it uses consequently the forceful TerminateProcess WINAPI way.

Partially fix the #8514, followup of the #14251.

Close #15230
2024-06-09 21:19:42 +02:00
WildByDesign
aea78d71e2 Show All Characters Icon Fix
- fixes the All Characters Icon which was blurry at 16x16

Close #15259
2024-06-09 03:22:32 +02:00
WildByDesign
7291823e1a Update Fluent toolbar icons
Updated icons for 16x16, 20x20, 24x24, 32x32, 40x40, 48x48, 64x64 and 96x96

Close #15253
2024-06-08 17:06:19 +02:00
xomx
8beda66cb8 Fixed the "lost" panels issue
Implement some size limits for the Notepad++ docked and floating panels, as the users often "lost" its panels (e.g. when they minimized them to zero width or height).

This also fixes the config.xml possible previous "out-of-the-allowed-range" data.

Fix #13084, close #15236
2024-06-08 03:58:43 +02:00
ozone10
e7e88a380a Add "Show All Character" context menu on toolbar button
Fix #14832, close #15235
2024-06-07 00:47:31 +02:00
Don Ho
7a401cface Enlarge the labels of indent settings 2024-06-06 19:58:35 +02:00
ozone10
07e95038cb Add message box with information about disabled backward regex searching
Fix #15239, close #15243
2024-06-06 18:05:13 +02:00
ozone10
ea71d5ea4e Fix small width for "Ignore case" checkbox in UDL for some languages
Fix #15233, close #15234
2024-06-05 18:16:41 +02:00
xomx
9f6e9c0cfc Update English translation for v8.6.8 (indentation setting)
Related to: #15203

Close #15237
2024-06-05 17:21:19 +02:00
Don Ho
df4e8f5b73 Fix integer overflow issue in Column Editor
Fix #15167, close #15222
2024-06-05 00:58:56 +02:00
Don Ho
61bcf3a2bc Notepad++ v8.6.8 - Support Taiwan's Sovereignty 2024-06-04 03:55:45 +02:00
popcorner
bc1436a5c0 Update chineseSimplified.xml
Close #15154
2024-06-04 00:41:16 +02:00
ozone10
6cd6aa3843 Make clang warnings flags in makefile and msvc consistent
PR #15189 added option to use clang with gcc makefile.
This PR makes clang warnings flags in makefile and msvc consistent.

Close #15227
2024-06-01 01:26:04 +02:00
ozone10
fedaabf0f8 Fix toolbar pressed button visual glitch in dark mode
Use custom draw for main toolbar in dark mode.

Fix #15225, close #15226
2024-06-01 00:58:08 +02:00
ozone10
cfcb0d73cf Fix file opening issue with control characters initial appearence
Fix #13988, close #15219
2024-05-31 03:56:10 +02:00
ozone10
6c660a71b3 Add missing monitoring icon for disabled state
Fix #15217, close #15218
2024-05-31 03:37:52 +02:00
Christian Grasser
b4b76ff770 Code enhancement: Nullpointer checks
- zero init LexSearchResult.cxx lineBuffer
- WindowsDlg::resetSelection() add nullpointer check as assert just triggers on debug builds
- added missing nullpointer checks in Utf8_16.cpp on allocated memory
- added missing nullpointer check on notifyView for case SCN_AUTOCSELECTION in NppNotification.cpp
- added missing nullpointer check on clipboardData in NppCommands.cpp

Close #15195
2024-05-31 02:57:39 +02:00
ozone10
c89033bd8a Replace bmp with ico for panels with toolbar
- use correct styles for toolbar
- change panel toolbar icons if dark/light mode has changed
- align panel toolbar icons
- add initialization

ref #14959

Close #15204
2024-05-29 00:04:55 +02:00
Don Ho
0019e20f82 Make naming correct for indent settings of Preferences dialog
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15180#issuecomment-2129892136

Close #15203
2024-05-28 18:41:56 +02:00
ozone10
cdf32d198b Reorganize icons folder
- remove unused delete icon and code related to it
- remove notepadPlus.Resource.targets
- fix dark mode edit control in preference file association subdialog

ref https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14959#issuecomment-2131289263

Close #15192
2024-05-27 03:14:37 +02:00
Christian Grasser
2ed6c77dfe CI enhancement
- update CI link from appveyor to GH action
- add option to makefile build mingw build also with Clang++ instead of g++
- add option to makefile to enable clang analyzer

Close #15189
2024-05-25 16:19:47 +02:00
Alan Kilborn
b3b90a5dc0 Add auto-indent feature for Python
Fix #15122, close #15159
2024-05-25 15:56:55 +02:00
ozone10
9c1f972ee3 Add new dpi support to Find in Files Progress window
ref #14959

Fix #15027, close #15187
2024-05-25 03:42:17 +02:00
ozone10
6c5f0009b4 Use gdi dpi scaling for Windows dialog
- tweak dpi scaling for ColourPopup dialog.

ref #14959

Close #15186
2024-05-25 03:26:06 +02:00
ozone10
00ea1a9089 Handle new dpi message in Shortcut Mapper
ref #14959

Close #15173
2024-05-22 18:25:58 +02:00
cddiffz
0baac8af59 Fix extra space inserted issue with HEX mode in Column Editor
Fix extra space inserted when inserting hexadecimal numbers with Column Editor:
Remove rounding of odd number of digits.

Fix #15168, close #15176
2024-05-22 17:39:34 +02:00
ozone10
4ad57c1dd1 Replace GetSystemMetrics with new dpi manager's ones
- remove unneeded declarations in NppDarkMode.h
ref 5123016#r142224732

ref #14959

Close #15171
2024-05-22 05:02:22 +02:00
ozone10
49340a8707 Refactor ShortcutMapper resizing for new dpi compatibility
ref #14959

Close #15169
2024-05-22 04:51:06 +02:00
molsonkiko
106bdcc016 Fix negative repeat value in Column Editor causes hang issue
Fix #15153, close #15166
2024-05-21 16:35:49 +02:00
ozone10
912c5ee300 Make english language text with colon (':') consistent
Fix #4628, close #15165
2024-05-21 14:31:40 +02:00
ozone10
ef840de150 Make top bar indicate applied tab color for unfocused view
- use new dpi scaled metrics.
- replace c-casts.

Fix #15140, close #15160
2024-05-21 00:53:32 +02:00
Don Ho
382c33e99a Prevent the division by 0 in getNbDigits function
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15152#discussion_r1605845654

Close #15157
2024-05-20 20:26:04 +02:00
Don Ho
13eede938e Improve NPPM_GETTABCOLORID API comment 2024-05-20 19:33:44 +02:00
Alan Kilborn
9244cd0943 Add plugin commands NPPM_GETTABCOLORID
No NPPM_SETTABCOLORID though. Plugins can use NPPM_MENUCOMMAND to set current tab color with the desired tab color ID.

Fix #15115, close #15142
2024-05-20 18:08:52 +02:00
ozone10
fb086bbcda Fix moving Find dialog to center of Notepad++ bug (new DPI manager)
Move window for dpi change for goToCenter().

ref #14959

Close #15158
2024-05-19 20:45:41 +02:00
cddiffz
d0e3a1a210 Fix crash in Column Editor
Avoid division by zero (due to an arithmetic overflow).

Fix #15144, close #15152
2024-05-19 04:39:55 +02:00
ozone10
bdc11a47ff Make new DPI management support for Find Replace dialog
Handle dpi messages in Find dialog.

ref #14959

Close #15146
2024-05-18 19:22:14 +02:00
ozone10
5123016baa Make toolbar dark mode support better for plugins
Tweak dark mode custom draw for plugin:
- add plugin custom draw support for toolbar
- make code more consistent
- make plugin's authors custom draw implementation
to have higher priority than one from generic dark mode

ref #15078 (comment)

Close #15147
2024-05-17 19:16:32 +02:00
ozone10
e25e15b9b2 Refactor 'FindReplaceDlg::resizeDialogElements()' to be more compatible with HiDPI
ref #14959

Close #15145
2024-05-17 03:25:32 +02:00
ozone10
71914ed545 Use new dpi management for Find & Replace dialog fonts
ref #14959

Close #15098
2024-05-16 19:38:33 +02:00
ozone10
4cd231114e Improve status bar resize handling
- make controls spacing and position consistent.

ref #14959

Close #15090
2024-05-16 19:02:59 +02:00
ozone10
3b515f1242 Initial new dpi management support for Shortcut Mapper
ref #14959

Close #15089
2024-05-16 18:47:43 +02:00
ArkadiuszMichalski
8329a9fec9 Build: use DIR_O in nppSpecifics.mak properly
Fix #15086, close #15095
2024-05-15 18:50:01 +02:00
ArkadiuszMichalski
88193a73f3 CI improvement: not using the REST API to get PR message
Fix #15091, close #15125
2024-05-15 18:27:42 +02:00
Ovidiu Rădoi
8055b5687b Plugin dark mode customization improvement for tree view
Allow plugins to handle Custom Draw in TreeView controls.

Fix #15077, close #15078
2024-05-15 18:10:39 +02:00
Don Ho
126ad0bc07 Notepad++ 8.6.7 release 2024-05-13 02:34:25 +02:00
Tmp341
a1aa8682d1 [xml] Update Turkish localization
* According to d039eaa and 12548b6 commits.

Close #15121
2024-05-12 16:24:10 +02:00
Don Ho
1e19719f8f Fix regression of multi-edit cursors placed wrongly issue
Fix #15126, close #15129
2024-05-12 15:58:22 +02:00
Don Ho
78c7c3e645 Fix some code for WM_COMMAND outside of it in preferenceDlg.cpp
Fix #15119
2024-05-12 02:39:19 +02:00
Christian Grasser
973fb36044 Add auto-completion for Go & Raku, function list for Raku
- added autoCompletion for Go and Raku to installer script.
- added function list for Raku as starting point, currently just an adapted copy of the perl functionlist.

Related to #15000 and #14966

Close #15128
2024-05-12 01:30:49 +02:00
ozone10
9d6e6d2e04 Fix symbol '&' not showing in Document Switcher
Disable prefix processing in document switcher.

Fix #15117, close #15118
2024-05-11 16:31:45 +02:00
ozone10
971aaf680a Fix multi-editing not showing multiple cursors in dark mode
Add 'multi-edit' styles to Style Configurator for themes if missing.

Fix #15075, close #15109
2024-05-11 04:45:03 +02:00
PeterCJ
da5f896de6 Language enhancement: allow custom tags in HTML
HTML Lexer, TAG Style: enable user-defined keywords
Implement and verify @mpheath solution from https://community.notepad-plus-plus.org/topic/25741/html-user-defined-keywords

Fix #15093, close #15094
2024-05-11 03:36:14 +02:00
ozone10
f6d304f943 Fix dialogs out of screen problem
Reposition dialogs if they are outside screen.

Fix #11240, fix #14913, close  #15083
2024-05-11 01:07:28 +02:00
ArkadiuszMichalski
be94533576 CI enhancement: Use cache for python modules to optimize CI build time
Partial implementation for #15028

Close #15050
2024-05-10 23:35:36 +02:00
Don Ho
ee3aecb161 Fix a typo 2024-05-10 23:18:55 +02:00
Don Ho
ec7c5cec42 Notepad++ 8.6.6 release 2024-05-10 01:45:08 +02:00
ozone10
eb627b0677 Enhance GUI: make sizing arrows more coherent in Find dialog
Remove vertical sizing arrows from Find & Replace dialog.

fix #15099, close #15100
2024-05-06 18:48:52 +02:00
ozone10
c64d706871 Fix GCC reorder warning, use override, remove duplicated code
Fix gcc reorder warning
https://github.com/notepad-plus-plus/notepad-plus-plus/actions/runs/8963463099/job/24613797904#step:4:403

Close #15101
2024-05-06 17:50:44 +02:00
rddim
e53bb4c88f [xml] Update Bulgarian localization
Close #15092
2024-05-06 05:11:13 +02:00
MarkusBodensee
c584a77e0e Fix URL enclosed in apostrophes or backtick not working issue
Check if URL is enclosed in apostrophes or backtick (grave accent). Only if URL is directly preceded by apostrophe/backtick and URL ends with apostrophe/backtick respectively.

Fix #14978, fix #14323, fix #14212, close #15058
2024-05-06 05:07:48 +02:00
Don Ho
6281227d84 Add more unit tests for Ada function list
for enhancement:
8ab9b99b73
2024-05-05 23:28:41 +02:00
notdodgeball
8ab9b99b73 Ada Function List improvements
Changes:
Ada is case insensitive
Added 'Parallel' reserved word
Identifiers may not begin or end with underscore
Support for identifiers containing digits
Support for Ada specifications file (subprogram declaration) (#14687)
Support for dot notation within types (#14908)
Support for generic instantiations (#14498) (functions with no return statement)

Fix #14908, fix #14687, fix #14498, close #14986
2024-05-05 22:21:17 +02:00
PeterCJ
aa6a55cb7e Enable remaining 4 keyword lists
including langs.model.xml, stylers.xml and all themes.

Fix #15081, fix #7615, close #15088
2024-05-05 17:43:55 +02:00
Karlo-F
e987f360cd [xml] Update Croatian translation for Notepad++ 8.6.6
Close #15085
2024-05-05 15:48:33 +02:00
Don Ho
3609a21258 Fix same file opened 2 times with different sensitive case of path regression
The regression is due to PR #14971 & commit 2531b4d12c4eddc6c0a519eb37c6edf25196619e

ref:
https://community.notepad-plus-plus.org/topic/25742/notepad-v8-6-6-release-candidate/3?_=1714876196550
2024-05-05 04:32:35 +02:00
Don Ho
2d076b645a Refactoring for new DPI management: avoiod the multiple inherence
Using the composition instead of the multiple inherence
1. For preventing from the diamond problem.
2. To fix the semantic problem by using DPIManagerV2 as class ancestor of class StaticDialog.

Remove also unecessary scaleX, unscaleX, scaleY & unscaleY methods.
2024-05-02 18:26:20 +02:00
Piotr Kostrzewski
e518c79a53 Update polish.xml
Close #14927
2024-05-01 17:25:47 +02:00
A. Regnander
cb9fb5c22d Update swedish.xml
Added new strings, removed outdated strings, made changes to existing strings

Close #14939
2024-05-01 17:23:02 +02:00
Juan
1183b4bb63 Update spanish.xml
Close #15025
2024-05-01 17:20:20 +02:00
Juan
3c0e54a012 Update galician.xml
Close #15026
2024-05-01 17:18:43 +02:00
~GOLEM~
4c367f4dea [xml] Update russian.xml v8.6.6
Close #15037
2024-05-01 17:14:55 +02:00
Patriccollu
052d601e51 [xml] Update Corsican translation for Notepad++ 8.6.6
Close #15070
2024-05-01 17:12:52 +02:00
Alan Kilborn
c63e29f21e Make F3 & Shift-F3 work in Find Replace dialog
Fix #2138, close #15063
2024-05-01 15:56:03 +02:00
Don Ho
188375e2ee Adapt TabBar to new DPI management
ref #14959

Close #15054
2024-05-01 03:23:47 +02:00
Christian Grasser
e877707ecb Update to boost 1.85.0
Update to https://www.boost.org/users/history/version_1_85_0.html
- no functional changes on regex
- support for newer compiler (e.g. VS2022) versions/features/workarounds

Close #15040
2024-04-30 04:40:58 +02:00
Christian Grasser
592d981b55 Update to nlohman json 3.11.3
Update to nlohman json 3.11.3 from https://github.com/nlohmann/json/releases/tag/v3.11.3
https://github.com/nlohmann/json/releases/download/v3.11.3/json.hpp

Close #15041
2024-04-30 04:31:38 +02:00
Christian Grasser
881e8c285e Update to scintilla 5.5.0 & Lexilla 5.3.2
Sintilla Release 5.5.0 (https://www.scintilla.org/scintilla550.zip)

    Released 23 April 2024.
    Add elements for inactive additional selections SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT and SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK. When not set these default to SC_ELEMENT_SELECTION_INACTIVE_TEXT and SC_ELEMENT_SELECTION_INACTIVE_BACK. Bug #2417.
    On Cocoa, avoid use of NSUserDefaults which will soon require justification when used in applications on the App Store.
    Fix Win32 IME crash in windowed mode. Bug #2433.
    Scale reverse arrow cursor for margins to match other cursors when user changes pointer size. Bug #2321.

Lexilla Release 5.3.2 (https://www.scintilla.org/lexilla532.zip)

    Released 23 April 2024.
    COBOL: Stop string literal continuing over line end. Issue #229.
    COBOL: Stop doc comment assigning different styles to \r and \n at line end. Issue #229.
    COBOL: Recognize keywords that start with 'V'. Issue #230.
    COBOL: Recognize comments after tag or that start with '/'. Issue #231.
    HTML: Implement substyles for tags, attributes, and identifiers SCE_H_TAG, SCE_H_ATTRIBUTE, SCE_HJ_WORD, SCE_HJA_WORD, SCE_HB_WORD, SCE_HP_WORD, SCE_HPHP_WORD.
    HTML: Implement context-sensitive attributes. "tag.attribute" matches "attribute" only inside "tag".
    HTML: Match standard handling of comments. Issue #232.
    Lua: Implement substyles for identifiers SCE_LUA_IDENTIFIER.
    Ruby: Allow non-ASCII here-doc delimiters. Issue #234.
    Ruby: Allow modifier if, unless, while and until after heredoc delimiter. Issue #236.
    Rust: Recognize raw identifiers. Issue #239, Pull request #240.

Close #15042
2024-04-30 04:19:49 +02:00
Don Ho
c823ca8150 Adapt new DPI support for toolbar
ref #14959

Close #15044
2024-04-25 02:59:33 +02:00
Don Ho
89aaf43722 Use standard function (wcscmp/wcsicmp) instead home made one
Close #15030
2024-04-24 02:45:54 +02:00
Don Ho
4ffa8fcdf9 Small refactoring 2024-04-23 05:21:29 +02:00
ozone10
560f29fc8c Add dpi support to Style Configurator dialog
- reorder controls for consistent tab switch
- make spacing and position more consistent
- use system aware or gdi scaling for Color dialog and Color popup

ref #14959

Close #15029
2024-04-23 05:07:28 +02:00
Davi Feliciano Nonnenmacher
2531b4d12c Fix issue with case sensitive files
Fix #14724, close #14971
2024-04-22 19:04:58 +02:00
Don Ho
3c06d89b2a Fix wrong display of DarkMode on the 2nd monitor 2024-04-22 05:33:45 +02:00
ozone10
018d4f9a1f Add dpi support to UDL dialogs
- StringDlg (Rename Current Tab, ...)
- UDL Styler
- UDL in undock state

- UDL allow tab switching between main dialog and subdialogs
- make controls spacing and size consistent

ref #14959

Close #15024
2024-04-21 18:08:01 +02:00
ozone10
d43582d615 Add new DPI support to plugin admin dialog
ref #14959

Close #15023
2024-04-21 16:33:54 +02:00
ozone10
752777086e Add new DPI support to preference dialog
ref #14959

Close #15022
2024-04-21 15:50:06 +02:00
ozone10
4031339c58 Add dpi support to dialogs
- FindInFinder
- GoToLine
- ColumnEditor
- FindCharsInRange
- ProjectPanel FileRelocalizerDlg

ref #14959

Close #15020
2024-04-21 03:08:02 +02:00
ozone10
b476c67447 Add new DPI support to hash dialogs
- fix leak because of font.

ref #14959

Close  #15018
2024-04-21 01:53:09 +02:00
ozone10
34a6bf196e Add new DPI support to dialogs
- Run
- Run a Macro Multiple Times...
- Shortcut

- code enhancement
    - add override in shortcut.h
    - modify switches in WM_COMMAND
    - optimize dark mode for shortcut
    - avoid potential multiple subclassing for Run dialog

ref #14959

Close #15017
2024-04-20 19:28:49 +02:00
ozone10
61083a4468 Allow Ctrl-TAB to switch tabs in PluginAdmin and UDL dialogs
Fix #7932, close #15015
2024-04-20 17:52:52 +02:00
ozone10
b7ebd389c7 Add new DPI support to status bar
ref #14959

Close #15016
2024-04-20 05:02:06 +02:00
Don Ho
e6558a3618 Enhance source code 2024-04-20 02:54:38 +02:00
mpheath
8672d95ca4 Fix user defined auto-insert not working issue
Fix #3171, fix #8063, fix #12547, fix #14831, close #15005
2024-04-20 02:38:33 +02:00
ozone10
914869936b Enhance GUI: resize checkboxes/radio buttons as text length needs
Fix #15006, close #15007
2024-04-19 20:33:44 +02:00
ozone10
27e77cf6d6 Add dpi support to dialogs
- About
- DebugInfo
- Save All
- Close All

ref #14959

Close #14989
2024-04-18 17:16:52 +02:00
ozone10
01a088f994 Use new dpi manager scaled default fonts
ref #14959

Close #14991
2024-04-18 15:15:22 +02:00
xomx
a92a9fd7c7 Fix wrong dropped file view
Fix #14951, close #14953
2024-04-18 14:28:02 +02:00
PeterCJ
161bb41425 Add syntax highlighting for Raku
Based on SciTE, Go/Golang can use cpp lexer.
Use the Perl color scheme from each theme as the basis for the Raku color scheme.

Fix #4465, close #15000
2024-04-16 01:33:40 +02:00
Don Ho
0e8781938d Add log while flush file buffers action fails
Currently while flush file buffers action fails at not critical end session, a error message dialog display the problem.
It raises the problem of some external process interfering with the Notepad++ file saving (via NppSaveAsAdmin plugin).

This commit logs this error at critical end session, so if NUL characters content issue happens to the users again, we can try to know what was happening, plus users' plugin list.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14990#issuecomment-2054242025

Close #15003
2024-04-16 01:17:13 +02:00
Christian Grasser
25c6795d0c Code enhancements
- fix linux build on include upper/lowercase issue ../src/dpiManagerV2.cpp:20:10: fatal error: CommCtrl.h: No such file or directory
- avoid clang warning: 5>..\src\WinControls\Grid\BabyGrid.cpp(677,7): warning : unused variable 'rectwhole' [-Wunused-variable]
- avoid ../src/NppCommands.cpp:1790:24: warning: conversion from ‘int’ to ‘UCHAR’ {aka ‘unsigned char’} may change value [-Wconversion]

Close #15001
2024-04-15 03:15:59 +02:00
ArkadiuszMichalski
35f601b665 Add ISSUE_TEMPLATE folder to exceptions
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14999#issuecomment-2054089871

Close #15002
2024-04-15 03:10:09 +02:00
ozone10
045d21aa15 Add additional instructions to issue templates
ref https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14992#issuecomment-2054022134

Close #14999
2024-04-15 03:01:59 +02:00
ozone10
7cfa79b8cd Allow Ctrl-TAB to switch tabs in FindReplace dialog
Fix #14975, close #14988
2024-04-15 02:54:14 +02:00
Don Ho
896d78a5db You can't criticize Roman numeral 11 in China 2024-04-14 22:20:05 +02:00
ArkadiuszMichalski
c2696001c2 Allow any character in title/message
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14943#issuecomment-2053716053

Close #14993, close #14994, close #14995, close #14996, close #14997, close #14998
2024-04-14 15:16:29 +02:00
xomx
126505180f Fix potential crash when crossing the 2GB file size threshold
To be able to work with 2GB+ files, we have to use the Scintilla SC_DOCUMENTOPTION_TEXT_LARGE flag.

Until now, this flag was only used if a file > 2GB was to be loaded. For files smaller than 2GB or newly created empty ones, it was not used. This left the room for a Notepad++ crash situation because of the user has been left the possibility to cross this threshold (e.g. by pasting a data which in sum with the already existing ones in the Notepad++ filebuffer exceeds that 2GB...)

So one has two options: either a complex monitoring of the Notepad++ filebuffers size and reloading these with that large-flag when reaching the 2GB or simply using that large-flag as the default one from the start (which is what this patch does...).

Fix #14981, close #14982
2024-04-14 14:35:26 +02:00
ozone10
80e8a0dbe1 Add dpi messages
- process WM_DPICHANGED_AFTERPARENT message
- remove unused function
- tweak 2 switches, which use enums to avoid warnings

ref #14959

Close #14980
2024-04-14 14:14:28 +02:00
Don Ho
906f6e4386 Revert "Fix Korean IME append extension issue"
This reverts commit 6330a68, due to regression reported in #14400.

Fix #14400, fix #14973, close #14593
2024-04-13 19:41:59 +02:00
ArkadiuszMichalski
a5e29863e5 Use newer version of make and show it correctly
Close #14972
2024-04-13 12:05:04 +02:00
ozone10
5a65b30b17 Add issue templates
Fix #14969, close #14970
2024-04-13 10:41:47 +02:00
xomx
18815de8ac Fix multi-edit resists escape after typing issue
Add Multi-Edit mode canceling by Esc possibility

Fix #14649, close #14956
2024-04-13 10:31:04 +02:00
ozone10
e0bb723700 Improve HiDPI compatibility for tab control labels
Close #14958
2024-04-11 18:21:14 +02:00
PeterCJ
8f24e89824 Add syntax highlighting for Go/Golang
(as done in SciTE, Go/Golang can use cpp lexer)

Fix #8090, close #14966
2024-04-11 17:58:43 +02:00
ozone10
5b8e13ab9b Refactor controls in Find & Replace dialog to improve compatibility with HiDPI
Close #14948
2024-04-11 17:02:06 +02:00
ozone10
fc52cd3f4f Use dpi scaled fonts for some controls
-  prepare static dialog for hiDPI

ref: #14959

Close #14947
2024-04-11 11:09:09 +02:00
Don Ho
ddc080785d Merge branch 'xomx-fix_possible_2GB+_files_loading_Scintilla_exception' 2024-04-09 19:51:45 +02:00
ArkadiuszMichalski
5f93e046ec Reduce CI build time for some circumstances
Fix #14942, close #14943
2024-04-08 21:26:49 +02:00
Christian Grasser
8d3d8aa642 Fix gcc compiler warnings\errors
- avoid upper/lowercase issue for #include <windowsx.h>
- casts to avoid warning: conversion from ‘int’ to ‘UCHAR’ {aka ‘unsigned char’} may change value [-Wconversion]
- cast to avoid warning: conversion from ‘int’ to ‘BYTE’ {aka ‘unsigned char’} may change value [-Wconversion]
- avoid warning : delete called on non-final 'FileDialogEventHandler' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
- avoid warning : warning: extra ';' [-Wpedantic] in BabyGrid.cpp

Close #14950
2024-04-07 12:19:52 +02:00
Don Ho
318c9a994c Merge branch 'fix_possible_2GB+_files_loading_Scintilla_exception' of https://github.com/xomx/notepad-plus-plus into xomx-fix_possible_2GB+_files_loading_Scintilla_exception 2024-04-06 15:45:19 +02:00
ozone10
1f4cbdb8b7 Fix close button disappeared issue in Find&Replace dialog
Fix #14940, close #14941
2024-04-05 19:06:23 +02:00
xomx
6afcb73557 Fix possible 2GB+ files loading Scintilla exception
Previously there was the 4096 MB max limit, so when e.g. user set this 4GB threshold and then tried to open any 2GB+ file, the Scintilla CellBuffer::Allocate method throwed a std::runtime_error because currently the Notepad++ does not use the SC_DOCUMENTOPTION_TEXT_LARGE in such a case.
2024-04-05 18:55:07 +02:00
Don Ho
903d47b2eb Reduce compiling warning
Close #14924
2024-04-05 03:46:27 +02:00
ozone10
6204f00e88 Use dark theme on checkbox buttons on Windows 11
-  replace style and class strings with macro

Fix #14929, close #14930
2024-04-03 02:45:38 +02:00
Don Ho
a61f3ab13f Update slovenian.xml 2024-04-03 02:29:55 +02:00
molsonkiko
2a6382b4a6 Enhance Notepad++ closing speed by not scanning for URLs
Close #14931
2024-04-03 01:28:41 +02:00
Coises
0a7295878d Fix a performance issue due to URL recognization
The function "addHotSpot" can become very slow when the screen contains certain sequences of characters that look like URLs but are not valid, due to a form of backtracking. This change eliminates the possibility of backtracking.

This commit does two things:

First, it tightens the requirements for “looks like a URL” by checking the scheme earlier in the process. That is necessary to keep the next step from skipping valid URLs in reasonable contexts.

Second, once the beginning of a potential URL passes the tighter initial scanning and the end of the URL is found, we “commit” to that portion of the line. If the potential URL fails InternetCrackUrl validation, we restart scanning from the end of of the string that looked like a URL but wasn’t, rather than from just after the scheme.

Fix #13916, close #14900
2024-04-03 01:18:56 +02:00
ozone10
29fcd1ac91 Readd dpi API
ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14871#issuecomment-2002547565

Close #14876
2024-04-02 01:44:52 +02:00
ozone10
243112d04d Fix Dark Mode Menu Bar cluttered issue
Use correct enums for dark mode menubar

Fix #14910, fix #10130, close #14911
2024-04-01 17:10:28 +02:00
Don Ho
60034edf37 Fix debug info display regression
This regression was introduced by 83f0232d910444c6683a5dc104732b7c73c53b87

Fix #14921
2024-03-30 23:44:09 +01:00
Don Ho
26647ac9fd Notepad++ release 8.6.5 2024-03-30 01:02:22 +01:00
Don Ho
bbeaafac8b Fix period backup crash due to the dead lock of std::lock_guard
The crash occurs because the thread terminates the task prematurely due to PostMessage’s nature. As a result, FileManager::backupCurrentBuffer() is always executed by the main thread, leading to a deadlock ( due to "std::lock_guard<std::mutex> lock(backup_mutex);") on the 2nd main thread’s entry and causing the crash. Here the explanation:
"If lock is called by a thread that already owns the mutex, the behavior is undefined: for example, the program may deadlock."
ref: https://en.cppreference.com/w/cpp/thread/mutex/lock

Using SendMessage instead of PostMessage ensures that the thread executes the task from the beginning to the end and keeps the mutex until the entire operation is terminated. Therefore, the race condition is prevented by the mutex lock while the 2nd thread tries to access the same code/zone.

Fix #14906, close #14917
2024-03-29 16:14:44 +01:00
ozone10
30f48aae1e Insert "change history" styles to Style Configurator for themes if absent
Close #14905
2024-03-27 19:10:19 +01:00
ozone10
b31e7a31e0 Change History GUI enhancement and tweaks
- add 'Go to setting' for other Change History styles
- make spacing consistent in preference
- minor warning fix

Close #14883
2024-03-27 17:08:13 +01:00
Don Ho
12c6777bc1 Fix some "Go to settings" in Style Configurator go to wrong section
Fix #14882, close #14903
2024-03-24 14:06:17 +01:00
Don Ho
52fa5a3b8a Fix Mouse Wheel Scrolling in Shortcut Mapper even nothing to scroll
Reduce also Shortcut Mapper memory use.

Fix #14895, close #14896
2024-03-24 11:25:14 +01:00
Matteo Concato
71a12c4289 [xml] Fix & update italian.xml
Close #14898
2024-03-24 11:21:53 +01:00
molsonkiko
cccd99b791 Fix URLs are not detected after a "Replace All" regression
Fix #14864, close #14889
2024-03-21 23:54:52 +01:00
Don Ho
d7011c41bf Modernize BabyGrid.cpp
1. Isolate the local variables.
2. Initialize the variables.
3. Prevent negative index in the tables.
4. Rename few variables.

Close #14893
2024-03-21 21:09:36 +01:00
xomx
109600aa50 Enhance losing session while power outrages remedy
Fix possible session backup swapping when no session.xml file.
The ReplaceFile WINAPI failed when the session.xml file replaced did not exist.

This commit follows the commit aa3777786dbee09b22fa89e9d4b175cf438bc91d

Close #14887
2024-03-21 17:55:34 +01:00
Don Ho
0bc28df616 Reformat BabyGrid.cpp for a good readibility and nothing more
Close #14886
2024-03-20 19:26:23 +01:00
xomx
73bc79ee50 Fix launching Shortcut Mapper makes app crash
Fix memory overwriting bug by BabyGrid:
BabyGrid code was overwriting foreign memory on its initialization and deinitialization. At that time (WM_NCCREATE, WM_NCCALCSIZE, WM_CREATE and WM_NCDESTROY) the relevant FindGrid func returns -1, which was used as an index pointing to a memory area before the whole BGHS object (BGHS[-1]...)!

This was a long-standing hidden bug that only started to manifest itself probably when the app memory layout shifted somehow and important objects/data started to be overwritten, resulting in the visible app crashes.

Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14855#issuecomment-2001066992 , https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14871#issuecomment-2002485089
2024-03-20 03:49:32 +01:00
MarkusBodensee
6b0274fdf2 Update german.xml
Update german.xml with latest changes for v8.6.5 release.
Adjust and fix some more translations.

Close #14879
2024-03-19 16:31:05 +01:00
Juan
33ac6e7ecf [xml] Update galician.xml
Close #14873
2024-03-17 19:39:59 +01:00
Juan
13dcdd5fb4 [xml] Update spanish.xml
Close #14872
2024-03-17 19:38:23 +01:00
schnurlos
6e77795f89 [xml] Update german.xml
Close #14803
2024-03-17 19:37:06 +01:00
Andrei Miloiu
bdbd289d6c Update romanian.xml
Close #14868
2024-03-17 19:34:21 +01:00
Don Ho
590ea74bee Fix NUL characters file corruption after power outrages (1st step solution)
=========
Sernario:
=========
When a user modifies a file in Notepad++, and the time of periodic backup (defaulted to 7 seconds) is reached, the backup of the modified file is being written. However, if a power outage occurs during this precise moment while the file is being written, file corruption may occur.

=======
Remedy:
=======
The goal is to maintain a non-corrupted file sample even during power outages. Here are the steps:

0. Begin
1. Write the file A as A.temp
2. Replace A by A.temp
3. End

During these steps, the cutoff can happen at any moment, but the user will always have a non-corrupted file sample (either A or A.temp).

=====
Note:
=====
The solution is only applied to "new #" files, since these files are generally small in length and do not have a second "physical" file existing on the hard drive.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1987037043

Fix #6133, close #14860
2024-03-17 19:23:51 +01:00
Don Ho
aa3777786d Remedy losing session problem after the power outrages
In case of "session.xml" being corrupted after the power outrages, "session.xml.inCaseOfCorruption.bak" will replace "session.xml" on the next Notepad++ startup.

Fix #14781, close #14858
2024-03-17 17:55:50 +01:00
Don Ho
999b4d1887 Revert "Improve hiDPI appearance for some DM elements"
This reverts commit 356d5cd072b25f941266f40ea93118f274affdd9.

Close #14875
2024-03-17 17:39:28 +01:00
Don Ho
10305ebded Revert "Use undocumented dpi API to support win7"
This reverts commit c8a2bcb6b0c32c93fd0501378ebaeaa25fd6e984.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14855#issuecomment-2002031940
2024-03-17 16:13:12 +01:00
xomx
45cdbbfe15 [xml] Update czech.xml to v8.6.5
Close #14869
2024-03-17 00:08:03 +01:00
Karlo-F
2a747e496e [xml] Update croatian.xml to v8.6.5
Close #14862
2024-03-16 19:27:13 +01:00
Hugo Carvalho
7f74bc0f9b [xml] Update portuguese.xml
Close #14863
2024-03-16 19:25:09 +01:00
Matteo Concato
c4e37e8167 [XML] Update italian.xml v8.6.5
Close #14861
2024-03-15 01:20:12 +01:00
Tmp341
e7d7af8980 [xml] Update Turkish localization
* According to 35deb8a, 6c027d3, 13cd4ac, 12548b6, c6e433f, d039eaa, 78d0e7e, 4e2903a, 4e6bbbc, e497ae2, 2724e0d, ffc0ed2, 9bc790b, faba181, 3e7425f, 05f339b, cecd161, 89278e1, 1c27e64, 0879451 and 591b00e commits.

Close #14848
2024-03-15 01:18:27 +01:00
yasmise
43e84c41fb [xml] Update japanese.xml
Close #14804
2024-03-15 01:09:28 +01:00
Patriccollu
1fbb393a90 [xml] Update Corsican translation for Notepad++ 8.6.5
Close #14798
2024-03-15 01:07:44 +01:00
Marcellomco
808aeb7eaf [XML] Update brazilian_portuguese.xml
Close #14800
2024-03-15 01:05:36 +01:00
rddim
5b3774dd79 [xml] Update Bulgarian localization
Close #14797
2024-03-15 01:03:07 +01:00
kubalav
8ddb672a0b [xml] Update Slovak translation
Close #14794
2024-03-15 01:01:53 +01:00
Piotr Kostrzewski
ace771cf27 Update polish.xml
Close #14792
2024-03-15 01:00:24 +01:00
~GOLEM~
8216b5134e [xml] Update russian.xml v8.6.5
Close #14790
2024-03-15 00:58:54 +01:00
ozone10
c8a2bcb6b0 Use undocumented dpi API to support win7
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14818#issuecomment-1993472569

Close #14855
2024-03-14 22:31:45 +01:00
Alan Kilborn
2e4ad67dff Refactor FindFirstFile-FindNextFile code blocks
Fix #14853, fix #14847, fix 060396c#r139323315, close #14857
2024-03-14 20:15:14 +01:00
Don HO
9d848b6a47
Update Release Key Expiration Date 2024-03-14 04:33:24 +01:00
Don HO
2ac5e3a7ed
Update nppGpgPub.asc
Extending certificate expiration to 2027
2024-03-13 00:32:57 +01:00
ozone10
356d5cd072 Improve hiDPI appearance for some DM elements
This commit is also preparation to properly support HiDPI for Windows 10/11 and newer.

Fix #14817, close #14818
2024-03-12 18:04:21 +01:00
Don Ho
9251955d10 Support template literal (template strings) in JavaScript
Fix #3822
2024-03-12 04:12:52 +01:00
Christian Grasser
1c32e2906f Update to scintilla 5.4.3 (from 5.4.1) & Lexilla 5.3.1
Sintilla [Release 5.4.3](https://www.scintilla.org/scintilla543.zip)

* Release 5.4.3: Released 9 March 2024

1. Fix redo failure introduced with 5.4.2. [Bug #2432](https://sourceforge.net/p/scintilla/bugs/2432/).
2. Add SC_AUTOCOMPLETE_SELECT_FIRST_ITEM option to always selects the first item in the autocompletion list. [Bug #2403](https://sourceforge.net/p/scintilla/bugs/2403/).

* Release 5.4.2: Released 5 March 2024

1. Significantly reduce memory used for undo actions, often to a half or quarter of previous versions. Feature #1458.
2. Add APIs for saving and restoring undo history.
3. For GTK, when laying out text, detect runs with both left-to-right and right-to-left ranges and divide into an ASCII prefix and more complex suffix. Lay out the ASCII prefix in the standard manner but, for the suffix, measure the whole width and spread that over the suffix bytes. This produces more usable results where the caret moves over the ASCII prefix correctly and over the suffix reasonably but not accurately.
4. For ScintillaEdit on Qt, fix reference from ScintillaDocument to Document to match change in 5.4.1 using IDocumentEditable for SCI_GETDOCPOINTER and SCI_SETDOCPOINTER.
5. For Direct2D on Win32, use the multi-threaded option to avoid crashes when Scintilla instances created on different threads. There may be more problems with this scenario so it should be avoided. Bug #2420.
6. For Win32, ensure keyboard-initiated context menu appears in multi-screen situations.

Lexilla [Release 5.3.1](https://www.scintilla.org/lexilla531.zip)

* Release 5.3.1: Released 5 March 2024

1. Assembler: After comments, treat \r\n line ends the same as \n. This makes testing easier.
2. Bash: Fix folding when line changed to/from comment and previous line is comment. Issue #224.
3. Batch: Fix handling ':' next to keywords. Issue #222.
4. JavaScript: in cpp lexer, add lexer.cpp.backquoted.strings=2 mode to treat ` back-quoted strings as template literals which allow embedded ${expressions}. Issue #94.
5. Python: fix lexing of rb'' and rf'' strings. Issue #223, Pull request #227.
6. Ruby: fix lexing of methods on numeric literals like '3.times' so the '.' and method name do not appear in numeric style. Issue #225.

Close #14834
2024-03-11 04:13:10 +01:00
Christian Grasser
0f3ae2e3d5 Updated to Scintilla 5.4.2 & Lexilla 5.3.1
https://www.scintilla.org/scintilla542.zip
Release 5.4.2

    Released 5 March 2024.
    Significantly reduce memory used for undo actions, often to a half or quarter of previous versions. Feature #1458.
    Add APIs for saving and restoring undo history.
    For GTK, when laying out text, detect runs with both left-to-right and right-to-left ranges and divide into an ASCII prefix and more complex suffix. Lay out the ASCII prefix in the standard manner but, for the suffix, measure the whole width and spread that over the suffix bytes. This produces more usable results where the caret moves over the ASCII prefix correctly and over the suffix reasonably but not accurately.
    For ScintillaEdit on Qt, fix reference from ScintillaDocument to Document to match change in 5.4.1 using IDocumentEditable for SCI_GETDOCPOINTER and SCI_SETDOCPOINTER.
    For Direct2D on Win32, use the multi-threaded option to avoid crashes when Scintilla instances created on different threads. There may be more problems with this scenario so it should be avoided. Bug #2420.
    For Win32, ensure keyboard-initiated context menu appears in multi-screen situations.

https://www.scintilla.org/lexilla531.zip
Release 5.3.1

    Released 5 March 2024.
    Assembler: After comments, treat \r\n line ends the same as \n. This makes testing easier.
    Bash: Fix folding when line changed to/from comment and previous line is comment. Issue #224.
    Batch: Fix handling ':' next to keywords. Issue #222.
    JavaScript: in cpp lexer, add lexer.cpp.backquoted.strings=2 mode to treat ` back-quoted strings as template literals which allow embedded ${expressions}. Issue #94.
    Python: fix lexing of rb'' and rf'' strings. Issue #223, Pull request #227.
    Ruby: fix lexing of methods on numeric literals like '3.times' so the '.' and method name do not appear in numeric style. Issue #225.
2024-03-11 03:58:17 +01:00
Don Ho
aa0be9973b Add support for Change History in the text
This commit follows the commit:
fd1f785b89

Close #14838
2024-03-10 05:17:08 +01:00
ozone10
9d92b0a869 Fix some gcc warnings
Fix #14845, close #14846
2024-03-09 03:40:04 +01:00
xomx
4e1a3eef4a Add FlushFileBuffers-fail user notification
Close #14842
2024-03-09 03:28:15 +01:00
Christian Grasser
9d09ee818a Fix a potential undefined behaviour & improve some codes
- init grabSize
- optimize WcharMbcsConvertor instance set
- remove unused var in TreeView::searchLeafRecusivelyAndBuildTree()
- missing nullpointer check in ScintillaEditView::init()

Close #14844
2024-03-08 21:00:17 +01:00
Don Ho
83f0232d91 Add Session Snapshot Periodic Buckup info into Debug Info dialog
To expose this information, we can know if Periodic Buckup feature is related to user data losing due to power outrages issue.

Ref:
1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14781
2. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133

Close #14833
2024-03-06 19:18:23 +01:00
mpheath
fd1f785b89 Add Change History colour configuration
Fix #12321, fix #13915, close #14819
2024-03-06 15:48:15 +01:00
Don Ho
b3ff400cc8 Fix python wrong decorator attribute colors
Add "ATTRIBUTE" color in Python.

Only DarkModeDefault.xml & Zenburn.xml are modified due to the other themes missing "DECORATOR" color with which "ATTRIBUTE" color uses.
I let people who use those themes and need "DECORATOR" & "ATTRIBUTE" colors to modify them.

Fix #5894, close #14830
2024-03-05 20:20:01 +01:00
Don Ho
060396c698 Fix NPPM_RELOADFILE API return wrong result issue
Now NPPM_RELOADFILE returns the correct value: TRUE if reloading file succeeds, otherwise FALSE.

Ref: https://community.notepad-plus-plus.org/topic/25533/nppm_reloadfile-should-return-true-_only_-on-success/4
2024-03-04 03:04:56 +01:00
molsonkiko
2adf712135 Enhance Shortcut Mapper filter to find the command items more easily
This commit allows several keywords separated by white space to find the command items.

Fix #14743, close #14824
2024-03-04 02:21:32 +01:00
Don Ho
8bfe2d7a77 Fix an error 2024-02-29 22:57:59 +01:00
Don Ho
35deb8a303 Make "Prevent C0 input" feature optional 2024-02-29 17:51:27 +01:00
Alan Kilborn
40adc38201 Prevent typing control characters into document
Fix #13279, close #14766
2024-02-28 17:01:23 +01:00
Don Ho
6c027d343f Modify the layout of "Editing 2" in Preferences dialog
Ref: 12548b6abb (commitcomment-139128197)
2024-02-28 15:41:35 +01:00
Don Ho
13cd4acad6 Fix "Save a Copy As" dialog's wrong title
1. Use appropriated localized title on some main save/open dialogs.
2. Reuse menu localized string and remove some redundent entries from localization files.

Fix #14737, fix #11860, close #14808
2024-02-28 04:54:38 +01:00
Don Ho
12548b6abb Reorganize "Editing" sections in Preferences dialog 2024-02-26 05:40:42 +01:00
xomx
ce8fb873a6 Fix possible no-GUI state when using systray
Fixes possible Notepad++ non-GUI state when minimized to systray with an unsaved file, closing from the systray icon & then cancelling that closing from the invoked Notepad++ save dialog.

Fix #14777, close #14778
2024-02-25 01:32:03 +01:00
Alan Kilborn
fbd4a40214 Fix context menu popup location issue
Make context menu popup location at current text position when invoked via keyboard.

Fix #14727, close #14730
2024-02-24 15:34:26 +01:00
xomx
f66dd91046 Fix Notepad++ blocked when closed minimized or from systray
When Notepad++ is minimized and there are 2 or more unsaved opened files,
close Notepad++ directly from the taskbar (no periodic backup) will launch modal Save All dialog,
which will not be on the foreground. Hence the blocage of Notepad++.

This commit fixes the issue above.

Fix #14718, close #14725
2024-02-24 15:16:58 +01:00
unknown
8ffe8147c7 Few fixes for Finnish translation
Tab vs. tabulator confusion fix.

Close #14755
2024-02-24 03:38:09 +01:00
Don Ho
ee74fe5879 Merge branch 'molsonkiko-fix_shortcut_mapper_scintilla_shortcut' 2024-02-23 19:56:06 +01:00
Don Ho
27156bdf3c Merge branch 'fix_shortcut_mapper_scintilla_shortcut' of https://github.com/molsonkiko/notepad-plus-plus into molsonkiko-fix_shortcut_mapper_scintilla_shortcut 2024-02-23 19:46:27 +01:00
GabrielFrigo
b30e2755c8 Update BATCH (Remove chcp and choice)
Close #14715
2024-02-23 02:41:21 +01:00
Don Ho
d83d4c9239 Fix plugins not recieving some Scintilla notification types regression
Remove the restriction for Scintilla notification types for plugins.

Ref: https://community.notepad-plus-plus.org/topic/25497/notepad-release-8-6-4/9
2024-02-22 17:22:54 +01:00
Don Ho
9a6614ea98 Enhance NPPN_GLOBALMODIFIED notification
The commit enhances 49e6957d48
2024-02-21 19:03:31 +01:00
Don Ho
49e6957d48 Fix Replace All action not notifying plugins of modification regression
Add NPPN_GLOBALMODIFIED to notify plugins that the current document is just modified by Replace All action.
	//scnNotification->nmhdr.code = NPPN_GLOBALMODIFIED;
	//scnNotification->nmhdr.hwndFrom = BufferID;
	//scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero

For solving the performance issue (from v8.6.4), Notepad++ doesn't trigger SCN_MODIFIED & other Scitilla notifications during Replace All action anymore.
Plugin devs should monitor NPPN_GLOBALMODIFIED instead. This notification is implemented in Notepad++ v8.6.5.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14685#issuecomment-1955229867

Fix #14767, close #14768
2024-02-21 16:30:25 +01:00
Don Ho
120fc5d726 Notepad++ v8.6.4 release 2024-02-20 01:42:05 +01:00
Don Ho
827b08f6ff Fix regression that the view cannot be activated by mouse clicking
SCI_SETCOMMANDEVENTS cannot be set to false, because SCEN_SETFOCUS is being used by Notepad++

The regression was introduced by commit: 044296eea1

Fix https://community.notepad-plus-plus.org/topic/25490/notepad-release-8-6-3/7?_=1708380779619
2024-02-19 23:27:48 +01:00
Don Ho
1491efd95e Add a new great refactoring 2024-02-19 02:09:26 +01:00
Don Ho
5110069841 Notepad++ v8.6.3 release 2024-02-18 17:32:41 +01:00
Don Ho
250dfe0f8b Fix new editing dialog not in dark mode
Fix https://community.notepad-plus-plus.org/topic/25478/notepad-v8-6-3-rc-2/3?_=1708095675232
2024-02-16 16:00:03 +01:00
molsonkiko
840c4e5854 use ScintillaKeyMap::toString() to get all shortcuts
simplifies code, also matches "or" in a list of multiple shortcuts.
2024-02-15 14:31:40 -08:00
Don Ho
f2d66170fc Restore multi-editing option on GUI
Make also Column To Multi-editing optional on GUI and cancel the usage of noColumnToMultiSelect.xml file.
For users who have added "noColumnToMultiSelect.xml" for disabling "Column To Multi-editing" feature,
please go to "Editing 2" section of Preferences to disable this feature.

Ref: https://community.notepad-plus-plus.org/topic/25364/notepad-v8-6-2-release/11?_=1707952609907
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14611#issuecomment-1937487607

Fix #14645, close #14734
2024-02-15 18:27:48 +01:00
Karlo-F
75b239cf8a [xml] Update croatian.xml to v8.6.3
Close #14726
2024-02-15 15:35:05 +01:00
xomx
63d0f88b0a [xml] Update czech.xml to v8.6.3
Close #14728
2024-02-15 15:33:04 +01:00
molsonkiko
36793b5164 Enable shortcut mapper to filter keycombos for scintilla commands
Previously the shortcut mapper filtered the keycombo
    for every other type of command, but not scintilla commands.
2024-02-14 15:26:20 -08:00
Gustavo5634
978118dc0e Add latest ES/JS keywords for auto-completion
Fix #14705, close #14711
2024-02-12 13:56:48 +01:00
Piotr Kostrzewski
a670b26a7c Update polish.xml to 8.6.3
Close #14675
2024-02-11 17:29:15 +01:00
Juan
5f95df0ae4 [xml]Update galician v.8.6.3.xml
Close #14713
2024-02-11 17:25:05 +01:00
Juan
eabd620507 [xml]Update spanish v.8.6.3.xml
Close #14712
2024-02-11 17:22:46 +01:00
DARK_GEMS
346ed36c01 Add html 5 style code in css.xml for auto-completion
Close #14698
2024-02-11 16:41:33 +01:00
~GOLEM~
be4584832f [xml] Update russian.xml v8.6.3
Close #14678
2024-02-11 16:24:55 +01:00
Andrei Miloiu
2ef8d147ee [xml] Update romanian.xml
Close #14598
2024-02-11 16:22:52 +01:00
Blackspirits
632dcaa470 Update portuguese.xml
Close #14669
2024-02-11 05:00:47 +01:00
Patriccollu
a0bd2f8816 [xml] Update Corsican translation for Notepad++ 8.6.3
Close #14677
2024-02-11 04:58:07 +01:00
Marcellomco
b4a2040b77 [XML] Update brazilian_portuguese.xml
Added translation for "Update localization files"

Close #14679
2024-02-11 04:56:37 +01:00
schnurlos
7beb15d56c [xml] Update german.xml
Following c6e433f70b

Close #14680
2024-02-11 04:54:58 +01:00
kubalav
59b9257cb0 [xml] Update Slovak translation
Close #14682
2024-02-11 04:53:27 +01:00
rddim
6875e2673f [xml] Update Bulgarian localization
Close #14686
2024-02-11 04:51:51 +01:00
yasmise
04b595f095 [xml] Update japanese.xml
Add translation text for this commit:
* Update localization files (c6e433f)

Close #14690
2024-02-11 04:49:35 +01:00
Don Ho
087430f8f1 Fix regression of NPPM_RELOADFILE
Regression is introduced by:
bb278b26fc

Fix #14693, close #14708
2024-02-10 15:35:05 +01:00
Don Ho
76cfc5945e Fix loosing all open files after restarting as Admin to save a file
While saving a file needs the admin privilege, and if "Always In Multi-Instance Mode" option is activated, the current Notepad++ instance will be closed and a new instance with admin privilege contains no file is launched - it makes user confused because there are nothing to be edited and saved.

This commit fixes the issue by keeping the 1st instance opened, and launching the 2nd instance (with admin privilege) which contains the file in question - so user can modify it and save it.

The new behaviour (of this commit) not only fixes the issue, but also makes more sense, since it's "Always In Multi-Instance Mode". Note that the same behaviour happens if the session & periodical backup feature is disabled.

Fix #14694, close #14701
2024-02-09 16:27:16 +01:00
vlakoff
c927ee8ce5 Add .mjs extension to the "web script" file associations
close #14689
2024-02-08 05:06:09 +01:00
Don Ho
044296eea1 Fix Replace All crash & performance issue
Fix  #14630, close #14685
2024-02-08 02:20:57 +01:00
Don Ho
0d05dae4ba Add more unit tests for Function List of Python 2024-02-07 22:30:55 +01:00
Дим Щ
e600c35ad2 Enhance Function List for Python
Support for async def and colons in argument list

Fix #13908, close #14628
2024-02-07 22:25:34 +01:00
Don Ho
c6e433f70b Update localization files 2024-02-05 16:27:59 +01:00
Don HO
5e6df25942
Update README.md
Add build status
2024-02-04 19:23:47 +01:00
anatoly77g
91074da46d Fix macro recording twice for some commands
When recording a keyboard macro, some commands are added to the macro twice.
When later playing back the macro, they happen twice, which leads to incorrect edits.

Fixed commands:
* EDIT_CUT (Cut)
* EDIT_COPY (Copy)
* IDM_EDIT_LINE_UP (Move Up Current Line)
* IDM_EDIT_LINE_DOWN (Move Down Current Line)

Not fixed: issue 13722:
SEARCH_GOTOMATCHINGBRACE (Go to Matching Brace)

Fix #5217, fix #14634, close #14613
2024-02-04 15:40:25 +01:00
Don Ho
f09b653d19 Fix calltip crash due to the division by zero
Fix #14664, close #14667
2024-02-04 13:08:53 +01:00
Don HO
9cec6aff3b
Update CONTRIBUTING.md 2024-02-03 15:04:34 +01:00
Don HO
85af8d566d
Update CONTRIBUTING.md
Add info for PR regarding Function List parser.
2024-02-03 15:03:12 +01:00
Compaszer
bf65ba5329 Added php 8.3 functions to syntax highlighting and autocomplete files
Fix #14635, close #14636
2024-02-03 14:19:12 +01:00
DARK_GEMS
ec29bc101c Update css.xml
Some css properties added.

Close #14666
2024-02-03 12:39:05 +01:00
Alan Kilborn
cb8165b161 Fix "Open File" command not working with TAB preceded
Fix #14543, close #14654
2024-02-03 12:31:37 +01:00
Don Ho
9e7f1e514c Make copy/cut line while no selection optional
With this commit, there's the same issue in both JsonTools & NavigateTo (in C#), described here:
https://community.notepad-plus-plus.org/topic/25315/notepad-v8-6-1-release/2?_=1706795482129 

To reproduce:
1. Uncheck "Enable Copy/Cut Line without selection" checkbox in Editing section of Preferences.
2. Make sure there's no selection in the current editor
3. Launch "Open JSON tree viewer", and try to Cut "@" symbol on the top left text field with Ctrl-X

To remedy such problem, the plugin should call NPPM_MODELESSDIALOG with MODELESSDIALOGADD on the handle (HWND) of modeless dialog, just after the dialog creation.
(https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h#L93)
With the registration of dialog handle, Notepad++ will pass all events which belongs to dialog's controls to the registered dialog.

Both source code of JsonTools & NavigateTo have been examinated, NPPM_MODELESSDIALOG which should be used has not been called.
Not sure it's the case of all the plugin in C#, it's not the issue for the C/C++ plugins anyway, because the dockable modeless dialog (inherited from StaticDialog) is registered after its creation:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/WinControls/StaticDialog/StaticDialog.cpp#L257

Fix #14638, close #14660
2024-02-03 01:29:54 +01:00
Don HO
f431a37967
Update SUPPORTED_SYSTEM.md 2024-02-01 16:28:17 +01:00
Don Ho
c0eaf544a6 Add "Plugin Communication" reference
and update copyright year for plugin header files.
2024-01-28 13:47:49 +01:00
Don Ho
bb278b26fc Enhance API description in comment
Close #14587
2024-01-28 05:20:22 +01:00
Christian Grasser
50a6cf2981 Modified Notepad++ version to "Notepad++ GH_BUILD" for CI artifact
In order to avoid confusion NOTEPAD_PLUS_VERSION is modified to "Notepad++ GH_BUILD" for GitHub CI artifacts.

Close #14625
2024-01-22 05:19:25 +01:00
Don Ho
ae9aa22436 Fix Copy/Cut/Paste issue in Vertical Edge text field (preferences)
This commit allows Ctrl-V, Ctrl-C, Ctrl-X, Ctrl-A & Ctrl-Z in text field, so user can do paste, copy, cut, select all & redo/undo action respectively in Vertical Edge text field of Préférences dialog.

Also the paste content is controlled to allow only the number and white space.

Fix #13874, close #14586
2024-01-16 19:44:47 +01:00
Don Ho
7479e31fb3 Notepad++ v8.6.2 release 2024-01-14 19:20:08 +01:00
Don Ho
75ae73c173 Fix Copy/Cut/Paste shortcut modification conflict problem
The bug is introduced by:
f7c44b4413

Fix #14585, close #14586
2024-01-14 00:18:58 +01:00
Don Ho
f7c44b4413 Restore Shift-DEL, Ctrl-INS and Shift-INS & fix Ctrl+V can't paste into the text fields of forms for certain plugins
This PR restores shortcuts Shift-DEL, Ctrl-INS and Shift-INS for Cut / Copy / Paste respectively.
the action to delete entire line without selection is removed in this PR due to its shortcut Shift-DEL has triggered several critical issues.

To delete entire line, the users are encouraged to use Scintilla default shortcuts set in Shortcut Mapper: Ctrl-Shift-L (SCI_LINEDELETE). User can remap it to another shortcut via Shortcut mapper.

Fix #14568, fix #14470, fix #14571, close #14557, close #14569
2024-01-11 05:34:55 +01:00
artpoli
f7de2076c3 [xml] Update Ukrainian translation
Close #14570
2024-01-11 00:39:25 +01:00
Christophe Mateos
619b5a68ec [xml] Update french.xml
Close #14575
2024-01-11 00:27:11 +01:00
Helge Konetzka
464967e26c Fix clang compilation error
Close #14559
2024-01-10 23:33:03 +01:00
Don Ho
eb0922c223 Fix cloned document position not remembered though sessions
Fix #14461, fix #14164, close #14565
2024-01-08 16:55:32 +01:00
Don Ho
6f5f246791 Notepad++ 8.6.1 release 2024-01-05 17:26:31 +01:00
Don Ho
9c7bb8a080 Fix F4 not working for search result
Fix #12023, close #14544
2024-01-04 04:04:16 +01:00
Don Ho
dc6f6d1103 Fix deleting in column mode also delete an unexpected EOL
Fix #14426, close #14536
2024-01-03 06:16:54 +01:00
xomx
19c6489a9a [xml] Update czech.xml to v8.6.1
Close #14527
2023-12-30 17:49:12 +01:00
kubalav
0aebe13b3e [xml] Update Slovak translation
Close #14528
2023-12-30 17:48:06 +01:00
~GOLEM~
03d1a5dcd1 [xml] Update russian.xml
Close #14529
2023-12-30 17:46:11 +01:00
schnurlos
c664299dfa [xml] Update german.xml
Following 78d0e7e12f

Close #14530
2023-12-30 17:43:52 +01:00
Patriccollu
026ab75b38 [xml] Update Corsican translation for Notepad++ 8.6.1
Close #14531
2023-12-30 17:41:31 +01:00
Karlo-F
79fab08f02 [xml] Update croatian.xml to v8.6.1
Close #14532
2023-12-30 17:39:44 +01:00
Marcellomco
5e13a7b128 [XML] Update brazilian_portuguese.xml
Added translation for "Add new localization entries"

Close #14533
2023-12-30 17:37:14 +01:00
yasmise
81832b1690 [xml] Update japanese.xml
Add translation texts for these commits:
* Add new localization entries (d039eaa)
* Add navigation to the 1st & last tab abilities (4e6bbbc)

This also includes fix-ups to existing texts, to make it clearer.

Close #14534
2023-12-30 17:35:30 +01:00
rddim
24305466b3 [xml] Update Bulgarian localization
Close #14535
2023-12-30 17:33:52 +01:00
Don Ho
4bde0d4b53 Fix incorrect code
ref: 8ae049afbc (r135905629)

And also add new entries to tabContextMenu_example.xml
2023-12-30 03:53:47 +01:00
Don Ho
d039eaa900 Add new localization entries
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14497#issuecomment-1871689104
2023-12-29 18:07:53 +01:00
Don Ho
d1664226d3 Add comments in RTL localization files for explanation of "editZoneRTL" 2023-12-29 04:22:00 +01:00
Don Ho
8ae049afbc Use 64-bit positions instead of 32-bit obsolete ones
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14359/files#r1437502252
2023-12-29 02:56:37 +01:00
schnurlos
c1fa9273e5 [xml] Update german.xml
Close #14370
2023-12-28 17:54:35 +01:00
Karlo-F
65701313cd [xml] Update croatian.xml to v8.6
Close #14396
2023-12-28 17:42:50 +01:00
rddim
76b2ca3f40 [xml] Update Bulgarian localization
Close #14398
2023-12-28 17:30:01 +01:00
Andrei Miloiu
275a6853be [xml] Update romanian.xml
Close #14468
2023-12-28 17:13:20 +01:00
Patriccollu
fe17d2824d [xml] Update Corsican translation for Notepad++ 8.6.1
Close #14483
2023-12-28 17:02:56 +01:00
Christophe Mateos
e4d494c9d0 [xml] Update french.xml
Close #14484
2023-12-28 16:48:15 +01:00
~GOLEM~
7c9312b438 [xml] russian.xml 8.6.1
Close #14485
2023-12-28 16:32:58 +01:00
A. Regnander
211b9b7331 Update swedish.xml
Close #14486
2023-12-28 16:29:56 +01:00
Thomas De Rocker
1a1d6e352c Update dutch.xml
Close #14512
2023-12-28 16:22:51 +01:00
Juan
8898d0dcc8 [xml ]Update spanish.xml v.8.6
Close #14524
2023-12-28 16:20:19 +01:00
Juan
fabf129678 [xml] Update galician.xml v.8.6
Close #14525
2023-12-28 16:08:43 +01:00
Don Ho
d7630fa42d Fix file status in "other view" is not detected
Fix #14225
2023-12-28 01:43:10 +01:00
Don Ho
5f13c84719 Fix dropped file being opened in the wrong view
Fix #14354
2023-12-28 01:00:50 +01:00
Marcellomco
89f83f1023 [XML] Update brazilian_portuguese.xml
Added translation for 'Make RTL per document & remembered across the sessions'.

Close #14439
2023-12-27 03:45:17 +01:00
yasmise
65988cf16d [xml] Update japanese.xml
Update translation texts for these commits:
* Fix confusing memory allocation error message (reused FileTooBigToOpen) (ffc0ed2)
* Make RTL per document & remembered across the sessions (2724e0d)

Close #14448
2023-12-27 03:43:02 +01:00
kubalav
55f535cd35 [xml] Update Slovak translation
Close #14366
2023-12-26 23:57:25 +01:00
Christian Grasser
dcc7e600c7 Updated to Scintilla 5.4.1 & Lexilla 5.3.0
Scintilla 5.4.1
https://www.scintilla.org/scintilla541.zip
Released 27 December 2023.

1.  Add IDocumentEditable interface to allow efficient interaction with document objects which may not be visible in a Scintilla instance. This feature is provisonal and may change before being declared stable. For better type-safety, the ScintillaCall C++ API uses IDocumentEditable* where void* was used before which may require changes to client code that uses document pointer APIs DocPointer, SetDocPointer, CreateDocument, AddRefDocument, and ReleaseDocument.
2.  Ctrl-click on a selection deselects it in multiple selection mode.
3.  Add SCI_SELECTIONFROMPOINT for modifying multiple selections.
4.  Add SCI_SETMOVEEXTENDSSELECTION and SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.
5.  Improve performance of global replace by reducing cache invalidation overhead. [Feature #1502](https://sourceforge.net/p/scintilla/feature-requests/1502/).
6.  Fix regular expression search for "\<" matching beginning of search when not beginning of word and for "\>" not matching line end. [Bug #2157](https://sourceforge.net/p/scintilla/bugs/2157/).
7.  Fix regular expression search failure when search for "\<" followed by search for "\>". [Bug #2413](https://sourceforge.net/p/scintilla/bugs/2413/).
8.  Fix regular expression assertion (^, $, \b. \B) failures when using SCFIND_CXX11REGEX. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
9.  Fix regular expression bug in reverse direction where shortened match returned. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
10. Avoid character fragments in regular expression search results. [Bug #2405](https://sourceforge.net/p/scintilla/bugs/2405/).
11. With a document that does not have the SC_DOCUMENTOPTION_TEXT_LARGE option set, allocating more than 2G (calling SCI_ALLOCATE or similar) will now fail with SC_STATUS_FAILURE.
12. Protect SCI_REPLACETARGET, SCI_REPLACETARGETMINIMAL, and SCI_REPLACETARGETRE from application changing target in notification handlers. [Bug #2289](https://sourceforge.net/p/scintilla/bugs/2289/).

Lexilla 5.3.0
https://www.scintilla.org/lexilla530.zip
Released 27 December 2023.

1. Fix calling AddStaticLexerModule by defining as C++ instead of C which matches header. [Bug #2421](https://sourceforge.net/p/scintilla/bugs/2421/).
2. Bash: Fix shift operator << incorrectly recognized as here-doc. [Issue #215](https://github.com/ScintillaOrg/lexilla/issues/215).
3. Bash: Fix termination of '${' with first unquoted '}' instead of nesting. [Issue #216](https://github.com/ScintillaOrg/lexilla/issues/216).
4. HTML: JavaScript double-quoted strings may escape line end with '\'. [Issue #214](https://github.com/ScintillaOrg/lexilla/issues/214).
5. Lua: recognize --- doc comments. Defined by [LDoc](https://github.com/lunarmodules/ldoc). Does not recognize --[[-- doc comments which seem less common.

Close #14375
2023-12-26 23:17:53 +01:00
Don Ho
78d0e7e12f Fix hidden results of long lines for "Find All ..." commands
Fix some the results of "Find all in..." commands of long lines not being displayed, when the long lines are cut (its length > 2048).
All the results displayed in the cut long lines will be kept as the current behaviour. Additionally, each result beyond the cut long line (2048) will be displayed as default mode (ie. each entry will be displayed, so user can double click on the entry line for reaching the result).

Related: #12014

Fix #12023, close #14520
2023-12-26 16:28:41 +01:00
PavelBlend
d1b3fe6fee Fix python wrong decorator attribute colors
Fix #5894, close #14507
2023-12-23 18:04:46 +01:00
Don Ho
3c4f0f9cb2 Make line copy/cut/delete while no selection optional
By adding disableLineCopyCutDelete.xml in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to:
1. prevent hard coded Shift-DEL shortcut deletes whole line while no selection.
2. prevent Copy command (Ctrl-C) copies whole line (without selection).
3. prevent Cut command (Ctrl-X) cuts whole line (without selection).
4. add SCI_CUT (Shift-DEL), SCI_COPY (Ctrl-INS) & SCI_PASTE (Shift-INS) shortcuts

Note: the old disableHardCodedShiftDelete.xml (of 53b5055118caa5934b535c5521f04f991c13143b) is canceled, the new disableLineCopyCutDelete.xml is used instead.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14296#issuecomment-1866679990
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14401#issuecomment-1833326429

Close #14513
2023-12-23 04:45:09 +01:00
Alan Kilborn
08222a89de Fix the 2nd replace in cloned document for Replace in Opened Docs
Fix #14505, close #14511
2023-12-22 04:44:03 +01:00
Alan Kilborn
7419770d2e Fix regression of F3 & Shift-F3 in Incremental Search
The regression was introduced by:
ac871cacd4

Fix #14503, close #14504
2023-12-20 01:31:26 +01:00
Alan Kilborn
4e2903a274 Small update of english.xml
Restore accelerators for Increamental Search to english.xml.

Fix #14500, close #14501
2023-12-19 16:03:23 +01:00
Don Ho
4e6bbbc17f Add navigation to the 1st & last tab abilities
Fix #14416, close #14497
2023-12-17 16:17:11 +01:00
Don Ho
58d8043e2b Fix build error 2023-12-16 02:20:15 +01:00
Don Ho
fa82ca0224 Add document tab "Move to Start" & "Move to End" commands
Fix #13982, fix #9525
2023-12-15 19:44:15 +01:00
xomx
d9d26e5981 "-loadingTime" cmdline param enhancement
Improves:
- the reported time accuracy (from seconds to milliseconds, now e.g. different N++ settings benchmarking is possible)
- the ability to analyze various problems (now it is possible to distinguish the time taken by the app/plugin code-init from the possible file loading time)

Fix #14472, close #14473
2023-12-14 17:41:43 +01:00
Don Ho
53b5055118 Make hard-coded shortcut "Shift-DEL" be abled to be disabled
In order to disable the hard-coded shortcut "Shift-DEL" ability (new feature introduced in v8.6) which delete current line while no selection, users must add an empty file named "disableHardCodedShiftDelete.xml", in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to prevent this behaviour.

Fix #14470, close #14481
2023-12-14 16:58:12 +01:00
Don Ho
aef0438180 Make column to multi-select be abled to be disabled
In order to disable the "Column to multi-select" ability (new feature introduced in v8.6), users must add an empty file named "noColumnToMultiSelect.xml", in "%APPDATA%\Notepad++\" directory (or in the Notepad++ installed directory in portable mode) to prevent this behaviour.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14296#issuecomment-1848076816

Fix #14464, close #14476
2023-12-13 03:25:33 +01:00
Alan Kilborn
e497ae2c06 Enhancement: add search options output to FiF Search-results
Fix #14306, close #14373
2023-12-12 21:12:02 +01:00
briangood35
bf37d4714f Sort language list in the Preferences dialog
Sort langlist before displaying using custom less than operator.

Fix #14245, close #14443
2023-12-08 19:52:02 +01:00
Sven Strickroth
ef8ad111e9 Enhance the performance: disable undo collection while loading a file
This reduces the amount of memory required to load a file by around half.

Close #14455
2023-12-07 23:15:50 +01:00
Don Ho
a51e62c16d Fix cloned (modified & unsaved) document disassociated issue after Npp being relaunched
The bug has been fixed in v8.5.7 by PR #14003.
However the fix causes a regression #14164, the concerning commit is reverted.
Hence this fix.

Fix #10266, fix #10365
2023-12-05 04:55:49 +01:00
Don Ho
6f2e5d272c Revert "Fix cloned document disassociated issue after Npp being relaunched"
This reverts commit f4297f1a837c93e09962715c40ba932567d46aa2 for fixing regression of not restoring coloned document position.

Fix #14164
2023-12-05 04:36:10 +01:00
Don Ho
e08c547167 Fix customized extesion in Style Configurator not saved regression
This regression is due to commit:
950236bb8f

Fix #14437
2023-12-03 03:48:05 +01:00
Don HO
58b2f057b0
Remove Appveyor Build Status from README 2023-12-03 03:01:22 +01:00
Don Ho
2724e0ddbb Make RTL per document & remembered across the sessions
This commit adds the ability of RTL/LTR per document (tab), and memorizes RTL setting of each file in the session.xml.

It also adds an attribute "editZoneRTL" in localization XML file. if "RTL" attribute is present and its value is "yes", then user can add  "editZoneRTL" attribute beside, and set the value of the attribute in question to "no", so Notepad++ GUI will be RTL, but Scintilla zone will be LTR by opening files.  Of course, user can set any direction they want afterward, and what they have set on document will be remembered across the sessions.

Fix #9665, fix #9950, fix #14385, close #14431
2023-12-02 17:49:09 +01:00
xomx
ffc0ed2516 Fix confusing memory allocation error message (reused FileTooBigToOpen)
Fix #14418, close #14429
2023-12-02 02:29:17 +01:00
Don Ho
0978b2e29f Fix visual glichy on multi-paste
This PR removes Shift-DEL Ctrl-INS & Shift-INS shortcut from Scintilla.
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14401#issuecomment-1830302635

Now for Copy/Cut/Paste commands and their shortcut are coherent. ie. if user remaps the shortcuts of these 3 commands, both single/multiple selection operation with the commands in question will follow the changed shortcuts.

It also fixes 2 bugs:
1. visual glitch problem of read-only while multi-pasting.
2. the shortcut **Ctrl-C** in Search results works now.

Fix #14410, close #14423
2023-11-29 23:21:11 +01:00
Don Ho
7deb12aeed Enable Copy & Cut commands on menu all the time
Before the implementation of e9c50ed967,
Copy & Cut command were disabled when there were no selection, which makes sense because there was nothing to be copied & cut.
Now users can copy/cut current line without selection.

Fix #14401, close #14415
2023-11-28 15:10:51 +01:00
Don Ho
2768cf5422 Update Finnish localization file 2023-11-24 22:29:59 +01:00
Don Ho
2fc7b706d8 Fix the error link 2023-11-23 18:17:08 +01:00
Don Ho
e215ae2de7 Notepad++ 8.6 release: 20th-Year Anniversary
The short story:
https://notepad-plus-plus.org/news/v86-20thYearAnniversary
2023-11-23 16:08:45 +01:00
xomx
ff590f3535 Update czech.xml to v8.6
Close #14394
2023-11-23 14:43:20 +01:00
~GOLEM~
ea3afd08c5 [xml] Update russian.xml to v8.6
Close #14393
2023-11-23 04:21:21 +01:00
yasmise
c3a8d13e5d [xml] Update japanese.xml
Update translation texts for these commits:
* [xml] Remove the redundant entry (faba181)
* Prevent Direct Write being set if user uses RTL (9bc790b)

Close #14386
2023-11-22 21:11:41 +01:00
Marcellomco
7c592e013a [XML] Update brazilian_portuguese.xml
Added translation for "Prevent Direct Write being set if user uses RTL"

Close #14387
2023-11-22 21:09:27 +01:00
Patriccollu
bfce07c75b [xml] Update Corsican translation for Notepad++ 8.6
Close #14388
2023-11-22 21:07:34 +01:00
Karlo-F
84289c732b [xml] Update croatian.xml to v8.6
Close #14392
2023-11-22 21:05:14 +01:00
Don Ho
2a90f11487 Add new styler entries to themes 2023-11-22 18:26:37 +01:00
Don Ho
9bc790b014 Prevent Direct Write being set if user uses RTL
Ref: 975d29b30b (commitcomment-132946815)

Close #14374
2023-11-22 02:06:01 +01:00
Don Ho
c62e222985 Fix Multi-edit DEL keystroke delete part of Unicode character
Fix https://community.notepad-plus-plus.org/topic/25150/notepad-v8-6-release-candidate/5?_=1700578401627
2023-11-22 00:17:26 +01:00
Andrei Miloiu
d77b270243 Update romanian.xml
Close #14280
2023-11-20 18:22:17 +01:00
artpoli
706dff6409 [xml] Update Ukrainian translation
Close #14318
2023-11-20 18:18:09 +01:00
Juan
45cec73a48 Update spanish.xml v. 8.5.9
Close #14342
2023-11-20 18:15:34 +01:00
Juan
64bca5fdd4 Update galician.xml v. 8.5.9
Close #14343
2023-11-20 18:10:15 +01:00
A. Regnander
562c367b79 Update swedish.xml
Added new strings and made a minor change to the existing translation.

Close #14348
2023-11-20 18:03:29 +01:00
Karlo-F
0baa474f30 [xml] Update croatian.xml to v8.6
Close #14371
2023-11-20 18:00:01 +01:00
Don Ho
0917875034 Make all SCI_SETELEMENTCOLOUR message use 32 bits color 2023-11-20 04:59:40 +01:00
Don Ho
b24734df8f Fix backspace keystroke not working for multi-editing
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14359#issuecomment-1815898951
2023-11-18 20:24:20 +01:00
Don Ho
975d29b30b Enable Direct Write Technology in Scintilla by default
And disable Direct Write under WINE, due to the performance issue.
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8510
2023-11-18 19:22:59 +01:00
Iñigo Zendegi Urzelai
6ba33563bd [xml] Minor fix
Close #14258
2023-11-18 00:31:56 +01:00
rddim
d1c335fff3 [xml] Update Bulgarian localization
Close #14282
2023-11-18 00:20:42 +01:00
Thomas De Rocker
3f81b2457d Update dutch.xml
Close #14364
2023-11-17 20:05:04 +01:00
kubalav
40fc7a57c9 [xml] Update Slovak translation
Close #14365
2023-11-17 20:03:22 +01:00
Marcellomco
a2c10cc9a7 [xml] Update brazilian_portuguese.xml
Removed entry indicated in "Remove the redundant entry".

Close #14362
2023-11-17 20:01:17 +01:00
CennoxX
370f99556c Fix wrong German translation of multi-select features
The German translation is completely missing the word "case" (meant is "upper/lower case"). The literally translation of "Nur Übereinstimmung" would be "Match only", which doesn't capture the essence of the phrase.
Also it's "Mehrfachauswahl", not "Mehrfach-Auswahl".

Close #14361
2023-11-17 19:59:47 +01:00
xomx
b85c1ebd34 [xml] Update czech.xml to v8.5.9
Close #14360
2023-11-17 02:48:27 +01:00
Don Ho
faba181e8f [xml] Remove the redundant entry 2023-11-17 02:45:03 +01:00
schnurlos
24af65c602 [xml] Update german.xml
Small fixes (thx MarkusBodensee).

Close #14250
2023-11-16 21:15:31 +01:00
yasmise
b6624f05cc [xml] Update japanese.xml
Add translation texts for these commits:
* Make session inaccessible files remembered (part 2/2) (0879451)
* Force to enable multi-select feature in Scintilla (89278e1)
* Enhance Multi-select feature (cecd161)
* Enhance Find Dialog: display extra info in the status bar (05f339b)

Close #14275
2023-11-16 21:05:51 +01:00
Don Ho
c517985beb Fix DELETE key not working in multi-editing for EOL
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14338#issuecomment-1813006657

Close #14359
2023-11-16 18:31:00 +01:00
Don Ho
3e7425f6b1 Fix a typo 2023-11-16 05:29:24 +01:00
~GOLEM~
4123d531a0 [xml] Update russian.xml v8.5.9
Close #14256
2023-11-15 19:52:38 +01:00
kubalav
931155a311 [xml] Update Slovak translation
Close #14259
2023-11-15 19:06:32 +01:00
Marcellomco
eb3e1a65a0 [XML] Update brazilian_portuguese.xml
Added translation for Make session inaccessible files remembered

Close #14260
2023-11-15 19:03:55 +01:00
Christophe Mateos
2905efef6a [xml] Update french.xml with latest additions + realign with english.xml
Close #14317
2023-11-15 19:00:04 +01:00
Patriccollu
4391274b37 [xml] Update Corsican translation for Notepad++ 8.5.9
Fix #14290
2023-11-15 18:57:37 +01:00
xomx
ca403b6627 Fix possible PluginsManager FindClose WINAPI errors
Otherwise the ERROR_INVALID_HANDLE (0x6) can be triggered.

Close #14356
2023-11-15 18:08:28 +01:00
Don Ho
1764758669 Enhance multi-edit paste and Enter key type
Also disable auto-indent during multi-editing.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14338#issuecomment-1809045648

Close #14355
2023-11-15 15:37:34 +01:00
Don Ho
05f339b0cf Enhance Find Dialog: display extra info in the status bar
Fix #14307, close #14347
2023-11-14 21:13:02 +01:00
Don Ho
812745d850 Make multi-select background & caret colour customizable
Fix #14302, close #14350
2023-11-14 05:40:08 +01:00
Don Ho
c7e1162f23 Fix menu Paste inconsitent behaviour
Fix #9260, close #14346
2023-11-11 14:18:11 +01:00
Don Ho
2337a7b5b6 Fix network shared files saving regression
Cause:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1791313760

Solution:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1798075334

Enhancement:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14300#issuecomment-1804910680

Fix  #14300, close #14344
2023-11-11 01:32:30 +01:00
Don Ho
4ff9d77d2b Make multi-select Copy/Paste behaviour as same as column edit's one
Copy some multi-select texts and paste them make all text glued all together.
This commit makes pasted texts separated by EOL, as column selection's Copy/Paste behaviour.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14266#issuecomment-1799203336

Close #14338
2023-11-11 00:04:36 +01:00
briangood35
dadc187dc6 Add srcset attribute for HTML
Fix #14294, close #14339
2023-11-09 20:12:54 +01:00
Christian Grasser
69998ab7de Update Scintilla to v5.3.8 & Lexilla to v5.2.8
Scintilla Release 5.3.8 https://www.scintilla.org/scintilla538.zip

    Released 5 November 2023.
    Fix excessive memory use when deleting contiguous ranges backwards. Notepad++ Issue #13442.
    Fix incorrect substitution when searching for a regular expression backwards. Bug #2405.
    Make SCI_MOVESELECTEDLINESUP and SCI_MOVESELECTEDLINESDOWN work for rectangular selections. Bug #2078.
    For Cocoa, minimum supported macOS release increased to 10.13.
    For Cocoa, fix invisible text on macOS 14 Sonoma. Bug #2402.
    For Cocoa, do nothing for suspendDrawing on macOS 10.14+ as the underlying calls have been deprecated.

and lexilla

Release 5.2.8 https://www.scintilla.org/lexilla528.zip

    Released 5 November 2023.
    Python: Update f-string handling to match PEP 701 and Python 3.12. Controlled with property lexer.python.strings.f.pep.701. Issue #150, Pull request #209.
    R: Fix escape sequence highlighting with change of for loop to while loop. Issue #206, Pull request #207.
    Minimum supported macOS release increased to 10.13.

Related to Notepad++ issue #13442, #14188 & #14288
Tested with: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14188#issuecomment-1740088956
Result: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14188#issuecomment-1799039503

Fix #13442, fix #14188, fix #14288, close #14320
2023-11-07 17:00:13 +01:00
xomx
5b61cc1680 Fix tab-closing crash by middle mouse button (unexpected mouse position)
The TabBar.h getTabIndexAt(int x, int y) could fail to find the tab-index (the underlying TCM_HITTEST WM returns -1, when there is no tab at the current mouse position).

Fix #14328, close #14329
2023-11-07 04:13:22 +01:00
Don Ho
1fafd0dc0b Fix hasSelection wrongly detected
Fix #14322, close #14330
2023-11-07 03:26:14 +01:00
Don Ho
2fb8d7fc77 Fix the shortcut bug (a regression) in commit e9c50ed
Ref: e9c50ed967 (commitcomment-131870570)
2023-11-07 03:17:01 +01:00
Don Ho
e9c50ed967 Add 3 line operation (delete, copy & cut) shortcuts
* Shift-Delete: without selected text, it will delete the whole line.
* Ctrl-C: without selected text, it will copy the whole line.
* Ctrl-X: without selected text, it will cut the whole line.

Fix #14296, close #14298
2023-11-06 20:58:20 +01:00
Don Ho
b5730eea31 Multi-edit enhancement: column mode to multi-edit on HOME/END/Arrow keys
This feature transforms a rectangular selection to multiple edit mode, so it's manipulatable with HOME, END and Arrow keys without loosing the set carets.

Related issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8203

Fix #14266, close #14313
2023-11-06 13:43:53 +01:00
Don Ho
dc6bfedb90 Fix Incomplete styler.xml crashes Notepad++ issue
And do some refactoring.

Fix #12101
2023-11-06 00:40:38 +01:00
Don Ho
950236bb8f Fix 2 performance issue in Style Configurator
Fix #14321
2023-11-05 20:48:10 +01:00
Alan Kilborn
07041f4565 Fix tooltip for "In Selection" edit field of preferences not closing issue
Fix #14287, close #14314
2023-11-05 12:34:44 +01:00
mpheath
37a968e6f4 [xml] Add Batch After Label style configuration
Fix #14283, close #14284
2023-11-04 00:30:46 +01:00
Don Ho
02e4202d68 Reduce Appveyor building time
Keep only x64 release build in Appveyor.
2023-11-03 23:26:44 +01:00
Don Ho
cecd161570 Enhance Multi-select feature
1. Make "Multi-select all" expand the word only when there's no selection.
2. Make Multi-select command set macro-able.
3. Make Multi-select command set translatable.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14295#issuecomment-1791688412

Close #14301
2023-11-03 13:16:45 +01:00
Don HO
7f2c303ac6
Update appveyor.yml
Disable FunctionList Unit tests.
2023-11-02 13:32:41 +01:00
Christian Grasser
c5477ee21c Add Github CI build
- add first version of GH CI build
- fix merge issue for lexilla.mak
- fix clang compiler issue:
       ..\lexers\LexObjC.cxx(50,20): warning : unused function 'IsADigit' [-Wunused-function] [D:\a\notepad-plus-plus\notepad-plus-plus\lexilla\src\Lexilla.vcxproj]
- fix functionlist unittest run for github
- make functionList unittest compatible with newer powershell 7

Fix #12177, close #14291
2023-11-02 12:16:31 +01:00
Don Ho
cab4d40b3f Add multi-select commands
Add "Multi-select All" & "Multi-select Next" for 4 modes to multi-select the occurrences respectively:
1. Match Case Only
2. Match Whole Word Only
3. Match Case & Whole Word
4. Ignore Case & Whole Word

Add also 2 commands "Undo the Latest Added Multi-Select" & "Skip Current && Go to Next Multi-select" for undoing latest added slection & skipping current selection and do the next one.

Users can asign the shortcuts to these 10 commands so multi-occurrence can be easily selected via shortcuts and be modified silmutanously.

This feature is inspired by: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8203#issuecomment-623712205

Fix #8203, close #14295
2023-11-01 03:40:54 +01:00
Don Ho
89278e1dc7 Force to enable multi-select feature in Scintilla 2023-10-30 15:40:49 +01:00
Adrian Kulawik
4ba92b04ec Fix "Hide lines" command hiding unselected lines issue
To solve this issue, lambda removeMarker can be set to only remove just begin or end marker. By doing so, the process of merging adjacent hidden sections is limited and as a result, lines that shouldn't be hidden remain visible.

Fix #14166, close #14167
2023-10-29 15:40:14 +01:00
Don Ho
1c27e64126 Use double quot instead of single quot
Fix #14265
2023-10-29 02:48:22 +02:00
Don Ho
e2fb15a703 Fix docking panel crash due to messing up config.xml
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13084#issuecomment-1783787209
2023-10-28 19:24:27 +02:00
xomx
5c80be7667 Fix silent installer mode when Notepad++ is running issue
When Notepad++ installer with the '/S' optional param is used while a previously installed Notepad++ instance is running, it does not update the locked main 'notepad++.exe' binary, but the installer still reports success (exit code == 0, regkeys actualized according to the installer version used...).

Moreover - because the installation/upgrade then looks like it is done, some automatic update services like winget cannot be used until a next N++ version is released (winget erroneously reports that the current version is already installed...).

The fix consist to set error code and quit installer, when installer in silent mode, and there's an instance of Notepad++ open.

Fix #10189, fix #10277, fix #22514, fix #14236, fix partially #8514, close #14251
2023-10-27 20:50:57 +02:00
Don Ho
dd6140f8c0 Fix bugs for remembering inaccessible file of past session (placeholder)
Fix #14271, fix #14272, fix #14273
2023-10-27 17:31:21 +02:00
Alan Kilborn
e5ee4c3638 Fix incoherent behaviour of "Duplicate Current Line" menu command
Fix incoherent behaviour of "Duplicate Current Line" menu command with its keyboard shortcut Ctrl-D, which duplicates also the selection.

Fix #5298, close #14255
2023-10-25 03:03:52 +02:00
xomx
72c5175b33 Fix missing session invalid error for user session & enhance NPPM_GETNBSESSIONFILES
New specs of NPPM_GETNBSESSIONFILES (which is retro-compatible):

======================
NPPM_GETNBSESSIONFILES

Retrieves the number of files to load in the session sessionFileName. sessionFileName should be a full path name of an xml file.

Parameters:

wParam [out]
BOOL* isValidXML, if this pointer is null, then this parameter will be ignored. TRUE if XML is valid, otherwise FALSE.

lParam [in]
const TCHAR * sessionFileName

Return value:
Returns 0 if sessionFileName is an empty string/NULL, or XML session file is corrupted/invalid, else the number of files.
======================

Other minor improvements:
- checking also for a possible ShellExecute errors
- removing the isAllSuccessful boolean, as it is no longer needed.

Fix #14228, close #14232
2023-10-23 01:09:58 +02:00
Don Ho
08794510be Make session inaccessible files remembered (part 2/2)
Following the commit: 4248c2ae22e07a030c9dd0684de1fd38125e9dfd

If the user enables the option "Remember inaccessible files from past session" (disabled by default), and an opened session (the default session "session.xml" or a user session) contains one or several inaccessible files, a message dialog will appear, giving the user the choice to open or not open the placeholders. If the user chooses to open them, empty and read-only documents will be opened as placeholders for these inaccessible files.

Fix #12079, fix #12744, fix #13696, close #14252
2023-10-23 00:07:00 +02:00
molsonkiko
4248c2ae22 Make session inaccessible files remembered (part 1/2)
Add the ability of "placrholders" (the empty document) for the inaccessible files of past session.

The inaccessible files from the current (default) session (i.e., session.xml) will not be lost in the next startup of Notepad++.
Furthermore, if file status detection is enabled in Notepad++ (default setting: ON), and the previously inaccessible files become accessible again (e.g., USB drive is inserted or network drive is remounted), the resurrected files can be reloaded on-the-fly without restarting Notepad++. The user will be prompted to reload if the placeholder is switched in.

Fix #12079, fix #12744, fix #13696, close #14168
2023-10-23 00:00:01 +02:00
xomx
bbbf3e8dfc Fix empty message showing while cancelling session file saving dialog
Fix #14235, close #14237
2023-10-18 16:05:58 +02:00
mpheath
089f7d6935 Make JSON5 to use JSON keywords
Fix #14205, close #14223
2023-10-18 16:03:22 +02:00
Don Ho
97dd708e23 Notepad++ release 8.5.8 2023-10-17 14:26:05 +02:00
Don Ho
8e43b0adba Fix user created session modified in multiInst mode
ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12079#issuecomment-1763399514
2023-10-15 18:00:38 +02:00
Karlo-F
8b50f876c9 [xml] Update croatian.xml to v8.5.8
Close #14229
2023-10-14 17:31:12 +02:00
xomx
a489388b57 [xml] Update czech.xml to v8.5.8
Close  #14231
2023-10-14 17:28:41 +02:00
Don Ho
09499725de Fix user created session saved on exit issue if multi-Inst is enabled
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12079#issuecomment-1762047207
2023-10-14 02:07:08 +02:00
Don Ho
85d5f972a8 Do not modify user created session even for inaccessible files
Fix partially #12079
2023-10-13 18:17:54 +02:00
xomx
64e95cc61c fix unwanted Afrikaans installer language
A minimalist variant of the previous PR.

Fix #3844, fix #7574, close #14224
2023-10-10 17:25:09 +02:00
~GOLEM~
d972240db6 [xml] Update russian.xml
Close #14222
2023-10-09 02:33:03 +02:00
Juan
1152780de2 [xml] Update spanish.xml v8.5.5
New revision and update

Close #14115
2023-10-08 19:59:07 +02:00
Juan
20a146a7a4 [xml] Update galician.xml v8.5.5
New revision and update

Close #14116
2023-10-08 19:56:35 +02:00
schnurlos
09833992b5 [xml] Update german.xml
Following cf8ddc18c9

Close #14118
2023-10-08 19:52:04 +02:00
~GOLEM~
25759679e6 [xml] Update russian.xml v8.5.7
Close #14111
2023-10-08 19:46:29 +02:00
Patriccollu
215897d304 [xml] Update Corsican translation for Notepad++ 8.5.8
Close #14122
2023-10-08 19:34:15 +02:00
Andrei Miloiu
27a82f4aac Update Romanian translation
Close #14123
2023-10-08 19:28:51 +02:00
rddim
bab8be3f29 [xml] Update Bulgarian localization
Close 14140
2023-10-08 19:23:45 +02:00
Marcellomco
14ac877c2c [XML] Update brazilian_portuguese.xml
Added translation for "Fix data loss issue due to no room on disk for saving"

Close #14141
2023-10-08 19:18:42 +02:00
kubalav
6e61660cd7 [xml] Update Slovak translation
Close #14143
2023-10-08 19:15:31 +02:00
yasmise
d94e3e9d54 [xml] Update japanese.xml
Add translation texts for these commits:
* Fix data loss issue due to no room on disk for saving (e30ee85)
* Fix Wrong Categories in Shortcuts Mapper (39001d7)
* Make auto-checking of Find InSelection configurable (OFF or resizable) (591b00e)
* Dark mode tweaks and unicode size support for InSelection configurable size (b3179b5)

Close #14147
2023-10-08 19:08:11 +02:00
Tmp341
088f46eba6 [xml] Update Turkish localization
* According to cf8ddc18 and e30ee852 commits.
* Fixed wording in line 257.

Close #14154
2023-10-08 19:06:46 +02:00
Christophe Mateos
a8dd49d14d [xml] Update french.xml
Close #14163
2023-10-08 18:57:53 +02:00
Matteo Concato
424f4a1585 Update italian.xml v.8.5.8
Close #14180
2023-10-08 18:55:12 +02:00
Alan Kilborn
b3179b5ccb Dark mode tweaks and unicode size support for InSelection configurable size
Followup PR to #14175

Addresses

* https://github.com/notepad-plus-plus/notepad-plus-plus/pull/14175#issuecomment-1751439227

and

* 591b00e538 (commitcomment-129354863)

Close #14217
2023-10-07 19:10:54 +02:00
Alan Kilborn
591b00e538 Make auto-checking of Find InSelection configurable (OFF or resizable)
Set value to 0 to disable auto-checking "In Selection" checkbox in Find dialog.
Set any value to define the length of selected characters to auto-check "In Selection" checkbox in Find dialog.
The default and maximum value is 1024.

Fix #14108, fix #13677, fix #12639, close #14175
2023-10-06 00:32:28 +02:00
PeterCJ
d33e297847 Update Stylers for Perl
- update `stylers.model.xml` to have the 41 styles supported by LexPerl
- update `themes\DarkModeDefault.xml` to have the 41 styles supported by LexPerl

Fix  #14192, close #14193
2023-10-05 20:08:12 +02:00
Cerno_b
3fa51efce7 Store and restore just typed search text on arrow key press
Fix #14174, close #14204
2023-10-04 01:48:55 +02:00
Don Ho
0d8a8dff7d Revert "Add recover search string feature after accessing search history"
This reverts commit 1f3b0e6e4476a2783e78047dd9d6eac1d1117f8a due to the bug.
2023-09-30 01:17:24 +02:00
PeterCJ
caf6303896 Update the Perl keywords for Perl v5.38
- update `autoCompletion\perl.xml` to auto-complete on the new keywords/built-in-functions/pragmas
- update `langs.model.xml` to syntax-highlight on the new keywords/built-in-functions/pragmas

Close #14191
2023-09-29 01:28:37 +02:00
Cerno_b
1f3b0e6e44 Add recover search string feature after accessing search history
Fix #14174, close #14187
2023-09-28 16:13:42 +02:00
Don Ho
7bbe4d1ff8 Fix "Single Line Uncomment" uncomments an extra line issue
Fix from: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12829#issuecomment-1737330242

Fix #12829
2023-09-27 15:42:25 +02:00
Alan Kilborn
c4c1089231 Allow Window Windows command to be assigned a shortcut
Fix #14179, close #14183
2023-09-26 20:36:54 +02:00
Christian Grasser
cfcf827178 Update Scintilla to v5.3.7 & Lexilla to v5.2.7
Update scintilla with https://www.scintilla.org/scintilla537.zip

Release 5.3.7

    Released 22 September 2023.
    For GTK on macOS, fix popup window behaviour by setting type hints. Bug #2401.
    For GTK, fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn for a zero-width character.
    For Qt, allow parent window to handle context menu events by setting as ignored. Bug #2395.
    For Qt, fix potential crash when using IME with large amount of text selected.
    For Windows, fix building with non-English environment. Bug #2400.

and lexilla https://www.scintilla.org/lexilla527.zip

Release 5.2.7

    Released 22 September 2023.
    Fix building on Windows with non-English environment. Pull request #200.
    Bash: fix line continuation for comments and when multiple backslashes at line end. Issue #195.
    Bash: treat += as operator and, inside arithmetic expressions, treat ++ and -- as operators. Issue #197.
    Bash: improve backslash handling inside backquoted command substitution and fix $ at end of backtick expression. Issue #194.
    Bash: treat words that are similar to numbers but invalid wholly as identifiers. Issue #199.
    Bash: consistently handle '-' options at line start and after '|' as identifiers. Issue #202.
    Bash: handle '-' options differently in [ single ] and [[ double ]] bracket constructs. Issue #203.
    F#: improve speed of folding long lines. Issue #198.
    HTML: fix invalid entity at line end and terminate invalid entity before invalid character. Issue #192.

Fix #13991, fix #14062, close #14173
2023-09-26 17:52:52 +02:00
Don Ho
972329fb0c Fix unconsist "In select" behaviour in Find dialog
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14108#issuecomment-1719653099
2023-09-26 01:35:49 +02:00
Don Ho
cb3c632444 Fix some typos
Fix #14182
2023-09-25 20:45:41 +02:00
xomx
939b00a61e Removing unused _isRestartedByOS member variable
This amends the previous #14074 PR.

Close #14171
2023-09-22 19:25:54 +02:00
xomx
87efdf5084 Add Win10+ OS Restart-app feature
It will allow for the Notepad++ to be a "restartable app", like some other SW can do today (eg Google Chrome, Mozilla Firefox or all the Microsoft UWP apps).

This is to create a seamless experience wherein, if you have to reboot your PC, you can now pick back up from where you left off and resume being productive.

The OS app-restart feature needs at least Windows 10 (20H1) and the user has to switch on the "Restart apps" in the system Settings (subsection Accounts > Sign-in options).

Implemented as per previous discussion: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12541#issuecomment-1332662024

To disable this feature, add "noRestartAutomatically.xml" into "%APPDATA%\Notepad++\" or Notepad++ installation directory.

Fix #9722, fix #11721, fix #11934, close #14074
2023-09-21 19:56:53 +02:00
Don Ho
39001d7a02 Fix Wrong Categories in Shortcuts Mapper
and make localization more accurate.

Fix #13285, close #14156
2023-09-20 23:07:08 +02:00
Dmitry
cb1f2d1479 Check NULL pointer while opening filees to prevent Notepad++ from crash
Fix #14131, close #14094
2023-09-17 20:34:25 +02:00
Alan Kilborn
670e2f098d Fix "Next Bookmark" command not reset current-column issue
Reset current column after moving to next bookmark.

Fix #14137, close #14148
2023-09-16 14:08:25 +02:00
Don HO
c2ebb94759
Improve CONTRIBUTING.md
Fix #14149
2023-09-16 13:44:43 +02:00
Don Ho
113003a79f Fix security issue CVE-2022-31901
Ref: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31901
&
https://github.com/CDACesec/CVE-2022-31901

Fix #13520
2023-09-15 03:13:22 +02:00
Orden4
dca3f682fd Improve document list display performance
Reduce number of document list redraws on reload. Force redraw on activating item.

Fix #13479, fix #12632, close #14142
2023-09-14 20:27:03 +02:00
Don Ho
b068aa9033 Fix saving files loosing Alternate Data Stream issue
Fix #1498, fix #8451, fix #8013, close #14039
2023-09-14 13:53:51 +02:00
Don Ho
01ff1eb881 Fix Cleaer Read-Only Flag command not working immediately regression
Fix #14138
2023-09-12 17:44:19 +02:00
Don Ho
e30ee852d6 Fix data loss issue due to no room on disk for saving
Fix #5664, fix #14089, close #14134
2023-09-12 14:50:52 +02:00
Don Ho
a511a575b7 Update slovenian.xml 2023-09-10 15:53:57 +02:00
Don Ho
5008b8a0cc Notepad++ v8.5.7 release (Vulnerability fixes) 2023-09-08 02:04:24 +02:00
Don Ho
02cc028cd8 Fix eventual memory leak in Utf8_16.cpp
Fix #14099, close #14104
2023-09-06 18:58:15 +02:00
xomx
6eb74a9653 [xml] Update czech.xml to v8.5.7
Close #14102
2023-09-06 18:21:36 +02:00
Karlo-F
f1adb46c59 [xml] Update croatian.xml to v8.5.7
Close #14106
2023-09-06 18:17:56 +02:00
SinghRajenM
4476432d0b Security enhancement: Sign uninstall.exe
Fix #4120, fix #5806, fix #4443, close #14087
2023-09-06 18:06:52 +02:00
Don Ho
06a2c6f377 Make variable name more explicit 2023-09-05 16:50:15 +02:00
Orden4
8afa4c6ea8 Fix dragging tab performance issue while Document List is displayed
Fix #13479, fix #12632, close #14080
2023-09-05 16:40:03 +02:00
Hugo Carvalho
14d8aaaa1f [xml] Update portuguese.xml
For commit: 391f4281efac81649a02aa8cdd4e765fa76d1237

Close #14014
2023-09-05 14:33:46 +02:00
Christophe Mateos
4276428e01 [xml] Update french.xml
Close #14048
2023-09-05 14:29:43 +02:00
Andrei Miloiu
e64de6cd5f Update romanian.xml
Close #14050
2023-09-05 14:26:42 +02:00
Marcellomco
ceb9306451 [XML] Update brazilian_portuguese.xml
Added translation for "Add suppress 2GB file warning option for x64".

Close #14076
2023-09-05 14:23:55 +02:00
rddim
88ba29cff0 [xml] Update Bulgarian localization
Close #14079
2023-09-05 14:21:35 +02:00
kubalav
df94bfae54 [xml] Update Slovak translation
Close #14081
2023-09-05 14:17:49 +02:00
yasmise
3c802e0767 [xml] Update japanese.xml
Add translation text for this commit:
* Add supperss 2GB file warning option for x64 (cf8ddc1)

Close #14083
2023-09-05 14:12:11 +02:00
SinghRajenM
b62b77b3ea Correct some typos 2023-09-03 18:48:55 +02:00
Don Ho
0e3c676668 Remove unnecessary comment 2023-09-02 02:16:24 +02:00
Don Ho
f8447b670e Make comment counting right 2023-09-02 02:14:07 +02:00
Don HO
ea063246f1
Merge pull request from GHSA-jg7c-f532-25h8
GHSL-2023-102: apply 2694ba6363
2023-09-02 02:03:07 +02:00
Don HO
8c561ba74b
Merge pull request from GHSA-67mm-g35x-jv47
GHSL-2023-103: apply 94b10b9b29
2023-09-01 21:43:28 +02:00
Don HO
4b66d80b2f
Merge pull request from GHSA-cfcv-789h-3pg3
GHSL-2023-112: check if the current pointer and the next one are less than the end
2023-09-01 17:50:08 +02:00
Jaroslav Lobačevski
6567a89094
Add comment 2023-09-01 17:28:58 +02:00
Don Ho
fb1985defc Code enhancement: fix a logic error - va_end missing
Fix #14071
2023-09-01 01:32:07 +02:00
Don HO
5402622abc
Merge pull request from GHSA-v2h9-jfmf-5cgq
GHSL-2023-092: Check if i is not bigger than datalen
2023-08-31 14:30:53 +02:00
robionekenobi
d3c84b7d23 Fix VS 2022 17.7 compiling error message
With VS 2022 17.7 this error appears
Z:\DevStudio\Work\notepad-plus-plus\PowerEditor\src\WinControls\Preference\preferenceDlg.cpp(3374): error C26819: Unannotated fallthrough between switch labels (es.78). [Z:\DevStudio\Work\notepad-plus-plus\PowerEditor\visual.net\notepadPlus.vcxproj]

Close #14005
2023-08-31 01:21:39 +02:00
(x*ln(7))⁻¹
cf8ddc18c9 Add supperss 2GB file warning option for x64
Fix #14055, close #14069
2023-08-31 01:16:15 +02:00
Don HO
f5c60d26cd
Update CONTRIBUTING.md 2023-08-28 16:01:13 +02:00
Don Ho
00481aadd5 Change the slogan in installer
Fix #14052
2023-08-27 02:55:27 +02:00
molsonkiko
f4297f1a83 Fix cloned document disassociated issue after Npp being relaunched
Fix #10266, close #14003
2023-08-24 23:55:40 +02:00
Don Ho
7340696734 Add a quote 2023-08-24 15:59:06 +02:00
Mr-Update
a714b9464f Update langs.model.xml
Duplicate keyword "add_custom_command" is removed.

Close #14026
2023-08-22 14:17:45 +02:00
Don Ho
3aa9e9280f Fix session file saving problem if it's read-only
Refactoring and fix a typo.

Fix #14024, fix #13894, fix #13859, close #14035
2023-08-22 13:57:07 +02:00
Don Ho
fc736d8afb Fix activating wrong file(s) issue after loading session file
... if some files are already opened in Notepad++.

Fix #14006, close #14028
2023-08-20 15:52:53 +02:00
Don Ho
ea40755e14 Fix product version value displayed in file's properties
Fix #14010, fix #11886, fix #11431, close #14025
2023-08-19 00:59:32 +02:00
Don Ho
e39deab778 Notepad++ v8.5.6 release 2023-08-15 16:13:59 +02:00
~GOLEM~
119a256907 [xml] Update russian.xml
Fix sha256 line.

Close #14001
2023-08-15 15:06:36 +02:00
Andrei Miloiu
0ca2ade6b2 [xml] Update romanian.xml
Close #13999
2023-08-14 18:49:02 +02:00
Tmp341
d05b2654f9 [xml] Update Turkish localization
* According to 61503a2, 5b52386, 4ffd897, d7aee68, d9b9868, e7f7c31, c143a4a and 391f428 commits.

Close #13992
2023-08-14 18:46:25 +02:00
rddim
8d6df5a465 [xml]Update Bulgarian localization
Close #13980
2023-08-14 18:43:42 +02:00
Patriccollu
d1ceb6291d [xml] Update Corsican translation for Notepad++ 8.5.6
Close #13978
2023-08-14 18:41:35 +02:00
Don Ho
c45d7aca75 Fix plugin crash regression due to CET enhancement
Regression is introduced by: "Enable optimization flags & CET" (eef91b0)

Ref:https://community.notepad-plus-plus.org/post/88577
2023-08-14 16:37:15 +02:00
Don Ho
3385eb60c3 [xml] Update slovenian.xml 2023-08-13 18:07:36 +02:00
Don Ho
a81d39fa6e Minor code improvement 2023-08-13 18:00:28 +02:00
Don Ho
460b2b60f6 Fix "Clear Change History" issue: cloned document markers are not cleared
Fix #13877
2023-08-13 16:12:44 +02:00
Alan Kilborn
de25873cb3 Add new API: indicator allocation for plugins
Fix #5744, close #13985
2023-08-12 19:44:56 +02:00
Don Ho
4fb8845183 Fix typos
Fix #13989
2023-08-12 02:38:14 +02:00
cynthplusplus
c49692cb47 Fix hide lines merging to avoid merging across a visible line
Fix #12844, close #13681
2023-08-11 22:31:03 +02:00
Don Ho
f6e1b2cab6 Notepad++ 8.5.5 release 2023-08-09 16:06:33 +02:00
schnurlos
d7d59401e5 [xml] Fix Update german.xml
Following https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13951

Close #13965
2023-08-07 18:35:30 +02:00
Karlo-F
18b19f30fc [xml] Update croatian.xml to v8.5.5
Close #13971
2023-08-07 18:33:01 +02:00
Marcellomco
54a7cf4f95 [XML] Update brazilian_portuguese.xml
Added translation for "Fix leading & tailling spaces being allowed after renaming tab issue"

Close #13974
2023-08-07 18:30:20 +02:00
~GOLEM~
7979c36671 [xml] Update russian.xml
Close #13975
2023-08-07 18:26:53 +02:00
yasmise
fa0cc8a6e5 [xml] Update japanese.xml
Add a translation text for this commit:
* Fix leading & tailling spaces being allowed after renaming tab issue (391f428)

Close #13976
2023-08-07 18:24:48 +02:00
kubalav
edc599e1cc [xml] Update Slovak translation
Close #13977
2023-08-07 18:22:43 +02:00
cynthplusplus
9b7dff6fa9 Fix proper case conversion logic for single and smart single quotes
Changed all instances of TITLECASE to PROPERCASE for consistency.

Close #13584
2023-08-07 15:48:57 +02:00
Don Ho
391f4281ef Fix leading & tailling spaces being allowed after renaming tab issue
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13344#issuecomment-1665687932

Fix #13967, close #13967
2023-08-05 18:59:30 +02:00
Don Ho
fdae99e6c0 Fix new document number jumps from "New 1" to "New 3" issue
Solution from:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13931#issuecomment-1653523758

Fix #13194, fix #8677, close #13960
2023-08-05 12:49:49 +02:00
Don Ho
dea388bf59 Simplify the logic in buffer creating 2023-08-02 21:11:55 +02:00
ArkadiuszMichalski
b09432cfa8 [xml] Update polish.xml to 8.5.5
Close #13955
2023-08-02 16:53:35 +02:00
Don Ho
891e8f936e Revert "Fix untitled document number jumping or repeated problem"
This reverts commit 892ab0850fdfefe4f335e0977745e06b7a6ac4c8 due to the regression #13636

Fix #13636
2023-08-02 15:47:35 +02:00
schnurlos
7234e1478c [xml] Update german.xml
Close #13795
2023-08-01 21:46:27 +02:00
kubalav
feb65c42b9 [xml] Update Slovak translation
Close #13826
2023-08-01 21:43:50 +02:00
Marcellomco
6bcc7a2a00 [XML] Update brazilian_portuguese.xml
Added translation for "Fix menu Tools contains 2 SHA-256 item while using localization"

Close #13804
2023-08-01 21:41:52 +02:00
Hugo Carvalho
4b8bcb0c14 [xml] Update portuguese.xml
Close #13810
2023-08-01 21:39:31 +02:00
yasmise
8b1a49aaae [xml] Update japanese.xml
Add translation texts for these commits:
* Fix menu Tools contains 2 SHA-256 item while using localization (5b52386)
* Add SHA-512 hash features (4ffd897)
* [xml] Add missing entries in english.xml for SHA-1/SHA-512 (d7aee68)
* Add change history navgation commands (d9b9868)
* Fix inaccurate find/replace in files result while using invalid regexp (e7f7c31)
* Remove "Temporary doc site:" from localization files (c143a4a)

Close #13814
2023-08-01 21:36:27 +02:00
artpoli
aefd71ca2e [xml] Update Ukrainian translation
Close #13947
2023-08-01 21:33:32 +02:00
Sapziller
dd163e797a [xml] update korean 8.5.5
Close #13924
2023-08-01 21:31:50 +02:00
xomx
0f48a82d6c [xml] Update czech.xml to v8.5.5
Close #13890
2023-08-01 21:30:16 +02:00
Andrei Miloiu
61b23dfd1e [xml] Update Romanian localization
Close #13848
2023-08-01 21:29:08 +02:00
A. Regnander
796ae18f0c Update swedish.xml
Added new strings and made changes to match english.xml

Close #13840
2023-08-01 21:26:44 +02:00
Juan
e894c2baca [xml] Update galician.xml
Close #13830
2023-08-01 21:25:18 +02:00
~GOLEM~
119d17f928 [xml] Update russian.xml v8.5.5
Close #13823
2023-08-01 21:23:24 +02:00
Juan
c1605852be [xml] Update spanish.xml
Close #13828
2023-08-01 21:21:07 +02:00
Patriccollu
e827e51ed1 [xml] Update Corsican translation for Notepad++ 8.5.5
Close #13820
2023-08-01 21:18:32 +02:00
spkprs
1f3cd8752e Update greek.xml
Close #13809
2023-08-01 21:16:42 +02:00
yaoyao5128
694c4101c3 Update chineseSimplified.xml
add Item id "1726-1728".

Close #13808
2023-08-01 21:13:06 +02:00
rddim
459f310edd [xml] Update Bulgarian localization
Close #13801
2023-08-01 21:11:30 +02:00
Christian Grasser
cc1a3c826b Update: Scintilla 5.3.6 and Lexilla 5.2.6
update to Scinitlla Release 5.3.6 (https://www.scintilla.org/scintilla536.zip)

    Released 26 July 2023.
    Redraw calltip after showing as didn't update when size of new text exactly same as previous. Feature #1486.
    On Win32 fix reverse arrow cursor when scaled. Bug #2382.
    On Win32 hide cursor when typing if that system preference has been chosen. Bug #2333.
    On Win32 and Qt, stop aligning IME candidate window to target. It is now always aligned to start of composition string. This undoes part of feature #1300. Feature #1488, Bug #2391, Feature #1300.
    On Qt, for IMEs, update micro focus when selection changes. This may move the location of IME popups to align with the caret.
    On Qt, implement replacement for IMEs which may help with actions like reconversion. This is similar to delete-surrounding on GTK.

and Lexilla Release 5.2.6 (https://www.scintilla.org/lexilla526.zip)

    Released 26 July 2023.
    Include empty word list names in value returned by DescribeWordListSets and SCI_DESCRIBEKEYWORDSETS. Issue #175, Pull request #176.
    Bash: style here-doc end delimiters as SCE_SH_HERE_DELIM instead of SCE_SH_HERE_Q. Issue #177.
    Bash: allow '$' as last character in string. Issue #180, Pull request #181.
    Bash: fix state after expansion. Highlight all numeric and file test operators. Don't highlight dash in long option as operator. Issue #182, Pull request #183.
    Bash: strict checking of special parameters ($*, $@, $$, ...) with property lexer.bash.special.parameter to specify valid parameters. Issue #184, Pull request #186.
    Bash: recognize keyword before redirection operators (< and >). Issue #188, Pull request #189.
    Errorlist: recognize Bash diagnostic messages.
    HTML: allow ASP block to terminate inside line comment. Issue #185.
    HTML: fix folding with JSP/ASP.NET <%-- comment. Issue #191.
    HTML: fix incremental styling of multi-line ASP.NET directive. Issue #191.
    Matlab: improve arguments blocks. Add support for multiple arguments blocks. Prevent "arguments" from being keyword in function declaration line. Fix semicolon handling. Pull request #179.
    Visual Prolog: add support for embedded syntax with SCE_VISUALPROLOG_EMBEDDED and SCE_VISUALPROLOG_PLACEHOLDER.
    Styling of string literals changed with no differentiation between literals with quotes and those that are prefixed with "@". Quote characters are in a separate style (SCE_VISUALPROLOG_STRING_QUOTE) to contents (SCE_VISUALPROLOG_STRING).
    SCE_VISUALPROLOG_CHARACTER, SCE_VISUALPROLOG_CHARACTER_TOO_MANY, SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR, SCE_VISUALPROLOG_STRING_EOL_OPEN, and SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL were removed (replaced with SCE_VISUALPROLOG_UNUSED[1-5]). Pull request #178.

Fix #13901, fix #13911, fix #13943, close #13940
2023-08-01 19:44:35 +02:00
Patriccollu
50a15f2e59 Remove extra char on top of french.xml
Close #13949
2023-08-01 19:15:11 +02:00
Don Ho
c143a4a6cc Remove "Temporary doc site:" from localization files
The removal is due to 9011253
(9011253a0a (commitcomment-121208415))
2023-07-31 02:24:11 +02:00
Don Ho
e7f7c319f5 Fix inaccurate find/replace in files result while using invalid regexp
Fix #13164, close #13945
2023-07-30 13:31:15 +02:00
Don Ho
c4733db0af Use better variable name & use standard type name
1. isInFile to isBetweenFileNameQuotes
2. generic_string to std::wstring
2023-07-27 14:26:01 +02:00
jofon
3ea789caea Fix error message of openning file with '=' as end of file name
Ignore '=' at the end of a file name.

Fix #13344, close #13917
2023-07-27 14:02:51 +02:00
Don Ho
4df27c8e8b Fix Project panel inaccurate save dialog initilized path
Fix #13086, close #13936
2023-07-27 13:59:03 +02:00
byronigoe
3bdefd88d0 Fix handling of URLs in JSON
Fix #13522, close 13907
2023-07-23 10:06:58 +02:00
Don Ho
2804ac79f0 Fix "Last Used Directory" may not be saved issue
Also change open/save "Last Used Directory" behaviour - on last changed directory changed in open/save dialog dialog instead on pressing OK.

Fix  #13914, close #13918
2023-07-23 10:05:14 +02:00
Don Ho
c8020647dd Fix regression: the small size of Notepad++ on its very first launch
Fix regression is due to a367fc1
2023-07-22 11:39:47 +02:00
Don Ho
a367fc1b79 Code enhancement: use std::wstring instead of generic_string 2023-07-21 12:11:08 +02:00
molsonkiko
ff2179aeca Remember the directory of "Remember last used directory" through sessions
Fix #11326, fix #10901, fix #4961, fix #4119, close #13887
2023-07-21 11:14:01 +02:00
ozone10
eef91b0214 Enable optimization flags & CET
Fix #13855, close #13869
2023-07-17 11:09:17 +02:00
xomx
9122dc64fa Fix rejection of the standard filenames with dot at the end (regression)
Currently we cannot accept e.g. the "\\?\C:\file.", but when someone tries to open the standard variant 'C:\file.', we should accept that, as this is the way how to work with filenames without an extension.

Fixes #12849, close #13888
2023-07-16 01:54:20 +02:00
Don Ho
38e97b179c Align URL with "Home:" label in About dialog
Fix #13898
2023-07-15 17:21:43 +02:00
Don Ho
bf47586259 Add more info on save session error message part 2 2023-07-14 12:56:36 +02:00
Don Ho
7e353903b8 Add more info on save session error message
For the future debugging using.

Related: #13859

Close #13893
2023-07-13 10:42:12 +02:00
xomx
50f942c880 Fix MD5 dialog title not showing regression
One had to click on the Tools -> MD5 -> Generate from files... twice for showing up the dialog (only for the first time, next time it was ok).
Caused by the previous 'Add SHA-512 hash features' commit.

Close #13891
2023-07-13 10:38:40 +02:00
Don Ho
ebdc910dcd Fix normal.xml for Normal text auto-completion using not working issue
Fix #12325, close #13875
2023-07-09 13:09:12 +02:00
Don Ho
d9b98681f4 Add change history navgation commands
Add Go to next/prev change & clear change history commands.

Fix #12248, close #13861
2023-07-07 21:44:04 +02:00
Don Ho
9011253a0a Remove "Temporary doc site:" label
Fix #13737
2023-07-07 21:13:47 +02:00
80rokwoc4j
6330a688b1 Fix Korean IME append extension issue
Currently, there is a bug in notepad++'s add extension feature only for Korean input after it was changed to hooking-based in the commit below.
b5a5baf#diff-eeb5624a35a43795da4eb970149a9ce7d22858b678a242affd2357520ea3e9f2R607

Bug

    Attempting to save via Enter appends the last character to the extension.
    Candidate mode is similar, with more varied issues depending on IME.

Cause

    the hooking function is executed before the Hangul composition is completed and the last character is added after the extension.
    Same for Candidate mode.

Workaround

It is almost impossible to fix issue 2 while maintaining the current Enter hooking
Exiting Candidate Mode can be done by pressing Enter, ESC, number key, or clicking on a candidate character, but there is too much code to cover all of these cases.
In addition, the Windows input framework is fragmented into IMM and TSF, and various IMEs have different implementations, so it is almost impossible to determine the state of Candidate or Hangul composition through IME hooking.
I have seen differences in the events fired by different Windows versions and different IME programs for the same IME behavior.
This PR solves problem 1 and partially solves problem 2 by not saving with Enter when in Hangul mode.

Fix #11582, fix #12225, fix #12366, close #13788
2023-07-07 20:01:18 +02:00
ozone10
a647991cd7 Fix some GCC and MSC warnings
-  optimize dark mode
-  add initializers

Fix #13867, close #13868
2023-07-07 19:51:39 +02:00
Christian Grasser
d6bdc5d3f8 Fix cmake build
- update CMakeLists.txt to contain latest changes sha1 and sha512.cpp
- fixed uppercase issue on cross platform build with mingw on linux

Close #13865
2023-07-06 13:43:11 +02:00
BuzzTheGamer23
0786dc0adc Fix compiling on Scoop mingw-winlibs g++ 13
Fix #13821, close #13822
2023-07-05 13:53:32 +02:00
Don Ho
83d203561d Fix Change History wrong display after "Reload from Disk" command
The code for fixing is from Change Lines plugin:
https://github.com/vinsworldcom/nppChangedLines/blob/main/PluginDefinition.cpp

Fix #12319, fix #12261, fix #13735, close #13858
2023-07-04 03:12:01 +02:00
JarLob
d7ea26d931 GHSL-2023-092: Check if i is not bigger than datalen 2023-07-02 09:56:09 +00:00
Don Ho
9e24ec55db Improve lines sorting memory consumption
Use reference instead of copy for the sorting result.
Also improve lines sorting performance slightly: Sorting a 200 MB text file takes 13.71 seconds instead of 14.63 seconds.

Fix #10435, close #13852
2023-07-02 03:32:55 +02:00
jarlob
5687c4f43c GHSL-2023-112: check if the current pointer and the next one are less than the end 2023-07-01 20:45:03 +00:00
JarLob
ddf4f746d7 GHSL-2023-102: apply 2694ba6363 2023-07-01 20:02:25 +00:00
JarLob
97f9a4d963 GHSL-2023-103: apply 94b10b9b29 2023-07-01 19:55:49 +00:00
Don Ho
02dd1d36fc Add blank document only when the sessin is remembered
Fix #13796
2023-07-01 03:26:55 +02:00
Don Ho
d6b5f53a0e Fix Clipboard History panel shows corrupted data issue
Fix #13817, fix #13844, close #13833
2023-06-30 16:42:43 +02:00
Don Ho
1943ce87b5 [xml] Update slovenian.xml 2023-06-23 01:40:34 +02:00
Don Ho
6131195da7 Fix "Generate from selection into clipboard" crash regression
Fix #13818
2023-06-21 19:35:23 +02:00
Don Ho
b14810d087 Update localization files 2023-06-21 18:23:49 +02:00
yasmise
d7aee6828d [xml] Add missing entries in english.xml for SHA-1/SHA-512
Fix #13815, close #13816
2023-06-21 18:20:33 +02:00
Don Ho
4ffd897ccf Add SHA-512 hash features
Fix also SHA-1 hash result wrong length bug while "Treat each line as a separate string" enabled.

Fix #13805, fix #13812, fix #13811, close #13806
2023-06-20 23:19:19 +02:00
Don Ho
32ce6b5b4c Code Enhancement: make notepadPlus.vcxproj less messed
Fix #13798
2023-06-19 19:29:13 +02:00
Don Ho
5b5238610e Fix menu Tools contains 2 SHA-256 item while using localization
Fix #13797
2023-06-19 18:29:13 +02:00
Don Ho
85ba11bf7e Notepad++ 8.5.4 release 2023-06-18 14:21:27 +02:00
Don HO
19c6895f83 Fix gcc compiling failure
Close #13793
2023-06-17 20:15:45 +02:00
Don Ho
b883759c83 Add SHA-1 hash feature
Fix #13791, close #13792
2023-06-17 13:25:07 +02:00
Don Ho
51bddf57ad Use multiple-files Save dialog in Document list
Fix #13768, fix #13178, close #13776
2023-06-17 13:24:13 +02:00
xomx
bdd13c0839 [xml] Update czech.xml to v8.5.4
Close #13772
2023-06-17 13:24:13 +02:00
Karlo-F
fcb9f56df8 [xml] Update croatian.xml to v8.5.4
Close #13773
2023-06-17 13:24:13 +02:00
ozone10
af1ab5d294 Support up down control generic dark mode for plugins
Fix #13766, close #13767
2023-06-17 13:24:13 +02:00
Don Ho
d2fdfd7b73 Fix defective detection for file read-only attribute removal via Explorer
The regression has been made by 5e2f5d79aa8325a3db9c3b811d80e9b7ce42b51c

Fix #13742
2023-06-17 13:24:13 +02:00
Don Ho
7077e304aa Add CSHA1 2023-06-17 03:46:44 +02:00
Don Ho
3b823f358e Add SHA1 hash generator 2023-06-13 19:35:06 +02:00
xomx
b0e849fe65 Fix ignored writeStr return value in TiXmlDocument::SaveFile
Previously the TiXmlDocument::SaveFile could return true even when the underlying writeStr func failed.

Close #13774
2023-06-12 16:06:34 +02:00
ozone10
28594daef3 Progress window: Prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
Fix #13764
2023-06-11 14:05:34 +02:00
ozone10
da8e48f67a Fix EOL symbol color/appearence being reset while changing encoding issue
Fix #13728, close #13763
2023-06-11 13:41:23 +02:00
Robert Di Pardo
fadc083051 Enable code folding in Assembly source files
Enables the folding capabilities of Lexilla's Assembly lexer by:

 - adding the currently [unused keyword groups], `Directives4Foldstart` and `Directives4Foldend`;

b5e2e9d737/lexilla/lexers/LexAsm.cxx (L101-L109)

 - adding some fold-trigger keywords to the new `Directives4Foldstart` and `Directives4Foldend` groups, and *duplicating* them in the existing `Directives` group, following [these instructions].

 - activating a *selection* of the lexer's [optional folding properties]. Since `fold.asm.comment.explicit` is not likely to be popular, the default delimiters `;{` and `;}` are permanent, and `fold.asm.explicit.anywhere` is *not* turned on. Users who want different options can always use [Python Script] to set them dynamically.

There are plenty of *more* candidate keywords than what I've added, but I'm not very familiar with [Microsoft's macro assembler].

Fix #13758, fix #9888, close #13762
2023-06-11 12:12:14 +02:00
kubalav
2aa6b0cff5 [xml] Update Slovak translation
Close #13671
2023-06-11 01:49:12 +02:00
schnurlos
15d5c1e9c6 [xml] Update german.xml
Close #13672
2023-06-11 01:46:44 +02:00
Marcellomco
9bbcfd1354 [xml] Update brazilian_portuguese.xml
Mirror changes from "GUI Enhancement: Column Editor" to Brazilian Portuguese language.

Close #13679
2023-06-11 01:30:14 +02:00
Patriccollu
ec23e4216f [xml] Update Corsican translation for Notepad++ 8.5.4
Close #13680
2023-06-11 01:28:07 +02:00
Blackspirits
8e0b326b77 [xml] Update portuguese.xml
Close #13689
2023-06-11 01:26:15 +02:00
yasmise
063a31a87c [xml] Update japanese.xml
Update translations for these commits:
* GUI Enhancement: User Define dlgs (052626c)
* Make all the localization files pretty printed (3c15ff5)
* GUI Enhancement: Plugins Admin dialog (4e0f504)
* GUI enhancement: Find in Finder dialog (af8b339)
* GUI Enhancement: General & Editing sections in Preferences dialog (a1d7db8)
* GUI Enhancement: About, Debug, Save dialogs (1806b89)
* Add "open new blank document in addition on startup" ability (61503a2)

Close #13697
2023-06-11 01:22:32 +02:00
rddim
5694b3c407 [xml] Update Bulgarian localization
Close #13707
2023-06-11 01:20:57 +02:00
Matteo Concato
1ae5745118 [xml] Update italian.xml 8.5.4
Close #13710
2023-06-11 01:19:12 +02:00
Tmp341
38d19095be [xml] Update Turkish localization
Close #13727
2023-06-11 01:17:54 +02:00
Sapziller
f1ed6e6f4f [xml] update korean translate (8.5.3)
Close #13732
2023-06-11 01:15:21 +02:00
~GOLEM~
647dd703a5 [xml] Update russian.xml v8.5.4
Close #13751
2023-06-11 01:09:02 +02:00
artpoli
b335454733 [xml] Update Ukrainian translation
Close #13759
2023-06-11 01:02:47 +02:00
Don Ho
e61b20a7fe Small refactoring 2023-06-11 00:59:15 +02:00
Don Ho
b5e2e9d737 Fix macro recording regression on Unicode character
Fix #13757
2023-06-10 17:47:34 +02:00
molsonkiko
96ff66b225 Fix infinite loop in running macro to EOF
To test fix, try making file
```
f
f
```
and recording macro of find/replace form searching for f, then running until EOF.

This does not break any existing behavior, including:

   - macros where the cursor moves towards EOF but line num doesn't change (those already stopped after one iteration)
   - macros where line(s) are deleted with every iteration (even if line number doesn't change, they run until file empty)
   - macros where the line number increases with each iteration
   - macros where the cursor advances up or down with each iteration but would eventually stop anyway (those end at the correct time)

Fix #13342, close #13587
2023-06-08 22:20:29 +02:00
Don Ho
61503a2dcd Add "open new blank document in addition on startup" ability
To enable/disable this feature, go to New Document section of Preferences dialog, and check/uncheck "Always open a new document in addition at startup" checkbox.

Fix #11134, fix #9535, fix #5527, close #13738
2023-06-08 19:16:56 +02:00
Don Ho
ccf80a0699 Add session.xml.fail2Load for analyzing
When session.xml is written while Notepad++ exit, it'll be load for checking if it's an valid xml file.
If not, then it will be replaced by the old session file (if any).

This commit renames session.xml to session.xml.fail2Load so in case of the situation user can provide session.xml.fail2Load to devs for analyzing.

Ref #13694

Close #13741
2023-06-06 13:40:17 +02:00
Don Ho
dba15cfaf3 Fix document language not remembered through sessions issue
Fix document language not remembered through sessions due to languange being hidden from languages menu.

Fix #13743, close #13744
2023-06-06 02:07:19 +02:00
Christian Grasser
b39ca37c3a Update: Scintilla 5.3.5 Lexilla 5.2.5
update to Scinitlla Release 5.3.5 (https://www.scintilla.org/scintilla535.zip)

    Released 31 May 2023.
    On Win32, implement IME context sensitivity with IMR_DOCUMENTFEED. Feature #1310.
    On Win32 remove dependence on MSIMG32.DLL by replacing AlphaBlend by GdiAlphaBlend. Bug #1923.
    On Qt, stop movement of IME candidate box.
    On Qt, report correct caret position within paragraph for IME retrieve surrounding text.
    On Qt for Cocoa, fix crash in entry of multi-character strings with IME.

and Lexilla Release 5.2.5 (https://www.scintilla.org/lexilla525.zip)

    Released 31 May 2023.
    Add CharacterSetArray constructor without setBase initial argument for common case where this is setNone and the initialSet argument completely defines the characters. This shortens and clarifies use of CharacterSetArray.
    Bash: implement highlighting inside quoted elements and here-docs. Controlled with properties lexer.bash.styling.inside.string, lexer.bash.styling.inside.backticks, lexer.bash.styling.inside.parameter, and lexer.bash.styling.inside.heredoc. Issue #154, Issue #153, Feature #1033.
    Bash: add property lexer.bash.command.substitution to choose how to style command substitutions. 0 → SCE_SH_BACKTICKS; 1 → surrounding "$(" and ")" as operators and contents styled as bash code; 2 → use distinct styles (base style + 64) for contents. Choice (2) is a provisional feature and details may change before it is finalized. Issue #153.
    Bash: fix nesting of parameters (SCE_SH_PARAM) like ${var/$sub/"${rep}}"}. Issue #154.
    Bash: fix single character special parameters like $? by limiting style. Issue #154.
    Bash: treat "$$" as special parameter and end scalars before "$". Issue #154.
    Bash: treat "<<" in arithmetic contexts as left bitwise shift operator instead of here-doc. Issue #137.
    Batch: style SCE_BAT_AFTER_LABEL used for rest of line after label which is not executed. Issue #148.
    F#: Lex interpolated verbatim strings as verbatim. Issue #156.
    VB: allow multiline strings when lexer.vb.strings.multiline set. Issue #151.

Close #13729
2023-06-02 14:15:54 +02:00
Don HO
043bd4f385
Make SUPPORTED_SYSTEM.md briefer 2023-06-01 15:25:09 +02:00
Lautis Sun
b93e3f4b21 Add latest support version information for Windows 95/98/ME/NT4
With searching in Google and trying to run several official unmodified verions of Notepad++ in virtual machines. Notepad++ come with several plugins enabled, which may stop working before Notepad++ version. Please attention that, the installed version of Internet Explorer may affect other software, which I did not test. The following is what I get.

For Windows 95, refer to these links:

http://www.win3x.org/win3board/viewtopic.php?t=17221

https://notepad-plus-plus.narkive.com/6lktixGR/notepad-plus-help-notepad-v4-0-does-not-work-on-win95

I've confirmed that Notepad++ 3.9 runs on Windows 95 RTM/OSR 2.5, and Notepad++ 4.0.1 doesn't (4.0 not found, but I think there's only minor changes). So Notepad++ 3.9 is the latest version for Windows 95.

For Windows NT 4.0, nothing found when searching.

I've confirmed that Notepad++ 4.6 runs on Windows NT 4.0 SP6, and Notepad++ 4.7.1/4.7.2/4.7.3 runs with error of plugin, and Notepad++ 4.7.5 doesn't work. So Notpad++ 4.7.3 is the latest for Windows NT 4 with plugins disabled.

For Windows 98/ME, refer to these links:

http://web.archive.org/web/20110709191226/http://notepad-plus-plus.org/news/notepad-5.9.1-release-is-available.html

https://msfn.org/board/topic/105936-last-versions-of-software-for-windows-98se/page/68/#comment-1176861

I've confirmed that Notepad++ 5.9.6.2 (ANSI) runs Windows 98 SE/ME, and Notepad++ 5.9.8/6.0 (ANSI) runs with error of plugin, and Notepad++ 6.1 doesn't work because no ANSI version available. So Notepad++ 6.0 (ANSI) is the latest for Windows 98/ME with plugins disabled.

For Windows 2000, I've confirmed that Notepad++ 6.5 runs on Windows 2000 SP4, and Notepad++ 6.6 with default plugins runs with error, and Notepad++ 6.7 doesn't work. So Notepad++ 6.6.9 is the latest for Windows 2000 with plugins disabled.

Close #13725
2023-06-01 14:53:47 +02:00
blu3mania
406a77a608 Fix lexer plugin is sorted unconventionally in language menu issue
Correct the logic when inserting external lexer's language into language menu,
while inserting external lexer's language into language menu, also search in submenu if compact language menu is used.
Fix also a similar issue in Preferences dialog when enabling a previously disabled language.

Fix #9516, close #13660
2023-05-31 15:39:28 +02:00
ozone10
776a3fb945 GUI Enhancement: StylerDlg & URLCtrl
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  optimize dark mode
-  fix override warnings

Fix #13705, close #13706
2023-05-30 18:42:51 +02:00
ozone10
781709a022 GUI Enhancement: Tabbar part 2
- use one tab icon size
- close button crop in RTL
- improve text positions
- font size adjustment

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13702#issuecomment-1564296333

Fix #10349, fix #8109, close #13709
2023-05-30 01:15:49 +02:00
ozone10
e2f1662c90 GUI Enhancement: Docking Container & Function List
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  fix override warnings
-  add initializer

Fix #13703, close #13704
2023-05-29 20:23:07 +02:00
ozone10
e7f321f21a Add message NPPM_DARKMODESUBCLASSANDTHEME
to allow plugin authors to use generic dark mode.
Unfortunately not for C# plugins.
related #13572

Fix #13574, close #13596
2023-05-28 11:52:14 +02:00
ozone10
b88456764b GUI Enhancement: Tabbar
-  prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
-  fix inconsistent tab bar size values
-  add initializer
-  fix override warnings

Fix #13701, close #13702
2023-05-25 14:51:48 +02:00
ozone10
1806b8994b GUIEnhancement: About, Debug, Save dialogs
-  add accelerators
-  optimize dark mode
-  remove/comment unused variables
-  replace debug copy link with push button
-  fix override warnings
-  add initializers

Fix #13686, close #13687
2023-05-23 16:05:54 +02:00
ozone10
779db128ac GUI Enhancement: Go to Line dialog
- optimize dark mode
- simplify code
- fix override warnings

Fix #13665, close #13666
2023-05-22 13:38:21 +02:00
ozone10
a1d7db8049 GUI Enhancement: General & Editing sections in Preferences dialog
- increase width for some items for translation
- make translation consistent between source and xml files
- reorder items for consistent tab focus

Ref #13627, ref 0cad36d#r108675058
Fix #13657, fix #13676, close #13632
2023-05-22 10:19:23 +02:00
ozone10
41af936855 GUI Enhancement: Column Editor
- fix override warnings
- replace SendMessage check with isCheckedOrNot
- make translation consistent

Fix #13667, close #13668
2023-05-20 20:08:20 +02:00
Anders
8250a81d6e Fix tabContextMenu_example.xml not being deleted while uninstallation
Correctly delete tabContextMenu_example.xml in the users profile.

Fix #13670, close #13654
2023-05-19 05:43:52 +02:00
ozone10
af8b339296 GUI enhancement: Find in Finder dialog
- add key accelerator
- optimize dark mode
- add initializers
- fix override warnings

Fix #13624, close #13625
2023-05-18 10:52:13 +02:00
Bjarke Istrup Pedersen
04e85241f3 Remove old context menu ini file and attributes file
The old explorerContextMenuEntryLocal.ini file is no longer used, and
keeping it here causes confusion with people adding pull requests to
update it.
This removes it, along with the .gitattributes file, since it is no
longer needed with the ini file gone.

Close #13662
2023-05-18 07:15:27 +02:00
ozone10
4e0f50416d GUI Enhancement: Plugins Admin dialog
- add key accelerators
- remove unused define
- add initializers
- fix override warnings
- optimize dark mode
- resize listview controls based on other child controls

Fix #13622, close #13623
2023-05-18 06:29:54 +02:00
Anders
571c815b1e Fix error message on uninstallation
Only call CleanupDll if the DLL exists.

close #13653
2023-05-17 18:42:04 +02:00
Don Ho
a561cd37d4 Notepad++ 8.5.3 release 2023-05-15 07:01:31 +02:00
Don Ho
50b81eadef Backup session file in case of its corruption
It could be, in certain unknown circumstances, the session file (session.xml) is saved with the incorrect characters (for example NUL characters) which leads session file corrupted and empty session loaded on the next launch. This commit makes a backup of session file before rewritting it, then check the session file after it having been writting - if written session file is corrupted, the backup session file will be restored, otherwise the backup file will be removed.

Ref:
1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1121781830
2. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1544703701

Fix #13514, close #13648
2023-05-15 05:59:14 +02:00
Don Ho
34186d2e85 Fix menu strings cut off regression for some localication
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13556#issuecomment-1518197329

Fix #13556, close #13645
2023-05-15 05:51:05 +02:00
schnurlos
2577594e2c [xml] Update german.xml
Close #13642
2023-05-12 04:32:59 +02:00
Karlo-F
e6a12b6a41 [xml] Update croatian.xml to v8.5.3
Close #13640
2023-05-12 04:31:03 +02:00
xomx
f5d64151ef [xml] Update czech.xml to v8.5.3
Close #13635
2023-05-12 04:28:32 +02:00
Don Ho
3c15ff5783 [xml] Make all the localization files pretty printed
This commit makes all the localization files pretty printed (indent only).

Close #13631
2023-05-09 04:52:09 +02:00
Don Ho
8dd1f3a337 Revert "[xml] Standarize english.xml format by using XML pretty print"
This reverts commit dccab1f25ab61835bfe4042edd7780e5b7b3149d.
2023-05-08 16:35:03 +02:00
ArkadiuszMichalski
df3080d855 [xml] Update polish.xml to 8.5.3
Close #13628
2023-05-08 04:38:47 +02:00
Don Ho
dccab1f25a [xml] Standarize english.xml format by using XML pretty print
Use XML Tools plugin for formatting english.xml.
Command: via menu "Plugins -> XML Tools-> Pretty Print" command.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13562#issuecomment-1518543453

Close #13621
2023-05-08 04:32:52 +02:00
Patriccollu
f5afac3f91 [xml] Update Corsican translation for Notepad++ 8.5.3
Close #13620
2023-05-07 16:57:58 +02:00
Juan
9fce39d2b2 [xml] Update galician.xml to v 8.5.3
Close #13562
2023-05-07 16:54:49 +02:00
schnurlos
d4f0fa95dd [xml] Update german.xml
Close #13539
2023-05-07 16:51:09 +02:00
Juan
c9fa1742e0 [xml] Update spanish to v 8.5.3
Close #13537
2023-05-07 16:45:28 +02:00
Thomas De Rocker
97ad88227b [xml] Update dutch.xml
Close #13536
2023-05-07 16:42:34 +02:00
Matteo Concato
20aeb510a5 [xml] update italian.xml
Close #13527
2023-05-07 16:37:57 +02:00
~GOLEM~
6b55dbd187 [xml] Update russian.xml
Close #13525
2023-05-07 16:33:47 +02:00
yasmise
a699f09c50 [xml] Update japanese.xml
* Update translations for these commits:
  * Add hide/show ability of Control Characters (C0 & C1) and Unicode EOL (0cad36d)
  * Enhance Run Macro dialog (87e34c1)
  * Backup old version of shortcuts.xml (5b5c30b)
  * GUI enhancement: Find Characters in Range dialog (997ef82)
  * GUI enhancement: MD5 and SHA256 Hash dialogs (7e6c4b3)
  * GUI Enhancement: Preference Print sub-dialog (6b19445)
* Some translations are modified to be clear.

Close #13518
2023-05-07 16:29:54 +02:00
rddim
76cf3c7931 [xml] Update Bulgarian localization
Close #13515
2023-05-07 16:24:27 +02:00
Marcellomco
befcbae1b4 [xml] Update brazilian_portuguese.xml
Close #13512
2023-05-07 14:28:50 +02:00
kubalav
13ef27645b [xml] Update Slovak translation
Close #13509
2023-05-07 14:23:26 +02:00
Christophe Mateos
76afd9284e [xml] Update french.xml 2023-05-07 14:19:29 +02:00
Regmos
c4563eddb2 Update danish.xml
Close #13495
2023-05-07 14:06:53 +02:00
Hugo Carvalho
17fcb4d3a0 [xml] Update portuguese.xml to v8.5.2
Close #13480
2023-05-07 13:52:05 +02:00
ozone10
052626ca99 GUI Enhancement: User Define dlgs
- main dlg shared part - tab focus reorder
- string dlg (User language name, New tab name) - make edit ctrl larger
- remove obsolete style
- add initializer
- fix override warnings
- optimize dark mode
- make translation consistent between source code and english lang xml files

Fix #13615, close #13616
2023-05-07 05:50:58 +02:00
ozone10
2a21a042d1 Fix GCC warnings & add initializers
Fix #13603, close #13604
2023-05-06 05:58:58 +02:00
ozone10
2d5c241e2b Fix Change history margin in black color issue
Use Line number margin style color for Change history margin, if not defined in 'theme.xml'.

Fix #12764, fix #13593, close #13594
2023-05-04 05:03:49 +02:00
ozone10
6b194453b8 GUI Enhancement: Preference Print sub-dialog
- add initializers
- reorder controls for tab focus
- add accelerators
- make comboboxes larger
- replace variable static text with edit control
- fix override warnings

Fix #13601, fix #12812, close #13602
2023-05-04 04:25:57 +02:00
Don Ho
23a0cfb3aa Enhance shortcuts backup & warning
Commit 5b5c30b0d33f1aade36f7a270e60d52a1ff38613 backup current shortcuts file before rewritting it, and gives a warning to users.
However, when a PC installs v8.5.3 (or later version) from scratch (ie. no v8.5.2 or previous version installed), there should be no warning and no backup.
This commit remove unnecessary cases for warning user (and backup shortcuts file).

Enhance #13589 & #13599

Close #13609
2023-05-04 04:11:54 +02:00
ozone10
7e6c4b3c6b GUI enhancement: MD5 and SHA256 Hash dialogs
- add accelerators
- add initializers
- optimize dark mod

Fix #13579, close #13580
2023-05-02 16:58:08 +02:00
ozone10
997ef821d1 GUI enhancement: Find Characters in Range dialog
- add accelerators
- add initializers

Fix #13577, close #13578
2023-05-02 04:58:52 +02:00
ozone10
61d2d36821 Make focus on edit field in Project panel File relocalizer dialog
- tab focus reorder
- optimize dark mod
- fix override warnings
- add initializer

Fix #13575, close #13576
2023-05-02 04:18:44 +02:00
Don Ho
5b5c30b0d3 Backup old version of shortcuts.xml
An enhancement (fff5f9b - it will be in v8.5.3) makes Macro & Run menu completely localizable. However, it will bring a regression and critical bug for all macro recorded by v8.5.2 and previous versions.
In order to remedy this issue, shortcuts.xml will be copied to shortcuts.xml.v8.5.2.backup before being written. So user can recover backup file if they want to back to v8.5.2 or previous version with the old data.

Fix #13589, close #13599
2023-05-01 19:26:28 +02:00
ArkadiuszMichalski
ecb10712c1 Improve "Remove consecutive duplicate lines" command performance
Rewrite "Remove consecutive duplicate lines" without using regex.

Fix #5538, fix #12548, close #13558
2023-05-01 12:58:26 +02:00
ozone10
5f2e93ee5f [XML] Update minimal MSVC version prerequisite
And fix markdown warnings.

Fix #13586, close #13591
2023-04-30 06:15:24 +02:00
ozone10
c585a1ab08 Fix incosistent key accelerator cue for groupbox in dark mode
Fix #13597, close #13598
2023-04-29 19:47:14 +02:00
ozone10
80b34f0adf Fix regression Run Macro Multiple Times cmd
Not changing times immediately from edit control.

Fix #13561, close #13563
2023-04-25 04:48:51 +02:00
Don Ho
c76f178534 Fix regression of macro recording
Fix #13565, close #13570
2023-04-23 15:16:52 +02:00
doug1234
2c6c556a3a Project Workspace "Save a Copy As" confusion issue
Fix #13135, close #13303
2023-04-22 15:39:51 +02:00
Don Ho
0457a112c7 Fix regression: Key-Combos in Shortcuts Mapper displayed incorrectly
Fix #13554
2023-04-21 20:36:29 +02:00
Alan Kilborn
bc7d6b26a4 Make input focus right in Shortcut dialog
Fix #13524, close #13526
2023-04-21 08:02:46 +02:00
ozone10
3cf45ec3a8 Reorder tab focus in Run dlg
Plus:
- add key accelerators.
- remove unneeded library.
- add initializers.

Fix #13540, close #13541
2023-04-21 07:55:57 +02:00
ArkadiuszMichalski
15decdb3d9 Make 'Remove consecutive duplicate lines' support more line break
Fix #13474, close #13519
2023-04-20 10:22:42 +02:00
ozone10
87e34c1f7b Enhance Run Macro dialog
- reorder tab focus.
- add key accelerators.
- optimize dark mode.

fix #13544, close #13545
2023-04-19 21:09:21 +02:00
Don Ho
1a1ce04caa Fix regression about empty combobox of Run macro dialog 2023-04-19 20:55:52 +02:00
ozone10
59c8689ff4 Fix warnings in WindowsDlg.cpp, .h files
And add initializers.

Fix #13542, close #13543
2023-04-19 19:26:15 +02:00
Andreas Falkenhahn
de618df55f Add Hollywood function list into installer
Close #13547
2023-04-19 15:22:07 +02:00
Don Ho
fff5f9b24c Add the UTF8 character ability for Run & Macro menu
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13221#issuecomment-1457325172

Fix #12670, fix #13221, fix #13488, close #13538
2023-04-19 02:06:40 +02:00
Mathias Berchtold
ac5657d826 Add comment line symbol for gui4cli
gui4cli uses // to comment a line.

Close #13501
2023-04-13 08:17:43 +02:00
Don Ho
96b56f61f9 Fix saving wrong macro/run menu UTF8 folder name after commands modification
The macro/run commands menu folder (submenu entry) can be UTF8 characters.
After modification of macro/run shortcut commands, the macro/run menu UTF8 folder names can be saved correctly by this commit, but in Unicode character number form instead of human readible characters.

Fix #12670, close #13516
2023-04-13 05:14:26 +02:00
Don Ho
4934b46bd7 Fix UDL deletion issue
While there are the UDL in the userDefineLangs folder (new system) and a (or some) UDL in "userDefineLang.xml" (old system). The complete UDL deletion in "userDefineLang.xml" not remove "userDefineLang.xml" file.
This PR fixes the problem.

Fix #8101, close #13513
2023-04-13 05:10:03 +02:00
Don Ho
6d917af8ba Fix installer fails to update NppShell.dll
Fix #13496
2023-04-12 00:00:02 +02:00
Alan Kilborn
cca3eccea1 Fix RTL not working on FindInFiles progress window
Fix #13458, close #13490
2023-04-11 23:47:27 +02:00
ozone10
83b0b1e4ce Move uchardet file definitions from main project file to separate targets file
fix #13493, close #13494
2023-04-11 15:54:38 +02:00
ozone10
0cad36d636 Add hide/show ability of Control Characters (C0 & C1) and Unicode EOL
Fix #8111, close #13324
2023-04-11 15:35:35 +02:00
doug1234
81802e7d77 Fix search results output alignment for large file searches
Fix #13481, close #13482
2023-04-10 15:18:43 +02:00
Don Ho
14b215db76 Update slovenian.xml 2023-04-09 19:03:48 +02:00
ozone10
7ee85e8142 [xml] Add new guidelines, fix markdown warnings
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13444#discussion_r1160284972

Close #13487
2023-04-08 14:11:09 +02:00
Don Ho
81db72afb3 Fix Column Editor OK button not disabled if Text-to-Insert is empty
Fix #13315
2023-04-06 23:43:08 +02:00
Don Ho
6326340ccb Remove unecessary file 2023-04-06 14:36:00 +02:00
Don Ho
28b45ccee4 Notepad++ v8.5.2 release 2023-04-06 14:12:52 +02:00
Don Ho
9ee9046be4 Add the definition of "DEBUGGING" 2023-04-04 17:11:00 +02:00
Hugo Carvalho
9d06762a71 [xml] Update portuguese.xml
Fix #13472
2023-04-04 15:32:44 +02:00
Karlo-F
9d94b29b7d [xml] Update croatian.xml to v8.5.2
Close #13471
2023-04-04 15:31:09 +02:00
xomx
a333e0bc13 [xml] Update czech.xml to v8.5.2
Close #13470
2023-04-04 15:29:25 +02:00
ArkadiuszMichalski
44a1a7d710 [xml] Update polish.xml to 8.5.2
Close #13469
2023-04-04 15:27:44 +02:00
~GOLEM~
b292e7e278 [xml] Update russian.xml v8.5.2
Close #13466
2023-04-04 15:25:06 +02:00
Sapziller
27600a7a66 Update korean translate (8.5.1)
Close #13400
2023-04-04 15:21:47 +02:00
ozone10
810ceacb49 Add dark mode to new column editor feature
Fix #13467, close #13468
2023-04-04 01:15:26 +02:00
Don Ho
0dff45568b Make uninstaller clean up better 2023-04-03 23:40:31 +02:00
Blackspirits
dbe1ab2ee3 Update Portuguese translation for Notepad++ 8.5.1
Close #13432
2023-04-02 16:44:11 +02:00
Hedman
193a19ccb2 Add PowerShell block comment style in HotFudgeSundae.xml
Fix #13271, close #13273
2023-04-02 16:38:30 +02:00
schnurlos
c2f18fb785 [xml] Update german.xml
Close #13409
2023-04-02 16:05:06 +02:00
Marcellomco
5518ec069a [xml] Update brazilian_portuguese.xml
Fix #13397, close #13398
2023-04-02 16:03:56 +02:00
kubalav
70d24706a5 [xml] Update Slovak translation
Close #13412
2023-04-02 16:01:06 +02:00
Alan Kilborn
c7e9440179 Turn off "Match Case" and "Whole Word" options by default in Find In Finder
Fix #13415, close #13427
2023-04-02 15:51:12 +02:00
rddim
ecf6eba681 [xml] Update Bulgarian localization
Close #13449
2023-04-02 15:35:27 +02:00
yasmise
ef7b9360a4 [xml] Update japanese.xml
Add translations for these commits:
* Add ability to do leading spaces with ColumnEditor (7f54a4b)
* Add more items and HTML Hexadecilmal column to ASCII panel (9b67c93)
* Add hits in-progress increased number to Search Progress dialog (508b3fa)

Close #13451
2023-04-02 15:33:09 +02:00
Patriccollu
c96bcbd8b7 [xml] Update Corsican translation for Notepad++ 8.5.2
Close #13455
2023-04-02 15:31:25 +02:00
Christophe Mateos
a30daeb7f9 [xml] Update french.xml
Close #13463
2023-04-02 15:28:39 +02:00
Artem Polivanchuk
444c5e5a49 [xml] Update ukrainian.xml
Close #13462
2023-04-02 15:20:54 +02:00
Robert Di Pardo
38d23d36e9 [xml] Provide a default Dark Mode theme for MS Transact-SQL
Ref. https://community.notepad-plus-plus.org/post/85179

Close #13461
2023-04-02 14:33:46 +02:00
Juan
18b8c1248d [xml] Update galician.xml to v. 8.5.1
Close #13380
2023-04-02 04:55:35 +02:00
Juan
f8ce71a5c9 [xml] Update spanish.xml to v. 8.5.1
Close #13376
2023-04-02 04:53:23 +02:00
Matteo Concato
baef651e9c [xml] update Italian.xml v8.5.1
Close #13374
2023-04-02 04:52:05 +02:00
Karlo-F
959bb5db63 [xml] Update croatian.xml to v8.5.1
Close #13371
2023-04-02 04:49:22 +02:00
Emir SARI
bedc92d022 [XML] Update Turkish translations
Small improvements, that make it more in-line with the generally
accepted Turkish software l10n.

Close #13311
2023-04-02 04:47:04 +02:00
Karlo-F
778e1f568e Add show non-printable characters style in Deep Black theme
Close #13258
2023-04-02 03:29:32 +02:00
ozone10
37a18bf3b8 Fix dock panels visual glitch
The visual glitch is caused by 'Find in Search Results'.

Fix #13402, fix #13459
2023-04-02 02:35:55 +02:00
Don Ho
e28db05754 Fix "Edit with Notepad++" context menu needs restarting OS issue
Fix context menu disappears issue while update.

It works with https://github.com/notepad-plus-plus/nppShell/pull/14 to fix
https://github.com/notepad-plus-plus/nppShell/issues/13

It fixes also the added dependency of the service "Application Information".

Fix #13446, fix #13457
2023-04-01 23:59:38 +02:00
Alan Kilborn
508b3fabd6 Add hits in-progress increased number to Search Progress dialog
Fix #13364, close #13404
2023-03-31 00:12:24 +02:00
ozone10
7b4e700d49 Use the right size of icon in system tray
Fix #8971, close #13419
2023-03-30 15:29:22 +02:00
Bjarke Istrup Pedersen
2bcc32cb99 Cleanup old NppShell & adapt the new one in installer
Close #13411
2023-03-30 15:10:32 +02:00
Alan Kilborn
b54b9c49ce Remember "Bookmark Line" and "Purge" options in Mark dlg through the session
Fix #13277, close #13443
2023-03-30 02:36:59 +02:00
Alan Kilborn
a67a5f7170 Fix unexpected column jump post brace match
Fix #13433, close #13441
2023-03-30 02:31:10 +02:00
ozone10
24d3a69f0f Dark mode enhancement: make combobox focus more visible
Use focus rectangle for list combobox with focus.

Fix #13420, close #13421
2023-03-30 02:21:05 +02:00
doug1234
5e23a86179 Fix Mark dialog's Copy Marked Text button is not macroable issue
Fix #13405, close #13407
2023-03-30 02:13:48 +02:00
ozone10
7e4b281b8a GUI enhancement: use split button for find dlg swap/copy button
- Reorder controls for consistent tab switching.
- Fix visual glitch for checkbox button focus rectangles.

Fix #13368, fix #13021close #13372
2023-03-30 01:00:11 +02:00
Don Ho
d37c7c396a Fix value in config.xml does not match user's preference in Column Editor
Fix #13370
2023-03-28 18:09:02 +02:00
Don Ho
57667d136f Update Slovenian translation 2023-03-28 12:51:13 +02:00
Don Ho
641b6e71c2 Fix XML syntax error 2023-03-27 14:15:02 +02:00
Don Ho
a049009ba9 Add a philosophy quote 2023-03-27 03:21:41 +02:00
afalkenhahn
d21f7cbf5c Added Hollywood support
Close #13417
2023-03-26 23:39:47 +02:00
ozone10
9b67c93ef9 Add more items and HTML Hexadecilmal column to ASCII panel
Fix #13347, close #13348
2023-03-25 02:42:00 +01:00
Alan Kilborn
7f54a4b959 Add ability to do leading spaces with ColumnEditor
Fix #11148, fix #13309, close #13336
2023-03-25 02:33:09 +01:00
ozone10
1f96776757 Fix find dialog flicker
When using Select and Find cmds first time, and find dialog is not already created.

Fix #9536, fix #13381, close #13383
2023-03-24 21:14:59 +01:00
Don Ho
c59c07b4fa Notepad++ 8.5.1 release 2023-03-23 23:47:24 +01:00
Don Ho
9c15bdc236 Fix unregister modern context menu syntax error and remove concerning binaries during uninstallation 2023-03-20 00:37:44 +01:00
Bjarke Istrup Pedersen
e849406806 Fix cleanup jobs problem for context menus in uninstaller
Close #13373
2023-03-19 21:00:38 +01:00
Don Ho
eded6099b0 Make MS Trasact-SQL easier to be found in Style Configurator
Fix #13367
2023-03-19 19:02:57 +01:00
Don Ho
5645ca150b Integrer new Windows 11 Explorer Context Menu Entry "Edit with Notepad++" 2023-03-17 00:45:06 +01:00
Don Ho
9462238c0f Fix localization files structure error (already fixed in code) 2023-03-16 19:35:39 +01:00
Marcellomco
c838741f4d [xml] Update brazilian_portuguese.xml
Close #13359
2023-03-16 19:24:15 +01:00
xomx
b60231e1e6 [xml] Update czech.xml to v8.5.1
Close #13358
2023-03-16 19:07:30 +01:00
Bjarke Istrup Pedersen
ce4d374a47 Add Windows 11 context menu entry "Edit with Notepad++"
This commit implements the Windows 11 context menu using the correct way of having a DLL file and a sparse package.

Fix #13320, close #13330
2023-03-16 18:47:04 +01:00
~GOLEM~
7561864299 [xml] Update russian.xml to v8.5.1
Close #13356
2023-03-16 17:59:43 +01:00
schnurlos
626cc53209 [xml] Update german.xml
Close #13352
2023-03-16 17:56:54 +01:00
Patriccollu
8cd1559d4a [xml] Update Corsican translation for Notepad++ 8.5.1
Close #13340
2023-03-16 17:44:24 +01:00
yasmise
2fcdb6e6c5 [xml] Update japanese.xml
Update Japanese translation for these commits:
* Replace recent file ValueDlg with edit fields & fix DocSwitcher RTL problem (269e78b)
* Make tray icon context menu translatable (52d3c36)
* Add ability to copy "Find what" to "Replace with" and vice versa (12f649b)

Close #13339
2023-03-16 17:33:49 +01:00
Matteo Concato
a5fdb42ede [xml] Update Italian.xml
Close #13326
2023-03-16 17:28:59 +01:00
Asx
669bbb2284 Update chineseSimplified.xml
Close #13310
2023-03-16 17:21:01 +01:00
kubalav
ccbc757a4b [xml] Update Slovak translation
Close #13300
2023-03-16 17:12:05 +01:00
rddim
d060b0f01a [xml] Update Bulgarian localization
Close #13299
2023-03-16 17:09:01 +01:00
Christophe Mateos
f9e1a0b398 [xml] updating French translation
Close #13298
2023-03-16 17:05:18 +01:00
Don Ho
e1e7196264 Add several spiritual quotes 2023-03-16 16:40:53 +01:00
zeltop
816fa3e414 Add GDScript language
Adds GDScript language support, autocomplete file, functionlist, default and dark themes.

Fix #13329, close #13335
2023-03-14 23:45:57 +01:00
Robert Di Pardo
01bbebf825 Add MS Transact-SQL
Add built-in support for Microsoft's SQL dialect, Transact-SQL, used by Microsoft SQL Server. This enables Lexilla's dedicated MS SQL lexer.
To preserve the current file extension mapping, the new lexer is mapped to the *.tsql file extension only.
Users can select "Microsoft Transact-SQL" from the Language menu to apply MS SQL Server style to scripts with the *.sql extension.

Keywords and styles copied from https://www.scintilla.org/mssql.properties

Fix #5940, fix #7988, fix #11718, fix #12610, fix #13160, close #13184
2023-03-14 01:03:37 +01:00
Christian Grasser
feb454ad6f Update scintilla 5.3.4 and lexilla 5.2.4 with:
https://www.scintilla.org/scintilla534.zip

    Released 8 March 2023.
    Add multithreaded wrap to significantly improve performance of wrapping large files.
    More typesafe bindings of *Full APIs in ScintillaCall. Feature #1477.
    Fix overlapping of text with line end wrap marker. Bug #2378.
    Fix clipping of line end wrap symbol for SC_WRAPVISUALFLAGLOC_END_BY_TEXT.
    Where a multi-byte character contains multiple styles, display each byte as a representation. This makes it easier to see and fix lexers that change styles mid-character, commonly because they use fixed size buffers.
    Fix a potential crash with autocompletion list fill-ups where a SCN_CHARADDED handler retriggered an autocompletion list, but with no items that match the typed character.

lexilla523

    Released 8 March 2023.
    Add scripts/PromoteNew.bat script to promote .new files after checking.
    Makefile: Remove 1024-byte line length limit..
    Ruby: Add new lexical classes for % literals SCE_RB_STRING_W (%w non-interpolable string array), SCE_RB_STRING_I (%i non-interpolable symbol array), SCE_RB_STRING_QI (%I interpolable symbol array), and SCE_RB_STRING_QS (%s symbol). Issue #124.
    Ruby: Disambiguate %= which may be a quote or modulo assignment. Issue #124, Bug #1255, Bug #2182.
    Ruby: Fix additional fold level for single character in SCE_RB_STRING_QW. Issue #132.
    Ruby: Set SCE_RB_HERE_QQ for unquoted and double-quoted heredocs and SCE_RB_HERE_QX for backticks-quoted heredocs. Issue #134.
    Ruby: Recognise #{} inside SCE_RB_HERE_QQ and SCE_RB_HERE_QX. Issue #134.
    Ruby: Improve regex and heredoc recognition. Issue #136.
    Ruby: Highlight #@, #@@ and #$ style interpolation. Issue #140.
    Ruby: Fix folding for multiple heredocs started on one line. Fix folding when there is a space after heredoc opening delimiter. Issue #135.
    YAML: Remove 1024-byte line length limit.

https://www.scintilla.org/lexilla524.zip

    Released 13 March 2023.
    C++: Fix failure to recognize keywords containing upper case. Issue #149.
    GDScript: Support % and $ node paths. Issue #145, Pull request #146.

Close #13338
2023-03-13 21:06:09 +01:00
Don Ho
12f649bf54 Add ability to copy "Find what" to "Replace with" and vice versa
This feature use the same swap button for new added actions:
Use mouse right click on swap button to have popup menu for toggling among "Swap Replace with Find", "Copy from Find to Replace" and "Copy from Replace to Find".

Related to #12195

Fix #12122, close #13332
2023-03-12 14:11:05 +01:00
Alan Kilborn
5251d8477a Code enhancement: remove unnecessary hidden lines separator marker
Let Scintilla manage hidden lines separator and free marker 17 for plugins use.

Fix #12109, close #13223
2023-03-11 02:03:04 +01:00
Don Ho
399a8f3020 Fix tipos
Close #13323
2023-03-09 18:56:07 +01:00
Don Ho
bf8b9e613e Fix x86 build error 2023-03-08 19:34:41 +01:00
Don Ho
36da61dc35 Code enhancement: remove some MSVS analysis warning (Part 5) 2023-03-08 18:35:02 +01:00
Don Ho
ab5d29b6fe Code enhancement: remove some MSVS analysis warning (Part 4) 2023-03-08 00:28:42 +01:00
Don Ho
f85435d962 Code enhancement: remove some MSVS analysis warning (Part 2) 2023-03-07 05:03:16 +01:00
Don HO
61d96cd971
Update CONTRIBUTING.md 2023-03-07 04:12:05 +01:00
Don Ho
0b6a8e2011 Fix an eventual crash and UDL empty button issue after changing language
The bug was inserted by the following commit:
4d217387f1

Fix #13228
2023-03-07 03:52:10 +01:00
Don Ho
25be5dd3b6 Code enhancement: remove some MSVS analysis warning (Part 2) 2023-03-06 19:33:36 +01:00
Don Ho
c8e4e671da Code enhancement: remove some MSVS analisis warning 2023-03-06 17:55:53 +01:00
ozone10
34545beddd Code enhancement: enable code analysis with custom rule set
Ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13143#issuecomment-1434689064

Close #13168
2023-03-06 16:17:30 +01:00
ArkadiuszMichalski
52d3c36e35 Make tray icon context menu translatable
Fix #11628, close #13241
2023-03-06 15:49:55 +01:00
ozone10
b8291d4911 GUI visual enhancement: optimize dlg items redraw
Fix #13230, close #13231
2023-03-06 15:39:38 +01:00
ozone10
269e78bc1e Replace recent file ValueDlg with edit fields & fix DocSwitcher RTL problem
Remove ValueDlg class.

Fix #13244, fix #13248, close #13245
2023-03-06 14:44:50 +01:00
Don Ho
21a78ed035 Notepad++ release 8.5 2023-03-06 03:19:41 +01:00
Don Ho
f923940dcc Add more translation of 'Edit with Notepad++'
Close #13265
2023-03-05 22:48:39 +01:00
ArkadiuszMichalski
20f381e506 Add langCode for English and convert passed value to one format
Fix #8927, close #13272
2023-03-05 22:18:40 +01:00
ArkadiuszMichalski
dc0c8d6510 Fix visual glitch for UDL window when changing localization
Fix #10876, close #13242
2023-03-05 22:12:58 +01:00
Alan Kilborn
fa9504d595 Don't populate in Find what if a stream selection more than 1024 characters
Avoid auto-population into "Find What" if "In Selection" is going to be auto-checkmarked.

Fix #12603, close #12603
2023-03-05 20:24:43 +01:00
ArkadiuszMichalski
9c0e1e4559 Fix "Recent Files" menu lost translation
Fix #9343, close #13208
2023-03-05 20:14:41 +01:00
ArkadiuszMichalski
892ab0850f Fix untitled document number jumping or repeated problem
Fix #13194, fix #8677, fix #11704, close #13204
2023-03-05 20:06:47 +01:00
Karlo-F
7789c7daf5 [xml] Update croatian.xml to 8.5
Close #13257
2023-03-05 19:54:19 +01:00
Daniel Fuchs
d4f8aea5d2 Update german.xml to v8.5
Close #13262

* update translation to current workprint of english.xml
* change version scheme to a yyyy.mm.dd format for better versioning
* removed redundant comments
2023-03-05 19:53:03 +01:00
Matteo Concato
e9e5f57f81 [xml] Update italian.xml
Close #13268
2023-03-05 19:17:07 +01:00
ArkadiuszMichalski
35dcffc33e [xml] Update polish.xml to 8.5
Close #13275
2023-03-05 18:47:23 +01:00
Sahid Ali Zakaria
9362e782d8 Update indonesian.xml to v8.5
Close #13282
2023-03-05 18:45:53 +01:00
ArkadiuszMichalski
568075beb5 Fix wrong value set in Preferences->Performance->"Define Large File Size"
Use correct type for file size variables.

Fix #13280, close #13290
2023-03-05 18:01:54 +01:00
Edditoria
081e8ad11b [xml] Update localization: Hong Kong Cantonese...
Close #13247
2023-02-26 23:14:56 +01:00
schnurlos
8a69ab841f [xml] Update german.xml
Close #13051
2023-02-26 21:07:40 +01:00
Thomas De Rocker
d660070ac1 Update dutch.xml
Close #13148
2023-02-26 21:06:13 +01:00
Juan
4648a25138 [xml] Update spanish.xml
Close #13239
2023-02-26 21:03:59 +01:00
Juan
e4b18fbcc7 [xml] Update galician.xml
Close #13240
2023-02-26 20:59:42 +01:00
Don Ho
cd64850ed8 Update SUPPORTED_SYSTEM.md for Vista & Server 2008
Fix #13074
2023-02-26 20:47:23 +01:00
Hugo Carvalho
055deeb4b5 [xml] Update portuguese.xml
close #13090
2023-02-26 01:39:16 +01:00
Don Ho
235b51af67 Merge branch 'ArkadiuszMichalski-fix_13228' 2023-02-25 18:39:15 +01:00
Don Ho
7c848e89e4 Merge branch 'fix_13228' of https://github.com/ArkadiuszMichalski/notepad-plus-plus into ArkadiuszMichalski-fix_13228 2023-02-25 18:39:04 +01:00
Christophe Mateos
7cc7bcf60a [xml] Update French translation file
Close #13225
2023-02-25 18:17:04 +01:00
yasmise
642a3493fb [xml] update japanese.xml
Add translations for these commits:
* Add Begin/End Select in Column Mode command (0792452)
* Add show non-printable characters command (aaab190)
* Make Non-Print Characters show by default (dc99ce1)
* Translate 'Compact Language Menu' popup dialog (43d9f0d)
* Add option to make auto-completion list brief (9eab1f5)
* Make two items in progress dialog translatable (3f13957)
* Make categories in the Shortcut Mapper dialog translatable (f7fcab4)
* Make theme warning message translatable (switching unsaved theme to another) (0c704fd)
* Apply tab colors to document list items and add groups to document list. (37963ea)
* Make Context menu in Shortcut Mapper (Modify, Delete, Clear) translatable (f403b12)
* Fix translation issue for Dock/Undock label in User-Defined dialog (9627494)
* GUI enhancement: replace auto-complete link mini dlg with slider (caff51c)
* Rename commanfd "Remove Unmarked Lines" to "Remove Non-Bookmarked Lines" (3f3aed4)
* Make "Cannot open file" message translatable (a689635)
* GUI enhancement: use edit field instead of tab size link + mini dlg (8b3f072)
* Set english.xml version right (99e7c5a)

Close #13093
2023-02-25 17:38:00 +01:00
Don Ho
d4d4163cb3 Fix an eventual memory leak 2023-02-25 16:40:38 +01:00
ArkadiuszMichalski
4d217387f1 Fix Dock/Undock label when we change localization 2023-02-25 02:58:37 +01:00
Don Ho
b1e1361189 Updat the translation of 'Edit with Notepad++' 2023-02-25 02:36:48 +01:00
Juan
2939039dbe [xml] Update galician.xml to v8.5.0
Close #13161

Estuve más de cuatro horas para adaptarlo al english.xml actual y son necesarios más cambios.
Espero que lo acepten para terminar de igualarlo en futuras traducciones.
2023-02-25 01:27:25 +01:00
Patriccollu
07804a8288 [xml] Update Corsican translation for Notepad++ 8.5.0
Close #13059
2023-02-25 01:19:34 +01:00
kubalav
3abd500d70 [xml] Update Slovak translation
Close #13050
2023-02-25 01:17:03 +01:00
Marcellomco
dc611488e2 [xml] Update brazilian_portuguese.xml
Close #13049
2023-02-25 01:14:41 +01:00
A. Regnander
74101aa689 Update swedish.xml
Close #13025
2023-02-25 00:41:28 +01:00
Juan
2525c2d102 [xml] Update spanish.xml to v8.5.0
Close #13144
2023-02-25 00:27:27 +01:00
rddim
167e7fdd4f [xml] Update Bulgarian localization
Close #13169
2023-02-25 00:17:51 +01:00
ozone10
2bf50bc191 Add edit ctrl highlight on focus for incremental search & function panel
- Enable edit control highlight for incremental search and function panel
- add initializers

Fix #13187, close #13187
2023-02-24 23:49:42 +01:00
~GOLEM~
8444f85c1c [xml] Update russian.xml for v8.5.0
Close #13102
2023-02-24 20:26:28 +01:00
Matteo Concato
130ccd81fc [XML] update italian.xml v.8.5.0
Close #13165
2023-02-24 18:08:46 +01:00
xomx
5a886fd60b [xml] Update czech.xml to v8.5
Close #13218
2023-02-24 17:57:56 +01:00
ArkadiuszMichalski
cbb1375f65 CI enhancement: Add ini files to exclusions
Close #13217
2023-02-24 17:07:42 +01:00
ArkadiuszMichalski
bb260a15d7 [xml] Update polish.xml to 8.5
Close #13215
2023-02-24 16:51:16 +01:00
xomx
e819b6d392 Czech translation of context menu entry
translation for #13201

Close #13212
2023-02-24 16:48:48 +01:00
Don Ho
99e7c5a84c Set english.xml version right 2023-02-24 02:59:43 +01:00
ozone10
8b3f072a38 GUI enhancement: use edit field instead of tab size link + mini dlg
Fix #11695, fix #13176, close #13177
2023-02-24 01:58:40 +01:00
ozone10
ea008dc29d Fix regression about search progress window visual glitch
Fix #13185, close #13189
2023-02-24 01:21:03 +01:00
ArkadiuszMichalski
0649ca9c57 [xml] Add RETURNING keyword to SQL
Fix #3536, close #13195
2023-02-24 00:51:29 +01:00
ArkadiuszMichalski
a689635037 Make "Cannot open file" message translatable
Fix #13175, close #13190
2023-02-24 00:49:49 +01:00
Matteo Concato
81b41be647 Translate explorer context menu "Edit with Notepad++" in Italian
Close #13206
2023-02-23 22:26:29 +01:00
rddim
96030fe833 Add Bulgarian context menu entry
Close #13205
2023-02-23 21:10:05 +01:00
Don Ho
a0031159cd Add new explorer context menu entry "Edit with Notepad++" for W11
Windows 11 has its new interface for its explorer context menu. It makes the old "Edit with Notepad++" command hardly accessible. This commit improves the accessibility and also fix issue of run as an administrator (Properties set in Compatibility) in the new context menu command.
It fixes also the context menu command issue under ARM64 architecture (fixed only under Windows 11).

The localization of "Edit with Notepad++" is also possible in this commit.

Note that if the command place of "Edit with Notepad++" context menu command is taken by other application ("\HKEY_CLASSES_ROOT*\shell\pintohome"), the new context menu "Edit with Notepad++" won't be installed. User should install it him/herself.

Fix #10320, fix #10565, fix #4368, fix #8786, fix #10320, fix #10640, fix #10856, fix #10653, fix #7747, fix #6169, fix #92, close #13170
2023-02-23 15:17:46 +01:00
Alan Kilborn
b077c58b5d Make volatile Find uses least-strict option settings
Fix #13145, close #13159
2023-02-23 02:59:00 +01:00
mpheath
4fd972cda3 Auto-completion enhancement: reduce duplicate items in function/word list
Fix #13061, close #13098
2023-02-23 02:07:25 +01:00
Alan Kilborn
1b65cc0104 Make Select and Find (Next or Previous) always in Normal search mode
Fix #3229, close #13155
2023-02-21 18:46:20 +01:00
ArkadiuszMichalski
3f3aed43ed Rename commanfd "Remove Unmarked Lines" to "Remove Non-Bookmarked Lines"
Fix 5502; close #13149
2023-02-21 16:05:01 +01:00
ArkadiuszMichalski
a0caaf83e3 [xml] Add more pseudo-classes to CSS
Fix #10517, close #13156
2023-02-21 04:25:24 +01:00
Christian Grasser
b9ab516c2c Code enhancement: fix clang warnings
- reduced visibility of tagMaxLen to AutoCompletion.cpp
- fixed missing init of BoostRegexSearch::_lastDirection, adapted also _substituted
- removed unused vars Printer::_nbPageTotal, FunctionListPanel::_hTreeViewImaLst
- fileBrowser.cpp(511,35): warning : equality comparison with extraneous parentheses [-Wparentheses-equality]
- ProjectPanel.cpp(595,35): warning : equality comparison with extraneous parentheses [-Wparentheses-equality]
- removed unused methods IsStateComment(), IsStateString() from LexObjC.cxx
- removed unused var KEYWORD_FOLDCONTRACTED from LexObjC.cxx

Close #13167
2023-02-21 02:24:33 +01:00
Alan Kilborn
5c10f58212 Fix hit text in search results being out of sight issue
Fix #13129, close #13138
2023-02-21 02:09:04 +01:00
ozone10
caff51c788 GUI enhancement: replace auto-complete link mini dlg with slider
Fix #13162, close #13163
2023-02-21 01:05:12 +01:00
Alan Kilborn
5e2f5d79aa Code enhancement: correct parameter error to call of doOpen
Fix #13150, close #13158
2023-02-20 23:21:59 +01:00
ozone10
d30b789d67 Add support for non-printing char in main Search Result dock window
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13020#issuecomment-1430034599

Close #13128
2023-02-20 17:20:04 +01:00
ozone10
278f694f3a Code enhancement: fix GCC implicit-fallthrough warnings
Fix #13142, close #13143
2023-02-17 15:00:53 +01:00
ArkadiuszMichalski
9627494043 Fix translation issue for Dock/Undock label in User-Defined dialog
Fix 8020, close #13127
2023-02-16 14:30:47 +01:00
ozone10
4a4f96cefc Code enhancement: Fix GCC warnings
- fix conversion warnings
- fix missing-field-initializers warnings
- fix unused-parameter warnings
- fix deprecated-copy warnings
- add initializers

Fix #13122, close #13123
2023-02-15 21:06:38 +01:00
Christian Grasser
e163c6d0aa Code enhancement: Secure overloads
- use  _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES, like in scintilla, see description in msdn https://msdn.microsoft.com/de-de/library/ms175759.aspx
- enable SDLCheck https://learn.microsoft.com/en-us/cpp/build/reference/sdl-enable-additional-security-checks?view=msvc-170

Close #13104
2023-02-15 15:19:37 +01:00
Don Ho
52c850de74 Fix a minor GUI glitch in Preferences lg
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13075#issuecomment-1429515246
2023-02-14 19:00:39 +01:00
ArkadiuszMichalski
f403b12264 Make Context menu in Shortcut Mapper (Modify, Delete, Clear) translatable
Fix one of issues in https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8972

Close #13120
2023-02-14 17:41:02 +01:00
ArkadiuszMichalski
d2ba9cae0e Add keywords and functions of PHP
Fix #13012, fix #9897, close #13111
2023-02-14 16:59:15 +01:00
ozone10
37963ea21a Apply tab colors to document list items
and add groups to document list.

Fix #12155, fix #12689, cllose #13080
2023-02-14 14:15:13 +01:00
ArkadiuszMichalski
0c704fd66b Make theme warning message translatable (switching unsaved theme to another)
Fix report from comment: #8972 (comment).

Close #13112
2023-02-14 04:37:01 +01:00
ArkadiuszMichalski
f7fcab4c21 Make categories in the Shortcut Mapper dialog translatable
Fix #8858, close #13110
2023-02-14 04:19:19 +01:00
ozone10
63ba30cfe1 Code enhancement: add -Wextra flag for GCC builds
- 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
2023-02-13 23:55:35 +01:00
Alan Kilborn
dbd0c43dd1 Fix missing translation for the context menu items
Fix tab-bar-drag-to-edit-area move-and-clone ("Move to Other View" and "Clone to Other View") menu items not translating.

Fix #13088, close #13097
2023-02-13 17:27:49 +01:00
ArkadiuszMichalski
3f13957f69 Make two items in progress dialog translatable
Fix part of #8004, close  #13096
2023-02-12 18:30:33 +01:00
Christian Grasser
43182e1d04 Update to Scintilla 5.3.3 and Lexilla 5.2.2
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
2023-02-12 17:11:57 +01:00
mpheath
9eab1f566d Add option to make auto-completion list brief
Add filter and recall autocomplete option, so list will be shorter and shorter by adding characters.

Fix #12783, close #13075
2023-02-12 03:01:56 +01:00
Don Ho
03a5c4795b Add new notification for lexer plugin
The NPPN_EXTERNALLEXERBUFFER is sent to plugins with buffer ID (idFrom) when a new lexer is applied to the buffer in question.

Fix #12351, close #13091
2023-02-11 19:20:57 +01:00
Don Ho
4d107e2691 Close doc in document list on middle mouse button up
In 94b83158dcd00d7e705d87aa95f16f8773cc70c0, 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).
2023-02-11 18:53:58 +01:00
Rubat
94b83158dc Add middle mouse click ability to close doc in Document List
Documents are closed on middle mouse click down.

Fix #12949, close #13015
2023-02-11 18:49:13 +01:00
Alan Kilborn
0d9b16634d Fix Synch H/V Scrolling commands not sync with 2 views
Fix #5250, fix #13071, close #13069
2023-02-08 01:59:21 +01:00
mpheath
9285bf2d42 Fix missing items in word autocomplete
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
2023-02-07 16:03:48 +01:00
ozone10
f38195a0da Fix GCC conversion warnings
Fix #13055, close #13056
2023-02-06 20:06:56 +01:00
ozone10
296a168b3f Fix Doc Switcher bottom cut off regression
Fix #13053, close #13054
2023-02-06 19:56:41 +01:00
ArkadiuszMichalski
43d9f0d665 Translate 'Compact Language Menu' popup dialog
Fix #13026, close #13035
2023-02-06 19:37:06 +01:00
ozone10
dc99ce1035 Make Non-Print Characters show by default
Add NEL and ALM to NPC, and add note to not translate npc custom color stylename.

Close #13063
2023-02-06 19:30:14 +01:00
Don Ho
39f32bda96 Fix panels not restored from systemtray with "Edit with Notepad++" in admin mode
Continue the fix from:
afacc8338e

Eventualy fix Notepad++ not being restored on the foreground issue.

Fix #13041, close #13058
2023-02-06 15:47:22 +01:00
ozone10
aaab190763 Add show non-printable characters command
| Name                         | Codepoint | Abbreviation |
|------------------------------|-----------|--------------|
| No-Break Space               | U+00A0    | NBSP         |
| Ogham Space Mark             | U+1680    | OSPM         |
| Mongolian Vowel Separator    | U+180E    | MVS          |
| En Quad                      | U+2000    | NQSP         |
| Em Quad                      | U+2001    | MQSP         |
| En Space                     | U+2002    | ENSP         |
| Em Space                     | U+2003    | EMSP         |
| Three-Per-Em Space           | U+2004    | 3/MSP        |
| Four-Per-Em Space            | U+2005    | 4/MSP        |
| Six-Per-Em Space             | U+2006    | 6/MSP        |
| Figure Space                 | U+2007    | FSP          |
| Punctation Space             | U+2008    | PSP          |
| Thin Space                   | U+2009    | THSP         |
| Hair Space                   | U+200A    | HSP          |
| Zero-Width Space             | U+200B    | ZWSP         |
| Zero-Width Non-Joiner        | U+200C    | ZWNJ         |
| Zero-Width Joiner            | U+200D    | ZWJ          |
| Left-To-Right Mark           | U+200E    | LRM          |
| Right-To-Left Mark           | U+200F    | RLM          |
| Line Separator               | U+2028    | LS           |
| Paragraph Separator          | U+2029    | PS           |
| Left-To-Right Embedding      | U+202A    | LRE          |
| Right-To-Left Embedding      | U+202B    | RLE          |
| Pop Directional Formatting   | U+202C    | PDF          |
| Left-To-Right Override       | U+202D    | LRO          |
| Right-To-Left Override       | U+202E    | RLO          |
| Narrow No-Break Space        | U+202F    | NNBSP        |
| Medium Mathematical Space    | U+205F    | MMSP         |
| Word Joiner                  | U+2060    | WJ           |
| Left-To-Right Isolate        | U+2066    | LRI          |
| Right-To-Left Isolate        | U+2067    | RLI          |
| First Strong Isolate         | U+2068    | FSI          |
| Pop Directional Isolate      | U+2069    | PDI          |
| Inhibit Symmetric Swapping   | U+206A    | ISS          |
| Activate Symmetric Swapping  | U+206B    | ASS          |
| Inhibit Arabic Form Shaping  | U+206C    | IAFS         |
| Activate Arabic Form Shaping | U+206D    | AAFS         |
| National Digit Shapes        | U+206E    | NADS         |
| Nominal Digit Shapes         | U+206F    | NODS         |
| Ideographic Space            | U+3000    | IDSP         |
| Zero-Width No-Break Space    | U+FEFF    | ZWNBSP       |

Fix also issue with tooltips in preference dialog, when changing between dark/light mode.

Fix #827, fix #4731, fix #8284, close #13020
2023-02-05 04:20:25 +01:00
Alan Kilborn
07924528c4 Add Begin/End Select in Column Mode command
Fix #12833, fix #12832, close #13034
2023-02-04 04:46:24 +01:00
Don Ho
5aeb8abb5d Fix notepad replacement opening file name containing white space regression
Fix #13032, close #13027
2023-02-02 20:35:45 +01:00
Andreas Heim
5014edfacc Fix some issues in Pascal/Delphi function list parser
Fix #12851, close #12852
2023-02-02 18:38:40 +01:00
mpheath
62a23a8dc7 Fix autocomplete to sort case insensitive issue
Fix #12495, close #12703
2023-02-01 02:04:23 +01:00
Rubat
afacc8338e Fixed dock-able panels not restoring for mono instances
The bug happens when Notepad++ is in the tray, and is restored via mono instance restore mechanism.

Fixes #9454, close #12817
2023-01-31 20:04:03 +01:00
ozone10
05977f6308 Get full product name for debug info for Windows 11
Make it consistent with earlier version of Windows.

Fix #12855, close #12856
2023-01-31 19:58:32 +01:00
ozone10
e003f5b45f Code enhancement: Use dlg resource parameters instead of reSizeTo
Fix #12857, close #12858
2023-01-31 19:54:14 +01:00
Don Ho
409c363e1a Notepad++ v8.4.9 release 2023-01-31 12:55:51 +01:00
ArkadiuszMichalski
92db94a359 [xml] Update polish.xml to 8.4.9
Close #12846
2023-01-27 02:52:38 +01:00
Edditoria
277ea770fe [xml] Update localization: Hong Kong Cantonese...
As at commit f526567 of this repo.
This is a minor update for better presentation.

Close #12848
2023-01-27 02:50:50 +01:00
Karlo-F
e302ea2c9f [xml] Update croatian.xml to 8.4.9
Close #12850
2023-01-27 02:48:37 +01:00
Don Ho
6e7901ecb3 Fix folder display mess in non-western languges under Macro/Run menu
Fix #12670
2023-01-26 23:32:51 +01:00
Latt Hsiang
f526567f70 Update chineseSimplified.xml
Retranslated "Function Completion" and "Word Completion"

Close #12798
2023-01-23 21:29:42 +01:00
Tmp341
4fa9aae254 Update Turkish localization
* According to 81a77f1 and 307fd2f commits.

Close #12838
2023-01-23 21:27:30 +01:00
Andreas Heim
7dab5735c3 Update german.xml
Fix #12839, close #12840
2023-01-23 15:55:34 +01:00
Tmp341
0d22c4d867 Update Turkish localization
* Checked diff between 9809e2f and aa8ae48 commits via [Compare](9809e2f..aa8ae48 (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)).

Close #12718
2023-01-23 04:23:43 +01:00
schnurlos
e8422ec9d9 [xml] Update german.xml to v8.4.9
Fix some text & missing entries.
Included https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12710 from Karlo-F

Close #12728
2023-01-23 04:22:28 +01:00
kubalav
8673880621 [xml] Update Slovak translation
Close #12732
2023-01-23 04:21:02 +01:00
rddim
ee805cadb1 [xml] Update Bulgarian localization
Close #12734
2023-01-23 04:18:35 +01:00
Christophe Mateos
80f8540d1c [xml] Update french.xml
Close #12733
2023-01-23 04:17:08 +01:00
Marcello-mco
e995980349 [xml] Update brazilian_portuguese.xml
Translation for "Add setting for panels to ignore '-nosession' "

Close #12735
2023-01-23 04:15:47 +01:00
Patriccollu
31e2491c2f Update Corsican translation for Notepad++ 8.4.9
Close #12741
2023-01-23 04:13:25 +01:00
~GOLEM~
2402871419 [xml] russian.xml update v8.4.9
Close #12746
2023-01-23 04:11:51 +01:00
yasmise
f351f83290 [xml] update japanese.xml to v8.4.9
Add translations for these commits:
* Add support selection for "EOL to Space" commands (81a77f13a6446cd4e87d34884b5427d2e0595844)
* Add setting for panels to ignore '-nosession' (307fd2fcd2d4dd7a626092e6e1dc1a0467b596f5)

Close #12750
2023-01-23 04:10:24 +01:00
Edditoria
1a85a3d7d6 [xml] Update localization: Hong Kong Cantonese...
As at commit 13dfaa9 of this repo.

Close #12770
2023-01-23 04:05:58 +01:00
Hugo Carvalho
88b303f120 [xml] Update portuguese.xml
For commits: 81a77f13a6446cd4e87d34884b5427d2e0595844 307fd2fcd2d4dd7a626092e6e1dc1a0467b596f5
Other minor corrections

Close #12786
2023-01-23 04:03:51 +01:00
doufu3344
d8a3ea135d Update chineseSimplified.xml
Close #12793
2023-01-23 04:01:38 +01:00
Don Ho
01661acbaa Fix un uncomment undo regression
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12830#issuecomment-1399538801

Fix #12830
2023-01-22 18:31:28 +01:00
Don Ho
eabf5d76c5 Fix cannot undo "Block Uncomment" command in one shot
Fix #12830
2023-01-22 15:55:30 +01:00
Don Ho
04f38a7af0 Fix undo "Insert Date/Time" needs 2 times to get old data back issue
Fix #12831
2023-01-22 03:56:43 +01:00
Don Ho
535bd8fa0e Use wide char version's function directely (part3)
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12613#discussion_r1045153278
2023-01-21 21:28:23 +01:00
ozone10
8add866460 Code enhancement: use conformant code
Fix #12818, close #12819
2023-01-21 04:32:56 +01:00
ArkadiuszMichalski
f8593916a9 Fix CI problem: Some commits are treated as "XML changes only
Use more precise path inside $folders_onejob.

Fix #12810, close #12813
2023-01-20 15:13:03 +01:00
Don Ho
63d1bbae78 Fix v8.4.8 hanging while opening some Pascal files
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12822#issuecomment-1397862706

Fix #12822
2023-01-20 05:05:54 +01:00
Don Ho
6140865351 Use wide char version's function directely (part2)
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12613#discussion_r1045153278
2023-01-19 04:12:29 +01:00
Don Ho
432dcb7f15 Use wide char version's function directely (part1)
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12613#discussion_r1045153278
2023-01-19 02:52:23 +01:00
Andreas Heim
d476a894c2 Make Pascal/Delphi functionList more efficient and more reliable
Fix #12808, close #12811
2023-01-17 16:58:54 +01:00
Don Ho
b280db88dc Add more unit tests for function list
Following the commit 7fad2a62d4
2023-01-17 15:35:38 +01:00
mpheath
7fad2a62d4 Fix exclude functions in comment zones of function list
Fix exclude functions in comment zones in C++, PHP, JavaScript and Pascal.

Fix #12759 (partially - issue 1 & issue 2), close #12799
2023-01-17 02:29:12 +01:00
ArkadiuszMichalski
1652236f32 Add selection support to TAB and Space conversion commands
Fix #12720, fix #12745, close #12739
2023-01-14 17:15:42 +01:00
Don Ho
6c3659fe73 Fix Notepad Replacement bug by simplifying its code
Fix #12775, close #12800
2023-01-14 15:30:31 +01:00
Don Ho
df658a6010 Refactoring: make code more readable 2023-01-13 14:42:29 +01:00
ozone10
662b54e28a Add property sheet in VS project and clean project file
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12773#discussion_r1064351459

Fix #12790, close #12791
2023-01-11 18:34:01 +01:00
ozone10
6078ec7369 Replace macro min/max with std::min/std::max
ref https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11147#issuecomment-1365724574

Close #12784
2023-01-10 21:01:36 +01:00
ozone10
0742410737 Use predefined cursor (hand) for link text
Fix #12772, close #12773
2023-01-10 00:38:00 +01:00
ozone10
b3934afd92 Fix Notpad++ hangs while deleting search results results
When deleting search results use setLexer only when lexer is SCLEX_NULL.

Fix #12555, clos #12765
2023-01-08 02:51:06 +01:00
ozone10
17eba0a374 Fix docking GUI for plugin in light mode
Improve also combobox "v" position in hiDPI.

Fix #12007, close #12754
2023-01-07 14:19:24 +01:00
VinsWorldcom
fd84de1ee4 Fix some incoherent upper/lower case in coffee.xml
Fix lowercase keyWord to proper uppercase KeyWord in APIs/coffee.xml file.

Fix #12762, close #12763
2023-01-06 19:25:11 +01:00
Don Ho
bdb06d5c10 Add JSON5 support
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
2023-01-06 14:25:19 +01:00
ArkadiuszMichalski
13dfaa96a8 Add -Wconversion flag to makefile
Fix #12740, close #12747
2023-01-03 01:23:30 +01:00
Andreas Heim
3596517894 Pascal function list parser enhancement
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
2023-01-02 17:27:17 +01:00
ozone10
3da880b4f8 Align edge with tab (dark mode)
1. Draw frame around tabs in multi-line state (dark mode).
2. Adjust padding for hiDPI.
3. Add initializers.

Fix #12737, close #12738
2023-01-01 13:24:27 +01:00
xomx
c63c0035f3 Fix saving 4GB+ files file size cutting off issue
This commit fixes invalid 64-bit to 32-bit castings of filesize integers.

Fix #12526, close #12736
2022-12-31 17:52:20 +01:00
ozone10
307fd2fcd2 Add setting for panels to ignore '-nosession'
Fix #9710, close #12699
2022-12-30 20:08:10 +01:00
ArkadiuszMichalski
81a77f13a6 Add support selection for "EOL to Space" commands
And rename "Remove Unnecessary Blank and EOL" command to "Trim both and EOL to Space".

Fix #12702, close #12711
2022-12-30 17:26:15 +01:00
Don Ho
3ee8660c23 Replace N++ by Notepad++ and fix some typos
Fix also function "getWinVersionStr" not returning "Windows 11":
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12722#discussion_r1058510340

Fix #12708, fix #12709
2022-12-29 15:38:20 +01:00
ozone10
50e95d2267 Code enhancement: Replace undocumented functions
Fix #12721, close #12722
2022-12-29 15:11:05 +01:00
ozone10
6a8a446eb6 Add dark mode to project panel file relocalizer dlg
Fix #12713, close #12714
2022-12-28 18:08:12 +01:00
ArkadiuszMichalski
3022a2ee2d [xml] Add .psd1 as recognized file extension for PowerShell
Fix #9912, close #12719
2022-12-28 16:47:56 +01:00
ArkadiuszMichalski
1d6fe3ff42 [xml][force compile] Add toolbarIcons.xml to the build process
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12682#issuecomment-1365151173

Close #12712
2022-12-27 19:20:06 +01:00
ozone10
dc3fd93f5a Fix doc switcher not using other icon sets
And add initializers.

Fix #12242, close #12701
2022-12-27 15:16:22 +01:00
ArkadiuszMichalski
d87e996ff2 [xml] Add .mjs as recognized file extension for JavaScript
Fix #10746, close #12704
2022-12-27 02:39:19 +01:00
ozone10
d1565a4705 Fix memory leak, fix warnings, replace GetWindowLong with GetWindowLongPtr
Fix #12697, close #12698
2022-12-26 20:23:19 +01:00
ozone10
2fb7da73d7 Remove "stylerTheme" attribute in config.xml
Fix #12685, close #12691
2022-12-26 15:20:16 +01:00
ArkadiuszMichalski
7fd8eb7f80 [xml] Update VBA keywords
Fix #9389, close #12683
2022-12-26 14:45:07 +01:00
ArkadiuszMichalski
5a1e0898ca Add two missing xml files to makefile
Close #12682
2022-12-26 14:05:38 +01:00
ozone10
90af76353e Fix gcc warnings
Fix #12675, close #12676
2022-12-26 12:01:33 +01:00
Coises
5719558588 Fix sorting not stable issue
Use std::stable_sort instead of std::sort for column selection sorts.

Fix #12678, close #12680
2022-12-26 02:53:13 +01:00
ArkadiuszMichalski
3f0f6a2295 Fix trim operations for selection lines not working issue
Fix #12602, fix #12658, close #12655
2022-12-25 23:37:55 +01:00
ArkadiuszMichalski
ad6b9085dd Fix XML tag-matching not be case-sensitive
Make XML and XHTML tag matching case-sensitive.

Fix #10011, close #12688
2022-12-25 22:49:11 +01:00
Don Ho
3d1aa408dd Enlarge items window in Preferences dialog for better translation display 2022-12-25 18:57:34 +01:00
Don Ho
ac8782db13 Notepad++ 8.4.8 release 2022-12-24 20:58:03 +01:00
Don Ho
13ddc1a339 Fix changing INI styles not working regression
Fix #12696
2022-12-24 17:46:23 +01:00
Don Ho
11f7ba2e0a Fix a typo 2022-12-22 00:12:19 +01:00
Don Ho
529693a559 Add forgotten files into the binary packages 2022-12-21 23:52:53 +01:00
ozone10
caa4827e18 Fix search result not applying new theme
Fix #12588, close #12672
2022-12-20 17:51:34 +01:00
ccuser44
4ae6736c99 Update lua.xml
Remove API which doesn't belong to official LUA, add new LUA API.

Close #12657
2022-12-20 17:15:10 +01:00
ozone10
f10753d2da Make theme portable
Fix 6518f3e4b8 (commitcomment-93601484)

Close #12671
2022-12-20 15:12:53 +01:00
Don Ho
58416114da Add tabContextMenu_example.xml into binary packages 2022-12-19 03:34:24 +01:00
ozone10
3bd262c7ce Add dark autocompletion icons for dark themes
Fix #12549, close #12667
2022-12-19 00:56:57 +01:00
ozone10
be98609801 Fix autocomplete/calltip colors not applied when changing themes
Fix #12514, close #12666
2022-12-19 00:25:45 +01:00
Karlo-F
3012cb192a [xml] Update croatian.xml
Updated croatian.xml to 8.4.8.

Close #12660
2022-12-18 22:26:47 +01:00
ozone10
6518f3e4b8 Fix theme not changed issue after switching dark/light mode in some cases
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
2022-12-18 22:15:53 +01:00
Don Ho
a0c41cc5a5 Revert "Fix Trim Operations not working on selection"
This reverts commit bf34ef0dd568b792627813a4445adf649a5c5ba6 due to bug https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12658
2022-12-18 21:24:24 +01:00
Edditoria
4f7f48a6af Update localization: Hong Kong Cantonese
As at commit 3fcad98 of this repo.

Close #12567
2022-12-16 17:41:21 +01:00
rddim
6a853d7f47 Update Bulgarian localization
Close #12596
2022-12-16 17:38:27 +01:00
Marcello-mco
ef1cbbc7d6 [xml] Update brazilian_portuguese.xml
Close #12516
2022-12-16 14:16:48 +01:00
Don Ho
0fe063605e [xml] Add comment to help reorganizing Macro & Run menu 2022-12-16 14:11:29 +01:00
vlakoff
1a5bd265e5 [xml] Fix some enties in PHP autocompletion
Close #12641
2022-12-16 12:07:59 +01:00
yasmise
264082145a [xml] update japanese.xml to v8.4.8
Add translations for these commits:
* Add localization for Length label in the Customize Maximum Length popup (bc1487881ab15f3d5e5bc6c3fb06ff8168b5fdea)
* Update localization files (11ccc415e71cdd3674dac2595479302452965121)
* Fix localization files (3fcad98883bd719b6be63f234648f5712018548f)
* Fix inconsistencies at OS-forced Notepad++ (v8.4.7) exit (bd4c323d75bbe9a565e9bc31bb522133d78421a6)
* Make tab context menu customizable (aa8ae48b9946d0a26b1e51564246bb1dc981a827)

Close #12542

Also some fix to remove useless space characters.
2022-12-16 11:56:04 +01:00
ArkadiuszMichalski
901f62f948 [xml] Update polish.xml to 8.4.8
Close #12653
2022-12-16 02:50:58 +01:00
ArkadiuszMichalski
cf158689f7 Add Go to settings for "Change History margin" style in Style Configurator
Close #12650
2022-12-16 01:01:38 +01:00
Hugo Carvalho
4f7ae29bfa [xml] Update portuguese.xml
Close #12599
2022-12-16 00:44:06 +01:00
ArkadiuszMichalski
e45c1fc322 [xml] Fix disabled options activated in themes issue
Don't use non-working attributes for WidgetStyle in themes.

Fix #12508, close #12635
2022-12-16 00:24:27 +01:00
xomx
166b9b5c45 [xml] Update czech.xml to v848
Close #12652
2022-12-16 00:06:20 +01:00
Artem Polivanchuk
83dcf5d575 [xml] Update ukrainian.xml
Close #12276
2022-12-16 00:05:12 +01:00
schnurlos
d89f338953 [xml] Update german.xml to v8.4.8
Close #12543
2022-12-16 00:02:05 +01:00
Patriccollu
1b22df5391 [xml] Update Corsican translation for Notepad++ 8.4.8
Close #12561
2022-12-15 23:59:08 +01:00
Christophe Mateos
df911511ac [xml] Update french.xml
Close #12590
2022-12-15 23:56:16 +01:00
~GOLEM~
b97305517a [xml] Update russian.xml to v 8.4.8
Close #12601
2022-12-15 23:52:58 +01:00
ArkadiuszMichalski
4276165bbd Fix themes' inconsistent behaviour after saving
Don't write the fontStyle attribute in the theme if it doesn't exist.

Fix #12642, close #12644
2022-12-15 23:50:11 +01:00
kubalav
109ad868b3 Update Slovak translation
Close #12515
2022-12-15 18:13:59 +01:00
Juan
be2c1bfbce Update spanish.xml to v8.4.7
Close #12573
2022-12-15 18:10:08 +01:00
Juan
9752c9e103 Update galician.xml v 8.4.7
Close #12572
2022-12-15 18:05:38 +01:00
ArkadiuszMichalski
e75bd80693 Fix Go to settings for URL hovered style
Close #12634
2022-12-15 17:13:31 +01:00
Don Ho
c0e2073280 Enhance Properties file: add/improve the syntax folding/highlighting
And make the description more accurate on status bar.

Ref:
3fb9c7195f (r93126447)
2022-12-15 16:21:54 +01:00
Christian Grasser
fc61868cf2 Update to Scintilla 5.3.2 and Lexilla 5.2.1
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
2022-12-15 13:11:17 +01:00
Don Ho
27e19089d2 [xml] Fix xml syntax error 2022-12-15 02:08:31 +01:00
Don Ho
3fb9c7195f Add more keywords and file extentions for languages 2022-12-15 00:56:29 +01:00
Biswapriyo Nath
41ebf9a2ba Make some git related files apply to ini syntax automatically
This .gitconfig file syntax is as similar as .ini file
as documented here[1]. gitmodules[2] and gitattributes[3]
also follow same syntax. The VSCode ini extension[4]
maintain the similarities.

[1]: https://git-scm.com/docs/git-config#_configuration_file
[2]: https://www.git-scm.com/docs/gitmodules
[3]: https://www.git-scm.com/docs/gitattributes
[4]: https://github.com/microsoft/vscode/blob/main/extensions/ini/package.json

Close #12629
2022-12-14 16:54:25 +01:00
ArkadiuszMichalski
bbe70f55a6 [xml][force xml] Switch to Python311-x64 and use prebuild lxml for CI 2022-12-14 16:25:23 +01:00
xomx
4f1aa7b004 Fix crash on Win32 Namespace prefixed file name
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
2022-12-14 15:02:04 +01:00
Don Ho
ee336b24c1 [xml] Add SQL unit tests
And make unit test error message more explicit.

Close #12627
2022-12-13 15:58:37 +01:00
ArkadiuszMichalski
e596baad11 [xml][force xml] Optimize AppVeyor for test files
Close #12628
2022-12-12 21:01:02 +01:00
Massimo Fidanza
a755c56639 Enhance SQL function list
Close #12625
2022-12-11 18:50:22 +01:00
ArkadiuszMichalski
bf34ef0dd5 Fix Trim Operations not working on selection
Trim Operations works for entire document only.
Now selection for Trim Operations is supported.

Fix #12602, close #12626
2022-12-11 14:27:10 +01:00
Don Ho
4e4d9d95ce Fix delimiter selection crash issue
Fix #12384, close #12621
2022-12-10 13:15:40 +01:00
Don Ho
f1e1f6be87 Make Run menu organizable with sub-menu
This commit uses the same mechanism (8e85110b5eba0e7af2ccc3536ec943b6ed3bf446) for organization of macro menu:
Add attribute `FolderName="sub-menu name"` in "Command" node to have the sub-menu.

Close #12617
2022-12-09 16:34:01 +01:00
Don Ho
8e85110b5e Make macro menu organizable with submenu
This PR allows users to add one level of submenu manually for macro command in shortcuts.xml, in order to better organize macro menu commands.
For doing it, `FolderName="my menu 1"` attribut should be added in <Macro> node. Only 1 level of submenu is allowed.

Here is an example:

```xml
    <Macros>
        <Macro name="aa" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="A" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="A" />
        </Macro>
		<Macro name="azerty" Ctrl="no" Alt="no" Shift="no" Key="0" FolderName="words">
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="z" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
		</Macro>
		<Macro name="qwerty" Ctrl="no" Alt="no" Shift="no" Key="0" FolderName="words">
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="q" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="w" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
		</Macro>
        <Macro name="BB" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="B" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="B" />
        </Macro>
        <Macro name="Trim Trailing Space and Save" Ctrl="no" Alt="yes" Shift="yes" Key="83" FolderName="func">
			<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
			<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
		</Macro>
        <Macro name="azerty2" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="z" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="e" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="r" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="t" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="y" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="2" />
        </Macro>
    </Macros>

```

Fix #5349, close #12605
2022-12-07 01:55:15 +01:00
ArkadiuszMichalski
8785b29e21 Update PowerShell keywords
Close #12609
2022-12-06 16:35:24 +01:00
ArkadiuszMichalski
e64d1efe75 [xml] Add autocompletion for PowerShell
Fix #12492, close #12606
2022-12-06 16:30:09 +01:00
xomx
6c9f4cdff3 Fix inconsistencies at OS-forced Notepad++ v8.4.7 exit - 2nd part
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 #12541
Close #12600
2022-12-04 14:07:35 +01:00
ArkadiuszMichalski
f6d36235cd Fix sorting failure in zero-length column mode selection
Support thin rectangular by sort commands.
Ref: https://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONMODE

Fix #12299, close #12595
2022-12-02 19:26:37 +01:00
Don Ho
c63cc6f219 Fix Default Language not working for the 1st empty file with empty session
Fix #12586
2022-12-02 17:57:50 +01:00
Don Ho
f400b682b5 [xml] Include tab cm old layout in comment 2022-12-01 16:19:34 +01:00
Don Ho
c1cb0022c4 Add a forgotten command 2022-12-01 15:21:31 +01:00
ArkadiuszMichalski
adf2ad0f4f Reduce CI build time (for md/txt/log)
Handle md/txt/log by appveyor in a special way.

Close #12592
2022-12-01 03:35:57 +01:00
Don Ho
210efa503f Fix typos in CONTRIBUTING.md
Fix #12571, close #12587
2022-11-30 23:46:31 +01:00
Don Ho
aa8ae48b99 Make tab context menu customizable
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
2022-11-30 15:03:36 +01:00
Arkadiusz Michalski
785b3417b6 Reduce CI (AppVeyor) build time
Reduce traslation PR validation time.

Fix #12457, close #12454
2022-11-29 20:53:55 +01:00
xomx
bd4c323d75 Fix inconsistencies at OS-forced Notepad++ (v8.4.7) exit
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
2022-11-29 15:32:30 +01:00
Don Ho
de5f419314 Fix the tab context menu reload command's state not synchronized
Fix #12579
2022-11-28 19:08:26 +01:00
Arkadiusz Michalski
cffdf79a9b More performance optimization for the Remove Empty Lines command
Close #12544
2022-11-25 18:01:26 +01:00
dinkumoil
891f2ed682 Add function list parser for NppExec plugin's scripting language
Fix #12517, close #12519
2022-11-25 16:29:00 +01:00
xomx
6b34f9ce08 Fix incorrect plugin architecture reports partially
Fix partially #12565

Close #12566
2022-11-25 13:27:01 +01:00
VinsWorldcom
f03381e779 Autocomplete enhancement: sharpen icons
Fix #12549, close #12550
2022-11-23 19:24:08 +01:00
CennoxX
22963f53dd Add Mark Styles to theme DansLeRuSH-Dark
Add missing Mark Styles, remove missplaced tabs.

Fix #12504, close #12551
2022-11-23 18:03:49 +01:00
Don Ho
3fcad98883 Fix localization files 2022-11-22 19:13:09 +01:00
Don Ho
11ccc415e7 Update localization files 2022-11-22 18:32:36 +01:00
Don Ho
4c188c3019 Fix style.xml not remember by light mode 2022-11-22 16:59:50 +01:00
ozone10
e2a1234384 Dark mode enhancement
1. Add "Follow Windows dark/light mode".
2. Remember user's toolbar, tabbar and theme choices for dark mode and light mode separately.
3. Add 2 hidden options for applying tab background color from themes (for both dark mode and light mode).

Fix #9183, fix #9992, fix #10153, fix #10239, fix #10544, fix #10644, fix #11867, fix #10239, close #12466
2022-11-22 01:54:05 +01:00
Arkadiusz Michalski
6803b69c0b Make some styles to be more visible with the current line style
Fix #12506, close #12507
2022-11-14 18:58:40 +01:00
Arkadiusz Michalski
d53ed27bb3 Improve the performance of Remove Empty Lines command
Fix #12462, close #12512
2022-11-14 18:46:18 +01:00
dinkumoil
87a53d1ed2 Add Pascal/Delphi for Function List
Add Pascal/Delphi FunctionList parser and unit tests.

Fix #3664, close #12489
2022-11-14 15:35:10 +01:00
Arkadiusz Michalski
bc1487881a Add localization for Length label in the Customize Maximum Length popup
Fix #12421, close #12429
2022-11-14 00:09:09 +01:00
Arkadiusz Michalski
bac903208c Change foreground color for ERROR in JSON to be more readable
Fix #8715, close #12441
2022-11-13 23:40:57 +01:00
Arkadiusz Michalski
596df7988a Update PowerShell keywords
Fix #5004, close #12491
2022-11-13 18:16:04 +01:00
Arkadiusz Michalski
997349d056 FindReplaceDlg enhancement: Add vertical scroll bar on all combobox
Add WS_VSCROLL to all COMBOBOX in FindReplaceDlg.

Fix #12459, close #12501
2022-11-13 16:01:14 +01:00
Don Ho
d4719a83a6 Use writeLog instead of OutputDebugString for certificate checking
And disable writeLog in  certificate checking (can be enabled manually in case of debugging).

Fix #12490
2022-11-12 18:42:26 +01:00
Don Ho
f6b1cf3e77 Update certif/sha256 verification 2022-11-12 02:28:30 +01:00
Arkadiusz Michalski
67256a107b Update CPP keywords
Fix #11936, close #12477
2022-11-10 14:40:37 +01:00
Arkadiusz Michalski
238aadb87f Adjust build GCC
Close #12485
2022-11-10 14:02:44 +01:00
Arkadiusz Michalski
f4419f2be9 Fix CI 32 build failure in GCC
And update appveyor.yml and BUILD.md to reflect the migration to MSYS2

Fix #12447, close #12450, close #12481
2022-11-09 19:47:35 +01:00
Don Ho
c8816e08f7 Notepad++ 8.4.7 release 2022-11-08 12:42:39 +01:00
~GOLEM~
e5708bf3ea Hotfix russian.xml v8.4.7
Fix wrong IDs.

Close #12452
2022-11-08 04:14:34 +01:00
Thomas De Rocker
e53aefcf87 Update dutch.xml
Close #12455
2022-11-08 04:12:13 +01:00
Karlo-F
a12168c3bb Update croatian.xml to 8.4.7
Close #12456
2022-11-08 04:09:37 +01:00
Biswapriyo Nath
f3f615d522 Set PKGBUILD and APKBUILD syntax highlighting as shell script
Both PKGBUILD and APKBUILD files are actually shell script. See
* https://wiki.archlinux.org/title/PKGBUILD
* https://wiki.alpinelinux.org/wiki/APKBUILD_Reference

Close #12445
2022-11-01 22:43:56 +01:00
Harvey R
6f67656f8c Make solarized.xml up-to-date with stylers.xml
Fix #12425, close #12444
2022-11-01 22:23:29 +01:00
Don Ho
713117c68d Rename a function 2022-11-01 15:18:24 +01:00
SinghRajenM
5b9cd0b2e5 Fix plugin admin search issue
Fix #12375, close #12376
2022-11-01 14:59:59 +01:00
Tianxiao Cao
0bd8f6f7e0 Update spanish.xml
Fix #12268, close #12277
2022-11-01 14:25:09 +01:00
Artem Polivanchuk
c96be1bbe4 Update belarusian.xml
Close #12379
2022-11-01 13:59:32 +01:00
Don Ho
1d98d98300 Fix crash regression due to ABI incompatibility
Fix the regression due to the following commit:
3e9413d615
Modify type of "PositionCR" to "int64_t" from "long" again, to keep ABI compatible to plugins.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12327#issuecomment-1297906305
2022-11-01 12:52:06 +01:00
Arkadiusz Michalski
ae32f34fb3 Add minlength attribute for HTML
Fix #12416, close #12430
2022-10-31 11:49:29 +01:00
Don Ho
3e9413d615 Restore Scintilla header files
Restore Sci_Position.h & ScintillaStructures.h (ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12327#issuecomment-1296020276)
And add R styles.
2022-10-31 01:52:42 +01:00
Christian Grasser
b502266e8d Update to scintilla 5.3.1 and lexilla 5.2.0
Close #12327
2022-10-31 00:45:13 +01:00
Edditoria
22489a1311 Update localization: Hong Kong Cantonese
As at commit 2f080d8 of this repo.

Close #12428
2022-10-30 23:31:55 +01:00
rddim
2f080d82af Update Bulgarian localization
Close #12343
2022-10-30 17:22:55 +01:00
Don Ho
b4c5c14cd6 Enlarge a control for the translation 2022-10-30 17:20:52 +01:00
Marcello-mco
9df5859d06 Update in Brazilian Portuguese translation
Close #12335
2022-10-30 15:37:58 +01:00
xomx
6000f3bb21 Fix session.xml emptying by forced Windows update restart
This fixes both the long standing problem with the emptying of the session.xml file by forced Windows Update restart/shutdown and some potential Notepad++ crashes caused by possible main Notepad++ window blocking at exit.

Two main changes to the original design:
- WM_QUERYENDSESSION is not used anymore for the tidy-up ops and it always quickly returns TRUE/FALSE to the system as it should.
- there is now a safe-guard flag for the session.xml saving at N++ exit, which prevents otherwise possible incorrect overwriting in case of multiple "endsession" messages.

Fix #9850, fix #12389, close #12388
2022-10-30 14:06:33 +01:00
Matteo Concato
ed3189e00b Update Italian.xml
Fix #12265, close #12267
2022-10-30 13:25:52 +01:00
Hugo Carvalho
2fd55ff11d Update portuguese.xml
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12269

Close #12274
2022-10-30 13:15:09 +01:00
kubalav
4cb312da58 Update Slovak translation
Close #12341
2022-10-30 13:10:56 +01:00
Patriccollu
8c7142ddb8 Update Corsican translation for Notepad++ 8.4.7
Close #12346
2022-10-30 12:59:35 +01:00
A. Regnander
b9bb1706b2 Update swedish.xml
Close #12345
2022-10-30 12:55:09 +01:00
yasmise
20771fe55a update japanese.xml to v8.4.7
Add translations for these commits:
* Make large file limit (for styling) configurable (8ff003412acc9b55413040b27110bf7ef887300b)
* Add tooltips in performance section to make features more explicit (c02c23b7d431fe27ebad41619df4c2b4f1ea3a9a)
* Enhance Large File Restriction UI (6755daf223299ffcd49a8b6ca233c79627578f05)
* Add "Allow clickable link" option in large file restriction (cd6a6ac3bb4d46a9ddd53e3bde2002db00ac00f5)

Close #12361
2022-10-30 12:53:01 +01:00
~GOLEM~
39e0aa37b5 Update russian.xml v8.4.7
Close #12362
2022-10-30 12:50:24 +01:00
IoeCmcomc
32bb1457ca Update Vietnamese translation
Close #12365
2022-10-30 12:43:31 +01:00
Sapziller
0ce2c20835 Update korean localization file
Update korean 8.4.5 -> 8.4.6

Close #12409
2022-10-30 12:34:15 +01:00
ArkadiuszMichalski
b8a05edcfa Update polish.xml to 8.4.7
Update polish.xml to 8.4.7 according to the last commit.

Close #12413
2022-10-30 12:31:43 +01:00
xomx
a54cc861bf Update czech.xml to v8.4.7
Close #12420
2022-10-30 12:29:15 +01:00
Don Ho
5867025842 Fix 32 bits build error 2022-10-30 11:47:45 +01:00
Don Ho
513ee3e3fe Use Scitilla default 64 bits symbol 2022-10-30 01:09:52 +02:00
ArkadiuszMichalski
c3ffe35492 Enhance "Allow clickable link" option for Large File Restriction
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12369#issuecomment-1287821244.
2022-10-28 12:37:32 +02:00
Don Ho
b4f569b8ba Add back an misdeleted entry 2022-10-27 13:18:02 +02:00
Don Ho
50a50cce3c Remember Column Editor settings through the sessions
Close #12386
2022-10-25 00:20:54 +02:00
Don Ho
cd6a6ac3bb Add "Allow clickable link" option in large file restriction
And enhance large file restriction UI

Close #12369
2022-10-22 14:31:19 +02:00
Don Ho
7e080a46bb Fix brace match not working in Large File Restriction
Fix also the highlight remaining issue while Large File Restriction disabled.
2022-10-20 16:19:49 +02:00
Don Ho
6755daf223 Enhance Large File Restriction UI
1. Rename some labels to be more explicit.
2. Add a tooltip for "Deactivate Word Wrap globally".
3. Unchecking "Enable Large File Restriction" removes the sub-restrictions.
2022-10-20 05:07:17 +02:00
SinghRajenM
546745fe34 Increase hash font height 2022-10-18 04:22:11 +02:00
Don Ho
c02c23b7d4 Add tooltips in performance section to make features more explicit
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12310#issuecomment-1279826809
2022-10-17 17:09:02 +02:00
xomx
1be0044663 Installer enhancement: prevent arm64 installer from installing on non ARM64 system
Fix #12320, close #12331
2022-10-16 01:38:30 +02:00
xomx
a6a1442bab Installer enhancement: remember "Don't use_%APPDATA%" option
Added detection of the "doLocalConf.xml" trigger-file from the previous installation.

Fix #12202, close #12326
2022-10-15 23:38:50 +02:00
Don Ho
8ff003412a Make large file limit (for styling) configurable
Background: because styling large file can cause the performance issue, 200 MB (and bigger) file is not applied to its language (if any) while loading.
This PR makes large file restriction for styling and for other features (smart highlighting, brace match, etc...) configurable via the section Performance of Preferences dialog.

Fix #11389, fix #12260, fix #11670, close #12310
2022-10-15 18:18:06 +02:00
Don Ho
9bec8f5460 Fix extra background colors on printing due to Change History
Patch ref:
https://sourceforge.net/p/scintilla/bugs/2358/#a3e3

Fix #12281
2022-10-11 02:24:35 +02:00
Anklebitter
49e5a17377 Enhance "Go To" dialog: update line/position data dynamically
Fix #12284, close #12302
2022-10-09 17:35:37 +02:00
Don Ho
a26599794c Refactoring & optimizing open/save large files time 2022-10-09 01:08:22 +02:00
Christian Grasser
f57c69aac6 Fix output from makefile and correct cmake for c++20
Close #12297
2022-10-07 02:58:44 +02:00
Don Ho
e73fca5a85 Use c++20 function ends_with()
Close #12294
2022-10-06 20:49:23 +02:00
ozone10
bcaf0f00b5 Update CI env to have GCC 12 for using c++20
1. Update Makefile to use c++20.
2. Update appveyor.yml to use MSYS2 (GCC 12).

Close #12292
2022-10-06 17:34:19 +02:00
Don Ho
3b8446d8ce Fix CI system error due to the project build env update 2022-10-06 14:17:38 +02:00
Don Ho
3cbbb42933 Revert "Fix CI system error due to the project build env update"
This reverts commit c64049a1e64f9f8145bcd0847e914f8b05437739.
2022-10-06 14:15:16 +02:00
Don Ho
c64049a1e6 Fix CI system error due to the project build env update
And use C++20 for string::ends_with() function.
2022-10-05 17:28:21 +02:00
SinghRajenM
4b539b4d5d Build project using C++20
Fix #12232, close #12233
2022-10-05 15:44:56 +02:00
Don Ho
4c96f86979 Update build environment
Update MS Visual Studio to 2022 and its platform toolkits to v143.
2022-10-05 13:52:55 +02:00
Harvey R
06a082d35f Add Python missing option in theme files
Fix #12066, close #12070
2022-10-05 04:19:21 +02:00
Robert Di Pardo
a610387fb4 Fix language detected from content not applied if default language is set
Properly handle missing file extensions in `Buffer::setFileName`

Before 6263ce5, the user-preferred default language would apply to
files with no extension, but got overwritten by `L_TEXT` when the
extension was present *but unknown*.

This is why the `buf->_lang == L_TEXT` condition failed *only for
buffers with _no_ extension*.

Fix #11504, close #12286
2022-10-05 00:56:15 +02:00
Don Ho
af0bc2e113 Revert "Fix detected language not being applied issue"
This reverts commit 6263ce5dece595543bbfaa4207391075ae3a212a for fixing the regression.

Fix #12226, fix #12253
2022-10-05 00:06:57 +02:00
xomx
23fc940a27 Enhance N++ EndSession logging
To be able to distinguish:
- different types of Windows system restart/shutdown
- WM_CLOSE messages after previous WM_QUERYENDSESSION

Close #12257
2022-10-04 17:36:49 +02:00
Christian Grasser
20b14b8e4b Updated nlohmann json to 3.11.2
Updated nlohmann json to 3.11.2 from https://github.com/nlohmann/json/releases/download/v3.11.2/json.hpp

Close #12271
2022-10-04 03:46:57 +02:00
Christian Grasser
99321d0d4a Update with boost to 1.80.0
Update with boost 1.80.0 from https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.7z

Close #12273
2022-10-04 03:43:39 +02:00
chcg
2041c515c4 Update appveyor.yml
Use newer python 3.10 instead of 3.8 for xml checks

Close #12272
2022-10-04 03:40:43 +02:00
Don Ho
4d50692809 Add new API for getting bookmark ID
ref: https://community.notepad-plus-plus.org/topic/23541/notepad-v8-4-6-release/22?_=1664842498334
2022-10-04 03:31:09 +02:00
Don Ho
83ee8f09bf Clean up NPPM_ALLOCATEMARKER API 2022-10-03 01:32:11 +02:00
Don Ho
11884bd97f Fix long filters get truncated in Find in Files feature
Increse filter size from 256 to 512 bytes.

Fix #12041
2022-09-30 16:14:15 +02:00
Chukwudumebi Smarty
dfa6c19d87 Make ESC Key abort "Move to Recycle Bin" confirmation prompt
Fix #12117, close #12239
2022-09-29 16:49:53 +02:00
Adrian
4b3ee9c4ea Fix line hiding issues
Fix #12184, fix #8149, close #12250
2022-09-29 15:32:58 +02:00
Don Ho
6750d4dbbc Notepad++ release 8.4.6 2022-09-29 02:57:44 +02:00
Don Ho
e3a5f76af0 Fix clickable link bad display regression
Fix #12219, close #12238
2022-09-25 19:45:48 +02:00
SinghRajenM
2d4af44f54 Fix plugin admin UI overlapping
Fix #12229, close #12230
2022-09-25 19:11:13 +02:00
Don Ho
155d75414b Update localization files 2022-09-25 16:27:42 +02:00
Matteo Concato
6d5efab7de Update italian.xml
Close #12215
2022-09-25 04:45:32 +02:00
Edditoria
bfc7c302c4 Update localization: Hong Kong Cantonese
As at commit 466053d of this repo.

Close #12217
2022-09-25 04:43:44 +02:00
~GOLEM~
7df3d73621 Update russian.xml hotfix for v8.4.6
Close #12218
2022-09-25 04:41:30 +02:00
chcg
32b6cae4bf Update BUILD.md
Updated build description for lexilla build

Close #12235
2022-09-24 23:28:22 +02:00
Christian Grasser
0ce3bc08df Fix rebol syntax quote issue
see http://www.rebol.com/r3/docs/guide/code-syntax.html#section-3
setREBOLLexer seems to use wrong, non ASCII single quote, see also https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/lexilla/lexers/LexRebol.cxx#L38
found by clang tidy warning

Close #12221
2022-09-24 19:40:52 +02:00
Don Ho
18971709f5 Change colours for applying to tab more distiguishable
And simplify the code.

Ref: https://community.notepad-plus-plus.org/topic/23513/notepad-v8-4-6-release-candidate-2/3?_=1663982940040

Fix partially #12223
2022-09-24 19:35:08 +02:00
Karlo-F
466053dc99 Update crotian.xml to 8.4.6
Close #12210
2022-09-22 19:49:55 +02:00
xomx
0c121a1725 Update czech.xml to v8.4.6
Ciose #12212
2022-09-22 19:46:05 +02:00
Don Ho
848b412cf7 Fix Change History margin visual glichy under dark mode
Ref: https://community.notepad-plus-plus.org/topic/23510/notepad-v8-4-6-release-candidate/2?_=1663857801779
2022-09-22 19:28:08 +02:00
rddim
5a24dc77f9 Update Bulgarian localization
Close #12118
2022-09-22 01:15:25 +02:00
Matteo Concato
0dd9756740 Update italian.xml to 8.4.6
Close #12197
2022-09-22 01:07:42 +02:00
kubalav
1d07d4717c Update Slovak translation
Close #12123
2022-09-21 20:23:46 +02:00
ArkadiuszMichalski
36bfe59d2a Update polish.xml to 8.4.6
Update polish.xml to 8.4.6 according to the last commit.

Close #12206
2022-09-21 20:21:11 +02:00
Christophe Mateos
b48af08e8c Update french.xml
Close #12176
2022-09-21 18:19:19 +02:00
Tmp341
a064015c01 Update Turkish localization
* According to 2258274, 059bca3, 67ab4d5, 7d5516e, 8519003, and 9809e2f commits.

Close #12115
2022-09-21 17:45:17 +02:00
~GOLEM~
d5a89ed922 Update russian.xml v8.4.6
Close #12173
2022-09-21 17:43:02 +02:00
schnurlos
514c9a4629 Update german.xml
Close #12168
2022-09-21 17:40:53 +02:00
Hugo Carvalho
26f80a7d31 Update portuguese translation
Close #12167
2022-09-21 17:38:34 +02:00
yasmise
aebab9330e Update japanese.xml to v8.4.6
Close #12162

Add/Update translations for these commits:
* Unify the terms "Fold/unfold" on menu (15e5da6f7d0c5ef7563e1127c84f3778c75607e7)
* Add setting colour ability for individual tab (42d863dd9f46768edee3013bfd232a27597f8ef9)
* Change to menu name to the "normalized" terms on Internet (aad36afc6bf4177ed6532086acf5f393de1f1b8f)
* Revamp tab context menu (6322562cf82873d1403a0a297d114c3d7304b30e)
* Complete localization files with missing entries (4cb63ff011064dfee1a1b5a25e47311fa726f33b)
* Add Change History markers for saved/unsaved/undone modification (fc32fbdcce371bb669c9361d62c959b1b61e33f0)
2022-09-21 17:35:47 +02:00
Patriccollu
b54481350e Update Corsican translation for Notepad++ 8.4.6
Close #12136
2022-09-21 17:33:40 +02:00
Marcello-mco
e0afc7a281 Update brazilian_portuguese.xml
Close #12119
2022-09-21 17:30:25 +02:00
popcorner
c3c410506b Update chineseSimplified.xml
Close #12096
2022-09-21 17:26:23 +02:00
ozone10
b29a9ce142 Code enhancement - removing gcc warning
Fix conversion-null, nonnull-compare, dangling-else, address warnings, add initializers.

Fix #12198, close #12199
2022-09-20 16:19:58 +02:00
ozone10
d3b630841e Fix horizontal bar showing issue while resizing document list's height
Take into account vertical scrollbar when resizing document list.

Fix #12191, close #12192
2022-09-20 03:39:03 +02:00
Don Ho
6a801cc0a4 Make Change History margin colour configurable
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12165#issuecomment-1250899679
2022-09-19 19:24:57 +02:00
Christian Grasser
ead6fb6b8f Fix gcc linux build and cmake build issues under ubuntu
1. Fix gcc build issues under ubuntu linux due to upper/lower case filename issues.
2. corrected cmake build issues.

Close  #12188
2022-09-19 01:42:49 +02:00
ozone10
1ac1b1150d Code enhancement
Fix some conversion-null, nonnull-compare, unknown-pragmas, switch warnings, add initializers.

Fix #12179, close #12180
2022-09-19 01:38:26 +02:00
Don Ho
fc32fbdcce Add Change History markers for saved/unsaved/undone modification
Implement Change History by using the new abilities of Scintilla v5.3.0.

Fix  #12164, close #12165
2022-09-18 23:57:36 +02:00
ozone10
3295cc8d2c Code improvement
Fix warnings ,some conversion-null, format, unused-but-set-variable, class-memaccess.
Add initializer.

Fix #12171, close #12172
2022-09-15 02:07:38 +02:00
Don Ho
4cb63ff011 Complete localization files with missing entries
Fix #12163
2022-09-15 00:07:17 +02:00
ozone10
43c8d8115f Code improvement, remove unnecessary part
Fix some conversion-null, unused-* warnings, add initializer.

Fix #12151, close #12152
2022-09-13 15:42:55 +02:00
blu3mania
84b8c64944 Fix NPPN_DARKMODECHANGED wrong return value to plugins
Send NPPN_DARKMODECHANGED notification with hwndNpp as hwndFrom, so the documented API info on https://npp-user-manual.org/docs/plugin-communication/#nppn-darkmodechanged is correct. Previously it sends 0 which is of no use to plugin authors.

Fix #12144, close #12160
2022-09-13 02:10:07 +02:00
blu3mania
d03b11ebf8 Add dark mode support to ColourPicker/ColourPopup's ChooseColor dialog
Fix #12148, close #12158
2022-09-13 01:15:20 +02:00
Christian Grasser
1646ea6139 Update to scintilla 5.3.0 and lexilla 5.1.9
Close #12045
2022-09-12 19:02:55 +02:00
Don Ho
9455684b42 Renumber Notepad++ marks for preparing Scintilla 5.3.0's integration
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12045#issuecomment-1229195785
2022-09-12 18:46:25 +02:00
Don Ho
6322562cf8 Revamp tab context menu
Add sub-menu in tab context menu so it will be less cluttered.

Fix #12147, close #12150
2022-09-12 17:01:50 +02:00
Don Ho
aad36afc6b Change to menu name to the "normalized" terms on Internet
Fix #12146
2022-09-11 23:06:30 +02:00
ozone10
2da5c5b393 Code enhancement
Fix parentheses, misleading-indentation, sign-compare, some conversion-null warnings.

Fix #12139, close #12140
2022-09-11 18:22:51 +02:00
spaxio
42d863dd9f Add setting colour ability for individual tab
Fix #2271, close #12098
2022-09-11 17:07:11 +02:00
ozone10
233c697183 Fix gcc reorder warnings
Fix #12132, close #12133
2022-09-09 18:08:08 +02:00
Don Ho
82055985f3 Add Plugin list repository link and its version in PluginAdmin dialog
And add the localization entries.
2022-09-09 17:56:39 +02:00
Don Ho
a5c201f79c Fix Windows 11 OS version not detected in getWindowsVersion
Fix #12100
2022-09-09 11:14:32 +02:00
Sweepi
ce85323a9e Add last supported version for Win2k in SUPPORTED_SYSTEM.md
6.6.9 is the last version to "offically" support Win2k, although 6.7.3 also works if i remember correctly.

Close #11971
2022-09-08 03:48:02 +02:00
Don Ho
5a94263bee Add incompatible (unloaded) plugin list in Plugin Admin
The plugins which are not compatible but their newer versions are available are not only on the incompatible list, but also on the Updates list.

Fix #12069, close #12105
2022-09-08 03:23:37 +02:00
SinghRajenM
85d7215d9b Fixes security vulnerability
Fix #12113, close #12114
2022-09-07 20:31:03 +02:00
Don Ho
15e5da6f7d Unify the terms "Fold/unfold" on menu
Rename menu item from "collapse" to "fold".

Fix #12035, close #12094
2022-09-07 18:28:51 +02:00
ozone10
ebe7648ee1 Code improvement, remove unnecessary part
Fix pedantic warnings, add initializers.

Close #12093
2022-09-07 17:49:56 +02:00
Don Ho
ea1e9295eb Notepad++ v8.4.5 release 2022-09-07 05:12:29 +02:00
Karlo-F
6d36d9d398 Update croatian.xml to v8.4.5
Close #12076
2022-09-03 03:48:42 +02:00
ozone10
4ddd2d4a46 Remove unneeded subclass
Fix #12086, close #12087
2022-09-03 03:46:37 +02:00
ozone10
95cb564c27 Don't use memset to initialize tTbData
Fix #12084, close #12085
2022-09-03 03:22:46 +02:00
ozone10
39ab226c8c Fix button text in dark mode regression from Wine crash fix
ref: https://community.notepad-plus-plus.org/topic/23432/notepad-v8-4-5-release-candidate/4?_=1662157237187

Close #12083
2022-09-02 23:09:32 +02:00
Hugo Carvalho
1aa93bd85a Update portuguese.xml
Commits: 7d5516e0a8ef69d04165926255828cc70c0c3811 851900334cc9699818230ad686ead79a3ecc79c0 9809e2fc2cb9aa2ace06a7cdd5b89b49e27e8927
Other minor corrections

Close #12068
2022-08-31 21:05:12 +02:00
Don Ho
d6ca0198e1 Revert "Update portuguese.xml"
This reverts commit b96b7ef1bee10f3764956d23a58a31213403081d.
2022-08-31 17:42:18 +02:00
Thomas De Rocker
27e489623c Update dutch.xml
Close #12002
2022-08-31 14:51:10 +02:00
yasmise
1df1954eb2 Update japanese.xml
Add translations for these commits:
* Add an option for hiding the + ▼ ✕ from the menu bar (7d5516e0a8ef69d04165926255828cc70c0c3811)
* Add cycling function hints ability by ALT-UP/DOWN shortcuts (851900334cc9699818230ad686ead79a3ecc79c0)
* Add option to turn off selecting text when Field dialog is invoked (9809e2fc2cb9aa2ace06a7cdd5b89b49e27e8927)

Close #11967
2022-08-31 14:49:07 +02:00
Hugo Carvalho
b96b7ef1be Update portuguese.xml
Commit: 7d5516e0a8ef69d04165926255828cc70c0c3811
Other minor corrections/improvements

Close #12004
2022-08-31 14:47:44 +02:00
Sapziller
d937e62eed Update korean.xml to 8.4.5
Close #12008
2022-08-31 04:21:34 +02:00
ArkadiuszMichalski
31f8a57503 Update polish.xml to 8.4.5
Update polish.xml to 8.4.5 according to the last commit.

Close #12061
2022-08-31 02:46:52 +02:00
przemo20
786e377afb Update polish.xml
Close #11998
2022-08-31 01:15:49 +02:00
Patriccollu
e866715492 Update Corsican translation for Notepad++ 8.4.5
Close #11930
2022-08-30 23:38:00 +02:00
Edditoria
be1c1ae622 Update localization: Hong Kong Cantonese...
As at commit 2e66fe0 of this repo.

Close #11985
2022-08-30 23:34:45 +02:00
~GOLEM~
1014a5517b Update russian.xml to v8.4.5
Close #11958
2022-08-30 21:30:22 +02:00
xomx
51b05136de Update czech.xml to v8.4.5
Close #12059
2022-08-30 21:27:35 +02:00
rddim
3856f765f9 Update Bulgarian localization
Close #11974
2022-08-30 20:10:10 +02:00
Marcello-mco
5a2db2610e Update brazilian_portuguese.xml
Close #11928
2022-08-30 19:48:53 +02:00
kubalav
4444d2409f Update Slovak localization
Slovak translation for commit 7d5516e

Close #11972
2022-08-30 19:29:33 +02:00
Don Ho
5f60ee70dc Fix a grammar error & add an easter egg
Fix #12056
2022-08-30 19:25:35 +02:00
Ashfaaq18
adcace3380 Improve performance for "Find in Files" and ""Find all in..."
Fix #11878, close #12048
2022-08-29 20:32:31 +02:00
doug1234
9809e2fc2c Add option to turn off selecting text when Field dialog is invoked
Fix #11988, close #11989
2022-08-29 05:26:54 +02:00
Christian Grasser
6a33bf6c4c Update to Scintilla 5.2.4 and Lexilla 5.1.8
Close #12022
2022-08-27 03:49:39 +02:00
Robert Di Pardo
6263ce5dec Fix detected language not being applied issue
Fix detected language not being applied if Default languge is set in Document settings.
Don't override detected file type with default language:

When loading files with no extension from disk, remove the extra condition so the default language setting does not take precedence over the auto-detected file type (if any)

Fix #11504, close #11992
2022-08-27 02:35:26 +02:00
VinsWorldcom
851900334c Add cycling function hints ability by ALT-UP/DOWN shortcuts
Fix #11950, close #12017
2022-08-24 03:04:37 +02:00
Robert Di Pardo
30f027b6a5 Fix Notepad++ crash due to calling NPPM_GETLANGUAGENAME with WPARAM -1
Fixes #12009, close #12011
2022-08-23 03:03:26 +02:00
ozone10
f2c4ecd7e1 Fix crash on Wine
Fix #11941, close #11961
2022-08-14 18:20:22 +02:00
xomx
2e66fe0007 Fix drag n drop documents crash between 2 instances
Fixes uninitialized CmdLineParamsDTO parameters:
uninitialized _udlName could cause crash when drag&drop files between different Notepad++ instances.

Fix #11976, close #11977
2022-08-04 17:32:45 +02:00
Don Ho
70660eb608 Add carret block after option
Fix #11944
2022-07-30 16:28:31 +02:00
Don Ho
7d5516e0a8 Add an option for hiding the + ▼ ✕ from the menu bar
Fix #11945
2022-07-30 02:26:27 +02:00
Don Ho
6077604380 Fix erasing part of content make hanging issue
Deletion of one line where there's folding didn't show the hiden lines in the old version of Scitilla.
It's not anymore the case in the new (current used) version of Scintilla (which manages such situation correctly).
Therefore the redundant notification for the current used version of Scintilla can be removed, and it solves hanging problem.

Fix #10193, close #11946
2022-07-26 15:43:37 +02:00
Don Ho
7a64fd5161 Enhance very long line's performance
When document contains a very long line and the wrapped feature is ON, switch off then switch back to this document could take times.
This commit reduce the delay largely while switching into the document with very long line.

Fix #11942
2022-07-25 05:35:30 +02:00
Don Ho
13350a3d29 Fix minor error 2022-07-24 05:34:26 +02:00
Don Ho
f85a9c45e9 Add reduce mode in Find/Replace dialog
Add a button on the bottom-right corner of Find/Replace dialog to switch between collapsed & complete mode.

Fix #11780, close #11937
2022-07-23 01:07:47 +02:00
ozone10
bbf3adb9bb Fix dark mode visual glichy in explorer panel under Windows 8.1
Add checks for 'DarkMode_Explorer' theme style

Fix #11898, close #11913
2022-07-22 04:07:48 +02:00
Filipe DA SILVA
e90284ea4b Fix various typo in French localization file
Close #11924
2022-07-16 18:10:51 +02:00
Don Ho
08acfe99b8 Notepad++ v8.4.4 - Happy Users' Edition
Now Notepad++ happy users are also allowed to get a refund!
2022-07-15 18:13:09 +02:00
ArkadiuszMichalski
b77faf77af Update polish.xml to 8.4.4
Update polish.xml to 8.4.4 according to the last commit.

Close #11922
2022-07-15 16:24:39 +02:00
~GOLEM~
0379a5deb5 Update russian.xml to v8.4.4
- fix wrongs description

Close #11921
2022-07-15 16:22:41 +02:00
Hugo Carvalho
dcf8b790a1 Update portuguese.xml
For commit: 059bca3315dbd71fbf235c8bc87eaacbd87a3cec

Close #11888
2022-07-14 20:51:13 +02:00
kubalav
49f6ee389c Update Slovak translation
Close #11892
2022-07-14 16:35:48 +02:00
rddim
1834662ef9 Update Bulgarian localization
Close #11909
2022-07-14 16:33:24 +02:00
~GOLEM~
a44b9b6cf9 Update russian.xml
Close #11914
2022-07-14 16:30:08 +02:00
yasmise
bf6294a7ee Update japanese.xml
Add translation for this commit:
* Add some shortcuts in Styler Configurator to preferences dialog (67ab4d55276ae99e632f19d1035de70cc022e3b9)

Close #11917
2022-07-14 16:28:10 +02:00
schnurlos
68e35dadf6 Update german.xml
Following 67ab4d5527

Close #11918
2022-07-14 16:26:39 +02:00
Don Ho
67ab4d5527 Add some shortcuts in Styler Configurator to preferences dialog
Shortcuts to Preferences dialog are added only for the following styles (Global Styles):

1.  "Current line background colour"
2.  "Caret colour"
3.  "Edge colour"
4.  "Line number margin"
5.  "Bookmark margin"
6.  "Fold"
7.  "Fold active"
8.  "Fold margin"
9.  "Smart Highlighting"
10. "Tags match highlighting"
11. "Tags attribute"
12. "Mark Style 1"
13. "Mark Style 2"
14. "Mark Style 3"
15. "Mark Style 4"
16. "Mark Style 5"
17. "URL hovered"
18. "EOL custom color"

Fix #11890, close #11904
2022-07-12 18:57:20 +02:00
Don Ho
57bb83846b Add "Notepad++ Online User Manual" into the shortcut mapper 2022-07-11 03:36:45 +02:00
Don Ho
e6fe568bbf Fix crash during Search result
Fix #11883, close #11889
2022-07-09 18:37:30 +02:00
Don Ho
c7c5db7c51 Notepad++ v8.4.3 - Unhappy Users' Edition 2022-07-08 04:26:57 +02:00
György Bata
c284534e08 Hungarian translation update for 8.4.3
Close #11876
2022-07-08 02:05:55 +02:00
ArkadiuszMichalski
bcb1035948 Update polish.xml to 8.4.3
Close #11880

Update polish.xml to 8.4.3 according to the last commit.
2022-07-08 02:03:36 +02:00
Don Ho
c63169eabc Restore Search result folding's old behaviour
Ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11814#issuecomment-1175359785
2022-07-06 01:53:17 +02:00
xomx
5bab2b5746 Update czech.xml for v8.4.3
Added only the id 6906 - "Search Result window: show only one entry per found line".

Close #11871
2022-07-05 19:48:13 +02:00
Don Ho
0b5785cbec Fix a fording perf issue in Search result windows
Ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11814#issuecomment-1174732649

Fix #11814
2022-07-05 19:43:16 +02:00
rddim
2a7552c882 Update Bulgarian localization
Close #11850
2022-07-04 05:00:33 +02:00
Karlo-F
09df963a1a Update croatian.xml
Close #11859
2022-07-04 04:57:47 +02:00
Don Ho
de75f56676 Processing WM_CLOSE with the right return value
Ref:
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close
2022-07-04 04:52:06 +02:00
Don Ho
5c6fbd3310 Fix "Style Configurator..." command makes Notepad++ crash
If "stylers.xml" is not loaded, launching "Style Configurator..." command will make Notepad++ crash.
This commit fix this issue.

Fix #11812
2022-07-02 17:19:17 +02:00
Edditoria
4a32234e5f Update localization: Hong Kong Cantonese
As at commit ed4bb1a of this repo.
Also follow-up the PR #11802

Close #11852
2022-06-30 23:25:10 +02:00
kubalav
965f812234 Update Slovak translation to 8.4.3
Close #11864
2022-06-30 18:58:33 +02:00
popcorner
9781b34bc0 Update chineseSimplified.xml
Close #11858
2022-06-30 18:00:45 +02:00
Christophe Mateos
1bd22fae7c Update french.xml
Close #11849
2022-06-30 17:56:04 +02:00
Don Ho
059bca3315 Fix 1 entry per line in Search result UTF8 marked wronly issue
Fix CJK, Hebrew, Arabic and other Languages in UTF8 marked wronly issue in in Search result while "1 entry per line" option enabled.
The option in question can be enabled in RTL mode now with this commit.
2022-06-30 17:29:39 +02:00
Don Ho
980cbcccc6 Fix search results are wrongly positioned in CJK languages
Fix  #11855
2022-06-30 03:10:07 +02:00
Christian Grasser
ed4bb1a93e Update lexilla to 5.1.7 & Scintilla to 5.2.3
Use new interfaces SCI_FORMATRANGEFULL, SCI_GETTEXTRANGEFULL, SCI_FINDTEXTFULL from scintilla 5.2.3

Close #11734
2022-06-28 16:19:19 +02:00
Artem Polivanchuk
3a2ef5cff9 Update ukrainian.xml
Update Ukrainian translation based on version 8.4.1

Close #11845
2022-06-28 01:47:50 +02:00
xomx
355e06591f Update czech.xml to v 8.4.3
Close #11827
2022-06-28 01:45:23 +02:00
Tmp341
5b1c2c1949 Update Turkish localization
* According to c32da95, ad8b179, e8817ea, d3b026b, 33ab652, d65967d and 79e7667 commits.

Close #11821
2022-06-28 01:43:56 +02:00
Edditoria
ed545cb24c Update localization: Hong Kong Cantonese...
As at commit d1347d5 of this repo.
This commit does not bump version.

Close #11802
2022-06-28 01:40:25 +02:00
Karlo-F
7ec8aa285c Update croatian.xml for 8.4.3
Close #11799
2022-06-28 01:39:14 +02:00
Patriccollu
27d57e8caf Update Corsican translation for Notepad++ 8.4.3
Close #11788
2022-06-28 01:38:03 +02:00
~GOLEM~
226a41e792 Update russian.xml for v8.4.3
Close #11784
2022-06-28 01:36:35 +02:00
yasmise
e6dab70ec3 update japanese.xml
Add translations for these commits:
* Use edge colors in dark mode for listbox border (d65967deabaff17069e789019e060c9a87f5f076)
* Make EOL (CRLF) display customizable (79e766755d9d466704c535f99eb3ce99ffbbb1bf)
* Update localization files (2258274780ce18be0406183bf7b9619202c3c06e)

Close #11775
2022-06-28 01:34:10 +02:00
rddim
f50ddf8297 Update Bulgarian localization
Close #11772
2022-06-28 01:32:05 +02:00
Hugo Carvalho
4a8d7b11dd Update portuguese.xml
Commit: d65967deabaff17069e789019e060c9a87f5f076

Close #11770
2022-06-28 00:54:12 +02:00
kubalav
2d1874de40 Update Slovak translation to 8.4.2
Close #11768
2022-06-28 00:49:21 +02:00
Christophe Mateos
0d6958a5ab Update french.xml
From June the 5th commits

Close #11769
2022-06-28 00:47:18 +02:00
Markus Bodensee
6643e1a174 Update german localisation
Add translation for item 6246 (current level folding/unfolding).
Add/update translations for dark mode items.
Synchronise translation of "commands" to "Befehle" to have same word in all places.

Close #11738
2022-06-28 00:44:54 +02:00
popcorner
9de65fb6f3 Update chineseSimplified.xml
Close #11737
2022-06-28 00:41:37 +02:00
Thomas De Rocker
9cc7bddd2e Update dutch.xml
Close #11655
2022-06-28 00:40:16 +02:00
Don Ho
e8ed195aac Exclude an unstable version of one plugin from the installer
Ref:
https://community.notepad-plus-plus.org/topic/23100/notepad-8-4-2-64-bit-suddenly-closes-for-no-reason
2022-06-27 22:23:30 +02:00
xomx
7917d0d974 Fix "CMD Here" command open Explorer issue
Better specify the cmdline interpreter:
This solves a possible confusion in between the cmdline interpreter and the possible folder named "cmd"' for the ShellExecute WINAPI.

Fix #11818, close #11833
2022-06-27 17:22:09 +02:00
xomx
9d69db9b15 Fix a crash issue due to opening an empty .NFO file
There was an infinite recursion for such empty files, when the default setting for new files was UTF8.

Fixes #11820, close #11824
2022-06-27 06:01:33 +02:00
Don Ho
2258274780 Update localization files 2022-06-26 20:01:22 +02:00
Don Ho
08128ee36a Add an option allows to show only 1 entry per found line in search result
Also mark several found occurrences in the same entry - user can click on the marked occurrence to jump among found result in the found line.
This option is enabled by default. It can be disabled in "Searching" section of Preferences dialog.

It's an alternative implementation of #11705

Fix #2481, fix #1499, fix #5547, fix #2987, fix #4525, fix #3224, close #11808
2022-06-26 18:41:05 +02:00
Don Ho
3b04793097 Fix Find in files performance regression since updating Scintilla 5
It's due to the folding the previous result before the begin of search.
For the unknown reason there's performance issue if folding action is at this place for Scintilla 5.

Fix #11814
2022-06-18 18:10:04 +02:00
dail8859
f1ed4de78d Add NPPM_CREATELEXER message for plugins to instantiate lexers
Fix #11789, close #11790
2022-06-14 22:55:27 +02:00
Don Ho
f69a9093f9 Fix x64 build error 2022-06-14 15:39:10 +02:00
Don Ho
d0b2a9ff9d Skip save all warning dialg if only current editing file is dirty
Here is the behaviour of this commit:
1. If there's only one file dirty, and it's current editing one, then SaveAll dialog won't display.
2. If there's only one file dirty, and it's NOT current editing one, then SaveAll dialog WILL display.
3. If there's 1 editing file which is dirty, and its clone (dirty also) is on the other view, then SaveAll dialog WILL display.

Fix #10995
2022-06-14 02:52:52 +02:00
Don Ho
d1347d5014 Use "Max Speed" compiling optimization instead of "Full" compiling optimization
Use \Os instead of \Ox and fix the incoherent settings for the program optimization.

Fix #11778
2022-06-13 19:55:26 +02:00
Don Ho
2d7b2093a1 Fix font definition for languages regression in Style Configurator
Defining font for languages is no more possible in Style Configurator.
This regression is due to commit 1567847 (PR #10483).

Fix #11786, close #11787
2022-06-13 18:41:17 +02:00
Don Ho
79e766755d Make EOL (CRLF) display customizable
Fix #11413, close #11773
2022-06-12 19:41:09 +02:00
ozone10
f517c6c053 Enhance dark mode support for plugins
- Add support for 3 state checkbox buttons.
- Add support for plugin custom draw for listview subitems.
_ Apply correct colors on listbox.

Enhancement to #11711.
Based on information from https://community.notepad-plus-plus.org/topic/23080/impact-analysis-of-generic-darkmode-rendering-of-plugin-dock-panels-from-pr-11711.

Close #11767
2022-06-08 02:29:46 +02:00
Don Ho
82b78ff7b8 Fix error from commit b6efff4 2022-06-07 01:23:32 +02:00
Don Ho
b6efff4157 Fix Selected text changes color issue when editor window loses focus
Fix #11743
2022-06-07 01:08:20 +02:00
ozone10
d65967deab Use edge colors in dark mode for listbox border
1. use edge colors in darkmode for edit control border.
2. tweaks to properly drawn listbox scrollbar, when using custom border.
3. disabled edge color to dark mode preference dialog.
4. use disabled edge color for disabled combobox.

Fix #11207, fix #11376, close #11756
2022-06-06 20:25:17 +02:00
ozone10
2c0134ef5a Add plus and arrow (drop down list of opened files) buttons on menu bar
1. Add plus and arrow buttons on menu bar beside of 'X' button:
   - plus button: for adding a new document
   - arrow button: display a drop down list for all opened files to offer users quick access of switching file
2. Enhance the most recent opened file list: Increase maximun file number to 30.

Fix #11229, close #11757
2022-06-05 15:44:05 +02:00
Don Ho
33ab652395 Make dark mode support for plugin by default
And remove the GUI option to disable this feature.
(based on d3b026bfeb96eb39e0402673d68dd04e640e2e1e)
2022-06-05 03:51:34 +02:00
ozone10
d3b026bfeb Add dark mode support for plugins
Support dark mode for plugins with docking GUI.

Fix #11710, close #11711
2022-06-05 03:39:28 +02:00
Shridhar Kumar
b204be9012 Fix a small regression in DebugInfo dialog
Remove "$COMMAND_LINE_PLACEHOLDER$ from the copied DebugInfo text.

Fix #11752, close #11753
2022-06-04 18:14:57 +02:00
Don Ho
a02a254ea1 Notepad++ 8.4.2 release 2022-06-03 18:28:42 +02:00
Don Ho
2d47c8d340 Fix an order error in toolbarIcons.xml 2022-06-03 04:27:45 +02:00
Don Ho
b5479bb9b0 Fix Plugin Admin not showing on menu due to certificate checking problem
* Fix certificate checking problem: the old certificate has been expired. In v8.4.2 Notepad++ & its components are signed by the new certificate. The certificate is checked before launching WinGUp (updater) to compare with the certificate key value stored in Notepad++. Updating certificate key value fixes the problem of WinUp validation, so Plugin Admin can be shown on the menu.
* Fix a typo.

Fix #11742
2022-05-29 17:23:31 +02:00
ArkadiuszMichalski
8498e06193 Fix Debug builds missing
Fix #11728, close #11730
2022-05-27 14:55:33 +02:00
Edditoria
5354f61f8e Update localization: Hong Kong Cantonese...
As at commit a630b63 of this repo.

Close #11708
2022-05-27 14:48:09 +02:00
ArkadiuszMichalski
bcebfe15ea Update polish.xml to 8.4.2
Update polish.xml to 8.4.2 according to the last commit.

Close #11731
2022-05-27 04:24:24 +02:00
rddim
6613a6da15 Update Bulgarian localization
Close #11675
2022-05-27 04:21:43 +02:00
A. Regnander
dc0e5740c5 Update swedish.xml
Close #11707
2022-05-27 04:19:02 +02:00
Don Ho
fa3ba7e389 Fix customizing toolbar icon messed with dark mode
Ref:
d85b9a7464 (commitcomment-74498214)
2022-05-27 04:06:11 +02:00
xomx
b25f37646d Update czech.xml to v8.4.2
Close #11727
2022-05-26 15:37:14 +02:00
Mathias Berchtold
4487171c3f Add gui4cli keywords and fix style IDs in stylers.model.xml
Close #11712
2022-05-26 03:15:26 +02:00
Patriccollu
c55026cd45 Update Corsican translation for Notepad++ 8.4.2
Close #11722
2022-05-26 02:48:59 +02:00
~GOLEM~
91fdc8b1d6 Update russian.xml to v8.4.2
Close #11689
2022-05-26 02:47:25 +02:00
yasmise
44e7f283ee update japanese.xml to v8.4.2
Add translations for these commit:
* Add edge highlight color in customized dark colors of Preferences dialog (ad8b1791b4c761bbdcd098260f25cf122535e768)
* Update localization files (e8817eacd01b163f97efa89ef2bc2ba5b271010c)

Close #11686
2022-05-26 02:45:50 +02:00
kubalav
d491bb431a Update Slovak translation
Close #11672
2022-05-26 02:44:54 +02:00
Hugo Carvalho
0b41f4f5c8 Update portuguese.xml
Close #11668
2022-05-26 02:43:40 +02:00
Edoardo Lolletti
3b208743bd Display the accurate OS version in DebugInfo (for Windows build 21H1 and greater)
Query for DisplayVersion as well instead of using only ReleaseId.

Windows deprecated the ReleaseID registry entry (now it is no longer updated and on newer Windows 10/11 builds will remain the same) and moved to use DisplayVersion.
Attempt now to first query DisplayVersion and in case that is missing, fall back to ReleaseID for older Windows 10 builds.

Close #11714
2022-05-26 02:29:53 +02:00
Don Ho
ddbb75f0f7 Make Plugin Admin exception message more clear 2022-05-25 19:27:18 +02:00
Robert Di Pardo
d6595ad836 Make Plugins Admin work with MinGW in debug mode binary
Convert path to nppPluginList.json with ::wstring2string().

Unlike MSVC [1], MinGW GCC doesn't provide file stream constructors
for wchar_t* paths [2].

 ---
 [1] https://stackoverflow.com/a/822032
 [2] https://sourceforge.net/p/mingw-w64/mailman/message/34249829

Fixes #11687, close #11701
2022-05-25 18:37:21 +02:00
Don Ho
e8817eacd0 Update localization files 2022-05-25 03:57:32 +02:00
Christophe Mateos
ee707ca67e Update french.xml
Close #11677
2022-05-25 02:34:19 +02:00
Don Ho
96590a6f94 Fix win32 build due to the previous commit 2022-05-24 19:00:52 +02:00
Don Ho
d85b9a7464 Make toolbar icons customizale
This is the enhancement of a long time forgotten feature.

To override the current toolbar icons, we needs 2 things: "toolbarIcons.xml" file and one icons set.
Here are the instructions to customize toolbar icons:

1. Put the file "toolbarIcons.xml" (Note 1) in the same folder of "config.xml" file (Note 2).
2. Create a new folder "toolbarIcons" in the folder where you put "toolbarIcons.xml" file.
3. Edit the file "toolbarIcons.xml": put the icon set name you want in "icoFolderName" attribute (Note 3).
   for example: `<ToolBarIcons icoFolderName="myAwesomeIcons" />`
4. Go into "toolbarIcons" folder and create a new folder with the exact name of the icon set name you provided in "icoFolderName".
5. Put all your customized icons into "[toolbarIcons.xml's folder]\toolbarIcons\myAwesomeIcons\".
6. Now it's the magic moment: Relaunch Notepad++ and you'll see your icon set instead of the default icons.

Note:
1. The content of "toolbarIcons.xml" is following:
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<NotepadPlus>
    <ToolBarIcons icoFolderName="nppLagacyIcons" />
</NotepadPlus>
```
2. If you find the file "doLocalConf.xml" in the Notepad++ installed directory, you will find the "config.xml" in Notepad++ installed directory. Otherwise it should be in "%APPDATA%\Notepad++\" directory.
3. if "icoFolderName" value is an emptty string, the path of icons will be in "[toolbarIcons.xml's folder]\toolbarIcons\default\" folder.

Each replacing icon (45 icons) has the fixed and specific name:

| index |  Normal icon             |  Disabled icon                  |
|-------|--------------------------|---------------------------------|
|1      |  new.ico                 |                                 |
|2      |  open.ico                |                                 |
|3      |  save.ico                |  save_disabled.ico              |
|4      |  save-all.ico            |  save-all_disabled.ico          |
|5      |  close.ico               |                                 |
|6      |  close-all.ico           |                                 |
|7      |  print.ico               |                                 |
|8      |  cut.ico                 |  cut_disabled.ico               |
|9      |  copy.ico                |  copy_disabled.ico              |
|10     |  paste.ico               |  paste_disabled.ico             |
|11     |  undo.ico                |  undo_disabled.ico              |
|12     |  redo.ico                |  redo_disabled.ico              |
|13     |  find.ico                |                                 |
|14     |  replace.ico             |                                 |
|15     |  zoom-in.ico             |                                 |
|16     |  zoom-out.ico            |                                 |
|17     |  sync-vertical.ico       |                                 |
|18     |  sync-horizontal.ico     |                                 |
|19     |  word-wrap.ico           |                                 |
|20     |  all-chars.ico           |                                 |
|21     |  indent-guide.ico        |                                 |
|22     |  udl-dlg.ico             |                                 |
|23     |  doc-map.ico             |                                 |
|24     |  doc-list.ico            |                                 |
|25     |  function-list.ico       |                                 |
|26     |  folder-as-workspace.ico |                                 |
|27     |  monitoring.ico          |  monitoring_disabled.ico        |
|28     |  record.ico              |  record_disabled.ico            |
|29     |  stop-record.ico         |  stop-record_disabled.ico       |
|30     |  playback.ico            |  playback_disabled.ico          |
|31     |  playback-multiple.ico   |  playback-multiple_disabled.ico |
|32     |  save-macro.ico          |  save-macro_disabled.ico        |

It's not necessary to have all complete set (45 icons). The absent icons won't just be substituted.

Fix #9913
2022-05-24 17:57:38 +02:00
Don Ho
05dae4a720 Make fold/unfold current line commads togglable
Add an option "Make current line folding/unfolding commands togglable" in Editing section of Preference dialog to make both Collapse/Uncollapse Current level commands togglable.

Fix #11529, fix #9196, close 11699
2022-05-21 02:23:03 +02:00
Don Ho
e701c208a6 Fix regression in Alt icons settings
The regression is Caused by 6729739.

Fix #11703
2022-05-20 16:20:59 +02:00
Don Ho
3750cf8fa3 Fix horizontal scrolling with scroll wheel on Logitech MX issue
Fix #10490, close #11700
2022-05-20 15:05:13 +02:00
Shridhar Kumar
b3a9ec5dfe Fix a small regression of DebugInfo
Select the entire DebugInfo text, with the command line params inserted.

This is a minor fix for an issue resulting from the last-minute changes in commit 0f8d572 (Add command line argument for plugin, a related notification and an API).

Close #11697
2022-05-20 02:24:18 +02:00
Don Ho
10f48e36ad Fix typos 2022-05-19 19:32:35 +02:00
ozone10
a577564699 Make dark mode groupbox edge to use edge color
Make also combobox border round on Windows 11 to match style, and fix visual glitch with transparency groupbox in Find dialog.

Fix #11693, close #11694
2022-05-18 20:12:19 +02:00
Don Ho
c9b177bb9e Fix a memory leak in "Copy Binary Content" comment
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11671#issuecomment-1128975960
2022-05-17 18:08:40 +02:00
Don Ho
8a37bed448 Make file description shorter to suit the context menu
Fix #11688
2022-05-17 17:52:08 +02:00
Shridhar Kumar
df438ea944 Fix crash on "Copy Binary Content" command without selection on edit zone
Fix also an issue that the word where the cursor is on in the edit zone is selected after running ABOUT box, that makes all the occurence of same word highlighted in the edit zone.

Fix #11639, fix 11671, close #11673
2022-05-17 17:09:29 +02:00
ozone10
def3aba4e6 Fix dark mode tab left-right control for floating docking containers
Fix #11683, close #11684
2022-05-17 14:51:58 +02:00
ozone10
c72dac69c5 Add dark mode support on shortcut mapper entirely
Fix #11530, close #11682
2022-05-17 04:44:43 +02:00
Shridhar Kumar
2aa85006d2 Fix crashes by re-invoking with command line argument "-udl"
Fix crashes when re-invoked with -udl command line parameter with more than 7 characters as its value:
Serialize _udlName from generic_string to wchar_t _udlName[MAX_PATH].

Fix #11633, close #11681
2022-05-17 04:29:35 +02:00
ozone10
a630b63c9a Add encoding context menu via right/double click on encoding display zone of status bar
Fix #9998, fix #400, fix #756, close #11678
2022-05-16 14:40:40 +02:00
Shridhar Kumar
0f8d5724af Add command line argument for plugin, a related notification and an API
1. Add a cmd argument for plugin: -pluginMessage="SPECIFIC_PLUGIN_MESSQGE" where SPECIFIC_PLUGIN_MESSQGE is a string which can contain white space. For example: -pluginMessage="arg1 arg2 arg3".
2. NPPN_CMDLINEPLUGINMSG notification: which will be triggered by -pluginMessage and plugins will get their specific message "arg1 arg2 arg3" via idFrom field:
   //scnNotification->nmhdr.code = NPPN_CMDLINEPLUGINMSG;
   //scnNotification->nmhdr.hwndFrom = hwndNpp;
   //scnNotification->nmhdr.idFrom = pluginMessage; //where pluginMessage is pointer of type wchar_t
3. Add NPPM_GETCURRENTCMDLINE API for getting the latest command line.
4. Update command line dynamically in Debug info dialog.

Fix #11576, close #11589
2022-05-16 04:54:31 +02:00
ozone10
67297397d4 Make Alternate Icons behaviour in dark mode consistent
The usage of alternate icons in dark mode can be remember now though the sessions.

Fix #10159, close #11674
2022-05-16 01:48:04 +02:00
Robert Di Pardo
77a53ebd2f Show installed plugin versions in Debug Info dialog
Fix #11284, close #11662
2022-05-16 01:19:46 +02:00
Karlo-F
74395977bb Improve "Deep Black" theme
* Corrected description
* Added new lines for PHP, INI, CSS and GlobalStyles
* Darkened YAML (it wasn't dark)
* Minor corrections

Close #11608
2022-05-15 04:11:30 +02:00
ozone10
ad8b1791b4 Add edge highlight color in customized dark colors of Preferences dialog
Fix #11642, close #11641
2022-05-14 17:52:28 +02:00
Don Ho
62e916edec Notepad++ v8.4.1 release
Disclaimer: these binaries were compiled at 13,500 metres altitude!
2022-05-11 14:41:08 +02:00
Edditoria
a1eed77953 Update localization: Hong Kong Cantonese...
As at commit ef9e836 of this repo.
Also bump version to v8.4.1 in advance.

Close #11645
2022-05-08 23:09:35 +02:00
Don Ho
6e83e6810a Restore auto-completion & calltip default fg/bg colors (no theme)
Fix #11637
2022-05-08 15:20:21 +02:00
Don Ho
82c03424bb Fix a typo and update version number 2022-05-08 14:01:48 +02:00
Don Ho
ef609c896f Add a new format argument/option "ADD_ZERO_PADDING" to NPPM_GETNPPVERSION
Fix #11535
2022-05-08 13:58:45 +02:00
Karlo-F
bdf60d80ff Update croatian.xml
Update Croatian localization to v8.4.1

Close #11625
2022-05-05 22:02:48 +02:00
Iñigo Zendegi
fcd88d73bb Update basque.xml
Close #11624
2022-05-05 21:55:50 +02:00
~GOLEM~
8d1a294bf0 Update russian.xml v8.4.1
Close #11621
2022-05-05 21:52:43 +02:00
yasmise
7b327c583f update japanese.xml to v8.4.1
Add a translation for this commit:
* Update localization files according to d3e77c0 (c32da953cf9d1360ff4d30d8b26f31e1be993117)

Close #11615
2022-05-05 21:47:22 +02:00
rddim
3050766379 Update Bulgarian localization
Close #11614
2022-05-05 21:44:39 +02:00
schnurlos
5d55e9bdde Update german.xml to v8.4.1
Following c32da953cf

Close #11612
2022-05-05 21:39:33 +02:00
Hugo Carvalho
bc05457133 Update portuguese.xml
For commit: c32da953cf9d1360ff4d30d8b26f31e1be993117 and other minor corrections

Close #11640
2022-05-05 21:37:06 +02:00
xomx
b6876663b9 Update czech.xml to v8.4.1
Close #11605
2022-05-05 21:32:41 +02:00
kubalav
b8b5a9bc5d Update Slovak translation to 8.4
Close #11604
2022-05-05 14:06:19 +02:00
anishbl
feeda47995 Update tamil.xml
Changes:
     1) Removal of redundant lines (redundancy as defined by absence from the English version, I have not gone on to check the code for where each term is used, refer to Issue https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11561#issue-1210847469)
     2) Addition of lines which are found in the English version but were absent in the Tamil
     3) Spelling error rectifications (eg: "கீல்" is an erroneous form of கீழ்)
     4) Retention of English words for certain terms best left untranslated (eg: Macro; பெருநிரல் _does_ convey the literal meaning, but would be extremely confusing, as such usage is specialized and not directly connected to the literal meaning. Macro here performs much like a proper noun, an untranslatable, and I opine that translating that would be quite similar to translating Notepad++, Windows etc. In other cases, perceived rarity of the term's usage, potential confusion, and lack of sufficient systematicity in the usage of programming terms in Tamil have also been reasons)
     5) Rewording certain terms as they seem of a fringe usage, and replacing them with commoner alternatives (eg: படி எடு for Copy has been replaced by நகலெடு, whose use is fairly universal nowadays, in OSs, apps, websites, etc. which display in Tamil.  It must be noted that the previous version seems to be nearly ten years old, and probably the usage was more fluid and non-standard back then.)
     6) Removal of lines that are plainly copied out from the English version untranslated, and cannot be translated
     7) Addition of &amp;/alt codes (I'm not sure exactly what they're called) as in English

Unresolved Problem Points:
     1) The alt codes have been presented to a user using the Latin/English keyboard.  (eg: for "&amp;File", "கோப்பு (&amp;F)" has been provided instead of the equally viable "&amp;கோப்பு") This, although in keeping with the previous version, may present Tamil users an inconsistent display, what with the numerous bracketed and seemingly random English letters beside Tamil text, and inconvenience users of Tamil keyboard(s).
The example of other Indian languages may be used to argue for "&amp;கோப்பு", while the example of Chinese, Japanese and Korean may be used to argue otherwise (it must be noted, though, that Tamil and Indian languages have their own keyboards as well as phonetic typing from English, whereas Chinese et.al. are typed, as far as I am aware, solely using the phonetic English method, and therefore the first argument may not stand)
To be very honest, I almost set out removing all the old bracketed-English-letter style stuff and creating them based off Tamil letters, but chickened out seeing the utter scale.  I also am not sure how this would be welcomed by users, since they may now be quite habituated to using the English letters, and tampering with the functionality of the application (to a tiny extent, admittedly) is _not_ what I thought I was taking into my hands when I started doing this
     2) Most of the popup messages have been left untranslated, coming to more than hundred lines (I'm sorry, I'm not doing any more now, maybe later, or hopefully someone else who uses N++ in Tamil/knows Tamil can step up and help; I'm sure my version of even those parts that I _have_ edited is not up to snuff either)
     3) There are some technical vocabulary issues. For instance, there is a general confusion between அழி, நீக்கு and அகற்று for delete and remove.  I have chosen அகற்று for remove, and kept the other two both for delete, due to how often both were used. But I think there could be a better solution, and a more systematic one.  This is also, incidentally, just the tip of the iceberg.
     4) I was also unsure about where to draw the line between translating an English word to Tamil and retaining the English word.  In several cases, I used my familiarity with the words in a technical context to make such a decision.  Since I also relied quite a bit on online dictionaries, and cross checked them across websites to be sure, I cannot vouch for all of them, and probably quite a few have been excessively Tamilised, or retained in English even when a patently viable and common alternative exists. I hope some others can account for those

Close #11579
2022-05-05 14:02:16 +02:00
Patriccollu
d84be6c2fe Update Corsican translation for Notepad++ 8.4.1
Close #11593
2022-05-05 13:57:48 +02:00
Don Ho
77d62496df Update localization files 2022-05-05 13:50:49 +02:00
mere-human
ccbf08dc98 CustomFileDialog: Focus the file name when file already exists
Fix #11630, close 11631
2022-05-05 01:20:07 +02:00
ozone10
ef9e836903 Add border to dark mode tabs
Minor tweaks to autocomplete, to make top white rectangle dark on resize.

Fix #11622, close #11623
2022-05-02 14:24:19 +02:00
Shridhar Kumar
664d46084b Override "current line indicator" style in "Search results"
Fix #11596, close #11598
2022-05-02 01:45:04 +02:00
SnipUndercover
3f322faf62 Fix a crash in UDL
Fix infinite loop while lexing UDL multi-part keyword in prefix mode.

Fix #11434, close #11543
2022-05-01 02:07:19 +02:00
Shridhar Kumar
b57254aece Minor cosmetic touchups to Preferences & Style Configurator UIs
Preferences Dialog - MultiInstance UI:
1. Increased the height of the 1st groupbox by 3 units.
2. Shifted the controls inside it by 4 units.
3. Reduced the height of the 2nd groupbox by 3 units.
4. Shifted the groupbox top and the checkbox only down by 3 units.

Style Configurator Dialog:
5. Added 'BS_CENTER' modifier to "Font Style" & "Colour Style" groupboxes.

Fix #11590, close #11591
2022-04-30 01:01:41 +02:00
Don Ho
9cc01de97c Fix "Reload from disk" loosing syntax highlighting regression
In Scintilla4 reloaded document keeps its syntax highlighting without re-applying the lexer for its syntax highlighting.
It seems the behaviour has been changed in Scintilla5. Hence this workaround to force to apply syntax highlighting after reloading.

Fix #11606, close #11610
2022-04-29 19:44:54 +02:00
Rajendra Singh
77fcedbd19 Fix "Find progress bar" UI clipping
Close #11572
2022-04-29 16:25:48 +02:00
ozone10
dfc9fb6f3b Highlight dark mode combobox border on focus
Fix #11574, close #11575
2022-04-29 13:50:27 +02:00
Robert Di Pardo
2fbac354ed Fix HTML syntax highlighting in PHP files regression
Restore HTML syntax highlighting in PHP files.

Fix #11585, fix #11602, close #11588
2022-04-29 04:08:13 +02:00
Christian Grasser
100d45f7cf Update Scintilla from 5.2.1 to 5.2.2 and Lexilla from 5.1.5 to 5.1.6
Close #11537
2022-04-28 23:27:54 +02:00
Don Ho
3b0d5242ac Fix unfocused selected text background color changed problem
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11419#issuecomment-1094362796

Fix #11595, close #11601
2022-04-28 02:39:11 +02:00
mere-human
c94d50842e Fix file name field highlighted while focus is on type combobox in Save As dialog
Fix #11517, close #11540
2022-04-28 01:40:47 +02:00
ozone10
87f4249d6b Add support for dark tab updown control
Fix #10054, close #11554
2022-04-26 19:30:52 +02:00
Leonardo Silva
1eb5b10e41 Add DarkMode usage detection support for plugins
Add APIs: 2 new messages NPPM_ISDARKMODEENABLED & NPPM_GETDARKMODECOLORS, and 1 new notification NPPN_DARKMODECHANGED.

Fixed also a bug in dark mode for PushLike CheckBoxes.

Fix #11546, close #11547
2022-04-26 19:27:35 +02:00
Ibrahim Kosgi
1dffb05e0a Add file monitoring command line argument [-monitor]
Fix #10562, close #11539
2022-04-26 19:17:25 +02:00
Don Ho
c32da953cf Update localization files
according to d3e77c0e6f
2022-04-26 18:52:30 +02:00
Shridhar Kumar
d3e77c0e6f Add "Framed current line" option beside of "Highlight current line background"
The related GUI in Preferences dialog has been organized in the adapted way for the new option.

Fix #11501, close #11534
2022-04-26 16:59:21 +02:00
Ian O'Neill
c40c90e8a4 Make the dark mode color scheme palatable for ini, json & props files
Fix #11544, close #11555
2022-04-26 16:01:43 +02:00
CennoxX
0505bda865 Sort "Search result" to the bottom in language list of Style Configurator
Exclude "Search Results" from the sort and placing it at the bottom as it was before:
2474cbeafd

Fix #11337, close #11557
2022-04-26 15:38:18 +02:00
Don Ho
f6ade2c915 Notepad++ 8.4 release: Keep Standing up for Ukraine 2022-04-26 00:46:56 +02:00
ArkadiuszMichalski
292c057f65 Update polish.xml
Close #11553
2022-04-20 02:41:56 +02:00
Artem Polivanchuk
cbd17386e2 Update ukrainian.xml
Close #11549
2022-04-20 02:39:56 +02:00
ozone10
4f002c86b8 Fix cropped text in Shortcut mapper's status area issue
Adjust padding to fix ShortcutMapper visual glitch.

Fix #10358, close #11536
2022-04-20 02:23:01 +02:00
Don Ho
5d5d2025af Fix HTML document syntax highlighting not working regression
Fix https://community.notepad-plus-plus.org/topic/22855/notepad-v8-4-release-candidate/5?_=1650282276299
2022-04-19 16:24:42 +02:00
danny
054e3d0ae1 Installer: Remember the chosen language in the previous installation
Set/read default installer language to/from registry.

Fix #10582, close #11492
2022-04-19 15:55:45 +02:00
Edditoria
0b54cb4daa Update localization: Hong Kong Cantonese...
As at commit 3afbf0c of this repo.
Also bump version to v8.3.4 in advance.

Close #11527
2022-04-14 03:12:31 +02:00
yasmise
4b6889b855 update japanese.xml
Add translations for these commits:
* Add default sorting ability in Function list (64bfa72bd0693344b81017cece1f52a28511e42a)
* Add virtual space ability (88ed851478b3426e9cca365b67a1ceb4cd4f92e2)

Close #11512
2022-04-14 03:10:33 +02:00
Karlo-F
20644933a0 Update croatian.xml
Close #11509
2022-04-14 03:08:11 +02:00
Tmp341
23de2e68c9 Update Turkish localization
* According to 1c8b867, ee76513, 64bfa72 and 88ed851 commits.

Close #11507
2022-04-13 23:37:00 +02:00
rddim
ae75245a75 Update Bulgarian localization
Close #11499
2022-04-13 23:29:12 +02:00
Patriccollu
2f329b0e40 Update Corsican translation for Notepad++ 8.3.4
Close #11496
2022-04-13 23:20:02 +02:00
Christophe Mateos
b6a62fc3fa Update french.xml
Close #11495
2022-04-13 23:16:20 +02:00
kubalav
e76a5c3970 Update Slovak translation to 8.3.3
Close  #11491
2022-04-13 22:51:09 +02:00
~GOLEM~
57730801d9 Update russian.xml v8.3.4
Close  #11455
2022-04-13 21:45:38 +02:00
Hugo Carvalho
bee712d865 Update portuguese.xml
Close #11449
2022-04-13 21:43:54 +02:00
ozone10
2dbc25f918 Add initial dark mode support for Shortcut Mapper
- Partially implement #11530.
- Minor tweaks for drawAutocompleteColoursFromTheme to avoid double calling.

Close #11531
2022-04-13 21:11:17 +02:00
ArkadiuszMichalski
d656c19de0 Update polish.xml to 8.3.3
Close #11423
2022-04-13 05:22:01 +02:00
Sapziller
016d0fcc7d update korean.xml 8.3.3
Close #11402
2022-04-13 05:20:24 +02:00
schnurlos
f30fbcbee5 Update german.xml
Added missing translation for "FileLoadingException"

Close #11382
2022-04-13 05:18:44 +02:00
Karlo-F
235d9dea76 Update Deep Black.xml
Add stylers for "registry" files.

Close #11513
2022-04-13 05:15:04 +02:00
Don Ho
0ee65fd826 Fix x64 build error in 3f1a582a36db175a4f86b35dcd47f3aa5bf331fa
Fix x64 build error, remove unnecessary codes and add enhancement for the previous commit 3f1a582a36db175a4f86b35dcd47f3aa5bf331fa
2022-04-13 04:43:08 +02:00
ozone10
3f1a582a36 Add dark mode support for autocomplete list & calltip
Fix fix #11522, close #11523
2022-04-13 03:42:38 +02:00
Ben Rudiak-Gould
4ffd1e9858 Fix lossing characters issue after case-conversion (UPPER/lower)
Fix case-conversion code to handle changing string lengths:
Fixes an issue where, e.g., upper-casing U+2C65 adds garbage to the
document because its capital form U+023A has a shorter UTF-8 encoding.
Incidentally fixes another bug: rows would be truncated at the first
NUL when changing case in column mode.

Fix #11463, close #11464
2022-04-12 21:14:27 +02:00
Shridhar Kumar
e094e99697 Fix "Enable current line highlighting" not working correctly
This is a regression of upgrading Scintilla from 4.x to 5.x due to concerning Scintilla APIs having changed their behaviour.
This PR follows the new instructions of Scintilla documentation to make it work again.

Fix #11433, close #11433
2022-04-11 23:11:33 +02:00
ozone10
3afbf0ca14 Fix light mode disabled text color using dark mode customized color
Light mode disabled static text was using customized dark mode disabled static text color, this PR fixes the problem.

Fix #11514, close #11515
2022-04-11 16:25:39 +02:00
wiseyestudio00
721f994df8 Fix "Sort Lines as Integer" not considering negative number
The current implementation is a variant of Natural Sort, which takes in account of negative numbers.

Fix #11023, fix #2025, close #11481
2022-04-10 19:44:49 +02:00
Don Ho
a16f08468e Fix RTL regression after upgrading Scintilla from v4 to v5
This regression has been fixed in Scintilla project:
fa80f5d42d/

Fix #11476, close #11516
2022-04-10 18:21:08 +02:00
Karlo-F
6d929e1871 Shorter Croatian name in localization menu
Shorter "Hrvatski" (Croatian) instead of "Hrvatski jezik" (Croatian language).

Close #11510
2022-04-09 22:41:50 +02:00
Don Ho
00abd511b4 Remove the binary committed by ad39c6861136dce3bd77b43f5e94b88a892e443e 2022-04-09 21:33:30 +02:00
Don Ho
2474cbeafd Sort languages alphabetically in Style Configurator
Fix #11337, close #11508
2022-04-09 21:17:59 +02:00
Shridhar Kumar
ad39c68611 Fix dark mode square edges around buttons for Windows 10
Close #11506
2022-04-09 21:01:14 +02:00
ozone10
b88e2fe57f Apply darkmode on missing preference dialog items
- Edit control in Date Time for Custom format
- Tooltip in Delimiter for Word character list
- Fix blurry text in Link for Clickable Link Settings

Fix #11497, close #11498
2022-04-09 19:59:52 +02:00
ArkadiuszMichalski
46ce9c31df [MinGW] Restore the original Scintilla makefile
For the sake of maintenance of Scintilla (future update), we try to not modify Scintilla project, or at least minimize its modification.
Hence the compiling boost part is shifted to Notepad++ project.

Fix #11014, close #11485
2022-04-09 17:39:21 +02:00
komurugov
7fa6fb083b Scrolling Document List automatically to make the selected tab item visible
Scrolling "Document List" to make the selected item visible after:
- selecting
- opening a file or files
- the program startup
- adding/removing columns

This commit doesn't cover the case of the selected item becoming invisible after resizing of the window.

Fix #11204, close #11471
2022-04-07 18:35:23 +02:00
wiseyestudio00
b4a58429c3 Make Find in Files Search Result line number aligned
Fix #11119, close #11479
2022-04-07 03:01:21 +02:00
Manuel Montoto
88ed851478 Add virtual space ability
Added an option in preferences to enable or disable virtual space.

Fix #11443, Fix #11444, close #11452
2022-04-06 15:37:23 +02:00
Daniel Fuchs
64bfa72bd0 Add default sorting ability in Function list
* Add new preference setting to allow function list to be sorted lexicographically by default.
* Fix sorting for mixed mode function list parsers on new file open.
* Add new translations to english.xml and german.xml.

Fix #11446, close #11447
2022-04-06 14:59:02 +02:00
Don HO
658b626257
Update BUILD.md 2022-04-06 01:18:11 +02:00
ArkadiuszMichalski
44bcf1cff6 [MinGW] Place the Scintilla build intermediate files separate from the source files
1. Scintilla and Lexilla intermediate files are created in the same folder as NPP build file (`bin.i686.build` or `bin.x86_64.build`), but in subfolder `_lexilla.build` and `_scintilla.build`. I added `_` char at the beginning so these folders are always at the beginning. If you prefer a different name or location it can be change.
2. Stop build and dispaly error message when someone run "outside build" (use `-f` option) and source path has any spaces. It won't work anyway, so it's worth stopping the process and give a clear message.
3. Add new phony target `sciclean` and `lexclean` for deleting Scintilla or Lexilla intermediate files separately.
4. Change `_` to `|` for temporary replacement of space characters when detect proper shell. Char `_` is allowed in paths and should not be used for that purpose.
5. Add one more condition for `MAKELEVEL` variable to prevent unnecessary second calls to Scintilla and Lexilla makefile.
6. Update also `nppSpecifics_mingw.mak` file to works with above change.

Now we don't have to remember to clean up the previous files when we switch to different compiler (32-bit or 64-bit) or when we generate a debug version.

Fix 10991, close #11450
2022-04-06 01:16:11 +02:00
Don Ho
04e17b7375 Fix JSON, JavaScript and BaanC syntax highlighting not working regressions
Thanks to:
2113e782fb (r70489851)
2022-04-05 17:37:42 +02:00
sssousa
b3296a1fd9 Update Inno Setup keyword list
Close #11432
2022-04-05 04:08:18 +02:00
Anders
4426f43cfd Update NSIS keywords file and autocompletion file
Close #11442
2022-04-05 03:11:13 +02:00
mpheath
ee28051a71 Fix flashing box (autocompletion empty list) whilst Typing issue
Fix #9433, close #11460
2022-04-05 02:10:57 +02:00
Don Ho
48ee390cdd Fix doc being wronly marked as saved bug after converting its encoding
Fix #11436, close #11440
2022-04-04 21:58:20 +02:00
Oren Farhi
66ca02a015 Update Bespin theme website url
Close #11428
2022-04-04 21:13:55 +02:00
Don Ho
2113e782fb Use string lexer ID instead of numeric ID for Scintilla 5
Plus some factoring.

Close #11472
2022-04-04 18:01:51 +02:00
Don Ho
121a396bf0 Make external language library work again after upgrading to Scintilla5
Make external lexer library work again after upgrading to Scintilla5.
Old external lexer libraries needs to add CreateLexer export function which returns ILexer5 instance (Lexilla protocol interface of Scintilla5).

Tested with papyrus lexer plugin, this external lexer plugin is compatible with Notepad++ next release:
https://github.com/blu3mania/npp-papyrus

Close #11468
2022-04-03 18:23:03 +02:00
Don Ho
252468c29b Revert "Remove the external lexer support"
This reverts commit 41a5bf0245b53e74186e49a21adec2c518587b5c.
2022-04-01 19:17:18 +02:00
Don Ho
2871ee519b Revert "Fix syntax highlighting regression with cmdline argument"
This reverts commit 7a2f809e68fee49d5fd3f9fc08521478d5f356e5.
2022-04-01 19:16:41 +02:00
Don Ho
7a2f809e68 Fix syntax highlighting regression with cmdline argument
41a5bf0245 (commitcomment-69921228)
2022-03-31 03:04:10 +02:00
Don Ho
41a5bf0245 Remove the external lexer support
SCI_LOADLEXERLIBRARY has been removed since Scintilla 5,
and I belive that Scintilla won't support it anymore:
https://sourceforge.net/p/scintilla/bugs/2236/

Close #11451
2022-03-30 18:52:47 +02:00
Christian Grasser
a61b03ea88 Update Scintilla from v4.4.6 to v5.2.1 and add Lexilla v5.1.5
Update with https://www.scintilla.org/scintilla521.zip
            https://www.scintilla.org/lexilla515.zip

- fix setting to bring Scintilla::PositionCR from ScintillaStructures.h inline with Sci_Position.h Sci_PositionCR
- add workaround to enable lexer for searchResult
commented out SCI_SETILEXER call on searchResult to get one result which is correctly handled by the lexer,
added comment about the current problem with property @MarkingsStruct which seems to disappear after call to SCI_SETILEXER or CreateLexer
- corrected usage of ObjC lexer
- removed unnecessary filter stuff
- use own sections for scintilla and lexilla build targets and allow parallel builds
- as libscilex is no longer existing, changed to libscintilla
- adapt makefiles and cmake
- use VS2019
- started simple changes for createlexer adaptations, nullpointercheck missing on return of lexer name from deprecated LexerNameFromID -> undefined behaviour
- movement from id -> lexer name, mostly done via LexerNameFromID + switching off corresponding compiler warning
- changed to SCI_SETILEXER from SCI_SETLEXER, SCI_SETLEXERLANGUAGE needs to be corrected, see Scintilla5Migration.html
- just commented out: SCI_LOADLEXERLIBRARY

Fix #10504, close #11419
2022-03-27 17:12:53 +02:00
Ashfaaq18
32580e6a80 Fix Document list not sync with tab order after sorting
Document List now updates itself with respect to the tabs sorted by the windows dialog

Fix #11272, close #11411
2022-03-22 19:23:02 +01:00
Ashfaaq18
6086e819fd Fix dark mode disabled static text color in Column Editor and Style configurator
Fix #11407, close #11409
2022-03-22 18:38:50 +01:00
Don Ho
d9c5688635 Fix file saving critical bug under Symantec encryption desktop
Fix #11339, close #11403
2022-03-18 14:32:25 +01:00
VinsWorldcom
10ec944800 Fix wrong xml structure in 2 Auto-completion files
Move `<Environment>` tag into `<AutoComplete>` tag as per file definition for Cobol and Lua.

Fix #11393, close #11394
2022-03-17 16:57:04 +01:00
Daniel Fuchs
dddffcf0fd Layout improvement in FindReplaceDlg
* move labels to resemble v8.2 positioning
* resize IDD_FINDINFILES_DIR_COMBO to make it end with the other comboboxes
* resize IDD_FINDINFILES_BROWSE_BUTTON to match combobox height
* make IDD_FINDREPLACE_SWAP_BUTTON in line with IDD_FINDINFILES_BROWSE_BUTTON
* expand GroupBox to allow for a wider IDREDOTMATCHNL
* expand IDREDOTMATCHNL
* improve scaling algorithm for those ComboBoxes

Fix #11318, close #11386
2022-03-17 15:26:40 +01:00
Don Ho
9465925cd1 easterEggs++; 2022-03-17 13:35:09 +01:00
Don HO
a29cfa8d25 Notepad++ release v8.3.3 2022-03-15 00:17:40 +01:00
Don Ho
6892bcbf3a Fix Inslaller bad checkbox display under high DPI (250%)
Close #11384
2022-03-14 12:50:57 +01:00
Ashfaaq18
4e97469d8f Fix a small regression due to c3daf4448ddc21a8733e250f2020137c3aad2757
Close #11378
2022-03-13 02:23:09 +01:00
VinsWorldcom
d6b736aac0 Add warnings keyword for Perl
Fix #11369, close #11370
2022-03-12 02:38:46 +01:00
Christophe Mateos
dc10d821e6 Update french.xml
From #11322
All new fork/branch

Close #11372
2022-03-11 19:05:44 +01:00
Mr-Update
e04daf8b94 Update german.xml
- Update translation to 8.3.2
- Translation improved
- Hotkeys corrected

Close #11293
2022-03-10 20:55:17 +01:00
VinsWorldcom
9a1a999bef Add new AutoComplete icon for distinguishing functions from normal keywords
Fix #11311, close #11314
2022-03-10 20:39:09 +01:00
Thomas De Rocker
3286b3120e Update dutch.xml
Close #11321
2022-03-10 20:00:07 +01:00
Regmos
c802f86d38 Update danish.xml
Close #11306
2022-03-10 19:58:46 +01:00
Don Ho
a84cbe8f69 Add new ability for filtering incompatible plugins
In commit f9118dd13c **"npp-compatible-versions"** has been added in plugin list for helping not only Plugin Admin, but also Plugin Manager (Plugin Loader) to check the compatibility with the latest version of plugin (if the version of installed plugin is the latest one).
However, if the version of installed plugin is the previous one, there's no info to know if this plugin with old version is compatible with running Notepad++. In order to filter better old version plugins, **"old-versions-compatibility"** is added in plugin list, so Plugin Manager can use it to check the compatibility to decide load it or not.

The value of "old-versions-compatibility" is a string made by 2 interval versions as following:
`"old-versions-compatibility": "[,2.6][,8.2.1]"`

The first interval versions are for old plugin versions: [,2.6] means from all the versions to v2.6 included.
The second interval versions are for Notepad++ versions: [,8.2.1] means from all the versions to v8.2.1 included.
Both interval versions together means: the plugin in question from the 1st version to v2.6 is compatible with Notepad++ v8.2.1 and all Notepad++ previous versions.

Here is the sample:
```json
{
	"folder-name": "mimeTools",
	"display-name": "Mime tools",
	"version": "2.7",
	"npp-compatible-versions": "[8.3,]",
	"old-versions-compatibility": "[,2.6][,8.2.1]",
	"id": "b65fbfaa15b443131eb69188069cacbff04eca66e0cb84130631303a1d3895f8",
	"repository": "https://github.com/npp-plugins/mimetools/releases/download/v2.7/mimetools.v2.7.zip",
	"description": "Implements several main functionalities defined in MIME.",
	"author": "Don HO",
	"homepage": "https://github.com/npp-plugins/mimetools"
},
```
Considering these 2 scenarios:
1. The current distributed plugin version is v2.7 (the latest one normally), and it is compatible with all Notepad++ version from v8.3. If installed MineTools plugin is v2.7 and running Notepad++ is v8.3.3 then it's OK, and MineTools v2.7 will be loaded.

2. If installed MineTools plugin is v2.6 and running Notepad++ is v8.3.3 then Plugin Manager learns it's a previous version (v2.6 < v2.7), so it will check "old-versions-compatibility" - it will find v2.6 is in the 1st interval [,2.6] - it's matched, then Plugin Manager keep checking the running Notepad++'s compatibility: v8.3.3 is not in the 2nd interval [,8.2.1] - it's not compatible, then MineTools plugin v2.6 won't be loaded.

Here are the test instructions for this PR:
1.  download x64 debug binary here:
https://ci.appveyor.com/api/buildjobs/5ba501ecu21k28i7/artifacts/Notepad%2B%2B.x64.Debug.exe
2. Create an empty file "nppPluginList.json" in your `npp\plugins\Config\`
and copy the following content
5e23fce868/src/pl.x64.json
and paste into `npp\plugins\Config\nppPluginList.json`
You have to copy "updater" folder (which contains GUP.exe) to enable plugin list.
3. Download DSpellCheck plugin v1.4.22 which is not compatible with Notepad++ from v8.3 and later version here:
https://github.com/Predelnik/DSpellCheck/releases/download/v1.4.22/DSpellCheck_x64.zip
Install it into plugin folder manually.
4. Now launch Notepad++ x64 debug binary and watch it crash.
5. Edit "nppPluginList.json" by adding `"old-versions-compatibility": "[,1.4.22][,8.2.1]",` into DSpellCheck section.
6. Startup Notepad++. Notepad++ doesn't crash. and now you can check DSpellCheck plugin is not loaded on the startup.

Fix  #11358, fix #11349, close  #11356
2022-03-09 19:26:01 +01:00
mere-human
53cbe1c227 Fix append extension when saving with Return (win 7)
For some reason, the file name ComboBox isn't present when enumerating windows in OnFolderChange().
Because of that, we can't call onPreFileOk() in keyboard hook procedure.
Fix that by retrying window search in OnSelectionChange() if we didn't find them previously.

Fix #11305, fix #11355
2022-03-09 03:57:00 +01:00
xomx
4593293b4d Fix Plugin Admin close issue after typing ENTER
Prevent closing the PA-dlg by ENTER in search editctrl.

Ref:
https://support.microsoft.com/en-us/topic/how-to-use-the-enter-key-from-edit-controls-in-a-dialog-box-a520c533-1a62-f51c-af93-c7f978bc1080

Fixes: #11348, close #11351
2022-03-09 03:44:03 +01:00
Ashfaaq18
f6ea35d521 Fix RTL alignment bug in preferences dialog when dark mode enabled
Fixed "Dark Mode->Customize tone" color pickers RTL alignment

Fix #11343, close #11354
2022-03-09 02:25:54 +01:00
Ashfaaq18
c3daf4448d Fixed blurry disabled static texts of Preferences in Dark mode
Set static text colour in both light/dark mode directly for disable/enable action instead of EnableWindow().

Fix #10823, fix #11331, close #11342
2022-03-09 02:14:53 +01:00
Don Ho
f9118dd13c Use plugin list's plugin compatibility info for loading plugins
A new ability for checking plugins' compatibility with running Notepad++ has been added in Plugin List & Plugin Admin (a06b404708).
This PR extends this ability by using Plugin Admin's plugin list to filter plugins to load - if any plugin to load with **the same folder name**, **the same version** (as in the plugin list) and it's **not compatible** with the running Notepad++ version found while loading plugins, it will be skipped for being loaded.

Fix #11353, close #11350
2022-03-07 15:33:36 +01:00
Mr-Update
f285c5983a Update stylers.model.xml
Close #11296
2022-03-05 02:03:08 +01:00
LEONARDO SILVA
9cbd03c301 Add more API for custom auto-indentation and current macro status
4 new API are added:
- NPPM_GETEXTERNALLEXERAUTOINDENTMODE
- NPPM_SETEXTERNALLEXERAUTOINDENTMODE
- NPPM_ISAUTOINDENTON
- NPPM_GETCURRENTMACROSTATUS

* Added support for custom auto-indentation for external lexer.
* Also added messages to fetch current Macro status (Idle, Recording, Stopped, Running) -> for this also affects auto-indentation behavior.
* Also added capability to query for the current User Settings of "Use Auto Indentation".

Fix #11253, close #11278
2022-03-05 00:57:43 +01:00
Don Ho
a06b404708 Add Notepad++ compatible versions in plugin list
Implement: https://github.com/notepad-plus-plus/nppPluginList/issues/416

While PluginAdmin loading nppPluginList.dll, it will check an attribute "npp-compatible-versions" (optional),
in order to determinate if plugin is compatible to the current version of Notepad++. If plugin is not compatible,
then this plugin will be ignored, therefore it won't be shown on the PluginAdmin's plugin list.
Note that it's only about pluginsAdmin's plugin list:
it prevent from Notepad++ install/update a plugin non-compatible to current version of Notepad++,
but it still allows Notepad++ load this plugin in question, if it's already installed.

Here is the attribite "npp-compatible-versions" looks like in plugin list json file:
```
{
	"name": "npp-pluginList",
	"version": "1.4.7",
	"arch": "32",
	"npp-plugins": [
		{
			"folder-name": "demoPluginA",
			"display-name": "Demo Plugin A",
			"version": "1.8.7",
			"npp-compatible-versions": "[4.2,6.6.6]",
			"id": "9c566a9083ef66a0ce93a3ce5f55977faea559b5b0993e37a1461b87f4aeb6f0",
			...
		},
		{
			"folder-name": "demoPluginB",
			"display-name": "Demo Plugin B",
			"version": "1.1.8.7",
			"id": "8a6b9dadbf2ec37d5c60a12a5445f0eec2ef00e6eaa80452925789fd73950193",
			...
		},
		...
	}
}
```
It's optional. In the case of its absence, it's considered compatible to all versions of Notepad++.
The format of value for "npp-compatible-versions" is following (no white space is allowed):

"6.9"          : exact version 6.9
"[4.2,6.6.6]"  : from version 4.2 to 6.6.6 inclusive
"[8.3,]"       : any version from 8.3 to the latest one
"[,8.2.1]"     : 8.2.1 and any previous version

Fix #11338, close #11334
2022-03-04 17:36:57 +01:00
Daniel Fuchs
0affe35bc6 Re-enable possibility to center the FindReplaceDlg on Notepad++ main window
* add goToCenter to hotkey check in IDM_SEARCH_(FIND|REPLACE|FINDINFILES|MARK)

Before commit aa69711d it was possible to center the dialog on Notepad++ using a second CTRL+F but was lost during the implementation of #10019, #10177.

This will re-add the function:
* When the hotkey used is not associated with the current tab, it will switch to the new tab (as before).
* If the hotkey used is associated with the current tab, it will center the FindReplaceDlg on Notepad++.

Fix #9201, close #11323
2022-03-04 17:19:50 +01:00
xomx
a419b41ed5 Fix crash regression due to ca8c302805f882ed61717bb26efbc141a6991ea7
Crash regression has been inserted by #11258.

The 2GB+ adaptation has forced change in integers saving via TinyXML (now saved indirectly as strings). While the MapPosition part has been already fortified against possible missing session-file items, the Position part not. So implemented likewise the MapPosition way.

Fix #11325, close #11327
2022-03-04 13:37:06 +01:00
xomx
c19033c917 Make the silent uninstall of N++ via 'winget' possible
Fix issue https://github.com/microsoft/winget-pkgs/issues/49601

Fix #11310, close #11316
2022-03-02 22:27:09 +01:00
Don Ho
4b9aa66aee Add extension "aspx" for ASP 2022-03-02 02:35:58 +01:00
Daniel Fuchs
c869357c0f Include C# 9.0 nint/nuint
Fix #11303, close #11307
2022-03-02 01:35:44 +01:00
xomx
ebabed554b Fix deleting the folded line makes folded (hidden) content disapeared
Applying the Scintilla flag SC_AUTOMATICFOLD_CHANGE, ref:
https://www.scintilla.org/ScintillaDoc.html#Folding

"SC_AUTOMATICFOLD_CHANGE (0x4) Show lines as needed when fold structure is changed. The SCN_MODIFIED notification is still sent unless it is disabled by the container."

Fix #11246, close #11280
2022-03-02 00:46:23 +01:00
Don Ho
c435625d32 Add a new Easter Egg 2022-03-01 15:01:47 +01:00
Don HO
30b6b18d1e Notepad++ 8.3.2 release - Declare variables, not war 2022-02-27 16:15:06 +01:00
Hugo Carvalho
ca5a272ea8 Update portuguese.xml
Close #11301
2022-02-26 22:39:15 +01:00
Christophe Mateos
72602b62eb Update french.xml
Moved lines to better match english.xml file, to ease human-eye future maintenance (mainly to quickly catch missing/extra entries)
Also a few new lines and comments with the same goal in mind

Close #11283
2022-02-26 16:18:42 +01:00
Edditoria
1b0400698f Update localization: Hong Kong Cantonese
As at commit 8132f4f of this repo.
Also bump version to v8.3.2 in advance.

Close #11286
2022-02-26 16:14:52 +01:00
jasasa
bb8eea13d1 Update norwegian.xml
More up to date Norwegian translation.

Close #11294
2022-02-26 16:13:14 +01:00
xomx
3482ed97ea Fix UDL comment config input fields broken regression
Which caused by commit 94154b0f0e281b4bbfad9c59f8d01c9dff305c12.

Fix #11239, close #11292
2022-02-26 15:58:22 +01:00
Don Ho
8132f4f3b0 Update Taiwanese Mandarin translation 2022-02-24 02:14:37 +01:00
Christophe Mateos
0872c69ea4 Update french.xml
With most of @fylip22 changes and I believe all @donho comments taken into account from https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11124

Close #11273
2022-02-24 02:00:51 +01:00
rddim
2c9ef04198 Update Bulgarian localization
Close  #11279
2022-02-24 01:53:35 +01:00
kubalav
9e5ab51901 Update Slovak translation to 8.3.2
Close #11276
2022-02-24 01:51:00 +01:00
Don Ho
bfbad49cf4 Fix incoherence about supporting 2GB+ files 2022-02-24 01:48:28 +01:00
xomx
11128e5c3e Update and fix czech.xml
Close #11270
2022-02-23 15:11:02 +01:00
yasmise
2d1ba01999 Update japanese.xml
Add translations for these commits:
* Add "Sort By" commands under Window Menu (1c8b8673958f1872e80f279f85aeb83771c9789e)
* Add "Windows..." localization entry (ee765135be97808d68d04700a349abb9ac0ad41d)

Also this contains a fix for minor translation error.

Close #11266
2022-02-22 23:38:55 +01:00
Daniel Fuchs
052b27e3d7 Add API NPPM_GETCURRENTLINESTR & RunDlg's variable $(CURRENT_LINESTR)
Add new API NPPM_GETCURRENTLINESTR and new variable $(CURRENT_LINESTR) for RunDlg to get the whole current line string.

Fix #11216, close #11265
2022-02-22 15:07:30 +01:00
xomx
ca8c302805 Support better 2GB+ file (cmdline & session file adaptation)
Some members (_line2go, _column2go and _pos2go) from the CmdLineParams & CmdLineParamsDTO structs need 'int' to 'intptr_t' change to support 2GB+ files.
Saving & loading of the 'session.xml' needs a 2GB+ adaptation too. The underlying TinyXML (older v1) does not have a native support for the 64-bit integers, so loading/writing there has been changed to strings instead of integers. This way is fully compatible with a possible future update to TinyXML-2 (which has already built-in support for the 64-bit integers).

Fix #11213, close #11258
2022-02-22 14:32:28 +01:00
xomx
9c19bae7c9 Update czech.xml to v8.3.2
Close #11260
2022-02-22 02:16:21 +01:00
xomx
e839b81e85 Refine autosaving session on exit behaviour
Refine autosaving session on exit behaviour on only "Open session in a new instance" or "always in multi-Instance".
If the "Default (mono-instance)" is chosen and the session is launched via command line with flag "-multiInst", the modified session won't be saved automatically.

Fixes #11249, close #11255
2022-02-22 02:00:37 +01:00
xomx
3de15f5512 Enhance performance on exit with certain settings
Notepad++ is unnecessarily stalled in the situation, when closing a N++ with a large file opened within, but the session.xml file will not be updated at all due to the current Notepad++ settings chosen.

Fix #11219, close #11259
2022-02-22 01:38:26 +01:00
Don Ho
58e404650b Remove not used codes 2022-02-22 00:54:10 +01:00
Don Ho
ee765135be Add "Windows..." localization entry
The "Window" menu localization was pleinty of dirty hack due to "Plugin" menu was created (or not) dynamically.
Now "Plugin" menu is present statically so we localize this entry as other entries.
2022-02-21 18:59:07 +01:00
Don Ho
456fdaa680 Simplify the localization in codes
and fix the bug that menu "Window" not translated:
5917fdefb0 (commitcomment-67151276)
2022-02-21 17:59:25 +01:00
exd0tpy
fc064d3254 Fix UDL dialog crash issue on over 30 created UDL
Add index check when add User Defined Language
If user create User Defined Language over 30 (NB_MAX_USER_LANG) times app is crash.

Fix #11257, close #11251
2022-02-21 15:48:56 +01:00
Patriccollu
456d3fcebf Update Corsican translation for Notepad++ 8.3.2
Close #11254
2022-02-21 14:50:53 +01:00
~GOLEM~
27ade5d88b Update russian.xml to v8.3.2
Close #11252
2022-02-21 14:29:58 +01:00
A. Regnander
60f42199db Update swedish.xml
Close #11242
2022-02-21 03:45:50 +01:00
VinsWorldcom
80ba58773d Fix auto-completion sort order problem due to fx icon
Fix #11233, close #11234
2022-02-21 03:42:09 +01:00
Don Ho
efcb3d0472 Update localization files 2022-02-21 01:41:58 +01:00
Don Ho
5917fdefb0 Fix translation problem for "Sort By"
Make "Plugins" & "Window" menu static to simplify the code.
2022-02-21 00:57:15 +01:00
deebash
1c8b867395 Add "Sort By" commands under Window Menu
Add commands by name, path, type and by size for sorting under Window Menu.

Fix #10393, close #11190
2022-02-20 18:52:07 +01:00
mpheath
726ad7f580 Fix autocomplete case insensitive not working issue
Fix #11187, close #11191
2022-02-20 18:13:41 +01:00
Don Ho
de43eca30e Exclude NppTaskList v2.3 and older versions only, crash fixed in 2.4
Exclude NppTaskList v2.3 (and older versions) only thanks to its update to v2.4:
a6596d99c9

Ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11243#issuecomment-1046072537
2022-02-19 20:02:06 +01:00
Don Ho
60df9e5f0a Exclude NppTaskList via installer due to crash issue on Npp x64
Fix #11243
2022-02-19 17:40:32 +01:00
xomx
b233c0c3e0 Fix saving problem (regression) with "Sysnative" alias in x86 binary
Removing the 'case sensitive' default flag FILE_FLAG_POSIX_SEMANTICS fixes the CreateFile ERROR_PATH_NOT_FOUND, when working with files like "C:\Windows\Sysnative\drivers\etc\hosts".

Without the FILE_FLAG_POSIX_SEMANTICS the WIN32 IO (CreateFile/WriteFile) way will be equivalent with the previously used POSIX IO (fopen/fwrite) way.

More info about this "Sysnative" alias: https://docs.microsoft.com/en-us/windows/win32/winprog64/file-system-redirector

Fix #11196, close #11225
2022-02-18 16:48:34 +01:00
Don Ho
2321e648ae Fix regression: file can't be saved if it's set to other charset before
Fix #11238
2022-02-18 14:49:21 +01:00
Don HO
4555db8f91 Update localization files 2022-02-18 11:36:03 +01:00
Don Ho
e1ccd98745 Remove old version of XMLTool via installer to prevent Notepad++ from crash
Add "removing old version (3.1.1.10) of XMLTool" entry in installer to prevent Notepad++ x64 from crash.
Its v3.1.1.12 or upper versions are allowed.

Fix #11236
2022-02-18 11:01:49 +01:00
Don Ho
637f470b6e Add more Easter Eggs for the coming Easter Sunday 2022-02-17 15:20:07 +01:00
Don HO
010ce6f0f1
Update CONTRIBUTING.md
Make brace position more explicit in both .cpp & .h.
2022-02-17 14:02:00 +01:00
Don HO
47481c76e8
Update CONTRIBUTING.md
Define the braces position in C++ header files.
2022-02-17 13:50:48 +01:00
Don Ho
2df765e189 Code enhancement: prevent from signed integer overflow
Ref:
94154b0f0e (commitcomment-66609009)
2022-02-16 19:13:35 +01:00
Don Ho
51b1c9377c Fix incorrect message on double click on search result regression
This regression was inserted by commit c0be50494ceba80bd1c380f64c9c02391f926526 (PR #11107).

Fix #11215, Fix #11106
2022-02-16 18:22:47 +01:00
Don HO
5c02505998 Notepad++ v8.3.1 release
Boycotting Beijing 2022 continues in this release
2022-02-15 16:32:03 +01:00
Hugo Carvalho
92eb49f6af Update portuguese.xml
For commits: 85e7207eef4f1df98817ce4ff8b98f6581a38c6c 2c1090e554a7ed4e68e1706d72112f64546384dc 6392508cd14947d01473bafc962e46a316b61248

Close #11176
2022-02-12 18:15:27 +01:00
Thomas De Rocker
c5f692815d Update dutch.xml
Close #11174
2022-02-12 18:13:13 +01:00
rddim
4612d0aafb Update Bulgarian localization
Close #11154
2022-02-12 18:11:24 +01:00
yasmise
2d9545dd3b update japanese.xml
Added translation for these commits:
* Enhance error handling while opening file (85e7207eef4f1df98817ce4ff8b98f6581a38c6c)
* Update english.xml (2c1090e554a7ed4e68e1706d72112f64546384dc)

Close #11151
2022-02-12 18:08:53 +01:00
kubalav
bde3da46fe Update Slovak translation to 8.3.0
Close #11149
2022-02-12 16:39:08 +01:00
Patriccollu
f3b11d16d4 Update Corsican translation for Notepad++ 8.3.1
Close #11116
2022-02-12 16:33:56 +01:00
Artem Polivanchuk
30651e94ff Update belarusian.xml
Close #11108
2022-02-12 16:30:56 +01:00
xomx
5d78c7f08e Update czech.xml to v8.2.2
- WantToOpenHugeFile
- added missing translations for Print Header & Footer Variable combobox items
- better meaning for some of the edit-onSelection items
- some previous typing error corrections

Close #11100
2022-02-12 16:27:22 +01:00
~GOLEM~
8be6bcc708 Update russian.xml to v8.3.1
Close #11094
2022-02-12 16:16:57 +01:00
Daniel Fuchs
0c83175b59 Fix conflicting German translations
* make two functions available in Shortcut Mapper by improving their translation

Close #11092
2022-02-12 14:52:46 +01:00
Regmos
79d1a2230d Update danish.xml
Close #11062
2022-02-12 14:46:56 +01:00
Tmp341
c2af4a8b3d Update Turkish localization
* * According to d9ef4be, 9be4eeb, 78c6554, 68d339d, e048f83, 85e7207 and 2c1090e commits.
* I don't know how i missed the removal of id=42079, but removed now (line 178).

Close #11183
2022-02-12 14:31:38 +01:00
xomx
fc1365ea99 Fix target directory parameter ignored by x64 installer issue
Fix for the /D= NSIS param regression (x64)
Detailed explanation is in the .onInit patch comments.
This regression has been caused by the previous PR: #11013 .

Fix #11072, close #11158
2022-02-12 03:29:18 +01:00
Don Ho
d372894e78 Fix typo and reword contribution note
Fix #11058
2022-02-10 14:23:27 +01:00
Don Ho
94154b0f0e Code enhancement: Fix comparison of different signs integers 2022-02-09 20:06:59 +01:00
Don Ho
785453147b Inialize all memebers of struct (instead of its 1st member) to zero
The curly brace initiator in C/C++ is quite confusing (at least to me).
The C style array uses {0} for initializing all the array to 0,
whereas C++ struct uses {0} for initializing only the 1st member's value to 0.
If we want to set all members' value in a struct to 0, we should use {} instread of {0}.

This commit fix the error which initialize only the 1st member's value to 0 in the structures.

Ref:
1. https://docs.microsoft.com/en-us/cpp/cpp/initializing-classes-and-structs-without-constructors-cpp?view=msvc-170
2. https://en.cppreference.com/w/c/language/struct_initialization
2022-02-09 16:41:56 +01:00
Don Ho
2e9342ae24 Code enhancement: Initialize member variables 2022-02-09 04:40:16 +01:00
Daniel Fuchs
dee3bad29d Make variable list combobox translatable in printing preferences
The list of variables defined under Preferences > Print can be translated using the following method:

https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11093/files#diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472R999-R1007

However as pointed out by others this will break the "Add" button, so translation is currently not possible. The result is, that nothing is added to the current field.

This commit makes translation possible without breaking "Add" feature.

Fix #11114, close #11115
2022-02-08 19:40:23 +01:00
Don Ho
987a944ada Update french.xml & taiwaneseMandarin.xml 2022-02-08 19:17:27 +01:00
Don Ho
6392508cd1 Solve the confilt in english.xml 2022-02-08 18:44:59 +01:00
Daniel Fuchs
2c1090e554 Update english.xml
English localization for #11047

* add translation for WantToOpenHugeFile as referenced by commit 46011e3
* add previously untranslated drop-down items in Preferences > Print

Close #11093
2022-02-08 18:40:41 +01:00
Don Ho
f815b7057f Revert "Enable backup on save (simple) feature by default"
This reverts commit 40fbae1f76e82ae5698aaa59f33a826941f9633c.
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10725#issuecomment-1032106977
2022-02-08 02:10:23 +01:00
xomx
85e7207eef Enhance error handling while opening file
In FileManager::loadFileData method:
1. Fix unnecessary GCC crashes when opening larger files in 32-bit Notepad++ binary.
2. Take into account and report correctly also other possible Scintilla error states there (than the previously handled SC_STATUS_BADALLOC).
3. Catch and report correctly also exceptions not handled by the Scintilla exception handler.
4. Catch and report correctly also Notepad++ code exceptions there.

Fix #11103, close #11112
2022-02-07 23:34:54 +01:00
Don Ho
9baaef786b Fix Path Completion not working regression
Fix #11147
2022-02-07 23:17:07 +01:00
Don Ho
6c345e907b Optimize setting image call in auto-completion
In PR #11088 the calling scinitilla is not optimized:
SCI_REGISTERIMAGE & SCI_AUTOCSETTYPESEPARATOR need to be called only once.
2022-02-07 20:12:45 +01:00
VinsWorldcom
c394a890aa Add icons on function items of auto-completion to distiguish from word items
Fix #11087, close #11088
2022-02-07 19:01:47 +01:00
mere-human
b5a5baf13b Fix file dialog "Append extension" checkbox not working in empty dir
Use hooks for keyboard and window procedure instead of subclassing controls.
Use a handle map for transferring instance data to the hook procedure.
This approach should be more reliable than the previous one.

Fix #10436, close #11050
2022-02-07 15:38:21 +01:00
Don Ho
bbe8a7db26 Restore auto-completion insert selection default setting (ENTER & TAB)
Since auto-completion feature appeared in Notepad++, its selected item insertion default setting has had been always both "ENTER" & "TAB" keys. In commit 68d339d224eba0fa7aeb2e0f7526b3311cc02c5a:
68d339d224
this default setting was changed to only "TAB", that made a lot users who used "ENTER" for insertion unhappy.
In this commit the old default value has been restored. Users can always change this behaviour in auto-completion settings of preferences dialog.

Ref:
https://community.notepad-plus-plus.org/topic/22425/notepad-v8-2-1-release/34?_=1644179730538
2022-02-06 23:45:04 +01:00
xomx
deb99ae45b Fix cmdline '-n' param not working and wrong cursor position regression
When file is opened via "Edit with Notepad++", cursor position is placed on the 2nd position instead of the first.
This fixes the signed/unsigned mismatch there arisen from the current 2GB+ changes.

Fix #11131, close #11132
2022-02-05 19:23:13 +01:00
ArkadiuszMichalski
9fccc37987 Fix Dark Mode Customized tone link part is not persistent
Fix #11095, close #11102
2022-02-04 18:02:25 +01:00
Christian Grasser
c0be50494c Fix NPPM_RELOADFILE with 8.3 path containing bug
Fixes issue seen with pythonscript testcase https://github.com/bruderstein/PythonScript/blob/master/PythonScript/python_tests/tests/NotepadWrapperTestCase.py#L383-L397 using NPPM_RELOADFILE with a 8.3 path containing.

Fix #11106, close #11107
2022-02-04 17:17:37 +01:00
Don HO
73a4cdc104 Fix XML tag mark deletion crash Notepad++ v8.3
The uninitialized structure members contain the random value.
The crash is fixed by initializing them with a default value.

Fix #11128
2022-02-04 15:20:55 +01:00
Don HO
ae6361fa35 Notepad++ release v8.3 (Boycott Beijing 2022) 2022-02-03 23:35:12 +01:00
Don HO
1c6055ecf7 Better management for unstable plugin 2022-02-03 02:46:29 +01:00
Don HO
bf82faea5e Adapt Installer script for the unstable plugins 2022-02-02 16:51:06 +01:00
Don HO
807271f989 Fix NSIS build error 2022-01-31 21:28:12 +01:00
Don Ho
720bb3f74b Remove unstable 64 bits plugins during the installation
Fix #11104
2022-01-31 05:03:18 +01:00
Don Ho
993506af0a Fix Find in Files crash 2022-01-31 03:55:28 +01:00
Don Ho
6d311e102e Fix 2 logic error (wrong copied/pasted)
ref:
774321e099 (r64847350)
2022-01-29 15:11:59 +01:00
Don Ho
4077ec2f69 Fix crash regression in UDL dialog
Fix #11101
2022-01-28 23:27:27 +01:00
Don Ho
774321e099 Improve 200MB+ files loading/editing performance
While loading files over more 200MB, they are all considered as Normal text files, that improve loading speed (for example for huge XML or SQL file).
Also, the feature as braces match, smart highlightingg, tag match and URL colorization are disabled for not penalizing the editing performance.
2022-01-28 19:49:58 +01:00
Don Ho
db3308329b Fix crash on opening file with wild card characters
And redefining Sci_PositionCR to 64 bits on x64 build for managing 2GB+ files.
(ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11047#issuecomment-1021540298)

Fix #11098
2022-01-28 04:17:45 +01:00
Don Ho
44004d41d4 Enhance large file loading: disable 4 features for large files
Dur to the performaance issue, the loading of large files will disable automatically the following feature:
1. auto-completion (only for large files)
2. snapshot periode backup (only for large files)
3. backup on save (only for large files)
4. word wrap (persistent for all files. Need to enable it manually)

Ref: https://community.notepad-plus-plus.org/topic/22438/notepad-v8-2-2-release-candidate/6?_=1643194615292

Fix #8802
2022-01-27 16:12:50 +01:00
Don Ho
edabe44000 Disable Word Wrap while load a 2GB+ file 2022-01-26 18:44:58 +01:00
Don Ho
2132505cba Fix unsaved untitled files not being opened on the next session regression
Fix #11080
2022-01-26 17:49:37 +01:00
Don Ho
961a133a60 Remove 2GB file open restriction for x64 binary
Fix #10921, close #11047
2022-01-25 18:08:05 +01:00
Christian Grasser
5b5dbbd3f9 Fix ARM64 build doesn't contain 64 bits information
Fix #11068, close #11069
2022-01-25 01:51:21 +01:00
Don Ho
7df6af7e2e Fix Find dialog visual glitch
Ref:
https://community.notepad-plus-plus.org/topic/22399/notepad-8-2-1-release-candidate/2?_=1643043577513

Close #11067
2022-01-24 18:54:00 +01:00
VinsWorldcom
fcfa034cc5 ESC key clears function list filter & search result
Even the focus is not on filter field but on one of tree view entries.

Fix #11063, close #11064
2022-01-24 18:39:16 +01:00
Don HO
2b99372169 Notepad++ v8.2.1 release 2022-01-24 15:58:07 +01:00
Don Ho
234941c180 Fix regression of bg/fg color disabling visual glitchy
The regression is due to:
7c9f4204ea (diff-473b357ab7088152f46cb49e9d3336344425ab463c209b10b2fe16df98cc3b76)

Fix #11051
2022-01-19 16:49:04 +01:00
conky77
4f0be89651 Update Italian.xml to 8.2.0
Close #10976
2022-01-19 02:27:13 +01:00
conky77
953fea562e update venetian.xml to 8.2.0
Close #10977
2022-01-19 02:22:25 +01:00
rddim
aa998a7f07 Update Bulgarian licalization
Close #10982
2022-01-19 02:17:24 +01:00
kubalav
95ced9ffa6 Update Slovak translation to 8.2
Close #10997
2022-01-19 01:32:19 +01:00
yasmise
5edbed748a update japanese.xml
Following this commit:
Update english.xml (d9ef4be5798a76f9715b5efe2b128376d0320e9b)

Close #10998
2022-01-19 01:30:02 +01:00
Patriccollu
441b9aa94c Update Corsican translation for Notepad++ 8.2
Close #10999
2022-01-19 01:26:02 +01:00
~GOLEM~
bf3b974edd Update russian.xml to v8.2
Close #11000
2022-01-19 01:22:58 +01:00
Daniel Fuchs
5a382cb646 Update German translation
* update german.xml to v8.2
* fix some (colloquial) wording

Close #11009
2022-01-19 01:20:12 +01:00
Hugo Carvalho
67cda62112 Update portuguese.xml to v8.2.1
Close #11030
2022-01-19 01:14:25 +01:00
ArkadiuszMichalski
44150ea675 Update polish.xml to 8.2.1
Update polish.xml to 8.2.1 (according to the latest commit).

Close #11033
2022-01-19 01:10:14 +01:00
xomx
88e660ab12 Update czech.xml to v8.2.1
resolved conflicts in previous PR #10975

Close #11043
2022-01-19 01:05:43 +01:00
Edditoria
8befad7751 Update Hong Kong Cantonese localization
As at commit cb7bbef of this repo.
Also bump version to v8.2.1 in advance.

Close #11054
2022-01-19 01:01:32 +01:00
Don Ho
cb7bbef4fe Fix "File is too big to open" message isn't modal issue
And plus some refactoring.
2022-01-14 15:09:13 +01:00
Don Ho
029a09ab5b Remove obsolete localization entries
Ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11037#issuecomment-1012110125

Close #11041
2022-01-13 19:15:08 +01:00
Don Ho
7ebb1e3672 Add Find/Replace text swap button in Find replace dialog
Fix  #6010, close #11037
2022-01-13 18:44:03 +01:00
Don Ho
3ce90f56d6 Fix wrong keywords (of preprocessor in C) highlighting in Java
Remove C Preprocessor color settings from stylers.model.xml + all theme files.

Fix #11026
2022-01-12 18:09:55 +01:00
Don Ho
e048f83420 Make menu folders on context menu translatable
Make the following context menu items translatable:
1. "Style all occurrences of token"
2. "Style one token"
3. "Clear style"
4. "Plugin commands"

Note for translators: to test your translation, you have to replace the old "contextMenu.xml" with the new one (modified in this commit).

Fix partially #8972
Fix #9713, close #11031
2022-01-11 15:07:55 +01:00
Don Ho
5dada11848 Fix Debug information wrong OS information detected with windows 11 issue
Fix #11011
2022-01-11 02:05:38 +01:00
Don Ho
68d339d224 Auto-completion currently use both ENTER and TAB to insert the selected item,
in some circumstance people have to ENTER twice to have 1 newline feed.

In this commit, 2 options (ENTER & TAB) are given in Auto-completion settings, so users can choose one of these 2 keystrokes (or both, or none). By default ENTER is disabled and TAB is enabled.
If auto-completion is disabled and completion is triggered manually, then the settings of ENTER & TAB won't be considered, both ENTER & TAB will be able to insert the selection.

Fix #4799, fix #4631, fix #8389, fix #10915, close #11016
2022-01-10 15:10:54 +01:00
Don Ho
ed40f11515 Fix loaded session being empty on exit
In the following configuration loaded session will be empty on exit
* Remember current session for next launch: OFF
* Open session in a new instance: ON

This commit fix the issue.

Fix #10986, close #11017
2022-01-10 15:05:44 +01:00
Don Ho
e40aec0b3f Friends are just like trees 2022-01-10 03:11:49 +01:00
Don Ho
9208ed2abc Make 1 entry of French translation shorter
Fix #11006
2022-01-09 03:05:01 +01:00
Don HO
36cbfb45cd Better clean on unstallation 2022-01-09 02:35:19 +01:00
xomx
9f08013d08 Fix installer x64 not detected the previous installation location
Ref:
https://nsis.sourceforge.io/Reference/SetRegView

Fix #7946, close #11013
2022-01-08 18:03:03 +01:00
Don Ho
9929160a00 Update French & Taiwanese localization 2022-01-08 17:04:53 +01:00
mere-human
78c6554e91 Add missing translation for folder browser title
Affected places:
File > Open Folder as Workspace
Search > Find in Files
Settings > Preferences > Default Directory > [...]
Settings > Preferences > Backup > [...]

Fix #10983, fix #10984, fix #10985, close #11005
2022-01-08 16:57:33 +01:00
Don Ho
44c9a0561b Fix "Save As" command cannot be used as "Save" issue
If user tries to save a existing file as file itself by using "Save As" command,
then he/she chooses the same file from the Save As file dialog,
* old wrong behaviour: "Save As" action is rejected with the message "The file is already opened in Notepad++".
* new correct behaviour: "Save As" action is allowed.

Fix #10965, close #11008
2022-01-07 21:04:10 +01:00
mere-human
9be4eeb4e6 Add copy name/path commands to DocList and Edit menu
1. Add new commands to copy selected files name/path into multi-selection context menu in Document List.
2. Add new commands to copy all files name/path into Edit > Copy to Clipboard.
3. Create a new function buf2Clipborad() to be used in all similar commands.
4. Fix the translation of the Document List multi-selection context menu.

Fix #10394, close #10993
2022-01-05 15:58:54 +01:00
Don Ho
a4bd526639 Fix French localization 2022-01-05 02:52:21 +01:00
rddim
d9ef4be579 Update english.xml
Fix #10356, close #10981
2022-01-05 00:29:27 +01:00
Rajendra Singh
23b2a3fa8e Fix Recent Files List not revised issue after "Save As" command
Fix #10946, close #10994
2022-01-04 23:41:29 +01:00
ArkadiuszMichalski
0dd0a9586a Support both MingGW multilib versions
Fix #10941, close #10962
2022-01-04 22:34:59 +01:00
Don Ho
a790822847 Add Windows 11 on the supported OS list 2022-01-04 13:55:09 +01:00
Don HO
573a3db6e9 Notepad++ release 8.2 2022-01-01 00:04:52 +01:00
Don HO
3c89b57167 Installation: Let users decide to keep or not HexEdit plugin
Fix #10828, close #10972
2021-12-31 23:59:59 +01:00
Don Ho
5d1bbc05ef Update 3 localization files 2021-12-30 01:49:05 +01:00
schnurlos
5dd868cf4b Update german.xml to V.8.1.9.2
Following add9f64104 (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472) & 7aa0a56320 (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)

Close #10845
2021-12-30 00:52:24 +01:00
IoeCmcomc
61eff45bd2 Update Vietnamese translation
Signed-off-by: IoeCmcomc <53734763+IoeCmcomc@users.noreply.github.com>

Close #10880
2021-12-30 00:50:00 +01:00
Iñigo Zendegi
66eddf2501 Update basque.xml
Close #10931
2021-12-30 00:46:44 +01:00
Artem Polivanchuk
1ad973fa26 Update Ukrainian translation
Close #10934
2021-12-30 00:41:57 +01:00
Tmp341
35c26e3ad4 Update Turkish localization
* According to add9f64, 7aa0a56 and 4facc4d commits.

Close #10938
2021-12-30 00:40:05 +01:00
~GOLEM~
9debacde9f Update russian.xml to v8.1.9.3
Close #10944
2021-12-30 00:37:58 +01:00
kubalav
cb441d8a59 Update Slovak translation to 8.1.9.3
Close #10945
2021-12-30 00:36:37 +01:00
yasmise
13d92c614f Update japanese.xml
Translation update to follow this commit:
* Add auto save loaded session on exit feature (a16930fffea1d69034d0f4336ff71b81f239dd9f)

Also, fix for looking of parentheses for inconsistency.

Fix #10949
2021-12-30 00:35:23 +01:00
György Bata
35dc1f8c45 Hungarian translation update for 8.1.9.3
Close #10951
2021-12-30 00:34:05 +01:00
rddim
492d27996d Update Bulgarian localization
Close #10953
2021-12-30 00:25:20 +01:00
Hugo Carvalho
234d142cab Update portuguese.xml
For commit: a16930fffe

Close #10954
2021-12-30 00:21:59 +01:00
Don Ho
87db9d1957 Fix caret left-right inverse moving in R2L mode issue
ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/10334#issuecomment-1002054488

Fix #8553, fix #7678, fix #9730, close #10963
2021-12-29 18:37:02 +01:00
Ashfaaq18
79fa0abc8b Fix memory leak when toggling to and from Dark Mode
Fix the memory leak due to icons of toolbar - they are not removed from ImageList while switching between dark/lite mode.

Fix #10957, close #10966
2021-12-29 16:50:07 +01:00
Don Ho
c0989d472c Enlarge your name field size!
Rename current tab & Rename User Language name could be up to 63 characters now!
(Before this implementation the limit size is about 20 characters)

Fix #10961, fix #9849, close
2021-12-29 16:00:55 +01:00
Ashfaaq18
4a7a33f010 Fix Document List icons unchanged issue after switching to dark mode
1. Document List icons now support darkmode icons and alternate icons.
2. Fixed memory leak in code and additional code refactoring.

Fix #10740, close #10956
2021-12-28 01:04:38 +01:00
Don Ho
ae09024e66 Fix UTF-8 detected wrongly as TIS-620 issue
uchardet detects usually wrongly UTF-8 as TIS-620, hence TIS-620 detection is disabled in this commit.
More info:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10916#issuecomment-1001671957

Fix #10916, fix #940, fix #8755, fix #3588, fix #3188, fix #4932, fix #3172, fix #10492, close #10958
2021-12-27 20:17:18 +01:00
Don Ho
33a0587a65 Fix incorrect folding behaviour in C, C++ & Javascript
Fix also for TypeScript and Objective-C.

Fix  #4560, close #10948
2021-12-25 21:49:30 +01:00
Don Ho
a16930fffe Add auto save loaded session on exit feature
This new feature works only if Multi-instance settings is NOT set to "Default (Mono-instance)".

Fix #1646, fix #3241, fix #3574, fix #4228, close #10935
2021-12-24 17:32:08 +01:00
Don Ho
a563a8b812 Open "crontab" file by using syntax highlighting of bash
Fix #3377, close #10943
2021-12-24 03:19:19 +01:00
Don Ho
30c586d94c Fix wrong language name in installer 2021-12-23 15:49:48 +01:00
ArkadiuszMichalski
85d6108a6b Fix Build not work under path with space
Fix #10907, close #10914
2021-12-21 23:44:52 +01:00
CennoxX
31799472b4 Add new keyword "var" in Java
Add new keyword "var" in Java, and sort the list alphabetically.

Fix #4390,  close #10917
2021-12-21 19:27:11 +01:00
Don Ho
b5d646b4cd Add exclude folder(s) capacity in Find in Files
This PR allows users to provide the list of excluding folder names/patterns in "Filters" field.
Eclusion operator is alway "!" at the begining. In order to distinguish folder from file, "\" should be used as prefix of the folder name/pattern, following "!". That allows the exclusion of the directories under the root directory you want to search (the 1st level of matched directories).

If users need to exclude folders with the same name (or names matched the specific pattern) in all levels, the + should be put between "!" and "\" to exclude them recursively.

Here is a sample:
Filters: *.* !\bin !+\test !+\log*
Directory: c:\myProject\

So the excluded directories could be:

    c:\myProject\bin\
    c:\myProject\log\
    c:\myProject\logs\
    c:\myProject\src\log4j\
    c:\myProject\test\
    c:\myProject\src\test\

The following directories will not be excluded:

    c:\myProject\foo\tests\
    c:\myProject\foo\bin\

Note that "inclusion of folder" is not allowed, and such pattern will be ignored.

Fix #2433, fix #8350, close #10927
2021-12-21 18:39:22 +01:00
Don Ho
ac52f406f3 Fix no focus on edit zone regression
Fix no focus on edit zone after switching back to Notepad++.
This regression is introduced by ee884f87bbb66d1431f0d530d0cd25bb7cde6b35 (#10910)

ref:
ee884f87bb (commitcomment-62032223)
2021-12-16 17:37:11 +01:00
Don Ho
1c81788881 Add a new keyword "nameof" in C#
Fix #10870
2021-12-15 14:29:55 +01:00
Christian Grasser
556fe39cb6 Update boost regexp from v1.76 to v1.78
Update boost regexp to version 1.78.0 from:
https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.7z

Close #10912
2021-12-15 10:57:45 +01:00
Shridhar Kumar
ee884f87bb A comprehensive fix for background clipping of dock panels
The (very detailed) explanation/information of fix:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2937#issuecomment-992086848

Fix #2202, fix #2937, fix #5980, fix #8980, fix #9905, fix #10091, close #10910
2021-12-14 02:53:09 +01:00
ArkadiuszMichalski
3d5aa49cdd Fix build 32-bit binary failure under unix-like shell (Git Bash)
Read Windows environment variables correct also for unix-like shell.

Fix #10885, close #10886
2021-12-14 00:54:30 +01:00
Don HO
6df3db124f Notepad++ release 8.1.9.3 2021-12-08 20:58:49 +01:00
Don Ho
5d2fc0d8c0 Fix log written under wrong condition 2021-12-06 18:50:36 +01:00
Don Ho
0f4010eada Refactoring for the readability 2021-12-05 04:45:55 +01:00
xomx
bf732c9991 Fix dirty status after reloading file
Fix #10796, close #10874
2021-12-05 04:15:12 +01:00
Regmos
09890daa54 Update danish.xml
Close #10879
2021-12-05 01:16:12 +01:00
xomx
b41cb7d65b Update czech.xml to v8.1.9.3
Close #10877
2021-12-05 01:14:39 +01:00
ArkadiuszMichalski
4facc4db46 Update polish.xml to 8.1.9.3
Close #10875
2021-12-05 01:13:17 +01:00
yasmise
e99d2eb696 update japanese.xml to v8.1.9.2
Added these translations:
* Add "Notepad++ User Defined Languages Collection" project website ... (add9f641043aca953545179f2e2d10690adcf64d)
* Update english.xml (7aa0a563200cba25f7bee3233cf78ded87341d1b)

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
Don Ho
540fbeddda Add JSON syntanx highlighting in the dark themes 2021-10-15 00:42:45 +02:00
Thomas De Rocker
85ea1e6431 Update dutch.xml
Close #10631
2021-10-14 18:21:42 +02:00
Ashfaaq18
6526094ee7 Fix tooltip layout and position in RTL mode
Fix #10646, close #10655
2021-10-14 18:15:16 +02:00
Ashfaaq18
e82a451ec1 Fix docking problem for dockable panel in RTL mode
Fix #10641, close #10645
2021-10-14 18:09:21 +02:00
Kyle K
324a7ab8cc Enhance dark themes for some programming languages
Tweak themes for python and makefile.
Also apply default color to other items in need.

Fix #10648, close #10661
2021-10-14 16:41:15 +02:00
Ashfaaq18
4cf1267af8 Fix white flash in dark mode on CMD launch with position data
Fix #10657, close #10658
2021-10-14 15:36:45 +02:00
CennoxX
add1c145ad Fix "Run macro until the end of file" command skipping the last line issue
Fix #10441, close #10638
2021-10-14 14:40:45 +02:00
Don HO
c1dac5983a Notepad++ 8.1.6 release 2021-10-13 15:48:40 +02:00
Ashfaaq18
35e3fb9688 Fix white flash on Notepad++ startup in darkmode issue
Fix #3955, fix #10601, close #10639
2021-10-10 13:33:24 +02:00
Tmp341
d692b5060f Update Turkish localization
* According to 2576bf8, 45831ac, deab93f, e12b161, 84c1505, ef8522e, 36d0d29 and f6282f4 commits.
* Some spacing.

Close #10587
2021-10-07 01:17:28 +02:00
Don Ho
6a3d6e05d9 Add new quotes 2021-10-06 03:11:10 +02:00
CennoxX
b4d94f5774 Make markdown UDL work in evry dark theme
When using dark mode with a theme other than DarkModeDefault the background and font color of the theme are not applied to all styles.
This PR fix this bug by adding colorStyle="1" to ignore defined background colour in UDL, and use the default's background colour (theme's one) instead.

Fix #10593, close #10619
2021-10-06 01:01:12 +02:00
A. Regnander
5de59d7e44 Update swedish.xml
Close #10620
2021-10-05 14:38:16 +02:00
Don Ho
6c3031f01b Fix file can be marked as saved even it's been deleted outside
This PR make buffer always dirty (with any undo/redo operation) if the editing buffer is unsyncronized with file on disk.
By "unsyncronized", it means:
1. the file is deleted outside but the buffer in Notepad++ is kept.
2. the file is modified by another app but the buffer is not reloaded in Notepad++.

Note that if the buffer is untitled, there's no correspondent file on the disk so the buffer is considered as independent therefore synchronized.

Fix #10401, close #10616
2021-10-05 02:32:40 +02:00
Don Ho
97ad1d922e Update translations 2021-10-03 03:38:05 +02:00
Adam D. Walling
78a2f32692 Fix status bar text display issue in dark mode
Fix incorrect text size calculation for drawing the dark mode status bar
which can cause an invalid character to be displayed.

Fix #10564, close #10611
2021-10-03 03:06:22 +02:00
Don Ho
682a8edafa CFile (Win32 API IO) Refactoring
1. Rename CFile to Win32_IO_File (plus some modification in class).
2. Add new method writeStr() in Win32_IO_File class to write "char*" & string.
3. Change method names of Utf8_16_Write class and make writeFile() method return accurate type (boolean).

Close #10612
2021-10-02 15:00:08 +02:00
Don Ho
11b2dd0f6b Fix previous session lost issue after MS update restarting Windows
Use Windows IO API instaed POSIX IO (output only) on tinyXml component for writting xml file (config.xml, session.xml, etc...).

Fix #10402, close #10612
2021-10-02 14:59:47 +02:00
Don Ho
f1837474ca Fix Print Preferences GUI bug issue
Fix #10552
2021-09-29 18:23:59 +02:00
Pavel Nedev
9aa9ecb664 Fix NUL file-corruption issue after system shutting down brutally
Uses native Win32 IO API (CreateFile, ReadFile, WriteFile, CloseHandle) instead of POSIX ones (fopen, fread, fwrite, fclose) for remedying NUL file-corruption problem due to system shutting down brutally.

Fix #6133, close #10598
2021-09-28 12:30:05 +02:00
Ivan Ustûžanin
49c3e5d553 UDL lexer: fix potential infinite loop
Fixed a condition in a loop which is always true (unsigned >= 0) and can
potentially turn the loop infinite.

And removed a check after the loop which now is also always false.

Close #10597
2021-09-28 01:30:52 +02:00
Don Ho
4d57f5071f Make modified code conform to the coding style 2021-09-27 23:03:10 +02:00
Ashfaaq18
531bef28d8 Fix docked window sizing direction problem in RTL mode
Fix #10536, close #10576
2021-09-27 22:55:26 +02:00
Ivan Ustûžanin
19cf5c9037 UDL: preserve DarMode-ness upon saving
Fix #10583, close #10570
2021-09-27 20:56:21 +02:00
Don Ho
2159126d8e Initialize the values of Gripper's varible member 2021-09-27 20:51:39 +02:00
Ashfaaq18
d939e4a6ed Fix floating panel movement issue in RTL mode
Fix #10579, close #10586
2021-09-27 19:42:51 +02:00
Ivan Ustûžanin
d11d2c7f23 gcc: fix warnings during Scintilla build
Fixed warnings generated during Scintilla build in `boostregex/BoostRegExSearch.cxx`
(`-Wall -Wpedantic` are the default for Scintilla).

Close #10596
2021-09-27 19:31:51 +02:00
Don HO
45693d1302 Notepad++ 8.1.5 release 2021-09-27 13:24:09 +02:00
Don Ho
2f7490abab Fix tab settings in UDL regression
Bug reported here:
https://community.notepad-plus-plus.org/topic/21866/notepad-8-1-5-rc-3?_=1632620635740

The regression is due to e5a800722b7b31c835ae9855c54087354fb1304b
2021-09-26 04:34:37 +02:00
Don Ho
a7a700145d Fix a regression of pluginsAdmin
Fix a regression of pluginsAdmin reported in:
https://community.notepad-plus-plus.org/topic/21853/notepad-8-1-5-rc2/3?_=1632245574765
2021-09-21 22:53:58 +02:00
Don Ho
635f1d41ab Fix a typo & add a pun 2021-09-20 18:34:50 +02:00
Don Ho
bc2e689185 Add Insert Date/Time commands shortcut & macro capacities
Fix #10567
2021-09-20 04:11:45 +02:00
Don HO
c7e1da48ff Align dark mode styles with light mode styles
1. Improve JSON, PYTHON, BANNC and VHDL syntax highlighting in dark mode.
2. Reosort light mode style.
2021-09-18 02:52:09 +02:00
popcorner
94788503d2 Update chineseSimplified.xml
Close #10559
2021-09-16 20:43:58 +02:00
Thomas De Rocker
8d7aa6b06c Update dutch.xml
Close #10474
2021-09-16 19:02:38 +02:00
popcorner
ad40663fb3 Update chineseSimplified.xml
Close #10498
2021-09-16 19:00:04 +02:00
regener
827bcc1d05 Hungarian translation update for version 8.1.4
Close #10500
2021-09-16 18:55:40 +02:00
Don Ho
6ee3bd3c45 Make more room for the translation of custom format label 2021-09-16 17:54:25 +02:00
mere-human
0ad4912eb0 Enhance Insert Custom Date command by using MS datetime format
Fix #10467, close #10480
2021-09-16 17:25:19 +02:00
rddim
e1e180397f Update Bulgarian localization
Close #10424
2021-09-16 15:20:46 +02:00
schnurlos
1d71e90a64 Update german.xml to v8.1.4
Close #10428
2021-09-16 15:17:34 +02:00
Hugo Carvalho
3d02256078 Update Portuguese translation to v8.1.5
Close  #10457
2021-09-16 15:12:22 +02:00
yasmise
114107957c update japanese.xml to v8.1.5
Added translations for these commits:
* Make "Confirm Save All" dialog more clear (deab93f9b50f580bc276225755c2782b20cd255a)
* Make Incremental Search panel translatable (e12b161d48bab658694ba57afb68bc175d717a76)
* Add custom date time insert (84c1505fab9a0ec4aaadc170daad43342ee95c58)

Close #10477
2021-09-16 15:06:34 +02:00
kubalav
56b0af3c85 Update Slovak translation to 8.1.5
Close #10482
2021-09-16 12:54:19 +02:00
xomx
7a6eb0da37 Update czech.xml to v8.1.5
Close #10521
2021-09-16 12:50:28 +02:00
~GOLEM~
748db1be38 Update russian.xml v8.1.5
Close #10542
2021-09-16 12:45:03 +02:00
IoeCmcomc
3c464e49bb Update Vietnamese translation
Close #10547
2021-09-15 20:17:22 +02:00
ArkadiuszMichalski
f658c22265 Update polish.xml to 8.1.5
Update polish.xml to 8.1.5 (according to the latest commit).

Close #10550
2021-09-15 03:44:53 +02:00
Patriccollu
9342da4885 Update Corsican translation for Notepad++ 8.1.5
Close #10455
2021-09-15 01:21:44 +02:00
Don Ho
f6282f4f11 Update localization files
And fix a typo in BUILD.md
2021-09-14 23:33:34 +02:00
Don Ho
a3116818e0 Code enhancement: Initialize variable member's value of struct/class
Close #10545
2021-09-14 03:08:17 +02:00
Ivan Ustûžanin
049ededf9f Add gcc 32-bit build and improve build process
1. Include SciLexer build in Notepad++ build.
2. Remove -fpermissive, auto -j in make.

Fix #9989, close #10540
2021-09-13 23:17:11 +02:00
Ashfaaq18
73b41ec74f Fix docked/float panels in RTL layout issue
Fixed Npp RTL context menu for Document List, Project Panels, Folder Workspace, Search Results Window,
and fixed Floating Dockable Window RTL direction.

Fix #10488, close #10535
2021-09-13 13:27:35 +02:00
Don Ho
f6bea32003 Update uzbek.xml 2021-09-12 19:04:10 +02:00
Don Ho
e5a800722b Make code more sanitary
Fix some vulnerable codes detected by VS's analyzing.

Close #10541
2021-09-12 18:50:30 +02:00
Ashfaaq18
36d0d29cc7 Add path column in Document list panel
Fix #9679, close #10539
2021-09-12 15:18:22 +02:00
Don HO
36d13f3ad8 Sort Preferences->New Document->Default language combobox
Fix #10513
2021-09-10 02:44:55 +02:00
Ivan Ustûžanin
1c9009e9b2 Fix open file crash via open file dialog
Notepad_plus_Window was rather huge (megabytes). Now it's small (tens of kilobytes),
but to safeguard against future size increase move its allocation from the stack
into the heap.
By using smart pointer, this PR not only fix open file crash properly,
but also prevent stack from being corrupted in the future.

Fix #10454, close #10531
2021-09-09 16:05:50 +02:00
Ivan Ustûžanin
495d202a43 Fix Find dialog display mess-up
Find dialog display mess-up caused by unintialized member variable.
Intialization of member variables fixes it.

Fix #10511, close #10530
2021-09-09 12:41:22 +02:00
Don Ho
aff77e27d3 Fix incremental search panel not translated after startup issue
Fix #10478
2021-09-08 13:43:51 +02:00
Don Ho
bd31dbb68f Remove "#pragma once" from rc files 2021-09-06 22:49:11 +02:00
Ivan Ustûžanin
241238df5a Fix xml writing issue in gcc build
Fix #10185, fix #9163, close #10503
2021-09-06 00:25:09 +02:00
Don Ho
cddcbb5d61 Fix CSS pseudo-elements not recognized issue
Update CSS keywords and add new styles.

Fix #10425, close #10501
2021-09-05 16:39:49 +02:00
Ivan Ustûžanin
156784722a Make number of languages and and styles unlimited and independent
A clean version of #10483 thanks to @ozone10 and @chcg.
The proper fix for #10206 without any compile-time limits.

Fix #10483, fix #10206, close #10491
2021-09-05 16:31:18 +02:00
Don Ho
d4781bd4a3 Update abkhazian.xml 2021-09-05 12:53:38 +02:00
Ivan Ustûžanin
e31eb8ea2a Add missing element in PHP dark mode styler
Default DarkMode theme style for PHP was missing one element (COMPLEX VARIABLE).
Also Make variables in strings bold so they are more distinguishable.

Close #10502
2021-09-04 13:08:04 +02:00
Ashfaaq18
ef8522e4aa Enable/disable ext column from Document list directely
* Enable/disable ext column via the context menu.
* The ext column checkbox is removed from the preferences dialog.
* Cleaned up localization file

Fix #10468, close #10485
2021-09-03 14:48:18 +02:00
mere-human
55f2644953 Fix regression: no error message when locked file could not be saved
Show file locked warning.
This is a regression from commit 469fa62c0ebc438c8003c735e6a801c6d098df7c

Fix #9994, close #10487
2021-09-03 14:18:53 +02:00
Christian Grasser
f428fbab13 Fix building MinGW release twice in appveyor builds
Improve also MinGW build (toolbar appears) by adding changes from patch https://github.com/notepad-plus-plus/notepad-plus-plus/files/6947163/notepad-gcc-build.patch.txt

Fix #10328, fix #10185, close #10469
2021-09-01 11:54:00 +02:00
Christian Grasser
ed5c2631c1 Fix asan(address sanitizer) issue with no plugins
Fix #10470, close #10471
2021-09-01 11:19:45 +02:00
Ashfaaq18
5c52aff7a1 Fix inconsistency of Document List context menu
Document List context menu now appears only when files are selected.

Fix #10463, close #10464
2021-09-01 00:49:44 +02:00
Don Ho
dab02db976 Add non MSC info into debug info 2021-08-31 18:41:22 +02:00
Don HO
f6488cdc7a
Update english.xml 2021-08-31 15:41:04 +02:00
Don HO
7006714c16
Update AboutDlg.cpp 2021-08-31 15:39:00 +02:00
Don Ho
88ee2eddb0 Fix the crash regression due to the array size increase
LexerStylerArray contains a MAX_LEXER_STYLE-element array (currently 100) of LexerStyler objects. Every one of them in turn via inheritance from StyleArray contains a SCE_STYLE_ARRAY_SIZE-element array (I tested with 99) of Style objects each at least 56 bytes in size. This in my test case requires over 550k of memory, and if LexerStylerArray is allocated on stack, the stack becomes corrupted. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908732786)

Inline arrays are a part of an object and increase its size while std::vector uses memory from the heap and stores internally only a pointer to a chunk of memory, thus the size of an object with a vector is substantially smaller than the one with an inline array. (Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10454#issuecomment-908780106)

Fix #10454, fix #10206
2021-08-31 01:38:55 +02:00
Don Ho
c1cce29c84 Fix build system error 2021-08-31 00:16:52 +02:00
Don Ho
84c1505fab Add custom date time insert
Make Insert date time customizable.
Also make date time order reversable for short & long format.

Fix #10445, close #10453
2021-08-29 19:42:05 +02:00
mere-human
d41b4e1645 Fix current directory not applied bug after changing current directory option
Refresh the working directory when changing Follow current document preference.

Fix #10396, close #10426
2021-08-28 17:55:42 +02:00
Don HO
cd8e479ffa
Update README.md 2021-08-26 01:47:18 +02:00
ozone10
68d293e711 Allow custom color for Document Map
Fix #10052, close #10422
2021-08-26 01:03:18 +02:00
Don Ho
e12b161d48 Make Incremental Search panel translatable
Fix also checkbox overlap in incremental search bar.

Fix #8955, fix #8574, close #10420
2021-08-25 16:38:42 +02:00
Don Ho
deab93f9b5 Make "Confirm Save All" dialog more clear
Use "Always Yes" button instead of "Cancel", and whole dialog is translatble.

Fix #10339, close #10429
2021-08-25 16:31:51 +02:00
Don Ho
a391161e3d Add the info of TypeScript in overrideMap.xml
Close #10440
2021-08-25 16:29:16 +02:00
Don Ho
a720b88e52 Update localization files to v8.1.4 2021-08-25 15:42:59 +02:00
Don HO
390f7631fa Notepad++ 8.1.4 release 2021-08-25 02:17:47 +02:00
Patriccollu
d42c6a58aa Update Corsican translation for Notepad++ 8.1.4
Close #10415
2021-08-21 00:05:22 +02:00
yasmise
e057e3ea88 update japanese.xml
Follow these commits:
* Substitute "Mark" for "Style" in the menu entries (2576bf884b37a916cf5f597d87e436fb59864cec)
* Update English localization file to v8.1.4 (45831ac0509e41e28a501d151809207df47d08d3)

Close #10416
2021-08-21 00:02:20 +02:00
ozone10
8ac13d9065 Make dark mode compatible with Windows 11
Use documented way to enable UxTheme dialog texture.
Remove undocumented way.
Disable UxTheme dialog texture in dark mode.

Fix #10299, close #10383
2021-08-20 12:08:41 +02:00
~GOLEM~
4831cb80bd Update russian.xml v8.1.4
Close #10410
2021-08-20 12:02:47 +02:00
kubalav
79ab11ee8b Update Slovak localization file to v8.1.4
Close #10411
2021-08-20 12:00:08 +02:00
Thomas De Rocker
0b98ae56e9 Update dutch.xml
Close #10382
2021-08-20 11:55:37 +02:00
Don Ho
45831ac050 Update English localization file to v8.1.4
and French + Taiwanese Mandarin localization files are updated.
2021-08-20 02:55:36 +02:00
Don Ho
6844df039d Fix boost REGEX performance issue
This commit revert 86c66bba90cc3f49323cdcae77173099122c75dc due to the boost REGEX performance issue.

Fix #10398, fix #10296, fix #10260, close #10403
2021-08-19 23:40:10 +02:00
mere-human
8f123f8cca Fix file dialog append extension with RTL language
When both Windows and Notepad++ use RTL language, the Save/Open button is swapped with Cancel button.
Now take that into account when searching the button.

Fix #10397, close #10400
2021-08-18 14:05:25 +02:00
Don Ho
0733e6f241 Add Insert Date Time commands
Add Insert Date Time commands for both short & long format.

Fix #497, fix #2821, fix  #8184, fix #8302
2021-08-18 12:45:51 +02:00
mere-human
0c16f87a18 Fix Find-in-Files "Follow current doc" not working issue when absolute Default Directory set
This PR uses always current buffer's path in Find in Files dialog:
When "Follow current doc." is checked, then use current path first.
If that fails, fallback to the working directory as it was before.

Fix #8045, close #10387
2021-08-16 14:27:47 +02:00
Don Ho
302bab894f Make plugins' toolbar icons display in light/dark mode
The plugins' toolbar icons can be displayed in both light/dark mode by using their original icons.
Though using new API NPPM_ADDTOOLBARICON_FORDARKMODE to have better look & feel is recommanded.

Fix #9959, fix #10388, fix #9809
2021-08-16 02:12:03 +02:00
ozone10
5e899f2a6c Enhance dialog visual look & feel
Change dialog extyles.

Fix #10384, close #10385
2021-08-15 20:27:46 +02:00
Don HO
92b45d48c7 Include TypeScript files into installer
Include TypeScript auto-completion file & function list file into installer.
2021-08-15 12:02:45 +02:00
0xlay
f50061981a Add support DarkMode, function list & auto-completion for TypeScript
Close #10381
2021-08-15 11:47:19 +02:00
mere-human
141fef9a45 Fix LICENSE text display problem in installer
Use only ASCII characters in LICENSE text.
Replace '“' and '”' by '"', replace '©' by '(C)'.

Fix #10370, close #10378
2021-08-15 02:18:22 +02:00
0xlay
9a3152faa2 Add TypeScript language
Fix #10353, close #10361
2021-08-13 20:12:02 +02:00
Don Ho
2576bf884b Substitute "Mark" for "Style" in the menu entries
In order to avoid users' confusion, all "Mark" occurrences of menu entries are substituted for "Style", so users won't confuse with "Mark" fonction in Find dialog.

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10195#issuecomment-893481499

Close #10351
2021-08-13 13:54:27 +02:00
Don Ho
686bf4fba1 Fix security flaw issue
There's a security flaw for the un-installation of Notepad++ in Windows Register, the string without quotes:
C:\Program Files\Notepad++\uninstall.exe, whereas it should be "C:\Program Files\Notepad++\uninstall.exe".
The reason is, hacker can create a file called c:\program.exe, then Windows could interpret Files\Notepad++\uninstall.exe as the argument, so the system could run c:\program.exe. Ref:
https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464

Fixed by @ozone10:

Fix #10191, fix #6165, close #10369
2021-08-13 13:49:40 +02:00
Don HO
2b0620b078 Notepad++ 8.1.3 Release 2021-08-12 19:39:53 +02:00
Ashfaaq18
f5ea4898cf Fix the regression: absence of toolbar tooltip
This regression is du to 733c7e73de6d5dece3bcd9eb8784fd2bf61da359

Fix #10355, close #10359
2021-08-09 23:58:01 +02:00
Don Ho
4cc3d9fd1a Add Markdown UDL of dark mode in release packages
Add Markdown UDL of dark mode and the ability to apply it:
After dark mode being swiched in, all files with extension .md will be opened by applying Markdown UDL of dark mode.
When light mode is switched back, the default Markdown UDL (of light mode) will be applied to the new opened .md file.
Please note that all .md files opened before switching to new mode, will remain in the previous mode. User has to close and reopen these files to have the right Markdown UDL applied.

Fix #10196, close #10347
2021-08-08 03:22:15 +02:00
Don Ho
a36a12257a Add more quotes
Close #10342
2021-08-08 03:19:40 +02:00
Ashfaaq18
5c2c317352 Fix Function list current empty lost issue while Sort/Unsort/Save/Reload
Retains tree state of function tree during Sort/Unsort and Save/Reload actions.

Fix #8819, fix #10280, fix #10294, close #10322
2021-08-08 03:08:51 +02:00
ozone10
13623669a4 Make title, button, progress bar dark again
Fix #10326, close #10327
2021-08-08 02:34:53 +02:00
Ashfaaq18
733c7e73de Fix 2 RTL issues: wrong path in tooltip and file drag & drop Bug
Fix 2 RTL issues:
1. wrong path in tooltip of tab (#8520).
2. the file drag and drop bug (#8730) - now user can drag and drop to the exact view.

Fix #8520, fix #8730, close #10348
2021-08-08 02:21:45 +02:00
Don Ho
14a104ad46 Fix shortcut conflict detection error in shortcut mapper
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5374#issuecomment-891879420

Fix #5374
2021-08-03 20:56:29 +02:00
Don Ho
a7ede53c26 Add and remove some quotes 2021-08-03 20:24:06 +02:00
schnurlos
32965d5549 Update german.xml to v8.1.2
Close #10319
2021-08-03 19:44:57 +02:00
Don Ho
8a77b07d96 Fixed detection of shorcut key conflicts when filtering
Currently, when the shortcut mapper is filtering shortcuts, it doesn't display key conflicts properly. This is due to the indexes of the filtered shortcuts being different (since there are less) than the original list of shortcuts.

Author @jmbockhorst
(the original branch has been deleted)

Fix #5374, close #5453
2021-08-03 13:21:23 +02:00
mere-human
90485aaa21 Use CRLF line ending in Copy command from Windows dialog
Also, move endsWith() function to Common.h and reuse it in WindowsDlg.

Fix #10311, close #10314
2021-08-03 03:08:49 +02:00
Tmp341
ef1ecaa936 Update Turkish localization
* According to 27524e1, 80c285e, a0472fd, 599f185, 53f1e6b, 8e38b9d, 5b9e3b6 and b8f23a1 commits.

Close #10315
2021-08-03 00:51:43 +02:00
xomx
2dc31d0d2f Update czech.xml to v8.1.3 (2nd attempt)
Close #10316
2021-08-03 00:44:46 +02:00
rddim
1479b130f6 Update Bulgarian localization
Close #10244
2021-08-02 18:05:26 +02:00
Luxy
a91d0d7b8d Update brazilian_portuguese.xml
Close #10173
2021-08-02 17:50:40 +02:00
ArkadiuszMichalski
db62ce2e33 Update polish.xml to 8.1.3
Update polish.xml to 8.1.3 (according to the latest commit).

Close #10308
2021-08-02 15:59:38 +02:00
Sapziller
61bcbbd900 update korean.xml 8.1.3
Close #10309
2021-08-02 15:49:44 +02:00
Don Ho
242530c1fc Make margin width display correctly under high DPI 2021-08-02 01:43:16 +02:00
mere-human
121f19d8f9 Fix crash when several instances of the file dialog are shown
Pass a pointer to FileDialogEventHandler instance via GWLP_USERDATA
instead of using static variable. This way each window can have its
own pointer.

Fix #10290, close #10303
2021-08-01 23:58:03 +02:00
Thomas De Rocker
96e985dea5 Update dutch.xml
Close #10174
2021-08-01 17:08:39 +02:00
Don HO
1c1a0c487a Update about dialog icons 2021-08-01 16:30:03 +02:00
ozone10
318a566ae7 Apply explorer style on treeview
Enable hottracking for explorer style.
Allow dynamic change based on treeview background.

Fix #10061, close #10304
2021-08-01 16:05:26 +02:00
Hugo Carvalho
8417d3fb40 Update portuguese.xml
Close #10306
2021-08-01 14:19:33 +02:00
kubalav
ab02e3f9de Update Slovak translation
Close #10305
2021-08-01 14:16:11 +02:00
yasmise
1e26722249 update japanese.xml
Follow this commit:
*  Make the translation more accurate (53f1e6bff8bd26eaff3cf8ba9524c2b2548013b7)

Close #10182
2021-08-01 02:10:08 +02:00
Edditoria
3eb71d87b1 Update localization: Hong Kong Cantonese
As at commit 7c82c52 of this repo.

Close #10292
2021-07-31 23:16:03 +02:00
~GOLEM~
4eef48b32b Update russian.xml
Close #10268
2021-07-31 17:40:38 +02:00
Patriccollu
17290fadbc Update Corsican translation for Notepad++ 8.1.3
Close #10293
2021-07-31 17:37:17 +02:00
Don Ho
b8f23a107b Update French & Taiwanese Mandarin localization 2021-07-31 17:32:12 +02:00
Don Ho
87bda092cb Fix a compiling error in MinGW 2021-07-31 14:28:08 +02:00
Don Ho
53576f5b18 Change logo in About dialog and make it dark-modable 2021-07-30 23:53:53 +02:00
Don Ho
19f40fdeae Fix 2 panels' toolbar icons display issue under high DPI
Improve Function list & Folder as Workspace toolbar icons display under high DPI.
2021-07-30 15:59:27 +02:00
Don Ho
2bb40b1ab5 Fix Plugin Admin display issue under high DPI 2021-07-29 20:01:00 +02:00
Don Ho
1dad7c7e7f Increase macro, user command and plugin command number capacity
Macros:      200 -> 499
User cmds:   200 -> 499
Plugin cmds: 500 -> 999

Fix  #10263
2021-07-29 18:02:29 +02:00
mere-human
52c73f92dc Remove "Unicode" from build configuration names
Rename "Unicode Debug" => "Debug", "Unicode Release" => "Release"
since there is no non-Unicode version.
Also, fix the name in other configs for Git, AppVeyor and in the docs.

Fix #10114, close #10278
2021-07-29 15:14:55 +02:00
ozone10
fcea83ba98 Apply dark mode on plugins admin
Fix #10287, close #10288
2021-07-29 03:39:08 +02:00
ozone10
bf6cb36d48 Apply dark mode on document switcher
Fix #10285, close #10286
2021-07-29 03:22:24 +02:00
Don Ho
7c9f4204ea Refactoring: Improve the code organization for color picker displaying 2021-07-29 03:13:22 +02:00
Don Ho
6894e96ad7 Fix UDL dialog color picker display issue under high DPI 2021-07-29 01:48:33 +02:00
ozone10
1b6cd7c3ff Apply dark mode on UDL, styler dlg
Fix #10283, close  #10284
2021-07-28 23:26:28 +02:00
ozone10
1ac1b11831 Apply dark mode on shortcut dialog
Fix #10275, close #10276
2021-07-28 18:01:04 +02:00
ozone10
14da158cad Apply dark mode on run a macro multiple times dlg
Fix #10273, close #10274
2021-07-28 17:46:17 +02:00
ozone10
31c72b7388 Apply dark mode on color popup
Fix use of dark mode edge color in light mode for color picker button.
Properly redraw disabled color picker button.

Fix #10269, close #10270
2021-07-28 17:29:30 +02:00
ozone10
1214319839 Don't reset style & icons, when changing dark tone
Improve title bar dynamic redraw when changing mode.

Fix #10049, fix #10196, close #10272
2021-07-28 17:03:47 +02:00
Don Ho
5edc7500e9 Update some dark/light icons for panels
1. Add panels' toolbar icons in both dark/light mode for Folder as Workspace panel and function list panel.
2. Add panels' dark/light mode (Fluent UI style) icons for the tab interface.
3. Update doclist icons.
4. Remove not used icon.

Note that these icons cannot be changed dynamically yet while switching between light mode & dark mode.

Fix #10066
2021-07-28 03:17:56 +02:00
Don Ho
a8a802df2c Fix doc list file ext. column display under high DPI 2021-07-27 17:35:57 +02:00
Don Ho
eebc9d146f Tune up the logo size 2021-07-27 02:27:12 +02:00
Don Ho
5721b10da5 Improve About dialog display under high DPI mode 2021-07-27 02:10:57 +02:00
ozone10
baae30102c Apply dark mode on preferences dialog
1. Apply dark mode on preferences, about, debug and save all dialogs.
2. Make link text aware of dark mode.

Fix #10264, close #10265
2021-07-27 01:49:10 +02:00
Don Ho
934c988874 Make Shortcut mapper display correctly under high DPI 2021-07-26 23:55:35 +02:00
Don Ho
7c82c523b6 Add "Switch to Document List" command for shortcut
Fix #9015
2021-07-26 19:07:38 +02:00
ozone10
7c4a428e47 Make dark colors consistent
1. Make dark colors consistent for panel toolbars.
2. Make dark colors consistent style configurator edit controls.
3. Make dark colors consistent for docking elements.

* BackgroundColor(), BackgroundBrush() – should be used for items which have some interactions, or need to be different from Darker variant.
* DarkerBackgroundColor(), DarkerBackgroundBrush() – should be used for static/top backgrounds.
* SofterBackgroundColor(), SofterBackgroundBrush() – should be used for items , which have interactions, or have focus.

Fix #10242, close #10243
2021-07-26 15:00:49 +02:00
ozone10
b0d4e776c6 Apply dark mode on hash dialogs
Also allow typing newline in multiple lines for generating hash.

Fix #10255, close #10256
2021-07-26 14:17:10 +02:00
ozone10
a9002c81e5 Apply dark mode on value dialogs
1. Apply dark mode on value dialogs (dialogs created in preference).
2. Change value dialogs border style.
3. Apply dark mode on close button for other views (fullscreen, post-itand distraction free).

Fix #10253, fix #10210, close #10254
2021-07-26 00:33:42 +02:00
ozone10
b12c8ea541 Apply dark mode on run dialog
Fix #10251, close #10252
2021-07-26 00:07:10 +02:00
ozone10
8e84f5fbcf Apply dark mode on rename tab dialog
Fix #10249, close #10250
2021-07-25 23:53:48 +02:00
ozone10
af99d4c97e Apply dark mode on find char in range dialog
Fix #10247, close #10248
2021-07-25 23:49:27 +02:00
ozone10
f412a2d6f7 Apply dark mode on go to line dialog
Fix #10245, close #10246
2021-07-25 23:36:08 +02:00
mere-human
a0c15274f5 Fix file name edit box not functional on Windows Vista
Avoid the same window procedure being used for several different edit boxes.
The problem was found on Windows Vista but it can happen in other environment too.

Fix #10238, close #10241
2021-07-25 22:44:54 +02:00
ozone10
6d06000600 Apply dark mode on column editor
Fix #10236, close #10237
2021-07-25 21:25:27 +02:00
Don Ho
8a6dafb890 Fix Find in file progress bar display problem under High DPI
Fix Find in file progress bar display problem under High DPI, and simplify the window display position algorithm.

Close #10240
2021-07-25 19:06:04 +02:00
ozone10
89d835a56f Apply dark mode on all find dialogs
1. Apply dark mode on find in finder dialog.
2. Apply dark mode on progress window (searching in files).
3. Make color more consistent for incremental search.
4. Use different border style for incremental search.
5. Set border for finder for docking panel consistency.

Fix #10233, close #10234
2021-07-24 23:42:19 +02:00
Ashfaaq18
5b9e3b6406 Changed english.xml's "Document List " entry id from 44081 to 44070
Close #10235
2021-07-24 18:20:34 +02:00
Ashfaaq18
46a264e2db Fix Functions list scrolling to the top on file save
Retain Functions list scrollbar position on reload.

Fix #9659, close #10183
2021-07-24 15:55:15 +02:00
Vitaliy Grabchuk
3482673fd8 Add filter capacity in Shortcut mapper by shortcut key combination
This allows to filter shortcuts in Shortcut mapper not only by name but also by key combination text.

Fix #5616, fix #9316, close #10192
2021-07-24 14:14:31 +02:00
Don Ho
50dfdb2a8d Add link text color in customized dark colors of Preferences dialog 2021-07-24 04:18:43 +02:00
ozone10
a3ba150e89 Apply dark mode on Windows dialog
Use background and text colors from style theme in listview.

Fix #10230, close #10231
2021-07-24 01:25:58 +02:00
ozone10
e627de438b Apply dark mode on Style Configurator
Create link text color to be used too in about, debug and preference dialog.

Fix #10226, close #10227
2021-07-24 00:48:03 +02:00
ozone10
3e69de4879 Improve docking tab visual
1. Improve high DPI look.
2. Make dark mode color consistent.
3. Allow icons transparency.
2021-07-23 19:51:53 +02:00
Don HO
0f15c207d5 Update localization files (change tag) 2021-07-23 17:10:35 +02:00
Don HO
1c548901ff Update translation files 2021-07-23 16:48:06 +02:00
Ashfaaq18
7b1e6546a1 Make Document List Panel togglable and shortcutable via View menu
1. Toggle toolbar item and view menu item for Document List Panel.
2. Added standard, filledFluent, darkmode->toolbar->(fluent and filledfluent) icons for the Document List Panel toggle.
3. Working shortcut for the Document List Panel under shortcut mapper.
4. Removed show document panel from the preference menu, kept the extension option.
5. Rename "Doc Switcher" to "Document list".

Fix #3526, fix #9015, close #10214
2021-07-23 16:14:22 +02:00
ozone10
a4cfd2a126 Dark find and replace dialog enhancement and fixes
1. Make color more consistent.
2. Fix bug with trackbar (Transparency option) not changing background, when changing background color.
3. Fix visual glitch.
4. Enhancement to combobox, including DPI fixes.
5. Make listbox of combobox use dark scrollbar.

Fix #10027, fix #10221, close #10220
2021-07-22 04:01:10 +02:00
ozone10
8bf11be0b5 Restore edit zone border in dark mode
Restore functionality for option No edge in preference when using dark mode.

Fix #10205, close #10211
2021-07-21 23:53:01 +02:00
Don Ho
1182976cc3 Fix narrow splitter under a high DPI environment problem
Also add flage [-udl="My UDL Name"] into Command line argument help dialog box.
2021-07-21 20:09:13 +02:00
ozone10
264e1924b0 Restore Splitter appearance in dark mode
Allow dynamic color change for arrows.

Fix #10069, close  #10199
2021-07-21 04:32:08 +02:00
mere-human
8e38b9daba Add copy file names capacity from Windows dialog
Fix #10123, close #10194
2021-07-21 03:33:48 +02:00
ozone10
81b21aae2a Enhance combobox & edit field in dark mode
1. Allow function list search to use dark mode error background.
2. Make combobox more dark and allow to use custom colors (borders, arrow head and background).
3. Use dark listbox in combobox.

Fix #10178, close  #10179
2021-07-20 15:44:49 +02:00
Don Ho
aa69711d4c Add the capacity to switch among Find/Replace/FiF/Mark via their shortcuts
Add Find/Replace/Find in fles/Mark shortcuts detection capacity in Find Replace dialog.

Fix #10019, close #10177
2021-07-20 01:28:15 +02:00
Don HO
fdb2951e00 Notepad++ 8.1.2 Release 2021-07-19 03:51:50 +02:00
Don Ho
53f1e6bff8 Make the translation more accurate 2021-07-16 00:11:35 +02:00
ozone10
33fa3b6198 Edge Enhancement
Make changing edge color dynamic.
Apply color on docking panels caption, color button.
Add status bar separators.

Fix #10166, close #10167
2021-07-15 23:55:41 +02:00
Don Ho
93d91c3ee2 Fix a typo 2021-07-15 23:14:18 +02:00
conky77
a279d83c51 Update italian.xml
Fixed missing translation "Enable Multi Editing" (Issue #10085 )

Fix #10085, close #10093
2021-07-15 19:58:47 +02:00
conky77
6127825b80 Fix "Enable Multi Editing" in venetian.xml
Fix incorrect translation "Enable Multi Editing" in venetian.xml

Close #10094
2021-07-15 19:56:43 +02:00
Edditoria
2c95c5b2de Update localization Hong Kong Cantonese
As at commit a0472fd of this repo.

Close #10125
2021-07-15 19:54:25 +02:00
xomx
52e6911bb3 Update czech.xml to v8.1.2
Close #10164
2021-07-15 19:20:13 +02:00
schnurlos
8d1d8cfcb9 Update german.xml
Following 27524e1d4d

Close #10110
2021-07-15 14:44:03 +02:00
kubalav
73d945bfe8 Update Slovak translation
Close #10112
2021-07-15 14:22:44 +02:00
yasmise
62031f8ab4 update japanese.xml
Following these commits:
* Improve link to user manual on questionmark menu (27524e1d4d65da1b65cfa89fcc94af728e5ee27b)
* Add a Save all confirm dialog (80c285ee2d49e6975ff996010a639634630d3b5b)
* Use current file directory in File Rename dialog (a0472fd7f2aa16f9b295a007739860acdbdf2d23)

Close #10119
2021-07-15 14:18:58 +02:00
Luxy
badc59c597 Update Brazilian Portuguese translation
Close #10104
2021-07-15 14:14:26 +02:00
rddim
f215b85cc4 Update Bulgarian localization
Close #10140
2021-07-15 03:18:47 +02:00
~GOLEM~
7be30516d9 Update russian.xml v8.1.2
Close #10111
2021-07-15 03:16:32 +02:00
Thomas Smith
f2d47ef5f4 Update Hebrew localizaton
Fixing the incorrect Hebrew translation of line 133 as per https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10120

Fix #10120, close #10126
2021-07-15 03:02:37 +02:00
Hugo Carvalho
6d34d658a9 Update portuguese.xml
Close  #10144
2021-07-14 23:22:14 +02:00
Thomas De Rocker
9048c85863 Update dutch.xml
Close #10105
2021-07-14 23:14:36 +02:00
Sashank999
e87e94a6ce Add latest ES/JS keywords for auto-completion
Fix  #9858, close #9859
2021-07-14 21:35:03 +02:00
Scott Sumner
4cd293a0b1 Change "not" usage to "!" in contribution guideline
Close #10158
2021-07-14 20:20:18 +02:00
mere-human
5e28b47ff8 Fix corrupted encoding text on status bar
Remove the shortcut text from the menu text that is used in status bar.

Fix #10146, close #10148
2021-07-14 19:37:54 +02:00
Don Ho
599f1852c7 Update localization files 2021-07-14 18:48:22 +02:00
Don Ho
831d3ba9cc Add customizing dynamically dark mode colors capacity
Let users customize whole set of dark mode colors (except title bar, menu items and scroll bar colors).

Close #10145
2021-07-14 03:33:36 +02:00
Don HO
8d425bd4f1
Drop the support of Windows 8
Drop the support of Windows 8, but keep Notepad++ running under this OS, and prevent the critical bugs from Notepad++ under Windows 8.
2021-07-13 14:06:32 +02:00
ozone10
b3fdfdd064 Improve DarkMode toggling
Make choosing dark tone to not require turning back to light mode.

Close #10141
2021-07-12 01:32:51 +02:00
ozone10
fb91093ccb Activate dark mode in Windows 11
Allow dark mode in Windows 11 insider build 22000 and later.
Per this comment #10122 (comment)

Fix #10136, Close #10135
2021-07-10 14:23:55 +02:00
Don Ho
39b9090b96 Make Notepad++ dark mode colors customizable
Add 6 more color choices.

Close #10128
2021-07-10 14:18:36 +02:00
ozone10
066ef8a4a0 Make dark mode restartless
Fix #10121, close #10122
2021-07-09 12:25:49 +02:00
Don Ho
eac8c4094f Override unit-tests needed files while copying them for local unit-tests script 2021-07-07 15:20:16 +02:00
mere-human
2794c927b3 Fix the warnings issue during Scintilla's compiling
Remove std::iterator from Boost Regex search code:
std::iterator was deprecated in C++17.
Remove it to fix the warnings and avoid other issues.

Fix #10035, close #10036
2021-07-07 14:44:34 +02:00
Don Ho
4642be5492 Add local unit-test launcher 2021-07-07 04:11:25 +02:00
Don Ho
14a0a43b16 Add global regex unitTest via UDL way
Use User Defined Language to have function list on Unit-tests.
It could reduce regression happening while the code of boost regex or the related code is changed.

And also make build system be aware of unit-test result.

Close #10108
2021-07-07 03:37:43 +02:00
ozone10
ae56255be6 Enhance listview column header in dark mode
Use different approach to make listview header dark.

Close #10106
2021-07-06 19:41:37 +02:00
mere-human
a0472fd7f2 Use current file directory in File Rename dialog
and fix "Remember last used directory" unexpected behaviour.

Fix #10095, fix #10115, close #10100
2021-07-06 16:05:20 +02:00
Ashfaaq18
80c285ee2d Add a Save all confirm dialog
and add also an option in Preferences dialog to enable or diable the dialog.

Fix #2124, fix #9931, close #9968
2021-07-06 03:56:29 +02:00
Scott Sumner
27524e1d4d Improve link to user manual on questionmark menu
Fix #10087, close #10088
2021-07-04 19:16:46 +02:00
Sean Lin
2034150422 Update taiwaneseMandarin.xml
1. Synchronize the English version
2. Correct translation
3. Remove redundant translations

Close #10101
2021-07-04 19:06:47 +02:00
Don Ho
7bb39a08f1 Open a file from command line by applying an existent UDL via UDL name
Add command line flag -udl="UDL name" to open a file by applying an existent UDL via its name.

Close #10102
2021-07-04 19:03:52 +02:00
Don Ho
88665b5d17 Add an xkcd's quote 2021-07-04 18:56:14 +02:00
Don HO
ea09b9f191 Notepad++ 8.1.1 release 2021-07-04 15:59:54 +02:00
Don Ho
f65f00c63f Fix ASCII panel display problem in dark mode + light theme (default styler.xml) 2021-07-01 13:56:47 +02:00
Don Ho
4ae1063774 Fix dark mode applied correctely only for 1 project panel issue 2021-07-01 04:31:02 +02:00
ozone10
75643560a3 Improve dynamic switching for scrollbars.
For main and sub edits, finder (search result docking window) and clipboard history panel.

Fix #10083, close #10084
2021-06-30 16:42:27 +02:00
Don Ho
60105d68f7 Fix Doc Switcher panel not follow theme in dark mode
Plus add highlightHotTrackColor in dark mode & clean up.
2021-06-30 16:02:34 +02:00
Don Ho
36ea7e8b3e Make column headers of ASCII panel & doc switcher apply to dark mode
Close #10082
2021-06-30 03:43:14 +02:00
yasmise
5398df2275 Update japanese.xml to v8.1
Close #10028

Follow-up to this commit:
* Close all tabs in stack with single action (f9d6fb9e31719a0ef9bbc8bd42c262560575adf8)
2021-06-28 03:03:55 +02:00
ozone10
1da707128a Fix regression: disable Explorer Theme for TreeView
Ref: #10061

Close #10062
2021-06-28 02:18:59 +02:00
Don Ho
3347044595 Fix edit zone not being applied to dark mode issue
Problem:
After installing Notepad++ v8.1 under an user account (with admin privilege), then switch to another user account (with or without admin privilege), launch Notepad++ and turn dark mode on. The dark theme on edit zone won't be applied.

Solution:
Notepad++ installer copies all theme files in installed directory instead of "%APPDATA%\Notepad++\themes\".
When theme is choosen or modified, it'll be saved in "%APPDATA%\Notepad++\themes\", and the saved theme file will override the original theme in installation directory.

New behaviour of theme:
Any theme selected via Style Configurator will be copied from its installation directory (C:\Program Files\Notepad++\themes\) into "%APPDATA%\Notepad++\themes\".
If the theme exists in "%APPDATA%\Notepad++\themes", the original one in s installation directory (C:\Program Files\Notepad++\themes) will be ignored.

Fix #10076, close #10077
2021-06-27 16:42:01 +02:00
Don Ho
da0fc02c5c Update some Fluent UI Icons for both dark & light mode
Fix #10075
2021-06-27 12:39:17 +02:00
ozone10
034666894f Adapt docking tab for dark mode
Fix #10067, close #10068
2021-06-25 17:06:21 +02:00
Don Ho
7d65bb9503 Use toolkits v141 still for a while 2021-06-25 15:56:08 +02:00
Christian Grasser
2e0d358cdc Adapt for VS2019 builds with toolkit v142
Fix #9922, close #9942
2021-06-25 15:26:27 +02:00
ozone10
219cec8000 Allow dynamic dark/light mode change for tooltips
Fix #10059, close #10060
2021-06-24 03:44:15 +02:00
Don Ho
f27e561379 Apply dark mode to function list's toolbar
Close #10058
2021-06-24 02:41:21 +02:00
mere-human
6a4ef408f2 Fix GCC compiler warnings in Notepad++
Fix #10037, close #10048
2021-06-23 12:49:06 +02:00
Don Ho
296e1c695e Fix root menu item mouse hover color issue while being back in light mode
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/10039#discussion_r656151554
2021-06-23 02:33:15 +02:00
ozone10
c8be679cde Use Explorer theme for list- and tree-views
Apply Explorer theme on list- and tree-views.
Allow dynamic change between dark and light mode in these views.
Add border to document switcher for consistency.
Refactor code in TreeView.cpp to make it consistent.

Fix #10055, close #10056
2021-06-23 01:53:31 +02:00
Don Ho
5df7c97f98 Clean up: remove unecessary code for dark mode 2021-06-22 12:17:49 +02:00
Don Ho
e4ebeed6f9 Make Project Panel toolbar conform to dark mode
Close #10039
2021-06-21 13:00:10 +02:00
ozone10
a6bbdeb92e Make line above panel toolbar dark in dark mode
Fix #10043, close #10042
2021-06-21 12:48:12 +02:00
ozone10
ffbf3af029 Make DarkMode title bar to apply on all dialog on dark mode
Also remove border from clipboard history panel.

Close  #10023
2021-06-20 19:09:35 +02:00
Don Ho
bef4da61be Provide the whole set of arguments to initialize "Colors" structure
9c13d657c9 (r52399592)
2021-06-20 15:07:48 +02:00
Ashfaaq18
c2534ee8f2 Make the Search Results Window locked (grayed) until the first search
The search result window option will only enable after the first Find All search

Fix #9655, close #9967
2021-06-20 03:24:10 +02:00
mere-human
263910a9a9 Fix compiler warnings when building Notepad++ solution
Remove unsupported option /arch:IA32 from x64 & ARM64 Release for Notepad++ project.
Define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING for
SciLexer project to ignore a specific warning in third-party code.
Now the solution builds without warnings in all configurations.

Fix #10033, close #10034
2021-06-19 18:52:43 +02:00
Don Ho
fd5bfe4252 Update slovenian.xml 2021-06-17 14:31:51 +02:00
Don Ho
1db798fb11 Update finnish.xml 2021-06-17 14:25:20 +02:00
Don HO
33d7712337 Notepad++ 8.1 release 2021-06-17 02:25:09 +02:00
Adam D. Walling
acf91fc2c2 Make multiline and vertical tabs work in dark mode
Dark mode tab drawing should work for multiline and vertical tabs

Close #10017
2021-06-17 01:23:10 +02:00
Don Ho
fc94015bff Fix plugin icons not displayed regression 2021-06-16 02:57:06 +02:00
Don Ho
9c13d657c9 Better look & feel in dark mode
Fix #9982
2021-06-15 17:48:21 +02:00
Thomas De Rocker
94c6d24081 Update dutch.xml
Close #9938
2021-06-15 17:05:14 +02:00
Hugo Carvalho
d113531345 Update portuguese.xml
Close #9940
2021-06-15 17:03:03 +02:00
György Bata
47d780b861 Hungarian translation update for 8.0
Close #9949
2021-06-15 16:59:17 +02:00
Sapziller
b09190c76e Update Korean localization file
1. add missing items since 7.9.2
2. remove blank at end of line

Close #10003
2021-06-15 16:54:07 +02:00
rddim
52dbd52251 Update Bulgarian localization
Close #9944
2021-06-15 16:51:33 +02:00
xomx
ac7a7af0cf Update czech.xml to v8.0.0
mainly keyboard access keys corrections

Close #9943
2021-06-15 16:47:27 +02:00
Tmp341
4bf1fd1fb2 Update Turkish localization
* According to e623e76, f9d6fb9 commits.

Close #9947
2021-06-15 15:42:45 +02:00
conky77
c5ba7320cc Update venetian.xml to 8.00
Close #9952
2021-06-15 15:38:37 +02:00
Patriccollu
fee55b06d3 Update Corsican translation for Notepad++ 8.0.0
Close #10005
2021-06-15 15:28:52 +02:00
conky77
b8398b18e7 Update italian.xml to 8.0.0
Close #9953
2021-06-15 15:25:44 +02:00
schnurlos
bfd9c2d325 Update german.xml
Following f9d6fb9e31

Close #9955
2021-06-15 15:23:52 +02:00
Christian Grasser
5b86023d3a Fix auto-completion performance issue introduced with switch to static linkage of libSciLexer
The performance issue, which appears after switching to static linkage of libSciLexer, is due to th commit "Improve character case handling in RegEx" (#9707).
Removing "locale" call from "BoostRegexSearch::FindText()" solves auto-completion performance issue.

Fix #9975, close #10010
2021-06-15 13:28:42 +02:00
ozone10
467870d66e Add DarkMode Tooltips
Fix #9962, close #9963
2021-06-13 00:35:12 +02:00
Don Ho
2f51902e9c Fix Notepad++ crash on dark mode while starting up
Fix #9961
2021-06-12 01:49:05 +02:00
Adam D. Walling
7e139e1ba2 Remove menubar white line under dark mode
Fix #9984, close #9985
2021-06-11 20:15:09 +02:00
mere-human
aa17a4bc7a Fix Open dialog with "Save" label for OK button
Now Open dialog shows Open label on the button instead of Save.
Don't change any button labels.
Instead, get the leftmost button when overriding the window procedure.

Fix #9966, close #9973
2021-06-11 19:56:47 +02:00
Jacob Weisz
ea8c9779c2 Remove Gitter badge
Close #9972
2021-06-08 23:42:51 +02:00
Don HO
c6d14e9245 Notepad++ v8 release 2021-06-07 01:18:21 +02:00
Don Ho
06657c82b3 Remove Microsoft Bing from search engines for Search on Internet command
Ref: https://www.reuters.com/technology/microsoft-bing-raises-concerns-over-lack-image-results-tiananmen-tank-man-2021-06-04/

When a search engin does the censorship instead of its job, the search result loses its quality and it's not reliable anymore.
Hence, Microsoft Bing is removed from Notepad++ for "Search on Internet" command.
2021-06-06 16:42:45 +02:00
mere-human
0e1a4663d9 Fix append extension feature not working in save dialog
In some cases, checkbox was found instead of OK button and window procedure was overriden for it. Now, the OK button is identified using style and label checks.
Also, in some cases IFileDialog::GetFileTypeIndex() returns the old value. To fix that, always remember the file type selected.

Fix #9939, close #9945
2021-06-06 14:32:18 +02:00
Udo Hoffmann
f9d6fb9e31 Close all tabs in stack with single action
Shift-click closes the whole stack.

Fix #8922, close #9930
2021-06-03 02:21:08 +02:00
Thomas De Rocker
511893680b Update dutch.xml
Close #9877
2021-06-03 01:38:17 +02:00
rddim
e211cbaa28 Update Bulgarian localization
Close #9878
2021-06-03 01:35:34 +02:00
Patriccollu
2ce57b88ce Update Corsican translation
Close #9893
2021-06-03 01:32:50 +02:00
Sergio Flor
3ef5f11aa2 Updating spanish.xml
Resolves issue #4401 "Spanish translation: Search dialog items do not fit (translated texts too long)". Now the text fits the search dialog

Before:
<Item id="1703" name="&amp;. se ajusta a línea nueva"/>

Now:
<Item id="1703" name="&amp;. para nueva línea"/>

Fix #4401, close #9898
2021-06-03 01:23:46 +02:00
spkprs
17b7a0eaf4 Update greek.xml
Updated (partially till 80%) whole file from eng.xml.

Close #9899
2021-06-03 01:20:24 +02:00
~GOLEM~
e524a64b3a Update russian.xml
Close #9917
2021-06-03 01:13:12 +02:00
Edditoria
0221639cc9 Update Hong Kong Cantonese: Update access keys on menu
As at commit f7a04ca of this repo.

View of shortcuts:

Original: Display all shortcuts in form of `Example(X)`
Now: Display the shortcuts in English word, if any.
i.e. `E&amp;xample`

Originally it is to follow the pattern of Taiwan translation.
However, the previous commit had added a lot of shortcuts.
It is better to adapt new strategy for the UI.

Close #9920
2021-06-03 01:09:14 +02:00
yasmise
2c1b01f7c6 update japanese.xml
Close #9927

Update translation according this commits:
* Add access keys to non-keyboard-accessible menu items (32dce9b54e40c2cb070f2739fd43a0d905841df3)
2021-06-03 01:06:26 +02:00
kubalav
60cd6c463f Update Slovak translation
Close #9934
2021-06-03 00:44:24 +02:00
Don HO
066b694d56 Remove unecessary codes 2021-06-03 00:13:38 +02:00
Adam D. Walling
5908166a63 Invert lightness of toolbar icon for dark mode
Close #9935
2021-06-02 23:38:25 +02:00
Don HO
8a898bae3f Add new API NPPM_ADDTOOLBARICON_FORDARKMODE for darkmode
Usage:
void NPPM_ADDTOOLBARICON_FORDARKMODE(UINT funcItem[X]._cmdID, toolbarIconsWithDarkMode iconHandles)

This new API NPPM_ADDTOOLBARICON_FORDARKMODE is for replacing obsolete NPPM_ADDTOOLBARICON which doesn't support the dark mode.
2 formats / 3 icons are needed:  1 * BMP + 2 * ICO
All 3 handles below should be set so the icon will be displayed correctly if toolbar icon sets are changed by users, also in dark mode.
	struct toolbarIconsWithDarkMode {
		HBITMAP	hToolbarBmp;
		HICON	hToolbarIcon;
		HICON	hToolbarIconDarkMode;
	};

Close #9928
2021-06-01 01:36:07 +02:00
Don HO
219dfda6b3 Remove HexEdit via installer due to its crash
Ref: https://github.com/chcg/NPP_HexEdit/issues/51
2021-05-30 11:51:25 +02:00
Adam D. Walling
ceca91557b Fix disabled checkboxes in dark mode
Fix the following issue:
https://community.notepad-plus-plus.org/topic/21228/notepad-v8-release-candidate-2?_=1622335986466

Close #9919
2021-05-30 07:52:48 +02:00
Don HO
46b3e3c7b2 Fix wrong plugin toolbar icon display if the ICO format is absent
An empty icon will be displayed after this fix.
2021-05-29 16:56:02 +02:00
Don HO
f7a04caca7 Update uzbek.xml 2021-05-29 13:26:36 +02:00
Don HO
5758b99b3e Fix crash on Dark mode under Windows 8
Fix #9911
2021-05-27 19:32:28 +02:00
Don HO
51207a4fe5 Refactoring some code of Dark mode 2021-05-27 03:56:22 +02:00
Don HO
9a2dcaa5f8 Fix plugin icons added on toolbar not taking effect for Fluent UI icon sets
NPPM_ADDTOOLBARICON take structure
		struct toolbarIcons {
			HBITMAP	hToolbarBmp;
			HICON	hToolbarIcon;
		};
as argument, both hToolbarBmp & hToolbarIcon should not be null to take effect.
2021-05-22 01:49:50 +02:00
Don HO
156bde258f Fix the tabbar incoherent alternate icons settings while switching in dark mode 2021-05-20 19:08:32 +02:00
Don HO
585608b456 Update english_customizable.xml 2021-05-18 22:09:11 +02:00
debiedowner
32dce9b54e Add access keys to non-keyboard-accessible menu items
Fix #9875, close #9876
2021-05-18 20:41:18 +02:00
Don HO
6d25b8b908 Add DarkModeDefault.xml into installation package 2021-05-18 19:09:04 +02:00
Don HO
19c3035d5a Fix Dark mode default theme not being applied bug 2021-05-18 17:06:42 +02:00
Don HO
6c19e88242 Fix "Match Whole Word" option being enabled in RegEx Search
Fix #9766
2021-05-16 03:23:10 +02:00
Don HO
0faa139234 Revert "Fix for 'Match Whole Word' option being enabled in Regular Expression Search"
This reverts commit f249fc5902668396c075aa7b8e8f66cf162abe2c due to a regression.
To reproduce the regression:
1. Ctrl+f and set to "Regular expression" as Search mode.
2. Press Shift+Ctrl+f to bring up "Find in Files".
3. Note that "Match whole word only" checkbox is missing, and cannot be made to appear.

Ref: #9766 & #9792
2021-05-16 02:03:30 +02:00
rddim
da352ef5ad Fix duplicated words in Auto-Completion pop-up window
Fix #9711, close #9867
2021-05-15 23:32:29 +02:00
Scott Sumner
e623e76d0b Rename sort randomly menu item, move it and reverse lines out of sorting section
Close #9868
2021-05-15 22:56:38 +02:00
Don HO
71fabb1567 Remove the access of Live Support on Gitter 2021-05-15 13:30:28 +02:00
ccuser44
93c1edd934 Update finnish.xml
Example was not translated.
In finnish it is esimerkki and in this context Esimerkiksi

Close #9787
2021-05-15 01:23:38 +02:00
conky77
a26b1f443d Update Italian.xml
Close #9669
2021-05-15 01:18:05 +02:00
Don HO
e248e29f7f Update lacalization files (Taiwanese Madarin & French) 2021-05-14 12:31:25 +02:00
kubalav
b2f3d573fb Update Slovak translation
Close #9695
2021-05-13 14:23:20 +02:00
yasmise
37863f47a0 update japanese.xml to v7.9.6
Follow-up to this commit:
* Catch regex search exceptions and show exception message (926e6e97d82b3d63103cb2297b372af5cd469ca6)
2021-05-13 14:12:49 +02:00
schnurlos
f42748d4b3 Update german.xml
Following 926e6e97d82b3d63103cb2297b372af5cd469ca6, 6834d796ab553438827fe7e07a1e4caef8460f6f & 874f0d01401e7c73b9965294cec41f3245acfc5a

Close #9708
2021-05-13 14:02:21 +02:00
Iñigo Zendegi
7196c1ab7a Update basque.xml (full translation)
Close #9826
2021-05-13 13:17:05 +02:00
xomx
d173b24f6d Update czech translation
Close #9749
2021-05-13 13:11:52 +02:00
Scott Sumner
a1abe867b9 Add Ctrl+C and Ctrl+A standard keyboard accelerators to Search results context menu
Fix #9824, close #9836
2021-05-13 10:10:54 +02:00
rddim
ddc551e0d2 Update Bulgarian localization
Close #9697
2021-05-13 09:21:12 +02:00
miwob
70d7b8504c Update C keyword list
1. Add true/false as per c99 stdbool.h
2. Alphabetize list

Close #9453
2021-05-13 03:32:09 +02:00
ArkadiuszMichalski
50d204f2a8 Update polish.xml
Close #9856
2021-05-13 03:14:25 +02:00
Hugo Carvalho
d75068f62e Update Portuguese translation
Close #9737
2021-05-13 01:54:25 +02:00
Edditoria
bcb6911527 Update localization: Hong Kong Cantonese...
As at commit 9c66ff9 of this repo.

Close #9773
2021-05-13 01:49:28 +02:00
Tmp341
58b33ecbd7 Update Turkish
* According to 2e7c5e3, 926e6e9, 6834d79, 874f0d0, 4369718, 1ae39c2, cbf3d2c, 1a9307b, e3dbeda, a0177e8, 0dbdef3 and b657f58 commits.

Close #9843
2021-05-13 00:15:26 +02:00
Patriccollu
6162e1ed5c Update Corsican translation
Close #9714
2021-05-12 23:45:21 +02:00
~GOLEM~
8df5dc41c5 Update russian.xml
Close #9718
2021-05-12 21:10:35 +02:00
Thomas De Rocker
5b83f21df2 Update dutch.xml
Close #9692
2021-05-12 21:04:54 +02:00
debiedowner
ddd4448192 Add ability to reverse line order
Fix #9837, close #9839
2021-05-12 03:06:44 +02:00
Don HO
70515c878b Update localization files 2021-05-12 02:16:30 +02:00
Cyberslas
84402e755f Fix Python Function List not showing functions
Functions defined at the top of the file or below a class with nothing in between would not show in the Function List.
This changes the function regex to fix this. A small unit test that the old regex won't pass but the new will included.

Close #9844
2021-05-11 23:48:22 +02:00
l3afblow3r
582a424d55 Add "curlopt_ssl_verifystatus" keyword for PHP
Close #9807
2021-05-11 23:28:26 +02:00
Don HO
69a5438671 Simplify dark mode user interface 2021-05-11 19:21:41 +02:00
Don HO
a0f2586102 Fix x64 build error 2021-05-11 04:27:13 +02:00
Don HO
c230ccf1bd Fix toolbar icons switching in dark mode makes incoherence in Preferences dialog
ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9742#issuecomment-836757562
2021-05-11 03:44:48 +02:00
Don HO
2d4640ce42 Update croatian.xml 2021-05-10 15:44:34 +02:00
Don HO
bae09252c7 Fix build error 2021-05-10 12:56:52 +02:00
Adam D. Walling
1089e239ba Add the capacity to customize the color of Notepad++ (not only dark)
1. Customizable colors easily handled now by tweaking a few custom drawing implementations.
2. make dark mode less intense by default.

Close #9848
2021-05-10 12:14:03 +02:00
Don HO
4aa459ef47 Switch to default dark theme as dark mode is enabled
1. Add default dark theme.
2. Switch to default dark theme when dark mode is enabled considering both situations:
   Style Configurator is or ont launched.

Close #9847
2021-05-10 09:56:35 +02:00
Don HO
db27172ca8 Add Fluent UI icons for Dark mode
Add Fluent UI icons for Dark mode in the toolbar & the tabbar

Fix #9742, close #9831
2021-05-09 17:38:54 +02:00
Scott Sumner
666f228027 Fix function List button tool tips mixed up issue
Swap errant tooltip text for function list sort and reload buttons.

Fix #9804, close #9829
2021-05-05 23:40:53 +02:00
Scott Sumner
b657f58580 Add "Copy Pathnames" command to Search results context menu
Fix #9821, close #9822
2021-05-05 23:20:13 +02:00
Scott Sumner
4b7e1ac794 Improve performance of Search results Open all
Fix #9819, close #9820
2021-05-05 22:54:04 +02:00
Don HO
dc34284146 Make toolbar compatible with current plugins 2021-05-05 16:47:06 +02:00
Don HO
7d25394244 Add new toolbar icons (Fluent UI)
1. Remove obsolete icon set.
2. Add both Fluent UI & Filled Fluent UI icon sets.
3. Refactoring toolbar code

Fix #9742, close #9808
2021-05-05 14:39:27 +02:00
Don HO
cd1a468b1c Make select text foreground color setting optional
Make selected text with syntax highlighting as default behaviour.
To override the default behaviour, user can add an empty xml file named "enableSelectFgColor.xml" (beside of "config.xml") to set the select foreground color in Style Configurator.
2021-05-01 20:02:09 +02:00
Scott Sumner
44b2bef69b Allow selected text foreground color to be changed
Fix #3397, fix #1314, close #9817
2021-05-01 04:28:27 +02:00
Scott Sumner
8339de66d2 Remove obsolete logic with wholeword and MarkAll
Fix #9803, close #9810
2021-04-29 18:32:06 +02:00
Adam D. Walling
85aaef2fba Dark Mode independent of OS setting
Close #9802
2021-04-27 01:38:24 +02:00
Adam D. Walling
bd6dbd4bb6 Add dark mode in find/replace dialog
Dark Mode find/replace dialog box! Also supporting buffered paint animation for darkmode checkbox/radiobutton control states

Close #9800
2021-04-26 17:57:22 +02:00
Scott Sumner
0dbdef320f Add MarkAll Preference settings for case and word
Fix #9751 #5148, close #9796
2021-04-26 12:05:35 +02:00
Scott Sumner
a0177e8d05 Add pref setting to allow Replace to stop after replacement
Fix #4437, close #9801
2021-04-26 10:26:47 +02:00
Roshni-P
f249fc5902 Fix for 'Match Whole Word' option being enabled in Regular Expression Search
Ensured 'Match Whole Word' option is disabled in Regular Expression Search.

Fix #9766, close #9792
2021-04-26 04:29:08 +02:00
Udo Hoffmann
9734d81f32 Fix a special character in UTF16 file crash issue (regression)
Fix UTF iterators end too early.
This regression (https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9599#issuecomment-825654605) is introduced via 38bf76e843

Close #9797
2021-04-26 03:16:48 +02:00
Christian Grasser
6750be3432 Fix for darkmode build with mingw
Close #9789
2021-04-24 06:23:33 +02:00
Adam D. Walling
5a3bf49c86 Add Dark Mode for not attracting bugs
Toolbar, status bar, tab bar, menu bar, dark scrollbar, handle switching between light and dark, docking splitters and headers, flicker fixes. Minor tweaks to DarkMode.h. Mostly handles the dark mode request for the main interface for #7692 and also follows the windows system theme settings like #9183.

Fix #9183, fix #7692, close #9587
2021-04-23 16:22:57 +02:00
mere-human
acdc2517c6 Fix regression: Handle "Default Directory" setting correctly in Open/Save File Dialog
IFileDialog doesn't modify the current directory unlike the old file
dialog. Now the last used directory is remembered each time the user
changes directory and then set as working directory if needed.

Fix #9767, close #9775
2021-04-22 19:18:43 +02:00
Don HO
d0afc51621 Add ARM64 support for auto-update feature 2021-04-22 05:20:54 +02:00
Don HO
f6856626e0 Fix ARM64 installer copying binaries to 32-bits applications' folder 2021-04-22 02:47:18 +02:00
Don HO
a459523659 Fix Notepad++ ARM64 version refusing to load plugins in ARM64 version 2021-04-21 23:24:05 +02:00
Don HO
266ca29861 Add ARM64 packages for the official distribution 2021-04-21 20:42:01 +02:00
Don HO
4207e2516d Add ARM64 support to NppShell 2021-04-21 17:34:38 +02:00
Don HO
6e7b47faf8 Fix typo in installer for Fortran 2021-04-21 06:28:18 +02:00
Christian Grasser
fd81dab21a Update Build.md
- update with official release of boost 1.76
- changed BUILD.md for the new scilexer build via VS solution

Close #9778
2021-04-21 01:19:58 +02:00
Don HO
b09fb1e719 Remove SciLexer.dll from the packaging 2021-04-17 17:32:52 +02:00
Christian Grasser
ab58c8ee3e One button to compile them all
1. Build Notepad++ with Scintilla static lib (libscintilla.lib) and Boost (v1.76) RegExpr.
2. ARM64 build is available.

Fix #5158, close #9594
2021-04-17 05:55:10 +02:00
Scott Sumner
9c66ff9c71 Fix Copy command in Search result is available as there's no selection
Disable Search Results Copy (verbatim) command if no selected text.

Fix #9757, close #9764
2021-04-16 02:52:52 +02:00
Don HO
15b7a26c87 Remove unecessary const type qualifier 2021-04-16 02:37:05 +02:00
mere-human
e3dbeda4c9 Add "Append extension" checkbox to Save As dialog
Add "Append extension" checkbox to Save As dialog for replacing option "Save dialog file extension filter to *.*" in Preferences dialog.

Fix #9515, close #9732
2021-04-16 01:27:32 +02:00
Don HO
af56713079 Change name of programming language from Nimrod to Nim
Fix #9768
2021-04-15 03:40:30 +02:00
Don HO
94dffc6da8 Fix inacurate ratio in Distraction Free mode 2021-04-14 04:38:07 +02:00
Don HO
432ad06108 Enhance Distraction Free mode: make dockable panels free 2021-04-14 03:39:25 +02:00
Don HO
90016a8dc0 Enhance Distraction Free mode by hidding another view 2021-04-13 03:38:40 +02:00
Don HO
55de911be5 Fix the 1st document title "new 1" is not translated
1ae39c2dda (commitcomment-49174136)
2021-04-12 17:32:19 +02:00
Don HO
1a9307b02d Add padding options in the edit zonze
Fix #2323
2021-04-11 19:59:30 +02:00
Don HO
cbf3d2c9cb Add new feature "Distraction Free Mode" 2021-04-09 19:55:55 +02:00
Don HO
92038c1653 Make struct VisibleGUIConf conform to coding standard 2021-04-07 18:02:30 +02:00
Udo Hoffmann
62d07f7f7c Fix wrong global locale setting committed in 86c66bb
Fix wrong global locale setting due to PR #9707 (86c66bba90 (r49146650))

Close #9733
2021-04-06 20:40:39 +02:00
Don HO
1ae39c2dda Make new tab name translatable
Fix #2837
2021-04-06 18:54:38 +02:00
Don HO
a349764b4a Remove unnecessary const 2021-04-06 17:52:56 +02:00
Scott Sumner
f6cb772e61 Reword Run menu entry name
Close #9728
2021-04-04 18:17:35 +02:00
Udo Hoffmann
86c66bba90 Improve character case handling in RegEx
Fix #9636, close #9707
2021-04-04 15:18:11 +02:00
Christian Grasser
4cdd96f020 Add ada, fortran, fortran77 & haskell in function lists
- added missing unittest for c
- added further function lists for ada, fortran, fortran77, haskell from previous PR of MAPJe71_functionlist_update3
- added simple rust function list
- unittest files from the internet probably no complex ones
- added to installer

Fix #9698, close #3393, close #9727
2021-04-03 15:45:51 +02:00
Don HO
5bc3ccf469 Fix dragged out UDL file is not applied to UDL in the new instance
The workaround is: in case of UDL, "-lLANG" argument part is ignored.
We let new instance detect the user lang type via file extension - it works in the most of case, except if user applies an UDL manually.
For example,  this workaround won't work under the following situation:
user applies Markdown to a file named "myMarkdown.abc".

Fix #3451
2021-03-31 03:55:09 +02:00
jofon
ca07ac69c7 Enhance Folder as Workspace performance while adding/removing files in bulk
Added batch processing of added and removed files in Folder as Workspace.

Fix #9203,close #9651
2021-03-30 14:08:59 +02:00
Don HO
70762b1a03 Fix Auto-Complete ignore case issue
Fix #3997, fix #4833, fix #4998
2021-03-30 03:46:28 +02:00
Scott Sumner
4369718925 Add ability to style only current instance of text
Fix #9263, close #9684
2021-03-29 23:35:38 +02:00
Scott Sumner
09d6241686 Fix sort with column key selection that appears after tab characters
Fix #9682, close #9683
2021-03-29 03:43:00 +02:00
jofon
c29240d78a Fix "Reload Workspace" menu command not working issue
Now forces the workspace to be opened when the user accepts that reloading will discard all modifications

Fix #9350, close #9696
2021-03-28 21:04:29 +02:00
Scott Sumner
cae2f77daf Add command line parameter for adding specified string to app title bar
Fix #9539, #9704
2021-03-28 04:18:23 +02:00
jofon
bdae2aef92 Fix view file in Edge failure issue if name contains spaces
Added Edge to the same case as the other browsers, which substitutes spaces for %20, and opens the files as expected and add legacy edge as a backup in case the new edge isn't found.

Fix #9313, close #9677
2021-03-27 19:34:55 +01:00
Scott Sumner
874f0d0140 Add ability to avoid accumulating multiple search results
Fix #8777, close #9653
2021-03-27 18:19:54 +01:00
Simon Sobisch
da61b1d949 Add an option in installer to install COBOL autocomplete
follow-up to adae1922cf87979c4909a63503cc843a4f701e15

Close #9672
2021-03-27 03:43:40 +01:00
Udo Hoffmann
6834d796ab Replaced UCS-2 by UTF-16, removed unused UniConversion.* 2021-03-27 03:00:14 +01:00
Udo Hoffmann
38bf76e843 Fix UTF-16 decoding/encoding for code points above U+FFFF
Fix #9597, fix #3747, fix #5754, close #9599
2021-03-27 02:50:51 +01:00
mere-human
dc106a4c95 Add Cloud Config and Command Line Arguments to Debug Info
Fix #9598, close #9607
2021-03-26 15:33:01 +01:00
Scott Sumner
f308539abe SaveAs moves original path to recent files history
Fix #9673, close #9678
2021-03-26 14:00:01 +01:00
Scott Sumner
6bfe9d289c Widen Default Language control in Preferences for New Document
Close #9647
2021-03-26 01:25:06 +01:00
chcg
488ea57999 Update CONTRIBUTING.md
Close #9702
2021-03-25 23:30:29 +01:00
Udo Hoffmann
926e6e97d8 Catch regex search exceptions and show exception message
Fix #9565, close #9566
2021-03-24 01:24:24 +01:00
Scott Sumner
854f49c61c Fix typo: FINFER -> FINDER
Close #9688
2021-03-23 23:35:59 +01:00
Don HO
0c0a5d2097 Add 2 new easter eggs for the upcoming Easter Sunday 2021-03-23 01:57:37 +01:00
Don HO
4399c1343b Notepad++ 7.9.5 release 2021-03-22 22:46:05 +01:00
Don HO
633dcbad5e Fix installer error if problematic plugin is absent 2021-03-22 03:27:44 +01:00
Don HO
aa22ee21cc Add a new quote 2021-03-21 01:12:30 +01:00
mere-human
ad3a6ea2f6 Fix file doesn't save as extension type on Windows 7
Initialize file dialog window procedures later so that
all the controls have been created by this moment.

Fix #9657, close #9674
2021-03-20 23:17:05 +01:00
Don HO
805ff42cd4 Update slovenian.xml 2021-03-18 17:58:30 +01:00
conky77
9c471cd0a2 Reorder translation item nodes in Italian.xml
Set new order as English.xml.

Close #9635
2021-03-18 16:20:30 +01:00
schnurlos
39b7604107 Update german.xml
Close #9628
2021-03-18 15:58:08 +01:00
snxx-lppxx
3d6bb7ae06 Fix some inaccurate translation in kazakh.xml
Close #9625
2021-03-18 15:39:32 +01:00
mere-human
cd738bcff7 Fix UNC path with quotes handling in folder & file Open/Save dialog
Remove a workaround for double backslash that leads to problems.
Originally, the double backslash workaround was needed to address #5368.
But now, the app isn't stuck when such path is used, so the problem is gone.

Fix #9582, close #9666
2021-03-18 15:31:03 +01:00
Don HO
f44e6c4c06 Fix SaveAsAdmin plugin incompatibility with Notepad++ 7.9.3 issue
The installer will check the version of SaveAsAdmin plugin and remove all the versions of SaveAsAdmin plugin which doesn't contain the fix.

Fix #9514
2021-03-18 01:45:57 +01:00
Don HO
58f0a61770 Notepad++ 7.9.4 release 2021-03-15 01:37:51 +01:00
Edditoria
b1ba14b922 Update localization: Hong Kong Cantonese
As at commit 3a4d1ac of this repo.

Close #9624
2021-03-14 19:50:34 +01:00
Udo Hoffmann
aaab4607c1 Fix Find button not enabled in Find in Files section regression
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8125#issuecomment-798801190

Close #9654
2021-03-14 19:31:08 +01:00
Don HO
8c6dc79df3
Update README.md 2021-03-10 22:07:19 +01:00
Don HO
c0760e49c6
Update nppGpgPub.asc
due to the expiration of the certificate.
2021-03-10 20:33:16 +01:00
rddim
3a4d1acad3
Update Bulgarian localization
Close #9547
2021-03-09 00:02:00 +01:00
schnurlos
1ef9b94581
Update german.xml
Following last changes of english.xml

Close #9596
2021-03-08 23:55:39 +01:00
popcorner
ed347fae90
Update chineseSimplified.xml
Close #9622
2021-03-08 23:52:16 +01:00
Patriccollu
4f64597762
Fix wrong translation ID in 2 localization files
Close #9616
2021-03-08 18:24:57 +01:00
yasmise
1f2c63cce1
Update japanese.xml to v7.9.4
Follow-up to these commits:
* Add an option to mute all sounds in preferences dialog (6e43ba6ea529126d5366295300caee8798777032)
* Make tab splitter menu and incremental search translatable (35584b379f017402ab8e8244364400137bb500c0)

Close #9559
2021-03-08 13:14:27 +01:00
Haoran Du
7c73faba57
Fix a interface error(missed a "$" symbol) in Chinese localization
Close #9589
2021-03-08 13:08:18 +01:00
conky77
e27c125ef7
update italian.xml to v7.9.4
Close #9619
2021-03-08 13:02:34 +01:00
xomx
63760073ef
Update Czech translation to v7.9.4
Close #9610
2021-03-08 00:36:42 +01:00
Tmp341
c6088dbcdf
Update Turkish localization
* According to d6c9410, d5ad025, e26199a and 41c4180 commits.

Close #9531
2021-03-07 20:59:32 +01:00
Thomas De Rocker
cc17f69a37
Update dutch.xml
Update Dutch translations according to 35584b379f and 6e43ba6ea5 (diff-a6ac7ceba70d88bf1547fd1defd760bd55052dcdb78c44f9d46d99ef1f450472)

Close #9541
2021-03-07 20:32:39 +01:00
Patriccollu
663b6471d1
Update Corsican translation for Notepad++ 7.9.4
Close #9571
2021-03-07 20:00:47 +01:00
~GOLEM~
e1df2ed032
Update russian.xml to v7.9.4
Close #9576
2021-03-07 19:55:21 +01:00
ArkadiuszMichalski
03332eca82
Update polish.xml to 7.9.4
Update polish.xml to 7.9.4 (according to the latest commit).

Close #9615
2021-03-07 19:52:26 +01:00
conky77
b4d8b1d5b0
Update Venetian.xml v7.9.4
Close #9614
2021-03-07 19:19:08 +01:00
Don HO
2e7c5e3e89
Update localization files 2021-03-07 17:34:10 +01:00
Don HO
68c537f697
Fix Find in Projects replace confirmation message localization problem 2021-03-07 17:05:02 +01:00
Udo Hoffmann
a044cefe7c
Fix Project workspace changes lost on save cancel
Fix #9605, close #9609
2021-03-06 23:23:12 +01:00
Don HO
22e87184aa
Update CONTRIBUTING.md 2021-03-05 00:51:19 +01:00
Don HO
47ca5281fe
Revert "Improve high-dpi display"
This reverts commit 1364b199b4eff3aa2bdc370e6adf6d6186576218.

3 ways we can choose:
1. PerMonitorV2: it would be the ideal solution if there were no custom control in Notepad++ : some part of the custom controls like panels and Find dialog are not rendered properly in PerMonitorV2 mode.
2. PerMonitor: in v7.9.3 WM_DPICHANGED message was not processed and that makes Notepad++ unusable under a high resolution monitor.
3. Without "PerMonitor" feature: (as in v7.9.2), it will be a little bit blurry, but at least the system resizes all parts of application correctly

This commit revert the modification in v7.9.3 and go back to the way in v7.9.2 (Without "PerMonitor" feature).
It's not easy to solve this issue, all I can do is choose the "less worst" way, just like people in world-wide vote for choosing their political leader.

Fix #9513, fix #9579
2021-03-04 01:28:12 +01:00
Don HO
4b0010c4c3
Fix regression in "Find Result" field due to Scintilla upgrade
Fix #9595
2021-03-03 20:01:16 +01:00
Udo Hoffmann
5c884a80c6
Add "Find in Projects" features
Close #8125, close #9534
2021-02-27 23:58:17 +01:00
Christian Grasser
10b091b54d
Use the generated SciLexer.dll which contains regExpr of Boost
Currently in Appveyor build, we download SciLixer.dll from the latest release for Unit tests (of function list especially).
In PR #9574 the boost is included in Appveyor build.

In this PR:
- Remove the download last release part from Appveyor script and use the generated SciLexer.dll
- Remove SUPPORT_XP from the script

Fix #9581, close #9591
2021-02-27 19:57:32 +01:00
Udo Hoffmann
d6c6a49d1b
Include Boost in appveyor build
Close #9574
2021-02-25 18:24:58 +01:00
mere-human
91a570a305
Fix folder picker not displying as the given directory is invalid issue
Fix #9569, close #9570
2021-02-25 16:43:23 +01:00
mere-human
064d844a41
Fix handling of network path (UNC path) in CustomFileDialog
Use STL algorithms for path transformation.

Fix #9527, close #9551
2021-02-22 19:09:37 +01:00
QoL
26dad277c9
Fix shortcut name more than 64 characters makes an empty name issue
Fix #9556, close #9543
2021-02-22 05:05:41 +01:00
mere-human
f96d81af11
Fix extension appending issue in file dialog
Fix #9510, close #9532
2021-02-22 03:58:30 +01:00
Udo Hoffmann
75bcb7c536
Fix file not turning dirty (with Session Manager plugin) issue
Fixes #9475, close #9498
2021-02-22 03:30:13 +01:00
Don HO
d7819cf601
Upgrade Scintilla from v4.2.0 to v4.4.6
Close #8900, close #9550
2021-02-21 19:14:40 +01:00
Scott Sumner
41cfc7e1d1
Improve contributing guidelines by excluding not, and, or.
Reference: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9534#discussion_r579588184

Close #9544
2021-02-20 17:48:53 +01:00
Don HO
dbac42edd0
Use unary operator '!' instead of "not" 2021-02-20 04:44:34 +01:00
Don HO
1eaaf45d87
Add needed space in "Window dialog"
Fix #9542
2021-02-20 03:44:37 +01:00
mere-human
35584b379f
Make tab splitter menu and incremental search translatable
Rename menu IDs in tab splitter to be in English.
Relocate some controls in incremental search dialog to ease translation.

Fix #8955, close #9496
2021-02-19 04:00:02 +01:00
mere-human
6e43ba6ea5
Add an option to mute all sounds in preferences dialog
Fix #7950, close #9507
2021-02-19 03:46:52 +01:00
Victor Istomin
ea33a0cb76
Add JSON syntax highlightning to the Obsidian theme
Close #9503
2021-02-18 02:42:00 +01:00
Vince
69e6eb26a3
Make JSON auto-indent for brace
Fix #9499, close #9504
2021-02-18 02:33:13 +01:00
Don HO
f576559eaa
Add some spiritual quotes 2021-02-16 03:05:29 +01:00
Don HO
16c8198915
Update Slovenian localization to v7.9.3 2021-02-15 21:08:19 +01:00
Don HO
994b10c18d Notepad++ 7.9.3 release 2021-02-15 01:43:19 +01:00
Don HO
949a777ee5
Fix the issue that zip/7z packages contain still GPL v2 2021-02-10 21:04:12 +01:00
Don HO
4b30d1b786
Fix typo in French localization file
Fix #9492
2021-02-10 18:49:07 +01:00
Don HO
3419a749d9 Change Notepad++ binary description
https://community.notepad-plus-plus.org/topic/20678/gnu-source-code-editor-error-on-close?_=1612738141494&lang=fr

Fix #9489
2021-02-07 23:24:25 +01:00
Don HO
5155dfed9d
Synchronize GUP localization file with Notepad++ in installer
During the installation, GUP localization file will be synchronized with Notepad++ chosen localization.
So updater will show the same installed language of Notepad++ in the dialogs if the language is avalable in GUP.
2021-02-07 00:15:51 +01:00
Don HO
a4d7f77016
Fix regression of installer which cannot be launched
The regression is due to commit "Drop XP in installer" (ca1bcb1ec0bedbb4aad227c369667aef30624618).
2021-02-06 15:23:15 +01:00
Don HO
541b4d1c7a
Add new localization file abkhazian.xml 2021-02-05 15:53:07 +01:00
conky77
821e3edfb7
Update italian.xml v7.9.3
Close #9469
2021-01-30 19:48:34 +01:00
mere-human
5a45674c36
Fix miss-treating browsing folder as saving file issue in FileDialog
Improve file name parsing.
Use the absolute path to check if a file name is a directory.
Expand environment variables if they are part of the file name.
Avoid unnecessary calls to onPreFileOk().

Close #9467
2021-01-29 23:11:16 +01:00
Thomas De Rocker
c677b15d82
Update dutch.xml
Close #9466
2021-01-29 20:18:39 +01:00
Artem Polivanchuk
5a77553631
Update ukrainian.xml
Close #9314
2021-01-28 20:34:40 +01:00
conky77
8e19014df7
Update venetian.xml
Close #9301
2021-01-28 20:30:46 +01:00
xomx
a838607e2b
Update czech.xml to v7.9.3
Close #9391
2021-01-28 15:10:09 +01:00
yasmise
ad3a86d60f
Update japanese.xml to v7.9.3
Follow up to these commits:
* Make find/replace in files progress translatable (d6c941034d6492b89218456f12b138598f37d7e4)
* Improve option for setting save dialog filter to All Types (d5ad02521ed5558ba6a958d5334cfce6f0e8e6fc)
* Make 1 section name of Preferences more explicit (e26199ab51258fa6f743566aa6018eed8fb64b4f)
* Make "Save Folder as Workspace" in Save Session dialog translatable (41c4180b2ef75e963645baca2fcfa0e853f64365)
* Fix spelling inconsistencies

Close #9376
2021-01-28 14:07:12 +01:00
kubalav
e2d6cb2356
Update Slovak translation to 7.9.3
Close #9462
2021-01-28 13:36:46 +01:00
~GOLEM~
5872d779df
Update russian.xml to 7.9.3
Close #9458
2021-01-28 05:06:12 +01:00
schnurlos
34e73c3f5b
Update german.xml v7.9.2
Following https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9333

Close #9351
2021-01-28 03:04:44 +01:00
rddim
1916fba771
Update Bulgarian localization
Close #9369
2021-01-28 03:02:17 +01:00
Edditoria
27b68e06c3
Update localization: Hong Kong Cantonese
As at commit 41c4180 of this repo.

Close #9401
2021-01-28 02:59:47 +01:00
Patriccollu
d773f4bb0b
Update Corsican translation for Notepad++ 7.9.3
Close #9424
2021-01-28 02:57:24 +01:00
ArkadiuszMichalski
ec465516bf
Update polish.xml to v7.9.3
Update polish.xml to 7.9.3. Also include typo from https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9405.

Close #9457
2021-01-28 02:53:44 +01:00
Don HO
adce1a8ea3
Update localization files to v7.9.3 2021-01-27 18:50:28 +01:00
mere-human
9ca3c69354
Update .gitignore with MinGW build outputs
Close #9451
2021-01-27 15:04:50 +01:00
mere-human
3cf65ade81
Fix typo in ScitillaComponent directory name
Rename ScitillaComponent -> ScintillaComponent.
Git history should be kept because `git mv` was used.
Also change paths in source code.

This was noted in scope of #9403

Close #9450
2021-01-27 05:39:55 +01:00
Don HO
7d105cb74b
Add guidelines for supporting legacy systems
Close #9423, close #9443
2021-01-27 04:52:18 +01:00
mere-human
aca37f150b
Remove localization of "Use new style dialog" with id="6430"
The option isn't available since FileDialog was removed.

For more context, see discussion in #9403 and #9374

Close #9449
2021-01-27 02:48:16 +01:00
mere-human
e7079d57c6
Enhance FileDialog for allowing UNIX stile file path
And use modern CustomFileDialog istead of old FileDialog in Notepad++.

In the file dialog, override window procedure for "OK" button and
file name edit box to check for input.
Transform forward slash file name to a Window path after input.

Fix #9374, close #9403
2021-01-26 18:52:15 +01:00
Don HO
ab5c1d3e2a
Upgrade Notepad++ License
Update GPL version from v2 to v3.

Fix #9425, close #9441
2021-01-24 01:51:19 +01:00
Udo Hoffmann
fed1803c78
Fix Switch-To keyboard shortcuts cannot be used in context menu
Fix #943, close #9436
2021-01-22 14:08:36 +01:00
Don HO
ca1bcb1ec0
Drop XP in installer 2021-01-22 04:35:56 +01:00
Udo Hoffmann
0004981ff7
Improve size calculation of value dialog
Fix #8443, close #9432
2021-01-21 16:17:43 +01:00
Pavel Nedev
ce0012ab5c
Fix possible empty snapshot session on Windows reboot/shutdown
Save snapshot session immediately when needed (without incuring delay by using ::PostMessage).

Fix #7839 and latest user reported problems in #6133.
Close #9427
2021-01-20 19:25:16 +01:00
Don HO
3bf17ec697
Fix build error in MinGW
and fix a misuse of CopyFileEx function.
2021-01-20 04:55:42 +01:00
Don HO
051b17ca44
Enhance copy/move file Win32API functions to avoid system cach
Suggestion from:
https://github.com/d0vgan/nppexec/issues/29#issuecomment-761830889
2021-01-19 04:05:54 +01:00
Don HO
45912a3321
Drop Windows XP support for IFileDialogCustomize
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9378
2021-01-19 03:03:56 +01:00
Scott Sumner
b5ec511c38
Add ability to delete from Find combobox history
When any of the Find window comboboxes are dropped and an entry is highlighted, pressing the Delete key will remove the highlighted entry from the following comboboxes:

1. Find what combobox
2. Replace with combobox
3. Directory combobox
4. Filters combobox

No method is provided for clearing all entries at once, but as the "depth" of the comboboxes is limited to a small amount, clearing one entry at a time (when one wants to clear all) is not overly burdensome.

Fix #9366, close #9396
2021-01-18 02:52:00 +01:00
Scott Sumner
5003a45306
Make split-lines work with multi-edge rightmost specified edge
Implements a fix whereby the RIGHTMOST user specified value in the vertical edge box is the column to split by, e.g. 60 in the following example: [15, 40, 60]

If the contents of the box were instead [15, 60, 40], the split-by column would be 40, as that is the RIGHTMOST value.

Fix #8262, close #9387
2021-01-18 02:30:13 +01:00
Don HO
a2ee3e6254
Fix a memory leak issue in NppParameters::writeSession
Solution: simplify the method NppParameters::getSessionFromXmlTree by removing unecessary variable member NppParameters::_pXmlSessionDoc.
2021-01-17 19:47:45 +01:00
mere-human
477dd1dbb0
Update contribution rules related to PR
Clarify the information about creating a PR
and addressing the review comments.

Address comment discussion in #9286

Close #9400
2021-01-16 23:38:20 +01:00
Don HO
67234d2269
Fix dockable panels 0 width/height in multi-instance mode regression
Fix #9341, fix #9363
2021-01-15 22:19:02 +01:00
mere-human
41c4180b2e
Make "Save Folder as Workspace" in Save Session dialog translatable
Fix #9375, close #9383
2021-01-12 00:36:15 +01:00
Scott Sumner
1364b199b4
Improve high-dpi display
Fix #8115, close #9381
2021-01-11 23:26:18 +01:00
Don HO
e26199ab51
Make 1 section name of Preferences more explicit. 2021-01-11 12:16:34 +01:00
Christian Grasser
a55d46d170
Fix incompatible plugin not being deleted issue
Unload incompatible plugin before deleting it.

Fix #9377, close #9382
2021-01-11 04:58:15 +01:00
mere-human
b58a5cc227
Use the mordern browse folder dialog to get folder path
Add new methods to CustomFileDialog:
- setTitle() sets the dialog title
- setFolder() sets an initial directory
- pickFolder() shows a file open dialog to select a folder

Use CustomFileDialog in folderBrowser().

Affected areas:
- Search > Find in Files
- File > Open Folder as Workspace
- Preferences > Default Directory
- Preferences > Backup > Custom Backup
- Preferences > Cloud & Link

Fix #8513, close #9378
2021-01-11 03:56:46 +01:00
Don HO
38f6319f4e
Fix "Print Line Number" preference is ignored for printing regression
Fix #9379
2021-01-10 04:07:13 +01:00
Scott Sumner
d5ad02521e
Improve option for setting save dialog filter to All Types
Fix #9325, close #9328
2021-01-08 04:34:23 +01:00
mere-human
b9f498f041
Add "save Folder as Workspace in session" option in save session dialog
Save FileBrowser root folders if it is visible.
When loading a session file (from menu or via the command line),
launch a FileBrowser from scratch and add folders from the file to it.
When loading an auto-saved session, ignore saved FileBrowser folders.

Store roots and selected item of FileBrowser in a Session class.

Add "FileBrowser" node to session XML.
It containts "latestSelectedItem" attribute and "root" child nodes.
This structure corresponds to the one from "config.xml".

Current save session behavior for Folder as Workspace (FaW) is like this:
1. FaW isn't opened, checkbox is greyed-out -> FaW info is not saved in session
2. FaW is opened, checkbox isn't checked -> FaW info isn't saved in session
3. FaW is opened, checkbox is checked -> FaW info is saved in session

Load session behavior:
1. FaW isn't open, session without FaW info -> FaW isn't shown after loading
2. FaW isn't open, session with FaW info -> FaW is shown after loading
3. FaW is open, session without FaW info -> FaW is kept as is without changes
4. FaW is open, session with FaW info -> FaW is shown with new directories from session

Fix #9165, close #9286
2021-01-08 00:02:52 +01:00
Scott Sumner
d6c941034d
Make find/replace in files progress translatable
Fix #9319, close #9356
2021-01-07 04:08:24 +01:00
Don HO
9f635b22af
Fix invalid XML file 2021-01-04 23:33:42 +01:00
Don HO
cb3d328666
Fix invalid UTF-8 XML files 2021-01-04 20:02:23 +01:00
Don HO
52e8c68f90
Change XML encoding from Windows-1252 to UTF-8 (config.xml and others)
and add XML declaration for session.xml, shortcuts.xml & userDefineLang.xml for conforming to XML standard specs.

Regarding the suggestions from #9339
2021-01-04 15:02:09 +01:00
Christian Grasser
e24ad94ddd
Move script validator_xml.py to "Test" folder
Fix #9330 part 2
Close #9345
2021-01-04 01:42:57 +01:00
Christian Grasser
d17fa02a6f
Check XML validation in Notepad++ build system
1. Added xml syntax check via python script just for the win32 debug build because there already the functionlist check happens.
2. Fixed an issue found for perl.

Fix #9330, close #9339
2021-01-03 01:52:23 +01:00
Scott Sumner
aca736b766
Fix logic bug in NPPM_SETLINENUMBERWIDTHMODE
Fix #9338, close #9340
2021-01-03 00:04:54 +01:00
Don HO
edfd2b8a95
Fix the regression of copying line data from search results
Fix #9334
2021-01-02 12:21:47 +01:00
Don HO
3373756afb
Fix a regression in Chinese Simplified localization
Fix #9329
2021-01-01 16:00:28 +01:00
Don HO
0762af5ce2 Notepad++ 7.9.2 release
Notepad++ Stand with Hong Kong edition.
2021-01-01 00:01:37 +01:00
Don HO
a68805b7ff
Make user defined overrideMap.xml not overridable during installation
Fix https://community.notepad-plus-plus.org/topic/20534/notepad-v7-9-2-release-candidate-2/4?_=1609416552124
2020-12-31 20:16:00 +01:00
Don HO
0472052f8e
Make installer override all the function list files on the installation 2020-12-31 03:50:56 +01:00
Don HO
9c8497a99d
Fix regression of URL double click issue
Fix #9320
2020-12-31 03:38:16 +01:00
Don HO
413762c393
Add "Toggle" for Character Panel & History Clipboard in Shortcut mapper 2020-12-27 15:59:39 +01:00
Artem Polivanchuk
1a9c28dacb
Update ukrainian.xml
Close #9105
2020-12-23 16:00:05 +01:00
conky77
916bbfc7fd
Update venetian.xml
Close #9253
2020-12-23 15:57:54 +01:00
popcorner
528712f050
Update chineseSimplified.xml
Close #9295
2020-12-23 15:55:10 +01:00
schnurlos
f77b03f82d
New Update for german.xml v7.9.1
Close #9122
2020-12-22 19:39:26 +01:00
rddim
18f482619a
Update Bulgarian localization
Close #9147
2020-12-22 19:36:40 +01:00
ArkadiuszMichalski
8cd4d9d066
Update polish.xml
Close #9297
2020-12-22 19:08:16 +01:00
Sapziller
2c872b0fa8
Update korean.xml (7.9.2)
Close #9294
2020-12-22 16:35:40 +01:00
Vladimír Kubala
34c54c9442
Update Slovak translation
Close #9126
2020-12-22 16:29:45 +01:00
yasmise
7408f34364
update japanese.xml to v7.9.2
Follow-up for these commits:
* Make UI text consistent regarding search results (f5dcfc196aff5b41bb6db6e4b3044c26ab57cdf3)
Note: Diff of this PR is smaller than the commit above, but it's OK. Japanese translation was already translated correctly.
* Add ellipsis to Rename and Print on tab bar context menu (1961f708c1eeb3466e16ffce6a19e44b4da293b2)
* Add tooltips for Folderas Workspace 3 commands (070630a2436fe2cb735fdaaf28764023ab464840)
* Prevent names of untitled tabs from duplication (f75f8b8d40912bca6f501c2664ef93aa8ec2a9ab)
* Update English file with missing strings (a7f866b89e77e2b0c0f93932947336a1716778ea)
* Add context menu with "Copy link" ability (d155f0326a1bb098d7df3eebfb04e00391e4c8e9)
* Add GUI in preferences dialog for adding URI customized schemes (4b2997116898d7e69728396f46ab8648972b895d)
* Create new Margin/Border/Edge sub-page in Preferences (053266c706178dc8c6cc32dce62137c7baf4c0e4)
* Add an option for displying constant line number width (c9c2d1e3761154a3024d80dd3bd22db446987a0b)
* Make "Line" preceding each line number on Search Results translatable (e3455a0f7e2e8aa2c97d1f7a6d2ddfde2d83f95e)
* Make "total documents number" feature in Window dialog translatable (0546f75a71ca54ab636fd5433d2c800cdc12049f)

Close #9111
2020-12-22 16:26:35 +01:00
Tmp341
141e893af5
Update Turkish localization
Close #9112
2020-12-22 16:23:07 +01:00
~GOLEM~
62e131105a
Update russian.xml to v7.9.2
Close #9176
2020-12-22 16:17:55 +01:00
Patriccollu
10b5302fc9
Update Corsican translation for Notepad++ 7.9.2
Close #9186
2020-12-22 16:13:45 +01:00
Don HO
f617325006
Enhance ghost typing command line argument feature
Enhance ghost typing command line argument feature by changing its format:
With it's new format -qX="string contains white space" (where X is 't', 'n' or 'f'), the white spaces can be contained between double quote, so no need to use %20 anymore for substituting white spacees.
2020-12-21 17:54:10 +01:00
Don HO
b6a66ba2b1
Add "-settingsDir" argument for overriding default settings path
Currently the settings directory could be:

1. Notepad++ installation dir if doLocalConf.xml is present.
2. %APPDATA%\Notepad++ if doLocalConf.xml is absent.
3. The path defined in \cloud\choice in Notepad++ installation or in %APPDATA%\Notepad++, it depends on the existence of doLocalConf.xml.

In this PR "-settingsDir" argument is added for overriding above settings paths:
4. Overrided by command line argument -settingsDir="E:\my NppSettings\" : All the above configurations will be ignored, Notepad++ will load (and write) config.xml and the other configuration xml files from (into) "E:\my NppSettings\". Note that double quotes is not necessary if there's no white space in the given path.

The priorities are: 1. -settingsDir 2. Cloud 3. %APPDATA%\Notepad++ or Notepad++ installation dir.
If the given path "E:\my NppSettings\" is not a valid directory (it doesn't exist or it's a file), this argument is ignored and the settings dir will fall back to Cloud (or to %APPDATA%\Notepad++ or Notepad++ installation dir, if settings on Cloud is not defined).

Close #4696, close #9287
2020-12-21 16:03:05 +01:00
Scott Sumner
8f38707d33
Improve text selection after Replace All In Selection operation
Fix #9270, close #9273
2020-12-18 01:49:58 +01:00
Don HO
0546f75a71
Make "total documents number" feature in Window dialog translatable 2020-12-16 18:49:06 +01:00
X1ngyuL1u
435834651b
Add the number of total documents on windows dialog's title bar
Close #8338, close #9245
2020-12-16 16:43:01 +01:00
Scott Sumner
7aafa2e8fe
Fix scroll to last line problem after main window resize
Fix #9123, close #9265
2020-12-16 12:58:39 +01:00
Don HO
5e0e7a7f73
Update nlohmann's json.hpp from v2.2.1 to v3.9.1
Close #9272
2020-12-16 00:22:01 +01:00
Christian Grasser
a0ffb6b6ff
Fix Plugin admin display UTF-8 issue in its description
Allow UTF-8 input for plugin autor and description.

Fix #9266, close #9267
2020-12-15 19:25:01 +01:00
Don HO
21e9239203
Make find in finder result's text direction follows the search results' one 2020-12-15 04:07:05 +01:00
Don HO
bf62bda851
Fix a typo
Fix #9259
2020-12-14 16:34:01 +01:00
Don HO
241393407c
Fix Search result's text direction not always synchronized with main edit zone's one issue 2020-12-13 15:29:56 +01:00
Don HO
5e96dd0166
Make the text direction of finder's search result follow the main edit zone's one 2020-12-12 13:03:31 +01:00
Don HO
edaa67db28
Make the text direction of search result window follow the direction of main edit zone
and the text direction of function list always LTR.
2020-12-12 04:05:22 +01:00
Don HO
db4a6f5ec6
Fix dockable panels display issue in RTL direction
Fix #9241
2020-12-11 20:09:55 +01:00
Don HO
4768fec82d
Remove obsolete code 2020-12-10 14:56:47 +01:00
Don HO
6c3ecacdb7
Enhance localization of "Line" of Search result
This enhancement translates "Line" prefix of Search resulton when user change each time the localization.

Inspired from #9233
2020-12-09 16:25:35 +01:00
Don HO
2f6454a085
Fix Search result line number highlighting inaccurate issue 2020-12-09 03:34:18 +01:00
Don HO
e3455a0f7e
Make "Line" preceding each line number on Search Results translatable
Fix #9224
2020-12-08 18:50:23 +01:00
Coin
a0221c4832
Update taiwaneseMandarin.xml
Close #9236
2020-12-08 16:07:46 +01:00
Don HO
59a0c7c3d8
Fix menu check marks not being removed after closing the panels
For both "Clipboard History" and "Character Panel" panels.

Fix #9216
2020-12-07 23:14:42 +01:00
Don HO
c9c2d1e376
Add an option for displying constant line number width
1. Add an option for displying constant line number width in Preferences dialog.
   This option set the line number constant width according the total line number in the document (minimun 4 digits).
   It ensures no unexpected visual effect while scrolling content vertically.
   If the document content is modified and the total number of lines is increased or decreased, more digits will be added or removed according the number of digits in total number of lines.

2. Add new plugin messages NPPM_GETLINENUMBERWIDTHMODE & NPPM_SETLINENUMBERWIDTHMODE for getting or setting LINENUMWIDTH_DYNAMIC / LINENUMWIDTH_CONSTANT.
   So plugins may send NPPM_SETLINENUMBERWIDTHMODE message with LINENUMWIDTH_CONSTANT to Notepad++ for avoiding some unexpected visual effect (while scrolling).

Fix #5670
2020-12-06 16:38:53 +01:00
Don HO
fefdbc9cad
Fix command line arguments -p, -n & -c negative value's undefined behaviour
The negative values of these 3 arguments won't be undefined anymore.
They will be rejected - so negative values are just ignored.

Fix #9146
2020-12-03 18:13:25 +01:00
Don HO
053266c706
Create new Margin/Border/Edge sub-page in Preferences
1. Add Margins/Border/Edge sub-page in Preferences dialog
2. Update Preferences dialog sub-page naming

Close #8896, close #9218
2020-12-02 23:28:39 +01:00
Scott Sumner
b2387286b1
Fix find in files failure issue due to directory path with leading/trailing spaces
Trim spaces on Directory for FindInFiles to fix such issue.

Fix #9199, close #9208
2020-11-29 14:29:16 +01:00
mere-human
876a0c4c5a
Update the build instructions
1. Add Visual Studio 2017 to Pre-requisites section.
2. Add link to community forum with more details about the build process.
3. Restructure Scintilla build instructions. Move common build steps upper.
4. Add more details about the Developer Command Prompt for Visual Studio.

Fix #9087, fix #5566, close #9192
2020-11-27 21:38:49 +01:00
mere-human
ecf44bd085
Folder as Workspace: Change folder images after "Expand/Collapse All"
Folder images are changed in FileBrowser::notified() when TVN_ITEMEXPANDED
is recieved. This works fine when e.g. expand/collapse using "+" button.
However, when foldAll() or expandAll() are called on a TreeView,
the TVN_ITEMEXPANDED is not sent. The reason is that TVIS_EXPANDEDONCE flag
is set. To reset that flag, it would be needed to pass TVE_COLLAPSERESET
to TreeView_Expand that also removes all child items which is unwanted.

Resolve the problem by notifying TreeView parent manually when recieve
TVM_EXPAND and TVIS_EXPANDEDONCE is set.

Fix #8912
2020-11-27 15:26:01 +01:00
Don HO
814e6591b5
Fix function list is empty with new user profile issue
The new behaviour of loading function list will be:

1. For the installer package:
Try to load from %APPDATA%\Notepad++\functionList\, if it failed, then load from %PROGRAMFILES%\Notepad++\functionList\.
In this way, users can override function list in %APPDATA%\Notepad++\functionList\ manually. Otherwise, function list won't be empty.

2. For the portable package:
  - with doLocalConf.xml : Load always from <Notepad++ Dir>\functionList\
  - without doLocalConf.xml : Try to load from %APPDATA%\Notepad++\functionList\, if it failed, then load from <Notepad++ Dir>\functionList\

Fix #9134
2020-11-27 03:54:37 +01:00
Don HO
4b29971168
Add GUI in preferences dialog for adding URI customized schemes
And add default supported url schemes.
Related: 5168bdb and #9155

Close #9195
2020-11-25 03:19:30 +01:00
Udo Hoffmann
5168bdb7c5
Allow custom URL schemes
Fix #9155, close #9190
2020-11-22 18:06:37 +01:00
chomdoo
a7f8056c29
Fix Wrap Around shortcut in Korean.xml
Close #9133
2020-11-20 22:27:47 +01:00
Patriccollu
a7f866b89e
Update English file with missing strings
Close #9187
2020-11-20 22:19:52 +01:00
Don HO
cabf726778
Fix single-quoted string being badly recongnized as attribute value in XML
Fix #3403
2020-11-19 16:09:59 +01:00
Don HO
7874f8dab3
Add new API NPPM_GETSETTINGSONCLOUDPATH for plugins
#define NPPM_GETSETTINGSONCLOUDPATH (NPPMSG + 98)
	// INT NPPM_GETSETTINGSCLOUDPATH(size_t strLen, TCHAR *settingsOnCloudPath)
	// Get settings on cloud path. It's useful if plugins want to store its settings on Cloud, if this path is set.
	// Returns the number of TCHAR copied/to copy. If the return value is 0, then this path is not set, or the "strLen" is not enough to copy the path.
	// Users should call it with settingsCloudPath be NULL to get the required number of TCHAR (not including the terminating nul character),
	// allocate settingsCloudPath buffer with the return value + 1, then call it again to get the path.

Close #9168
2020-11-19 04:29:50 +01:00
Don HO
1d75c06305
Update localization files 2020-11-17 03:53:49 +01:00
Udo Hoffmann
d155f0326a
Add context menu with "Copy link" ability
Close #2435, close #9154
2020-11-17 03:47:09 +01:00
Udo Hoffmann
b7d148f493
Fix Find in found results dialog launch failure after macro execution
The solution is to find a new better parent for Finder dockable panel.

Fix #8199, close #9158
2020-11-17 00:02:56 +01:00
Anil Seervi
94673532cf
Use right terminology
Close #9160
2020-11-16 21:41:52 +01:00
Don HO
f304a239ca
Publish MinGW Build Instructions
Close #7743, close #9159
2020-11-16 20:07:45 +01:00
Scott Sumner
bfa44f5db3
Fix bug where -p0 cmd line arg causes wrong positioning
Fixes small bug introduced by #9143.

Close #9150
2020-11-14 17:33:03 +01:00
Don HO
9f8932b375
Add "Copy selected text" and rename "Copy" cmd in Search Results Pane
"Copy selected text" is named "Copy" and old "Copy" command is renamed to "Copy Selected Line(s)".

Close #9151
2020-11-14 15:24:06 +01:00
Don HO
daa31c1a9a
Fix "Go to..." dialog wrong Offset value in empty files
Fix #9145
2020-11-14 11:34:19 +01:00
Scott Sumner
26428bd2ba
Prevent corruption possibility when using -p command line parameter
Fix #9142, close #9143
2020-11-13 04:00:05 +01:00
Don HO
b54b8ee54f
Improve indent guidelines on non-brace control block languages
Fix #9137
2020-11-12 15:14:51 +01:00
Scott Sumner
f027e9271d Disallow Goto dlg offset option from moving to position inside multibyte char or between CR and LF
Fix #9101, fix #9125, close #9129
2020-11-12 02:37:01 +01:00
Scott Sumner
f75f8b8d40
Prevent names of untitled tabs from duplication
Fix #9119, close #9127
2020-11-12 00:02:23 +01:00
Don HO
0405e230eb
Remove redundant unitTestLauncher.ps1 command 2020-11-11 03:52:39 +01:00
Don HO
c58f3f7cb3
Fix an exception with -export=functionList while absence of config.xml 2020-11-11 03:33:39 +01:00
Don HO
bbeb66aa56
Fix crash issue while passing argument "-export=functionList"
This regression is due to commit 7399257f56f6830f2952ea7a3a2a8733fb84df0e
(7399257f56)
2020-11-11 02:23:24 +01:00
Don HO
5813e4d8e6
Clean up 2020-11-10 14:08:33 +01:00
Don HO
070630a243
Add tooltips for Folderas Workspace 3 commands
Fix #8325
2020-11-10 05:06:25 +01:00
Don HO
79d7521f07
Add -L argument for hongKongCantonese.xml
875a397c14 (commitcomment-43992197)
2020-11-09 14:02:34 +01:00
Don HO
7399257f56 Fix docked panels appear with "-nosession" cmd line parameters
Fix #8005
2020-11-09 04:19:37 +01:00
Scott Sumner
1961f708c1 Add ellipsis to Rename and Print on tab bar context menu
Close #9124
2020-11-08 03:57:37 +01:00
Don HO
d17c303665 Fix "SCI_NEWLINE" inside a macro not working issue
Fix #5571
2020-11-08 03:34:45 +01:00
Scott Sumner
d80816f930 Fix bug where search-results won't open 'new 1' file
Fix #8461, fix #9098, close #9115
2020-11-07 02:57:10 +01:00
Vince
f91246e312 Fix regression of auto-Indent
The regression is introduced by 073f0bc8c6

Fix #9113, close #9114
2020-11-06 20:42:34 +01:00
Juan Cuartas
776fa414ba
Update spanish.xml
Close #9099
2020-11-05 23:13:41 +01:00
Don HO
3657df7ebd
Fix a wrong translation 2020-11-05 21:49:13 +01:00
Don HO
8640fd6693
Move 'Normal Text' to top in Languages Menu
Fix #7746, fix #8277
2020-11-05 20:17:26 +01:00
Don HO
8207084111
Fix several bugs of PHP parser rule for function list
1. Fix the function name gets truncated issue if function starts with reserved words (ie. if, while, for, switch...).
2. Fix abstact function and classes not recognized by parser rule.
3. Fix function detection fails on string containing asterisk issue.

Contributed by @MAPJe71 & @TutoInformatik :
https://community.notepad-plus-plus.org/topic/15124/php-function-list-and-abstract-functions/18?_=1604532045222

Fix #3321, fix #5045, fix #4627, fix #4606, fix #8855, fix #4208, fix #981, fix #2522, fix #1103, fix  #4712, fix #3560, fix #5150, fix #4606, close #9102
2020-11-05 14:53:41 +01:00
Scott Sumner
f5dcfc196a
Make UI text consistent regarding search results
Fix #9053, close #9061
2020-11-04 01:56:10 +01:00
Delhove Erwan
2e39525782
Fix tab close button remain pushed issue
Fix #7750, close #9062
2020-11-04 01:07:02 +01:00
Don HO
6284680e30
Update Spanish localization to v7.9.1 2020-11-03 00:39:36 +01:00
Don HO
cfe3f3b64c
Make "Clipboard History" and "Character Panel" togglable
Make "Clipboard History" and "Character Panel" have the same behaviour of the other dockable panels.

Fix #9094, fix #9078, close #9096, close #9079
2020-11-02 23:38:28 +01:00
Udo Hoffmann
2aac88e3b1
Improve URL parser: fix apostrophe in an URL issue
Improve also test tool.

Fix #9031, close #9090
2020-11-02 16:00:11 +01:00
Udo Hoffmann
47419910f6
Fix crash while exit command issued by plugin
Fix #9082, close #9084
2020-11-02 15:48:26 +01:00
Scott Sumner
c28116a04f
Add color samples on menu items for styling features
Fix #8983, close #9089
2020-11-02 15:15:37 +01:00
Don HO
c189cc7571 Notepad++ v7.9.1 release
pour Samuel Paty
2020-11-02 01:40:33 +01:00
Scott Sumner
5965b3d352 Project structure improvement: Move TreeView files in the right place
Close #9083
2020-10-31 19:15:11 +01:00
Scott Sumner
91e3594836 Remove some unused files from project
Close #9075
2020-10-29 19:13:22 +01:00
Scott Sumner
7bcb34b848 Add some missing items to Visual Studio project
Fix #9063, close #9073
2020-10-29 14:51:13 +01:00
ekopalypse
2ff50ec9bc
Update themes to v7.9.1
Fix #9071, close #9070
2020-10-29 13:47:36 +01:00
Don HO
13d2fdadb0
Add "Bookmark margin" into GlobalStyles for all themes 2020-10-29 05:40:37 +01:00
Artem Polivanchuk
3c68f0ae26
Update ukrainian.xml
Close #8970
2020-10-28 15:05:43 +01:00
scootergrisen
5d6e5c6e9c
Update Danish translation to 7.9.1 2020-10-28 15:01:42 +01:00
Don HO
21e66936e5
Update Uzbek localization 2020-10-28 14:26:06 +01:00
Don HO
3c9d58176b
Fix the regression of mark margin colour for dark theme 2020-10-27 16:01:48 +01:00
Vince
0689a94453
Fix user set SCI_SETYCARETPOLICY erase by find result
Use SCI_SETVISIBLEPOLICY and SCI_ENSUREVISIBLEENFORCEPOLICY to replace SCI_SETYCARETPOLICY.
X and Y caret policy should be user-configurable for document navigation and the VISIBLE / ENSUREVISIBLE could be used for application / auto navigation (like re-centering a search result).

Fix #8961, close #8962
2020-10-26 19:50:47 +01:00
Delhove Erwan
a2233b105d
Fix incorrect icon for monitoring status in Document list panel and in Document switcher
Fix #8783, close #9046
2020-10-26 15:28:38 +01:00
Udo Hoffmann
9cd6e6513f
Test tool to verify URL parser
Close #9059
2020-10-26 14:38:47 +01:00
Scott Sumner
210ae7e1d3
Fix Find-result rclick-Copy incomplete data bug
Fix #8801, close #8808
2020-10-26 00:11:17 +01:00
Udo Hoffmann
08190bbe96
Fix RegEx look behind operations and \A and and \b and \z
Fix #713, fix #1870, fix #2216, fix #2360, fix #9004, fix #4855, close #8926, close #9008
2020-10-25 21:23:19 +01:00
Patriccollu
d62221fd7f
Update Corsican translation for Notepad++ 7.9.1
Close #8864
2020-10-24 22:36:08 +02:00
Don HO
9a6ce288eb
Merge branch 'kubalav-patch-5' 2020-10-24 22:19:12 +02:00
Don HO
63e10f1169
Merge branch 'patch-5' of https://github.com/kubalav/notepad-plus-plus into kubalav-patch-5 2020-10-24 22:18:59 +02:00
conky77
027ccfd8b1
Update venetian.xml
Close #8933
2020-10-24 22:16:53 +02:00
conky77
4b738ba91c
Update italian.xml
Close #8935
2020-10-24 22:08:09 +02:00
~GOLEM~
b01e3071f7
Update russian.xml to v7.9.1
- added missing lines
- fixed description of options
- fixed line length

Close #8950
2020-10-24 21:57:03 +02:00
xomx
84b81f3982
Update czech.xml to v7.9.1
Close #8967
2020-10-24 21:51:07 +02:00
Tmp341
620ee0f298
Update Turkish Localization
According to 55d6717, 320aca7, 61bf9bd, 79cf60f, 285172e, 9ab554a and bbde64c commits.

Close #9001
2020-10-24 21:46:50 +02:00
ArkadiuszMichalski
b1880cde63
Update polish.xml to 7.9.1
Update polish.xml to 7.9.1 and some corrects.

Close #9057
2020-10-24 21:40:50 +02:00
schnurlos
bd3e8214b9
Update german.xml to v7.9.1
Close #9022
2020-10-24 21:32:34 +02:00
Don HO
e97ee70c02
Remove old markdown UDL 2020-10-24 21:12:19 +02:00
Edditoria
c2159afa9d
Update markdown UDL XML file
The XML file is updated from v2.x to v3.2.0
in the commit: Edditoria/markdown-plus-plus@c137918

Also rename it shorter and starting with "m".
So users can sort their UDL file-list in tidy.

Close #9058
2020-10-24 19:47:50 +02:00
Vladimír Kubala
9bf08ce30a
Update Slovak translation 2020-10-24 08:24:44 +02:00
rddim
b93f49a677
Update Bulgarian localization
Close #8946
2020-10-24 03:21:13 +02:00
yasmise
a9783b741f
Update japanese.xml to v7.9.1
Close #8978

Follow up for these commits:
* Fix a shortcut causing a bug in Column editor dialog (55d671719c8f00f02ed32b15575bc2e6587a5e30)
* Add "Open Containing Folder as Workspace" command (320aca73be33a92e464046d8ba239a886b234872)
* Add case insensitive lines sorting (61bf9bd3c496c8b891597ccaaf9ef9d73b3e3d3c)
* Add alternative icon set for tab bar (79cf60f498bb59073b8b62e6516b8063fe0d0b4c)
* Make alternate icons of Tab bar changing dynamically (285172e36b334c1bbbbf2f6644bb597e997c6c5a)
* Add ability to copy marked text to the clipboard (9ab554a1291f83668eb728cb499f2a009b98f81a)
* Add preference for save type of normal text files (bbde64c30845761377d063afa7750ec7ce0659a6)
* Add copy styled text to clipboard commands to menu (013305f306039998c0ba8a85c03238843879b6cf)
* Remove an obsolete command and its translation (9eecb1da13c691e5d861e946b5823d8e57013f90)
* Add ability to remove any duplicate lines... (77d460696703731d2fc0036884f87de760a777ab)
2020-10-24 03:18:56 +02:00
Vince
073f0bc8c6
Enable auto-Indent for PowerShell
Fix #9049, close #9051
2020-10-23 20:44:08 +02:00
Don HO
dcc7ac5512
Update 3 localization files 2020-10-23 20:30:35 +02:00
Scott Sumner
77d4606967
Add ability to remove any duplicate lines in a document, keeping the first occurrence
Fix #8965, close #9033
2020-10-23 16:04:34 +02:00
Don HO
6db7b94dfb
Fix a regression: not exit after saving a modified file
Fix regression due to 469fa62c0ebc438c8003c735e6a801c6d098df7c
469fa62c0e

Fix #9045
2020-10-22 20:22:56 +02:00
Don HO
62b8d0fc8b
Fix build warning error 2020-10-22 16:02:35 +02:00
Don HO
71ae2cfce6
Fix dialogs remain issue after minimizing to systemtray
Fix #9044
2020-10-22 04:35:07 +02:00
Udo Hoffmann
41d619d9b7
Fix Floating dockable panels don't minimize to system tray issue
Fixes #8928, close #8953
2020-10-22 00:45:50 +02:00
Scott Sumner
4830b770d5
Increase untruncated Find-result window line length to 2048
There has been a complaint about long lines not being "well-represented" in the Find result window. See https://notepad-plus-plus.org/community/topic/18028/how-do-i-see-the-full-line-in-find-results-window.

Fix #7723, close #9030
2020-10-21 18:42:33 +02:00
Don HO
c0c070abaf
Split functionList.xml into multifile in "functionList" Folder
New "functionList" will be added beside of notepad++.exe or "%APPDATA%\Notepad++\", according the installation mode. If the portable package is used, after removing "doLocalConf.xml", the "functionList" folder should be copied manually from Notepad++ installed directory to "%APPDATA%\Notepad++\" to make function list work again.

All splited files are localized in this folder with the explicit language name.

"overrideMap.xml" is optional for overriding the default functionList parse rule files, and for adding UDL parse rule files.

Close #4896
2020-10-21 18:05:08 +02:00
Vladimír Kubala
c2ebb1459e
Fix missing quotation mark 2020-10-21 12:48:29 +02:00
Udo Hoffmann
0a20939334
Fix URLs losing the underlines occasionally issue
Improve URL update on resize

The reason for the effect is, that the addHotSpot calls for resizing are in the WM_SIZE of the application. This works, as long as the size of the whole application changes, but not, when the application size remains constant and only the size of the document window inside the application changes.

The solution for this is, to remove the addHotSpot calls from the WM_SIZE of the application and add them to the DocTabView::reSizeTo function instead. Since addHotSpot cannot be called directly from this function, I took the detour over NPPM_INTERNAL_UPDATECLICKABLELINKS.

Fix #9032, close #9034
2020-10-21 03:06:32 +02:00
Don HO
29daee8007
Update BUILD.md 2020-10-21 01:12:15 +02:00
Scott Sumner
785c68eea6
Add clean note to scintilla build instructions
Fix #9028, close #9028
2020-10-21 01:05:39 +02:00
Don HO
8c219896c5
Add Hongkonger localization into installer 2020-10-21 00:28:32 +02:00
Edditoria
875a397c14
Add Hong Kong Cantonese localization
You may see that there are some English words in it, but don't worry.
This is Hong Kong culture. Please see the README in dev repo for details:
https://github.com/Edditoria/notepad-plus-plus-localization-hong-kong

Close #9037
2020-10-20 21:47:48 +02:00
Scott Sumner
fa0ded9fed
Widen length/lines part of status bar
Fix #4157, close #8998
2020-10-18 13:30:51 +02:00
Udo Hoffmann
ecab99b600
Fix double clicking on find result line not working
"wstring::length()" returns less needed byte number because this methode consider 2 bytes character as 1 character, whereas "strlen(char*)" returns the total byte number in the char*.
Since SCI_ADDTEXT uses UTF8 char* as argument, it'll be more accurate to count the length (total byte number) with char* directly.

Fix #9009, fix #8525, close #9014
2020-10-18 02:20:08 +02:00
Vladimír Kubala
edea323333
Update Slovak translation 2020-10-17 10:39:36 +02:00
Don HO
814ecd20df
Add some explanations for showing the messages in english.xml
Add some explanations for some non-obvious items.
2020-10-17 02:16:54 +02:00
Don HO
9eecb1da13
Remove an obsolete command and its translation 2020-10-16 23:42:32 +02:00
Scott Sumner
013305f306
Add copy styled text to clipboard commands to menu
Close #8943, close #8964
2020-10-15 02:23:37 +02:00
Udo Hoffmann
e32462188d
URL parser improvements
- Removed special handling for file scheme.
- Improved handling of curly brackets.

Close #8975, close #8994
2020-10-14 23:19:21 +02:00
Don HO
469fa62c0e
Improve FileManager::saveBuffer() 2020-10-14 03:01:49 +02:00
Vince
ae2479efd3
Add Delete key to remove selected root from Folder as Workspace
Fix #8960, close #8981
2020-10-12 23:17:52 +02:00
ArkadiuszMichalski
2770539dea
Restore complex variables in strings for PHP
Bring back complex variables in strings for PHP, was removed by mistake.

Fix #5065, close #8995
2020-10-12 15:53:00 +02:00
ArkadiuszMichalski
9151d0a7dc
Add "KEY" for ini and properties files in stylers.model.xml
Lexer https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/lexers/LexProps.cxx support style for KEY so expose it in `stylers.model.xml`.

Fix #8230, close #8968
2020-10-12 04:16:28 +02:00
Udo Hoffmann
e2a650ec10
Fix blue link-type number input boxes cut off issue
Fix blue link-type number input boxes in Preferences  cut off issue by setting sub system version numbers.

Fix #8985, fix #8144, close #8985
2020-10-12 03:49:51 +02:00
Vladimír Kubala
9d5b4182a3
Update Slovak translation 2020-10-11 10:30:20 +02:00
Pavel Nedev
a103151774
Fix NUL file-corruption bug after Windows shutdown brutally
Bypass Windows caching when flushing files after write.

According Microsoft documentation this fixes the issues with saved file corruption (all NULs)
on sudden power loss or restart.

Microsoft documentation for reference:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=vs-2019
https://docs.microsoft.com/en-us/cpp/c-runtime-library/stream-i-o?view=vs-2019

Fix #6133, close #8952
2020-10-06 15:55:41 +02:00
Scott Sumner
8426c9ccd9
Enhance Sel info provided in main status bar
Fix #8524, close #8876
2020-10-06 04:00:25 +02:00
Vladimír Kubala
dedaac8a21
Update Slovak translation 2020-10-05 10:01:09 +02:00
Scott Sumner
bbde64c308
Add preference for save type of normal text files
Fix #8866, close #8948
2020-10-05 00:26:48 +02:00
eljefe7000
c306555db4
Fix file path truncated issue in save confirmation dialog
Fix #8812, close #8945
2020-10-04 23:00:10 +02:00
Udo Hoffmann
401bfcb0cd
Add new URL parser to replace inaccurate regex detection
Fix inaccurate URL detection and enhance URL detection for non-English character.

Fix #3912, fix #3353, fix #4643, fix #5029, fix #6155, fix #7791, fix #8634, close #8921
2020-10-04 18:42:10 +02:00
Udo Hoffmann
5aab1ddbf1
Make tray icon work again in administrator mode
Fix #8528, close #8944
2020-10-04 16:51:23 +02:00
Scott Sumner
5e632dfbef
Fix find-all-open-docs not finding all matches in ANSI files
Fix #8901, close #8914
2020-10-03 21:16:43 +02:00
Vladimír Kubala
1c9c4afe5f
Update Slovak translation 2020-10-03 09:45:51 +02:00
Scott Sumner
a08784fa43
Fix bug with smart highlight of data and end-of-file
Fix #8908, close #8911
2020-10-03 04:07:32 +02:00
Scott Sumner
9ab554a129
Add ability to copy marked text to the clipboard
Fix #6095, close #8867
2020-10-02 21:57:57 +02:00
Scott Sumner
5da0817ecb
Allow setting of background color for bookmark margin
Fix #8833, close #8874
2020-10-02 21:49:08 +02:00
jofon
139e4d4925
Fix smart-highlighting not applying to cloned view
Fixed smart-highlighting not applying to cloned view while "Highlight another view" is enabled.

Fix #7910, close #8905
2020-10-02 15:38:11 +02:00
Don HO
c94f84000b
Remove beep while ESC & TAB keystroke in Function list 2020-10-02 02:08:57 +02:00
Udo Hoffmann
fc470152e1
Remove TreeView Beep when pressing return key
Fix #8938, close #8940
2020-10-02 00:49:32 +02:00
Scott Sumner
8c1e15377f
Add missing SCI_VCHOMExxx to Shortcut Mapper
Fix #8932, close #8936
2020-10-01 22:10:41 +02:00
Vince
80d98f05b2
Add tab stops in Function List
Add tab stops in Function List to switch between search field and list.

Fix 8665, close #8924
2020-10-01 04:10:35 +02:00
Don HO
8516c7b48e
Update Spanish localization file 2020-09-30 16:05:02 +02:00
Vladimír Kubala
522b0b6b4d
Update Slovak translation 2020-09-30 09:31:07 +02:00
Don HO
bb175082d2
Fix the build error 2020-09-30 04:47:32 +02:00
Don HO
285172e36b
Make alternate icons of Tab bar changing dynamically 2020-09-30 03:33:37 +02:00
Scott Sumner
79cf60f498
Add alternative icon set for tab bar
Close #8068, close #8871
2020-09-30 03:04:06 +02:00
Vladimír Kubala
aabba6845e
Update Slovak translation 2020-09-29 11:59:17 +02:00
Vladimír Kubala
79a4183eaf
Update Slovak translation 2020-09-29 11:50:57 +02:00
Vince
aaa93025f0
Add ESC key in Function List to switch to edit window
Fix #8886, close #8890
2020-09-29 03:01:22 +02:00
Youssef Victor
de202d9a14
Add C# 9.0 keywords for auto-completion
Close #8872
2020-09-29 02:32:51 +02:00
Roshni-P
861f863ef7
Fix closing file in 2nd view not removed from Doc Switcher
Fix #8800, close #8862
2020-09-29 02:02:40 +02:00
Simon Buhrow
98c4990175
Add new VHDL-2019 keywords into langs.model.xml
Fix #8511, close #8863
2020-09-29 00:14:47 +02:00
Scott Sumner
61bf9bd3c4
Add case insensitive lines sorting
Close #4479, close #8869
2020-09-28 23:29:33 +02:00
Udo Hoffmann
1a37b64fe6
Avoid unnecessary notifications
This is an enhancement of PR #8475 which fixed (and still fixes) #8466.

It takes into account, that `WM_ACTIVATE` is not called only, when the window is being activated, but also, when the window is being **de**activated. In the latter case it is not necessary to do the activation actions.

This was pointed out to me by @Predelnik, who had a problem with the additional `SCN_UPDATEUI/SC_UPDATE_H_SCROLL` notification occurring when the window is being deactivated, see https://github.com/Predelnik/DSpellCheck/issues/221#issuecomment-696652074 for details.
2020-09-28 23:16:28 +02:00
Don HO
2f90a0de18
Update Slovenian localization file 2020-09-28 18:51:41 +02:00
Jack Tolfree
174ae29f18
Add ESC keystroke shortcut to close Search Results Window
Closes the focused Search Results Window by hitting ESC.

Close #2946, close #8898
2020-09-28 18:43:04 +02:00
Don HO
320aca73be
Add "Open Containing Folder as Workspace" command
and add this command in context menu of tabs.

Close #3028, close #8880
2020-09-28 17:57:57 +02:00
ArkadiuszMichalski
b0b119411b
Add ^data- to langs.model.xml to support data-prefixed attributes in HTML
Tip from https://sourceforge.net/p/scintilla/feature-requests/1278/.

Fix #6200, close #8895
2020-09-28 17:53:18 +02:00
Don HO
30ab547198 Notepad++ v7.9 release
Notepad++ Stand with Hong Kong edition
2020-09-28 00:48:14 +02:00
Don HO
a66e8a2646 Fix release binary name format 2020-09-24 01:36:45 +02:00
Don HO
85914b3c66
Change the package name for the future releases
Fix #5415
2020-09-23 19:32:12 +02:00
Don HO
e4d45436b4
Change the comment symbol of properties file to the standard one
Fix #8464
2020-09-23 15:58:53 +02:00
Don HO
95dec01e27
Fix 2 typos in all stylers files
Fix #3578
2020-09-20 01:54:44 +02:00
Don HO
a2264e5b36
Restore Folder as Workspace's latest selected item of last session on start up
Fix #8353
2020-09-19 00:36:03 +02:00
Don HO
f3fce2de4a
Fix Escape key on FunctionList's text field causing bell sound
https://community.notepad-plus-plus.org/topic/19995/notepad-7-9-rc?_=1600343113189
2020-09-17 13:34:18 +02:00
Scott Sumner
93ae69e92d Scroll visible area horizontally so a FindNext match is fully viewable
Fix #8804, close #8818
2020-09-14 19:33:04 +02:00
Don HO
d82aba7b0c Improve the computing of number of digit in line number margin display 2020-09-14 14:33:51 +02:00
Don HO
8e73f5d116 Simplify the logic and improve the performance 2020-09-14 14:02:07 +02:00
Don HO
fe18e41d5d Fix inaccurate line margin update with word wrap enabled
And improve the performance of line margin update.
2020-09-14 02:31:44 +02:00
Don HO
00841d5a22 Fix build warning issue by using v140_xp 2020-09-12 16:32:53 +02:00
jofon
c5e594e3ea Fix Monitoring not scrolling to the last line with word wrap enabled
Fix #8850, close #8851
2020-09-12 15:52:10 +02:00
Don HO
c607e427fc Fix auto scroll to last line after update not working
This fix comes from the suggestion of this thread:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8782#issuecomment-690752536

Fix #8477, fix #8214
2020-09-11 16:05:06 +02:00
Don HO
009563f52d Update 2 localization files 2020-09-10 19:50:37 +02:00
schnurlos
ee3555b968 Update german.xml to v7.9
Following last commit 55d671719c

Close #8835
2020-09-10 16:02:57 +02:00
xomx
2f3594da2b Update czech.xml to v7.8.9
Close #8836
2020-09-10 16:00:25 +02:00
Bruce Yoon
f853d306e2 Update korean 7.9
Close #8837
2020-09-10 15:54:47 +02:00
Don HO
6d939d3e79 Add some languages for -L flag of command line
irish.xml, aranese.xml, extremaduran.xml, kabyle.xml, ligurian.xml and samogitian.xml are added for -L flag.

Fix #8347
2020-09-09 23:14:59 +02:00
conky77
97f5cb364f Update Venetian.xml to 7.8.10
Close #8817
2020-09-09 22:32:52 +02:00
Vladimír Kubala
8bfe6c2d58 Update slovak.xml
Close #8646
2020-09-09 18:48:19 +02:00
popcorner
736bf89f57 Update chineseSimplified.xml
Close #8766
2020-09-09 18:40:32 +02:00
Don HO
cc75e6b959
Fix a typo 2020-09-09 15:41:57 +02:00
~GOLEM~
87467d41f1 Update russian.xml to v7.9.0
Close #8656
2020-09-09 15:33:13 +02:00
Luca
0432e1d155 Update italian.xml
Correct some typos and position of entry 6237

Close #8543
2020-09-09 15:30:56 +02:00
Don HO
423bfcf289 Fix miss-placed Alt-F shortcut for Polish & German 2020-09-09 15:24:09 +02:00
Don HO
55d671719c Fix a shortcut causing a bug in Column editor dialog
The shortcut "&Format" in Column editor dialog is unecessary.
Furthermore, some characters 'o' are inserted in colomn mode when Alt-F is triggered (and Column editor dialog is closed).
2020-09-09 14:43:57 +02:00
ArkadiuszMichalski
d42e3c7dda Update polish.xml to 7.8.9
Update polish.xml to 7.8.9 + one small correct.

Close #8552
2020-09-09 04:48:42 +02:00
yasmise
058f7ca7de Update japanese.xml to v7.8.9
Close #8649

Follow-ups for these changes:
* Add keyboard navigation ability to Column Editor (7d289139e8d370da422bd4a74f8c878e537db172)
* Add 'Searching' subpage to Preferences (84ea510b67dec193eee605a1cca723151ef80448)
2020-09-09 04:44:31 +02:00
Patriccollu
02658f1ab4 Update Corsican translation for Notepad++ 7.8.8
Close #8537
2020-09-08 23:27:19 +02:00
Tmp341
8a4f646d25 Update Turkish localization
* According to 71b98a7, 95c6d1e, 19bdbd0 and 07b2a11 commits.

Close #8590
2020-09-08 23:16:49 +02:00
rddim
56c218eb40 Update Bulgarian localization
Close #8643
2020-09-08 23:14:02 +02:00
schnurlos
281352b75d Update german.xml to 7.8.9
Close #8645
2020-09-08 23:06:35 +02:00
Udo Hoffmann
a19dc77525 Fix hovered indicators issue in Scintilla
Close #8769
2020-09-08 16:20:45 +02:00
Christian Grasser
648e6eb891 Integrate unit-tests for function list into appveyor CI
- run unitTestLauncher.ps1 on win32 debug builds (release is not possible due to missing scintilla crypto signing)
- SciLexer.dll needs to be taken from an official build, because boost is required for functionlist to be functional
- slightly optimized test script, added timing traces

It's for #8762

Close #8816
2020-09-07 01:43:06 +02:00
Don HO
399452167f Revert "Enhance info provided in Sel portion of main status bar"
This reverts commit 4ca25503bc855b8a1c9232e990bf7daa668c05fa, due to the performance issue.
2020-09-06 03:55:10 +02:00
Scott Sumner
8f3d7c1026 Disable controls on unshown tabs of Find dialog
Fix #8696, close #8760
2020-09-05 23:16:32 +02:00
Scott Sumner
5bcbd9e5ab Add Escape keypress in functionlist searchbox clears its text
Fix #8667, close #8789
2020-09-05 18:20:25 +02:00
Scott Sumner
4ca25503bc Enhance info provided in Sel portion of main status bar
No selection:
Example: Pos : 1,234
Meaning: Single caret is at position 1233 in document (user position 1234)

Single stream selection (no change to existing behavior):
Example: Sel : 27 | 2
Meaning: 27 characters selected on 2 lines

Multiple stream selections (this PR behavior):
Example: Sel 3 : 72 | 6
Meaning: 3 selections of 72 characters on 6 lines

Rectangular selection with no virtual space in column block (this PR behavior):
Example: Sel : 2x4 = 8
Meaning: selection of 2 rows(lines) by 4 columns; 8 characters in that selection

Rectangular selection with some virtual space in column block (this PR behavior):
Example: Sel : 2x4 🡢 6
Meaning: selection of 2 rows(lines) by 4 columns; 6 real characters in that selection

Close #8524, close #8780
2020-09-05 04:04:10 +02:00
Scott Sumner
3fd3e85a54 Enable and disable controls correctly for reg exp search mode in find-in-finder
Fix #8768, close #8776
2020-09-04 19:19:23 +02:00
Roshni-P
e44ed31434
Add the ability to open the target file of a Shortcut (.lnk)
Fix #8483, close #8810
2020-09-04 14:29:39 +02:00
Udo Hoffmann
d9959c1a7c
Enhance side panels behaviour: close a single panel instead of the entire stack
Close #8471, close #8753
2020-09-03 19:36:00 +02:00
Scott Sumner
00d75495c9
Disable ClearAll in FindAllInTheseFoundResults context menu
Fix #8691, close #8742
2020-09-03 18:41:04 +02:00
eljefe7000
7c7dcd8fcc
Fix an issue in Window dialog
The bug: after closing last file opened in 2nd view in Window sialog, the last file opened in 2nd view in Notepad++ is closed, but remain in Window dialog.
This PR is a workaround solution to close Window dialog if the last document is closed.

Fix #8697, close #8721
2020-09-02 21:02:15 +02:00
Rodrigo Cesar
230c7ef235
Add "nameof" reserved word of C# in auto-completion
Close #8633
2020-09-02 01:36:48 +02:00
Don HO
509c46b8f7 Make expected result corrected for C++ parser unit test 2020-09-01 02:36:16 +02:00
Don HO
56e4290501 Add the ability to have more than 1 unit-test per language
For function list, each language can have 2 or mor unit-test files.
The 2nd added unit-test file should be added in a sub-directory, the 3rd added unit-test file should be added into anather sub-directory, and so on.
2020-08-31 04:21:32 +02:00
Baptiste Thémine
e72d4855de Update functionList.xml C++ parser
Improvements :
- add templated classes (and template-nested templated classes)
- add namespaced classes
- add classes which inherits another class without the accessibility keyword (private is optional for example)
- add classes with virtual inheritance
- add functions defined with the following keywords
  - (left) consteval|constexpr|friend|inline|static|virtual
  - (right) const|final|noexcept|override
- add functions defined with templated types (and template-nested templated types)
- add operator definitions

Close #5175
2020-08-30 18:13:23 +02:00
Don HO
f3370ad46e Make Notepad++ invisible on startup while printing and unit-testing
The both flags -export=functionList & -quickPrint don't need Notepad++ GUI, so Notepad++ will start up invisiblely while one of these 2 flags is given. It doesn't prevent Notepad++ from being visible in the case of -export=functionList but this PR make unit-tests more bearable.
2020-08-29 20:20:54 +02:00
Don HO
38037035e4 Fix some Perl functions not being recognized in function list issue
Fix Perl functions without parentheses / with attributes are not recognized in function list issue.

Fix #4265, close #4266
2020-08-29 02:06:06 +02:00
Don HO
f9fa72b9db Fix unit tests problem for Python 2020-08-28 23:47:29 +02:00
Don HO
71b532710f Fix Python the variable "def" not working correctly in Function List
Fix #3645, close #3672
2020-08-28 14:36:23 +02:00
Don HO
fad747300a Update python unit-tests files 2020-08-28 00:18:19 +02:00
Nippur de Lagash
303874fee0 Fix Function list Python parser bad function name detection
Fix #3706, close #3790
2020-08-27 23:54:54 +02:00
Don HO
95a924f4f3 Make valid perl unit tests for function list 2020-08-27 21:17:08 +02:00
Don HO
0488e92e9f Remove notepad++ statement to prohibit rewrapping practice from License 2020-08-27 19:27:09 +02:00
Don HO
34357a46cf Unit-tests for function-list
Close #8757, close #8762
2020-08-26 14:01:05 +02:00
Don HO
a1a8b1354f Add a new easter egg. 2020-08-26 11:37:45 +02:00
Simon Buhrow
ffd6bb0889 Add VHDL to functionList.xml
Add VHDL to functionList.xml supporting ENTITY, BLOCK, PROCESS, COMPONENT, ARCHITECTURE.

Close #8480, close #8509
2020-08-25 12:28:46 +02:00
Udo Hoffmann
84430809df Add back hovered blue underlined URLs
Fix #8654, close #8713
2020-08-23 12:28:14 +02:00
Don HO
30d4516d23 Fix an empty hole in Preference dialog if there's no GUP.exe
Fix #8749
2020-08-21 01:34:47 +02:00
Udo Hoffmann
0fe971ca88 Add keyboard shortcuts for switching to panels
Close #8719, close #8720
2020-08-19 02:22:43 +02:00
Scott Sumner
b072479bb8 Fix column key sort with col block starting in col1 bug
Fix #8716, close #8717
2020-08-18 18:31:27 +02:00
Scott Sumner
209ccb97ec Add confirmation preference for Replace All in All Opened Documents operation
Close #8527, close #8708
2020-08-16 16:15:21 +02:00
Don HO
47bb08ee6c Add Irish localization 2020-08-16 15:23:33 +02:00
Udo Hoffmann
ddd2e5fd23 Improve some ambiguous commands naming in Shortcut Mapper
Separate command shortcut names and menu names.

Fix #8689, close #8690
2020-08-15 18:44:12 +02:00
Scott Sumner
03eebf8496 Add RTL capability to localized msgbox function
Fix #8699, close #8701
2020-08-14 11:17:39 +02:00
Scott Sumner
394f762d6b Add SCI_SETCARETLINEBACKALPHA to the list of macroable commands in isMacroable function
Fix #8614, fix #5619, close #8684
2020-08-13 19:47:27 +02:00
Scott Sumner
3a2edb99c4 Add word-wrap option to find-results context menu
Close #8624, close #8681
2020-08-13 17:17:22 +02:00
Scott Sumner
7c28a120d9 Improve single-line indentation and dedentation functionality
Fix #5721, close #8623
2020-08-13 13:08:43 +02:00
Scott Sumner
e0f0dc14da Update post-search tracking column for future caret offline movement
Fix #8670, close #8676
2020-08-13 00:40:06 +02:00
Scott Sumner
33f042932f Make (Find) dlgAlwaysVisible a true Preference setting
Close #7908, close #8651
2020-08-12 23:50:47 +02:00
Don HO
1581833f98
Fix a typo
Fix #8695
2020-08-12 14:20:52 +02:00
Udo Hoffmann
783798e1ab Enable project panels toggle from menu
Close #8533
2020-08-11 00:04:16 +02:00
Udo Hoffmann
a74877f262 Fix false hit result in Find-in-Finder
Fix #8435, close #8437
2020-08-10 15:54:26 +02:00
Udo Hoffmann
f74e4ae159 Fix URLs not underlined immediately after copy/paste
Close #8685
2020-08-10 15:03:47 +02:00
Udo Hoffmann
6e5a2d5be2 Fix URL detecting issue
... while URL is in first line of document.

Fix #8668, close Fixes #8669
2020-08-10 04:15:33 +02:00
Don HO
1eb7d2bef5 Fix "Close all BUT this" regression
Due to commit a82819972a6388668a9ce823738aa24c5572d8f4
2020-08-09 18:18:42 +02:00
Scott Sumner
5271b88fc3 Fix sorting by column key using incorrect key values
Fix #8674, close #8675
2020-08-09 13:44:25 +02:00
Scott Sumner
ca3d514722 Add ability to sort lines randomly
Close #8682, close #8683
2020-08-09 04:19:08 +02:00
Don HO
1efac7dacb
Add a new easter egg
and tune up other easter eggs.
2020-08-07 17:38:16 +02:00
Don HO
b8ee9fcc82
Add SQL keyword (ACTION) 2020-08-07 02:38:49 +02:00
Scott Sumner
f1b059414b
Add an option to prevent right-click from canceling selection
Fix #8563, close  #8564
2020-08-06 20:11:10 +02:00
Scott Sumner
5ba7f99590
Add search scope to Find window status bar output
Close #8632, close #8639
2020-08-06 18:04:05 +02:00
Don HO
a82819972a
Fix "Close All BUT this" looses current document data issue
If a non-existing file is open as the 1st tab (opened then file is deleted outside of Notepad++), and "Close All BUT this" is run, then current document will be closed.

Fix #8617
2020-08-05 04:49:30 +02:00
SciresM
64ba8d7855
Add some c++20 keywords to language model.
This enables syntax highlighting for keywords "concept", "consteval", "constinit", "requires".

Close #8638
2020-08-02 20:08:58 +02:00
Scott Sumner
5adb75dc89
Prevent redundant line-data copy when using Finder's rclick-Copy
Fix #8580, close #8620
2020-08-02 03:50:07 +02:00
Udo Hoffmann
d55350b4b5
Fix mouse cursor flicker while hovering
The reason, why the flicker occurs, is the following: There are two Windows messages sent by Windows to Scintilla, when the mouse is moved: WM_MOUSEMOVE and WM_SETCURSOR.

WM_MOUSEMOVE informs Scintilla, that the mouse has been moved inside its window.
WM_SETCURSOR informs Scintilla, that the mouse cursor has been moved. Anywhere, not necessarily in its window.
Scintilla calls the Windows function SetCursor (, which sets the mouse cursor shape, not the position), while processing both messages. Unfortunately, Scintilla uses different ways to calculate the desired cursor shape. So, whenever the mouse cursor is moved, two SetCursor calls are applied, sometimes with two different cursor shapes.

On WM_MOUSEMOVE, Scintilla calls ButtonMoveWithModifiers, which sets the correct cursor shape.
On WM_SETCURSOR, Scintilla calls SetCursor directly, sometimes with the wrong cursor shape.

This PR shows how to eliminate this effect in the modified Scintilla version used by Notepad++. This may be the fastest way to get results without introducing new effects.

The current original Scintilla version (Version 4.4.4, downloaded 2020-07-30, 5d134721c303ceecbdcb28ec82b28f0cbbdb4a55) has the same effect and can be fixed in the same way, although the WM_SETCURSOR code has been changed a little. Before updating to a new Scintilla version, we should try to get it fixed in the original Scintilla.

Fix #8588, fix #8647, close #8641
2020-08-01 15:41:04 +02:00
Don HO
c119dd41a2
Update French & Taiwanese Madarin translation for 84ea510b67dec193eee605a1cca723151ef80448 2020-07-30 18:24:32 +02:00
Scott Sumner
84ea510b67
Add 'Searching' subpage to Preferences for Find-Replace-Mark settings
Fix #8131, close #8541
2020-07-30 02:35:26 +02:00
Scott Sumner
7d289139e8
Add keyboard navigation ability to Column Editor
Fix #8488, close #8569
2020-07-28 19:31:05 +02:00
Scott Sumner
1182371e07
Allow user to start making a stream selection and then change to column block
Allow user to start making a stream selection and then change to column block by pressing ALT key during mouse or keyboard selection.

Fix #8555, close #8557
2020-07-28 12:03:44 +02:00
Scott Sumner
202f6de4e1
Allow 'Remove Consecutive Duplicate Lines' command to be mapped via Shortcut Mapper
Fix #8546, close #8547
2020-07-21 18:38:41 +02:00
Scott Sumner
d42f13071d
Do not modify doc if sort when doc is already sorted
Fix #8558, close #8559
2020-07-20 17:13:34 +02:00
Udo Hoffmann
b724a04eeb
Fix URL is opened inadvertently when clicking white space outside document
Fix #8581, close #8584
2020-07-20 14:49:06 +02:00
Don HO
efd7b56af9 Make label length fit better on About box 2020-07-17 19:24:39 +02:00
Don HO
3b2d2bb300 Notepad++ v7.8.9 release
Notepad++ Stand with Hong Kong edition
2020-07-16 12:09:10 +02:00
Scott Sumner
acb4e5ae18
Add ability to limit removal of consecutive duplicate lines to selected text
Fix #8459, close #8535
2020-07-08 03:52:28 +02:00
conky77
8f1b4aa6cc
Update italian.xml 7.8.7
Close #8385
2020-07-08 00:04:19 +02:00
Hiro5
e02a0c12b9
Update catalan.xml
Close #8396
2020-07-08 00:01:29 +02:00
schnurlos
745d30030f
Update german.xml to 7.8.7
Following 07b2a11 & c655a60

Close #8458
2020-07-07 23:58:53 +02:00
yasmise
b538db08ae
Update japanese.xml to v7.8.8
* find-all in selected text (71b98a7a281ffbc9d38f4310f9b08a4bd0cab325)
* zero-length-match calltip (95c6d1ea1ec72a83d24e37a53d93d03f2f328864)
* confirmation to Replace-in-all-opened-docs (19bdbd093c0972c8a6a5dd86eb7c75ede031d316)
* Use DirectWrite (07b2a11e0a37648495dae1ce8e53fa6207c14f88)

Close #8465
2020-07-07 23:56:16 +02:00
popcorner
c9c900db5b
Update chineseSimplified.xml
Close #8491
2020-07-07 23:54:06 +02:00
conky77
3961cbc2ed
Update venetian.xml to 7.8.8
Close #8523
2020-07-07 23:27:34 +02:00
Don HO
4b8d83a8f8
Fix the regression of jump line failure via command line (-n)
This regression is due to 9387dcdaef19289af87f24639bf7336526d027f5
Fixed by using the provided solution:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8476#issuecomment-653826008

Fix #8476, fix #8477
2020-07-07 13:00:30 +02:00
Udo Hoffmann
8920dc40be
Fix Flickering cursor after double-clicking a found line
Fix #8487, fix #8522
2020-07-04 14:14:31 +02:00
Udo Hoffmann
d18faf13fc
Fix Found line may not be centered if word wrap is on
Fix #8489, close #8516
2020-07-04 03:04:14 +02:00
Scott Sumner
8b93240c59
Fix condition where Join Lines does one too many lines
Fix #8503, close #8506
2020-07-02 18:10:53 +02:00
Scott Sumner
4bf662d031
Fix condition where Split Lines does one too many lines
Fix #8504, close #8507
2020-07-02 18:05:27 +02:00
Udo Hoffmann
b935bc6bf3
Fix URL is not clickable in certain stuation while wrapped is enabled
Fix #5503, close #8467
2020-07-01 01:04:12 +02:00
Scott Sumner
5a2cabf14e
Fix stream sort of selected text doing one too many lines
Fix #8447, close #8453
2020-06-30 21:33:55 +02:00
Udo Hoffmann
267da64d33
Fix wrong horizontal scroll bar position after restoring Window position
Fix #8466, close #8475
2020-06-30 20:58:15 +02:00
Scott Sumner
53b03cc5c5
Fix Find-result window output tab-width incoherent issue
Hard-set tab-width in Find-result window to 4.

Fix #8406, close #8499
2020-06-30 19:52:32 +02:00
Simon Buhrow
7bdb3706f9
Add "COMMENT LINE BANG" for VHDL
Close #8500
2020-06-30 19:46:22 +02:00
Udo Hoffmann
5e2e167d3e
Fix Save function in Windows dialog
Fix #8455, close #8478
2020-06-30 19:39:33 +02:00
Don HO
930873a957
Update Spanish localization 2020-06-30 13:38:59 +02:00
Udo Hoffmann
3315303050
Fix URL Hovered colour disappears after modifying any Clickable Link Settings regression
Fix #8493, close #8496
2020-06-30 03:13:16 +02:00
Don HO
26d360dd9e Notepad++ 7.8.8 release 2020-06-28 17:17:49 +02:00
~GOLEM~
1314af7d6f
Fix russian.xml for v7.8.7
Little fix
Added future line 6349

Close #8390
2020-06-23 20:40:33 +02:00
rddim
8e73a728b6
Update Bulgarian localization
Close #8411
2020-06-23 20:36:25 +02:00
Don HO
584b3fead4
Add "URL Hovered" style for themes 2020-06-23 12:18:44 +02:00
Don HO
07b2a11e0a
Add a new translation unit 2020-06-23 03:25:02 +02:00
Don HO
c655a605a7
Update French and Taiwanese Mandarin localization files
According 19bdbd093c0972c8a6a5dd86eb7c75ede031d316 and 95c6d1ea1ec72a83d24e37a53d93d03f2f328864
2020-06-23 02:52:18 +02:00
Scott Sumner
4e4e40c338
Allow scope of Remove Empty Lines to be limited by an active selection
Close #8428, close #8429
2020-06-22 23:34:43 +02:00
Scott Sumner
d13795a37a
Fix wrong treatment of backslashes as escape sequences in autocompletion
Change autocomplete to not use regex mode replacement.

Fix #8397, close #8440
2020-06-22 22:37:14 +02:00
Scott Sumner
19bdbd093c
Add confirmation prompt to Replace-in-all-opened-docs command
Fix #5253, fix #8432, close #8438
2020-06-21 21:35:58 +02:00
Don HO
68d66a560c
Fix compiling warning 2020-06-21 05:15:41 +02:00
Don HO
c5a0ed7c1a
Fix accented characters not found in "find in files" issues
Fix accented characters in ANSI files not found in "find in files" and "replace in files" commands issues.
This regression (in v7.7 from v7.6.6) is due to the upgrade of Scintilla from v3.56 to v4.14.

Fix #5825, fix #5830, fix #7668, fix #7773
2020-06-21 02:14:44 +02:00
Udo Hoffmann
f7efc2abc0
Fix the focus not on the opening new file issue
Move focus to edit window when opening a new file.

Fix #8426, close #8442
2020-06-20 16:28:53 +02:00
Udo Hoffmann
6f09695c2d
Fix three small focus issues
Fix #8419, close #8420
2020-06-19 01:16:19 +02:00
Scott Sumner
95c6d1ea1e
Make regex zero-length-match calltip transatable
Close #8393, close #8414
2020-06-17 20:21:54 +02:00
Don HO
abadbc6b21
Remove outdated comment 2020-06-17 03:00:24 +02:00
Udo Hoffmann
f657618887
Fix URL underline always black, invisible in dark themes
Fix #8405, close #8409
2020-06-16 21:02:52 +02:00
Stefan Lederer
fb5c30002f
Add Ctrl+Backspace ability to delete word for comboboxes in Find dialog
Close #8363, close #3809, close #8383
2020-06-16 03:01:37 +02:00
Scott Sumner
71b98a7a28
Add ability to find-all in selected text
Fix #7927, close #8133, close #8213, close #5089, close #8413
2020-06-16 01:39:19 +02:00
Udo Hoffmann
87dc9cc5d2
Fix Load project file by dragging doesn't work
Make workspace (project) & session xml setting files consistent while their file extensions are defined in Preferences dialog:
1. If I specify a session file in the command line (, or if I double-click a session file in the Explorer), not the session file itself is opened, but the session stored in it.
2. If I specify a workspace file in the command line (, or if I double-click a workspace file in the Explorer), not the workspace file itself is opened, but the Project Panel 1 switches to the specified workspace file.
3. If I specify a session file in the `File` menu `Open Ctrl-O`, not the session file itself is opened, but the session stored in it.
4. If I specify a workspace file in the `File` menu `Open Ctrl-O`, not the workspace file itself is opened, but the Project Panel 1 switches to the specified workspace file.
5. If I drag a session file to Npp, not the session file itself is opened, but the session stored in it.
6. If I drag a workspace file to Npp, not the workspace file itself is opened, but the Project Panel 1 switches to the specified workspace file.

That means that once an user extension is defined for these 2 types of file, Notepad++ stores only the session or the workspace but not opens the file itself. The session and workspace setting files are not supposed to be edited manually.

If a defined conflict happens (for example, a non session or workspace setting file with the defined extension), user can always remove the defined extension from Preferences dialog temporarily to open it.

cherry picked from commit 70e746b7a8fe44c9a1e724581ceb3b457138a474

Close #8374, fix #8324
2020-06-15 16:45:39 +02:00
Udo Hoffmann
58ded005bd
Fix Folder As Workspace double clicking issue
Fix input focus not in edit window after double click in Project or Folder As Workspace.

Fix #4656, fix #8361, close #8369
2020-06-14 01:59:09 +02:00
Udo Hoffmann
5e76ba238e
Fix function list focus problem on double clicking
Change focus to edit window after activating function in function list

Fix #4356, close #8370
2020-06-13 17:40:07 +02:00
Don HO
592acc3a68
Exclude PowerEditor/bin/themes/ for git 2020-06-13 16:33:03 +02:00
Don HO
8bbe8c571f
Update Slovenian localization 2020-06-13 04:58:21 +02:00
Udo Hoffmann
0a821b60e2
Add an option to improve rendering special Unicode characters
... by using Scintilla's DirectWrite technology.
It allows ligature support if the font needed (for exemple "Fira Code") is installed.

Fix #2287, close #8326
Fix #442, fix #675, fix #813, fix #870, fix #1621, fix #3458, fix #4056, fix #4086, fix #4490, fix #8305
2020-06-12 19:16:39 +02:00
Don HO
723a555884
Update Spanish localization 2020-06-12 04:54:25 +02:00
Don HO
97a6862d82
Remove outdated quotes 2020-06-11 02:40:14 +02:00
Udo Hoffmann
6602840117
Fix block selection cursor position after TAB
Fix #8400, close #8402
2020-06-11 02:27:36 +02:00
Don HO
b9c526dfcb Notepad++ 7.8.7 release 2020-06-09 00:02:00 +02:00
Don HO
5e262c8122
Add an non-UI option to allow regEx backward search
Set "regexBackward4PowerUser" to "yes" in config.xml to eanable this option.
2020-06-05 00:56:25 +02:00
ArkadiuszMichalski
766a380325
Update polish.xml to 7.8.7
Add missing translations from the latest version 7.8.7, some cleanup and fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7903.

Close #8367
2020-06-04 17:50:28 +02:00
PeterCJ
18105aa882
Make cpp the first extension for C++
Since save-as appends the first extension from the list to all files, the first extension for C++ should be cpp, not h

Close #8368
2020-06-04 17:42:01 +02:00
Artem Polivanchuk
a28dcb56ec
Update belarusian.xml (7.8.7)
Close #8360
2020-06-03 15:03:29 +02:00
conky77
aec68999b2
Update venetian.xml
Close #8365
2020-06-03 14:57:36 +02:00
Don HO
69ef27b654
Improve new style save file dialog
The right file extension (which correspond to document type) is selected while saving a new file in the new style save file dialog.
2020-06-03 14:32:43 +02:00
Don HO
fa51c2af6e
Make URL hover foreground colour work again 2020-06-03 01:57:12 +02:00
Don HO
f229524883 Exclude a file from git tracking 2020-06-01 18:12:33 +02:00
Don HO
c1d7898c24
Update belarusian.xml 2020-06-01 17:20:15 +02:00
Artem Polivanchuk
42c89df517
Update belarusian.xml
Close #8163
2020-06-01 16:57:24 +02:00
Don HO
20a20c41a6
Update BUILD.md
Close #8180
2020-06-01 16:36:51 +02:00
Udo Hoffmann
c891c593d3
Fix clickable link regression
Fix #8354, close #8355
2020-06-01 14:03:25 +02:00
Don HO
fce153a5fe Fix x86 build error 2020-05-31 12:21:59 +02:00
Don HO
a49f027195
Mutual Recursion
The creation of Notepad++ is due to my need for a decent editor to edit the source code of Notepad++
2020-05-30 23:37:01 +02:00
Don HO
d4124108bc
Enhance Save file dialog
Make file extensions shorter in the file extension list for Save file dialog, so it displays more nicely while user clicking the drop down commbobox.
2020-05-30 18:40:57 +02:00
schnurlos
a8bde7fdaf
Update german.xml to 7.8.6
Close #8113
2020-05-29 22:51:16 +02:00
Udo Hoffmann
f821f73110
Fix Document Map regression under Windows 7
Fix #8335, close #8336
2020-05-29 19:54:39 +02:00
Udo Hoffmann
b73721f0b4
Add sub-menu bullets for cascaded Encoding and Language menus
Fix #8327, close #8328
2020-05-29 02:56:41 +02:00
yasmise
9b36ba102a
Update japanese.xml to v7.8.7
Close #8194
2020-05-29 00:05:58 +02:00
Scott Sumner
7cf43795ac
Add right-click context menu to bookmark margin
Close #8319, close #8320
2020-05-28 19:18:08 +02:00
Patriccollu
24252c02e1
Update Corsican translation for Notepad++ 7.8.7
Close #8334
2020-05-28 18:15:31 +02:00
Vladimír Kubala
9f1455a5ae
Update slovak.xml
Close #8332
2020-05-28 17:11:03 +02:00
Don HO
ac68415188
Fix a grammatical error 2020-05-28 16:28:19 +02:00
Don HO
23c5abc79a
Update CONTRIBUTING.md 2020-05-28 16:25:53 +02:00
xomx
dbf14b80ad
Update Czech translation to v7.8.6
Close #8164
2020-05-28 00:42:05 +02:00
rddim
e8873823e1
Update Bulgarian localization
Close #8192
2020-05-28 00:38:27 +02:00
Waldi Ravens
f938bcbb43
Update dutch.xml to 7.8.7
Close #8205
2020-05-27 20:44:00 +02:00
Tmp341
4fbdaa256a
Update Turkish Localization
Updated according to 924e4b2, 2b345c8, f637901, 2b713fb and 5a95153 commits. Hope nothing missed.

Close #8272

Btw, ``<replace-in-files-confirm-filetype value="For file type :"/>`` is that file type means like ``txt`` or ``type this``?
2020-05-27 20:36:25 +02:00
~GOLEM~
64229ee003
Update russian.xml
Close #8259
2020-05-27 20:26:43 +02:00
Artem Polivanchuk
51518aeca9
Update ukrainian.xml
Close #8135
2020-05-27 20:22:18 +02:00
Udo Hoffmann
aba75b5643
Automatic file extensions for session/workspace while opening
Close #8317
2020-05-27 19:19:20 +02:00
Don HO
e9e9e8daa9
Remove Irish translation due to its bad quality
Please check:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8273
2020-05-26 18:53:30 +02:00
Udo Hoffmann
3f0627b75f
Display file name as root of workspace instead of "Workspace"
Close #8314, close #8315
2020-05-26 17:52:38 +02:00
Don HO
b037bb5c95
Update Slovenian localization file 2020-05-26 17:20:15 +02:00
Don HO
93f7853333
Update a checkbox label and its translations 2020-05-26 05:12:42 +02:00
Udo Hoffmann
edd746d310
Improve save (new style) dialog by adding file extension automatically
1. Add file extension automatically while changing file type via combobox in new style dialog.
2. Add file extension automatically for session files and workspace files while saving in new style dialog.

Fix #4876, close #8311, close #8312
2020-05-26 02:45:41 +02:00
Udo Hoffmann
bb6b24ce50
Improve Document Map precision
Fix #8294, close #8295
2020-05-24 21:36:13 +02:00
Udo Hoffmann
cf2175e479
Fix wrong project panel at start by openning a project via command line
Fix #8126, close #8161
2020-05-23 20:04:23 +02:00
Udo Hoffmann
3a9a31afb4
Include current ANSI codepage into debug information
Close #8303, close #8306
2020-05-23 19:38:22 +02:00
Udo Hoffmann
e27d1a94c9
Prevent suggestion of autocompletion while word modifying
Fix #330, close #8297
2020-05-21 19:57:04 +02:00
Don HO
fdcd11ccc6
Update CONTRIBUTING.md 2020-05-19 19:27:09 +02:00
Udo Hoffmann
80c8ee59c9
Fix current range of the Document Map sticking on mouse pointer after resizing Document Map window issue
Fix Mouse remains in clicked state after resizing docked windows:

The reason for the effect is the mouse hook procedure, which seems to be quite obsolete in contemporary systems: it catches the mouse messages and posts them a second time to the same window. I assume, that was ment to speed up the shifting of the splitters on "prehistoric systems" (That's what you call every system not supporting transparent windows). I see no regression without this hook.

What happens is, the hook catches the WM_LBUTTONUP message and posts it to DockingSplitter::runProc. Here, the hook is released and ReleaseCapture() is called. All fine.

But Windows fails to update its internal key state, when the WM_LBUTTONUP comes as an posted-by-a-hook message. So, if you call GetKeyState(VK_LBUTTON) after ReleaseCapture() in the original code, then it is still in a pressed state. Which confuses the Document Map later.

Fix #8285, close #8286
2020-05-19 16:36:40 +02:00
Udo Hoffmann
7bfaa042b9
Fix Document map overlay stuck to first monitor
This PR fixes the following effects:
1. Document map overlay remains visible after minimize to tray.
2. Document map overlay is left behind on current monitor after moving Npp with Windows+Shift+Arrow to another monitor.
3. Document map overlay escapes to another monitor without Npp, when Windows+Shift+Arrow is pressed while the input focus is at the document map.

Fix #1317, close #8280
2020-05-18 19:55:29 +02:00
Udo Hoffmann
08c11816ce
Fix Document Map shows on all virtual desktops issue
Fix #1247, close #8271
2020-05-18 04:43:33 +02:00
dimon4eg
a42c1674e9
Fix file reading failure (network problem) not detected issue
The current bug: the unconnected network or USB drive while loading a file from it is not detected. As a result Notepad++ opens an empty or uncomplete document.
This commit fix it by not opening anything and showing error box, if file reading fails.

Fix #3381, close #8267
2020-05-17 17:40:58 +02:00
Scott Sumner
4003d6d923
Disallow backward regex searches due to sometimes surprising results
The full story, debated before, is that regular expression searching in a backward direction from the caret position causes matches that the user does not expect. The best thing that was decided to do (group decision) is to fully disable upward searching.

Fix #3640, close #8269
2020-05-15 20:35:54 +02:00
Udo Hoffmann
4738c96318
Fix clickable links break syntax highlighting issue
By using indicators instead of stylers to make code shorter and cleaner.

Fix #999, close #8263
2020-05-15 17:49:23 +02:00
Scott Sumner
9f29015a71
Allow user to skip *.* when adding only excluding Filters for Find/Replace In Files
Close #8169, close #8255
2020-05-15 01:27:11 +02:00
Don HO
920fc5c3d3
Add a new theme in installer 2020-05-14 01:06:14 +02:00
Franck ALBARET
bdb9b28429
Add new DansLeRuSH dark theme
Close #8252
2020-05-14 00:24:18 +02:00
Don HO
5a951531ad
Disable RegExpr up direction search 2020-05-12 04:40:40 +02:00
Don HO
2b713fb75b
Reword some labels in Find & Replace Dialog
Close #4283
2020-05-11 18:28:28 +02:00
Don HO
c4851a49ab
Fix a grammatical error 2020-05-11 05:40:09 +02:00
Don HO
0768047941
Fix a typo
Close #8250
2020-05-11 05:26:26 +02:00
PeterCJ
801a3f5845
Update perl keywords & auto-completion API
Update list through Perl v5.30

Close #8198
2020-05-11 05:00:29 +02:00
Waldi Ravens
6b51bb464a
Fix incorrect macro name
Close #8246
2020-05-11 04:54:57 +02:00
Don HO
ade01204c8
Fix minor coding error & remove unused variables 2020-05-10 05:19:08 +02:00
Udo Hoffmann
c80a5c13f1
Fix Doc switcher icon state update issue for cloned documents
Fix #8067, close #8231
2020-05-09 18:17:17 +02:00
Scott Sumner
1c92779c20
Improve DebugInfo area of issue creation template
Close #8233, close #8234
2020-05-08 19:13:27 +02:00
Don HO
80256710ca
Merge branch 'sasumner-ctrlm_invokes_mark_dialog_6022' 2020-05-08 19:02:47 +02:00
Don HO
8917d42e65
Merge branch 'ctrlm_invokes_mark_dialog_6022' of https://github.com/sasumner/notepad-plus-plus into sasumner-ctrlm_invokes_mark_dialog_6022 2020-05-08 18:47:00 +02:00
Don HO
de6eb92c5a
Found out the author of security advice of the previous commit 2020-05-07 20:51:21 +02:00
Don HO
8a60000936
Add a security advice. 2020-05-07 19:38:57 +02:00
Don HO
f637901db5
Fix a typo error in english.xml 2020-05-06 03:48:54 +02:00
Scott Sumner
ef2b5880d3 Assign ctrlm as default shortcut for invoking mark dialog 2020-05-05 15:19:52 -04:00
Don HO
2b345c8f39
Make Find result panel translatable
Fix also a folding visual glitchy in Find result.
2020-05-05 01:37:47 +02:00
Scott Sumner
9f23e1aadb
Add count of files searched to 'Find result' output
Close #3980, close #8154
2020-05-02 18:40:44 +02:00
Don HO
85c0b3d692
Update French & Taiwanese Mandarin translation
according 924e4b23fe1c3f20a65282022c81fba082cfcd47
2020-04-30 07:56:49 +02:00
Scott Sumner
924e4b23fe
Make ReplaceInFiles confirmation prompt translation capable
Close #8139, close #8165
2020-04-30 07:17:51 +02:00
Scott Sumner
fbf6668a80
Fix Find/Replace history lost issue
Retain find history if config file value set too large

Fix #323, close #8168
2020-04-30 06:39:36 +02:00
Scott Sumner
4be846e7ea
Fix bug of Mark clearing in selection mode
Fix bug of Mark clearing nothing or too much when clearing marking in selected text.

Fix #8150, close #8151
2020-04-29 19:37:00 +02:00
Simon Buhrow
d20e11b93a
Update langs.model.xml to support VHDL-2008
Added the new keywords and standard functions introduced in VHDL-2008.
https://www.doulos.com/knowhow/vhdl_designers_guide/vhdl_2008/vhdl_200x_small/#env

Fix #8098, close #8157
2020-04-29 18:58:57 +02:00
Don HO
d05bf63840
Add Nepali localization 2020-04-29 02:34:27 +02:00
Don HO
66c882a6d5
Add 2 funny quotes 2020-04-28 17:41:35 +02:00
Don HO
9ec6b58bd1 Notepad++ 7.8.6 release 2020-04-21 18:14:58 +02:00
Don HO
0323ed3425 Revert "Change the icon in About box"
Due to the mysterious reason, change the icon in About box makes application icon display incorrectly (in explorer & on taskbar).

This reverts commit 3a46a6c23df72347e05d9f45c30cddb39e74a616.
2020-04-21 14:49:58 +02:00
Don HO
126b55b064
Fix a minor bug for vertical edge 2020-04-18 20:59:45 +02:00
Don HO
3a46a6c23d
Change the icon in About box 2020-04-17 23:56:27 +02:00
rddim
01d82bf57c
Update Bulgarian localization
Close #8118
2020-04-17 23:26:44 +02:00
Don HO
78d42fbd2d
Update localization files 2020-04-17 22:23:36 +02:00
Don HO
40b8666392
Update localization files
Update localization files due to c3ec0cbf6ef1ba2267406313cc0e75f2b9af3ce1
2020-04-17 22:11:47 +02:00
Don HO
3474b8b11e
Update localization for fixing the incorrect removal 2020-04-17 21:03:45 +02:00
Scott Sumner
73f5492d04
Fix strncmp return type and first parameter
Fix #8117, close #8119
2020-04-17 19:29:58 +02:00
Don HO
ffda03c41c
Update localization files 2020-04-17 16:51:02 +02:00
Don HO
c3ec0cbf6e
Make vertical edge (column marker) usage easier
Simplify the UI to make vertical edge easy to use.
2020-04-17 16:20:34 +02:00
Don HO
905feb8dd8
Fix vertical edge mode problem
Fix the problem that edge is still displayed after disabling edge mode.
2020-04-16 03:25:57 +02:00
Don HO
8a37faa704 Fix typos 2020-04-14 22:28:16 +02:00
Tmp341
4dbe7b78ff
Update Turkish localization
Close #8014
2020-04-14 17:58:44 +02:00
yasmise
ce964e5550
Update japanese.xml to v7.8.6
Close #8016
2020-04-14 17:56:21 +02:00
Waldi Ravens
f09a5fd0c3
Update dutch.xml to 7.8.6
Close #8018
2020-04-14 17:53:40 +02:00
Vladimír Kubala
bc2afd8fca
Update slovak.xml
Translated new strings, fixed typos, made some little changes.

Close #8029
2020-04-14 17:51:07 +02:00
~GOLEM~
f1ebf8c404
Update russian.xml to v7.8.6
Close #8044
2020-04-14 17:34:34 +02:00
conky77
6ac1a24f21
Update venetian.xml
Close #8003
2020-04-14 13:26:52 +02:00
popcorner
edfd1f687f
Update chineseSimplified.xml
Close #8039
2020-04-14 13:22:35 +02:00
appelgran
b693be75ac
Added powershell styles for Monokai theme
Close #8041
2020-04-14 04:57:33 +02:00
b9a1
bbb5798569
Add C language keywords
Close #8024
2020-04-14 04:50:24 +02:00
Gitoffthelawn
8862042bfb
Updated CSS Keywords
I recently went through a bunch of my own source code as well as about half of Mozilla's source code for Firefox.  As I found CSS keywords that were not included in Notepad++, I added them locally.
I then merged them with existing keywords, and sorted the combined list alphabetically.
The result is reflected in this pull request.
I hope it helps you and others.

Close #8028
2020-04-14 04:40:37 +02:00
Don HO
5483ad13d0
Update Englsh, French and Taiwanese Mandarin localization
For new feature "Multi-line edge".

Close #8107
2020-04-13 18:34:03 +02:00
Don HO
cc2c9b7740
Implement multi-line edge feature
Close #3128
2020-04-13 04:15:32 +02:00
Don HO
bf2cd8e05a
Changes localization file name "chinese.xml" to "taiwaneseMandarin.xml"
Saying Taiwan is part of China is like saying Java is part of JavaScript.
2020-04-09 00:11:11 +02:00
Don HO
a09c0a17db
Fix folding state lost on the next starup issue
Any setting other than the default setting "for new opened document - UTF8 apply to opened ansi files" will cause C/C++ and other some languages (not for xml though) folding lost on startup.

Fix #4103
2020-04-08 17:22:44 +02:00
Don HO
3de506bf48
Update copyright
Close #5919
2020-04-04 23:03:18 +02:00
Don HO
fc371a1ffe
Remove invald shortcut in Find dialog
"&R" keyboard shortcut for "Replace in Files" is in conflict with one for "Replace", and there's no more available shorcut for "Replace in Files". So let's just remove this useless shortcut.

Fix #3539
2020-04-01 05:11:57 +02:00
Don HO
ae6765372f
Change shortcut key of "Save All" to prevent from the duplication
Fix #3336
2020-04-01 04:04:57 +02:00
Don HO
3a8b744dfe
Folder as Workspace: Add dynamical sorting feature
Fix #1541
2020-03-28 04:54:21 +01:00
Don HO
cb8fd0c438
TreeView refactoring
Shift the allocation of TreeView item's "lParam" member from TreeView class to the derived class, so "lParam" could be the pointer of anything, not necessary anymore the string pointer.
2020-03-27 13:05:54 +01:00
Scott Sumner
13f0717a1b
Improve compatibility for IDC_FINDNEXT and IDC_FINDPREV macros
Close #8064, close #8065
2020-03-26 15:10:15 +01:00
Don HO
585cc27b1f
Make TreeView sorting unrecursivable
And update coding style.
2020-03-26 14:54:04 +01:00
Don HO
0c80bf8cb9
Apply the better style on previous commit 2020-03-22 05:21:31 +01:00
Scott Sumner
d36ea6124a
Editing tab closure activates MRU tab instead of rightmost tab, if MRU behaviour enabled
MRU = Most Recently Used/Active
Thanks to gstavi's patch:
https://github.com/gstavi/npp/blob/master/patch/0005-Use-MRU-when-choosing-new-file-to-activate-after-clo.patch

Close #885, close #8059
2020-03-22 04:54:30 +01:00
Don HO
3ca82bebf1
Make retro-compatible to 7.8.4 and older versions for recorded macro
In the following commit (521ff86665) IDC_FINDNEXT & IDC_FINDPREV are removed from macro record and play. This change broke old macro playing if IDC_FINDNEXT or IDC_FINDPREV was recorded in the macro:
https://community.notepad-plus-plus.org/topic/19011/notepad-v7-8-5-released

Adding IDC_FINDNEXT or IDC_FINDPREV & making them treated as IDOK make fix this broken issue.
2020-03-17 02:52:00 +01:00
Don HO
2f9f395eff
Fix Chinese translation order issue 2020-03-10 04:59:15 +01:00
Don HO
c6fdb89f88
Add support of smart-indenting for Perl and Rust
Close #7980, fix #7958, fix #7961
2020-03-10 03:49:51 +01:00
Scott Sumner
b5bd5bb026
Make Replace-in-Files confirmation dialog modal
In order to prevent from crashing

Fix #7995, close #8022
2020-03-09 21:03:04 +01:00
Don HO
32fc08c7e8 Notepad++ 7.8.5 release 2020-03-06 01:18:44 +01:00
Don HO
5c7660b7b9
Fix inaccurate sorting result in Windows dialog
Both sorting results of size & type columns in Windows dialog were incorrect.
Now they are fixed.
2020-03-04 10:45:34 +01:00
schnurlos
b645875196 Update german.xml
Following eb6da8195b

Close #7993
2020-03-03 03:25:58 +01:00
conky77
ae96df5f9f Update Venetian translation
Close #7994
2020-03-03 03:23:10 +01:00
rddim
f98667d5ee Update Bulgarian localization
Close #8001
2020-03-03 03:20:26 +01:00
Don HO
eb6da8195b
Fix new added size info translation issue in Windows dialog 2020-03-01 03:01:42 +01:00
Don HO
5f34579008 Enlarge 2 last columns in Windows Select dialog 2020-02-28 18:52:56 +01:00
eljefe7000
b9af79f86c Add the document size column to the Windows Selection dialog
Close #7905, close #7971
2020-02-28 18:48:12 +01:00
nulLeeKH
e9b0cfedfd
Update Korean translation
[FIX] Apply opinions of issue #7979 in korean.xml - 1

Close #7982
2020-02-27 18:53:01 +01:00
Scott Sumner
521ff86665
Remove unneeded IDC_FINDPREV and IDC_FINDNEXT from macros
Fix #7928, close #7976
2020-02-26 22:26:20 +01:00
Don HO
40b49d0b66
Make better variable names & coding style 2020-02-26 01:37:00 +01:00
Jorge Rocha Gualtieri
66893f980f
Fix "Monitoring" not detecting all file changes issue
This patch adds an active monitor to detect changes on files since Windows isn't honoring FILE_NOTIFY_CHANGE_SIZE or FILE_NOTIFY_CHANGE_LAST_WRITE on ReadDirectoryChangesW correctly if the file writer keep it opened.
This solution is based on GNU tail for Windows does. It does it at
static void tail_forever (struct File_spec *f, int nfiles, double sleep_interval) on tail.c.

Fix #3142, fix #4955, fix #4527, close #7969
2020-02-25 22:16:57 +01:00
Don HO
e309ec23ec
Fix duplicate names in stylers.model.xml
Fix #7965
2020-02-25 02:28:43 +01:00
Scott Sumner
8de226dca7
Make view-in-browser commands macro recordable
Fix #7851, close #7975
2020-02-24 23:33:40 +01:00
Don HO
62efa463b0 Fix Notepad++ doesn't exit correctly while Windows 10 update restart
If Windows 10 update needs to restart, and Notepad++ has one (some) dirty document(s), and "Enable session snapshot and periodic backup" is not enabled, then WM_ENDSESSION is send with wParam == FALSE, not waiting for WM_QUERYENDSESSION's treatment finish. In this case Notepad++ should quit after saving its current session.

Fix #6086, fix #5831, fix #7854
2020-02-24 03:57:15 +01:00
pan93412
4d5abdf1c8 Make some Chinese translation more accurate
Close #7954
2020-02-20 16:54:53 +01:00
Hen Ry
7c40030a10 Fix an entry in german.xml
Close #7953
2020-02-20 15:46:55 +01:00
Don HO
cfa3041c4d
Enhancement of preventing from null pointer exception of localtime
Fix #7952
2020-02-18 05:14:21 +01:00
Scott Sumner
d3cb2ceb36
Add external sound control capability for unsuccessful search bell
Fix #7950, close #7951
2020-02-17 03:37:18 +01:00
Don HO
1c55e0daa7
Fix loading localization file (-L) not working regression 2020-02-15 04:52:46 +01:00
Don HO
f3261f8620
Fix auto-updater disabling not working
Fix #5375
2020-02-14 01:33:16 +01:00
Scott Sumner
4eac7d8e94
Make Count command respect Backward-direction and Wrap-around options
Fix #7876, close #7917
2020-02-09 19:19:33 +01:00
Scott Sumner
4cc6215e63
Implement issue 905 to make Find window remember its position across runs
Close #905, close #7898
2020-02-07 23:31:29 +01:00
gnodarse
fcf00c7f53
Fix broken link
Close #7919
2020-02-06 13:14:01 +01:00
conky77
3491d3f3ed
Fix Venetian translation
Close #7912
2020-02-06 13:08:20 +01:00
Don HO
a674f96cff
Update ISSUE_TEMPLATE.md
Close #7844
2020-02-06 02:19:43 +01:00
Byungjo
33a8fc86a0
Update korean
Close #7846
2020-02-06 02:06:45 +01:00
Timmy Almroth
5512b90dad
Update Swedish localization
Close #7893
2020-02-06 01:47:23 +01:00
Don HO
ca1ec9b506
Make README.md more readable 2020-02-05 20:00:45 +01:00
Don HO
409336963b
Add 2 entries in README.md
Add License & Contribution entries.
2020-02-05 18:44:42 +01:00
György Bata
bfa9eb69a4
Hungarian translation update for 7.8.4
Close #7907
2020-02-05 14:45:22 +01:00
Don HO
9089b643f6
Update CONTRIBUTING.md 2020-02-03 23:52:52 +01:00
Don HO
a6b02b5803
Add a quote from Alexandria Ocasio-Cortez
"No one ever makes a billion dollars.
You TAKE a billion dollars."
2020-02-01 09:56:22 +01:00
Don HO
401360912b
Update irish.xml 2020-01-31 10:21:07 +01:00
Don HO
5c069cfa24
Add Irish localization file 2020-01-31 03:13:36 +01:00
Don HO
c2c94b9855
Update Slovenian and Spanish localization files 2020-01-31 02:35:40 +01:00
Don HO
1eb5f43886 Notepad++ release 7.8.4 2020-01-30 02:07:41 +01:00
Don HO
6e6341cc61
Make some codes conform to the defined coding style 2020-01-28 02:20:44 +01:00
Don HO
230cd415dd Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2020-01-27 10:45:25 +01:00
Waldi Ravens
0db5b6d3d8 Fix HashFromDlg title bar localization issue
Fix #7884, close #7885
2020-01-27 10:36:07 +01:00
conky77
1c786b6ccc
Update Venetian translation 7.8.3
Close #7842
2020-01-26 02:28:44 +01:00
Hélio de Souza
c8e51af305 Update brazilian_portuguese.xml
Close #7891
2020-01-24 18:28:34 +01:00
Tmp341
d9dbe08ef1 Update Turkish localization
* According to 6c591cb commit.

Close #7848
2020-01-24 13:44:02 +01:00
Cezariusz Marek
3b0fcb96c3 Update polish.xml
Add missing translations from the latest version.

Close #7840
2020-01-24 13:41:34 +01:00
schnurlos
331d2f7d22 Update german.xml
Close #7847
2020-01-24 13:27:02 +01:00
Martin Darebný
21fba0f742 Update czech.xml translation
Close #7881
2020-01-24 13:20:08 +01:00
Don HO
87c4bb348b Update english_customizable.xml 2020-01-24 10:07:00 +01:00
Christophe Meriaux
5d1dcc1253 Fix regression of double clicking a found in files result while Word-Wrap is on
Regression: Double click a found in files result while Word-Wrap is on, if file hasn't been opened, then file will be opened but Notepad++ doesn't go to the found word position.

Fix #7865, close #7872
2020-01-23 13:40:32 +01:00
Don HO
8fdfc4c2ac Notepad++ release 7.8.3 2020-01-15 22:56:55 +01:00
Don HO
648889dcb7 Remove a warning of compiling 2020-01-12 19:35:38 +01:00
Waldi Ravens
2d35273f34
Update localization files (move Item 6115)
Completes commit a1d048fdd9367d37dbe17134cb88e4e24f83c311

Close #7785
2020-01-11 12:04:06 +01:00
knowyourway
222b30a694
Update polish.xml
Fixed some typos and add new entries.

Close #7815
2020-01-10 23:35:40 +01:00
Cezariusz Marek
cce217acbb
Update polish.xml
Add key shortcuts in Polish translation of Save or not dialog

Close #7804
2020-01-10 23:28:44 +01:00
Bruce Yoon
0732fa8f76
Update korean
Close #7797
2020-01-10 23:21:04 +01:00
Hiro5
ac2fb5c035
Update catalan.xml
Close #7710
2020-01-10 23:05:01 +01:00
schnurlos
430efb3747
Update german.xml to v7.8.3
Close #7799
2020-01-10 22:35:31 +01:00
Don HO
638ff65ba1
Reformat some codes 2020-01-10 20:11:36 +01:00
Don HO
87d6cd1d04 Adapt VS2019 2020-01-09 10:36:44 +01:00
Patriccollu
1cb54aa4ef Update corsican.xml
Close #7700
2020-01-08 23:23:52 +01:00
conky77
30bf629858 Add Venetian localization
Close #7770
2020-01-08 10:08:16 +01:00
dvdandroid
6eeb755a73 Update italian.xml to v7.8.3
Close #7826
2020-01-08 10:01:55 +01:00
popcorner
78d0a4feec Update chineseSimplified.xml
Close #7829, close #7727
2020-01-08 09:54:35 +01:00
Artem Polivanchuk
767fcb420f Update ukrainian.xml
Close #7787
2020-01-08 09:47:39 +01:00
yasmise
4fb2cffa28 Update Japanese translation to v7.8.3
Close #7800
2020-01-08 09:44:02 +01:00
~GOLEM~
f2b4078e2d Update russian.xml to v7.8.3
Close #7803
2020-01-08 09:39:54 +01:00
Waldi Ravens
e2150e2f55 Update spanish.xml to v7.8.3
Close #7757
2020-01-08 01:34:08 +01:00
Tmp341
6b6ce475dd Update Turkish Localization
Close #7734

* Updated according to 50a4fc8, e5d83db, 3b77016, 461aabb, 3220eaa, f780e22 and f44c357 commits.
2020-01-08 00:33:53 +01:00
Waldi Ravens
02972ecbf4 Update dutch.xml to 7.8.3
Close #7784
2020-01-08 00:28:48 +01:00
Waldi Ravens
6c591cb26c Add "Encoding > Character Set" localization items
For english & french

Close #7689
2020-01-08 00:21:53 +01:00
Hélio de Souza
e345919f6b Update brazilian_portuguese.xml
Close #7786
2020-01-08 00:17:36 +01:00
xomx
005df921b5 Update czech.xml to v7.8.3
Close #7809
2020-01-08 00:09:05 +01:00
Wanibzh29
c91b2a88a4 Update breton.xml to v7.8.3
Close #7816, close #7817
2020-01-08 00:02:38 +01:00
rddim
4b587fe6c5
Update Bulgarian localization
Close #7765
2020-01-07 00:35:31 +01:00
Don HO
b338282f91
Add Visual Studio project file extension as xml file
Fix #7822
2020-01-06 20:07:48 +01:00
Don HO
062ec3e726
Simplefy the commit 9387dcdaef19289af87f24639bf7336526d027f5 2020-01-06 13:40:49 +01:00
Don HO
563530379f
Better comment 2020-01-06 13:27:56 +01:00
Christophe Meriaux
9387dcdaef
Fix restoring line position issue while document is wrapped
If you switch between tabs while wrap mode is enable, text jump to another lines.
It's an old bug, fixed in v7.5.9, but it had performance regression so it was reverted in v6.0.0.

It's been one year, and I'm back.
This works whatever the size of the file.
There isn't any performance regression because we don't use SCI_ENSUREVISIBLE scintilla command.

In case wrap option on, The restore position function is done in **twice** steps.

- First step: set selection, set anchor, set xoffset...
- Second step: once Scintilla has send the notification SCN_PAINTED, we can scroll several lines to set the first visible line to the correct wrapped line.

Keep in mind that Line wrapping is a background activity that takes time, specially for huge file.

Fix #2078, fix #2576, fix #3570, fix #4825, fix #4881, close #7781
2020-01-06 10:18:46 +01:00
Christophe Meriaux
12bb0efc7a
Fix incremental search bar option bug
Keep 'highlight all' option state in incremental search bar.

Fix #7753, fix #2750, close #7754
2020-01-01 15:57:59 +01:00
Don HO
cbd1e83c02
Update localization files
... for f51ae85d38
2019-12-31 23:53:10 +01:00
Don HO
f51ae85d38
Prevent from setting Updater's Proxyas Notepad++ is not in Admin mode
Updater's Proxy settings needs Administrator privilege. This enhancement prevents from launching Updater's Proxy settings and displays an explicite message to user if Notepad++ is not in Admin mode.

Close #7779
2019-12-31 22:56:54 +01:00
Don HO
326733ec72
Reformat langs.model.xml & add "mk" as file ext of makefile
Fix #2716
2019-12-28 20:22:16 +05:00
Don HO
b0c5de10f9
Fix API comment error
Fix #7717
2019-12-28 18:56:43 +05:00
Don HO
22ea82b80c
Improve the format of CONTRIBUTING.md 2019-12-28 10:05:19 +05:00
Don HO
ab207db6f7
Update localization files
For the commit:
14074e1487
2019-12-27 09:52:25 +05:00
Don HO
14074e1487
Disable file association settings when Notepad++'s no admin right
File association feature under Windows 10 needs the Administrator's preivilege.
This commit add an explicit message to users who want to use this feature, and disable this feature if Notepad++ has no Administrator's preivilege.

Fix #4984, fix #5192, fix #4542
2019-12-27 00:35:16 +05:00
Don HO
a1d048fdd9
Update localization files for a new option
Move an old entry to an another section and add a new one for added new option in:
7a1096de5b3618bc3e6611e6c25caac952d41ae2
2019-12-25 20:03:47 +05:00
Don HO
7a1096de5b
Make filling find field of Find dialog with selected word(s) optional
Close #3243
2019-12-25 13:32:40 +05:00
Don HO
c2f84b4cc6
Coding style improvement: better indentation in Notepad_plus.rc 2019-12-25 12:56:22 +05:00
Don HO
934ded9ac9
Fix a minor cosmetic problem 2019-12-23 11:44:37 +05:00
Don HO
41ca5289bd
Improve langs.model.xml 2019-12-22 13:13:39 +05:00
Don HO
be6f797e65
Improve Json syntax highlighting 2019-12-21 11:47:04 +05:00
Don HO
b76bf9e4df
Make doSaveOrNot dialog simpler when there's a single file to save
When there are several files to save, the same doSaveOrNot dialog which cotains 5 buttons (Yes, No, Cancel, Yes to All and No to All) is shown. But if there is only one file to save, then it's better to not show Yes to All and No to All buttons to make a consistent user interface.

Fix #7762
2019-12-20 13:37:42 +05:00
Don HO
703a49b323
Add the Expand All capacity into Folder as Workspace 2019-12-18 22:12:36 +01:00
Don HO
fbde7d2188
Add expand all capacity into TreeView class 2019-12-18 13:41:13 +01:00
Don HO
998ad2aa87
Optimize the recursive folding in TreeView 2019-12-18 10:37:20 +01:00
Don HO
c8b70dacd7
Make for loop conform to C++11 style 2019-12-18 10:05:40 +01:00
Don HO
e0d995c1a6
Add "Fold All" toolbar command in Folder As Workspace 2019-12-18 10:05:40 +01:00
Don HO
b41a480d68
Ask not what Notepad++ can do for you - ask what you can do for Notepad++ 2019-12-18 02:10:03 +01:00
Don HO
ef4425a47f
Update Spanish translation 2019-12-17 23:16:22 +01:00
Don HO
d5ec3a1c0e
Update localization files 2019-12-17 23:09:36 +01:00
Waldi Ravens
4228c315fd
Make cmd cli ("Open Containing Folder in cmd") customizable
Add "commandLineInterpreter" setting in config.xml
No UI to set it, user has to add the fowllowing line into config.xml:
<GUIConfig name="commandLineInterpreter">powershell</GUIConfig>

(Use your shell to replace powershell)

Close #7737, close #7738
2019-12-15 18:27:34 +01:00
Don HO
1929cce416
Fix auto-insert bug
Fix #6078, fix #7733, close #7742
2019-12-15 14:27:08 +01:00
Waldi Ravens
62622afaeb
Make MinGW gcc build work again
Fixes MinGW build error:
53452d96e0 (r36430299)
2019-12-15 10:53:34 +01:00
Waldi Ravens
f02d166081
Enable two more SQL keyword list
KEYWORD2 – data types, highlighted in a different style.
USER1 – user-defined keywords, empty list by default.

Close #5937, close #7693
2019-12-14 23:51:04 +01:00
Don HO
bc2b5ac2ce
Add feature to select/show current file in Folder As Workspace
A new button is added in Folder As Workspace to select and show the current editing file in Folder As Workspace.

To make Bitmap background transparent with alpha channel in photoshop:
https://www.youtube.com/watch?v=8hNEJ7kaw8g&feature=emb_logo

Close #7736
2019-12-14 22:51:50 +01:00
Scott Sumner
53452d96e0
Fix too small buffer issue during add text macro playback
Fix #7642, close #7730
2019-12-13 19:13:23 +01:00
Scott Sumner
1c4157109f
Eliminate garbage displaying in Find-result fold margin
Fix #6268, close #7721
2019-12-12 21:21:48 +01:00
Waldi Ravens
9729fa7490
Fix "Close All Unchanged" for sub-view
Fix #7708, close #7709
2019-12-12 20:58:06 +01:00
Don HO
ff8e42ca1b
Update readme.txt 2019-12-08 23:33:30 +01:00
Dan Edens
ec5b854bdd
Update dead Link.
"http://docs.notepad-plus-plus.org/index.php/Context_Menu" Is 404d.
Update to new documentation location:
"https://npp-user-manual.org/docs/config-files/#the-context-menu-contextmenu-xml"

Close #7701
2019-12-08 21:33:12 +01:00
Don HO
5a2147ef39 Notepad++ release 7.8.1 2019-12-05 13:04:43 +01:00
Don HO
b3419ad00d
Fix a typo 2019-12-04 01:32:24 +01:00
Waldi Ravens
17872080a0
Fix mistyped Item id in slovenian.xml
Close #7687
2019-12-03 21:54:12 +01:00
Artem Polivanchuk
339f451e13
Update belarusian.xml
Close #7616
2019-12-02 22:46:59 +01:00
Artem Polivanchuk
f184de7347
Update ukrainian.xml
Close #7617
2019-12-02 22:40:23 +01:00
Pavel_Blend
6f56b44118
Add python keywords
Close #7613
2019-12-01 22:45:00 +01:00
~GOLEM~
c5eb6f757d
Increased size the field for localizations.
Close #7640
2019-12-01 22:28:55 +01:00
Waldi Ravens
ee1a0b4a07
Update dutch.xml
Close #7633
2019-12-01 21:53:07 +01:00
schnurlos
eab9aae727
Update german.xml
Close #7649
2019-12-01 18:40:06 +01:00
~GOLEM~
c67cacf684
Update Russian lang for 7.8.2
Close #7643
2019-12-01 02:00:35 +01:00
Bruce Yoon
68088e6872
Update Korean translation
Close #7659
2019-11-30 23:21:42 +01:00
rddim
e5e7b988e4
Update Bulgarian localization
Close #7639
2019-11-30 23:18:41 +01:00
scootergrisen
9d8abb7a06
Update danish translation to 7.8.1
Close #7661
2019-11-30 23:15:15 +01:00
Hélio de Souza
3baed7ffb8
Update brazilian_portuguese.xml 2019-11-30 23:07:07 +01:00
yasmise
87aa810853
Update Japanese translations for v7.8.2
Close #7675
2019-11-30 23:02:09 +01:00
Scott Sumner
c858a2ab5d
Make 'Purge for each search' respect 'In selection' for 'Mark All' op
Fix #7663, close #7664
2019-11-30 16:34:03 +01:00
Don HO
f44c357999
Add tooltip for filter usage in Find in Files dialog 2019-11-22 14:28:13 +01:00
Scott Sumner
90176b21ae
Make 'Clear all marks' respect 'In selection' choice
Fix #6271, close #7636
2019-11-22 01:21:28 +01:00
Ale
dc48cee5f7
Add find in files filter excluding ability
Filter usage example:
*.* !*.exe !*.obj !*.log

Close #7618, close #7626
2019-11-21 13:34:01 +01:00
Don HO
f780e22d61
Add shortcuts to Save dialog for translation files 2019-11-21 02:52:04 +01:00
Don HO
3220eaaa30
Refine "Open UDL folder" command & make it translatable 2019-11-21 02:24:57 +01:00
Don HO
302b88e0ea
Isolate UDL language application menu from UDL actions 2019-11-19 14:11:32 +01:00
Krzysztof Szewczyk
2458812a42
Add a submenu item in Languages menu to open UDL folder
Fix #5404, close #7540
2019-11-19 10:11:57 +01:00
vlakoff
de64bef97d
Use https instead of http for shorcut www.php.net
Close #5488
2019-11-19 01:13:56 +01:00
Rajendra Singh
b694ff23bb
Fix issue of showing save dialog twice
The issue:
While running "close all" command the 2nd save dialog is shown for a unsaved cloned doc, but user has repplyed "No" to the unsaved original doc.
This comit make save dialog show once if user's answer is No.

Fix #7523, close #7558
2019-11-18 13:36:16 +01:00
Rajendra Singh
9e37a167f9
Make open Explorer with expeacted path in Folder as workspace
Fix #5981, close #7562
2019-11-18 10:00:39 +01:00
Waldi Ravens
8cbf3c7e29
Update dutch.xml to 7.8.1
Close #7583
2019-11-18 02:27:01 +01:00
balagansky
8e361c5dca
Fix tab dragging issues
Fix tab dragging issues related to switching off TCS_BUTTONS under multi-line tabs mode (per AngryGamer's suggestions)

Fix #6274, fix #6273, fix #4339, close #6278
2019-11-18 02:05:27 +01:00
Don HO
b5322b1043
Revert "Revert 'Fix multi-line tab button stay pushed issue while swiching off.'"
The commit fce74dd894a33bc169d0be75b789a0606aae8474 (which reverts 8342da3) does not solve dragging tab problem(#7509), and it made a regression (#3545 is reproduced again).

This reverts commit fce74dd894a33bc169d0be75b789a0606aae8474.
2019-11-18 01:28:27 +01:00
Don HO
f8cf4f3885
Update contribution rules. 2019-11-17 02:28:09 +01:00
Don HO
4dc8717c4b
Fix a typo in easter eggs 2019-11-16 23:21:59 +01:00
Don HO
30e545a5f4
Code enhancement: Make Globallock and GlobalUnlock symetric 2019-11-16 16:54:21 +01:00
Don HO
ebe0b1b189
Use "#pragma once" instead of "#ifndef" 2019-11-16 03:38:11 +01:00
Don HO
2b0f5dd6fd
Enhance "Close all but This" functionality
Old behaviour:
While "Close all but This" operation, if user answer Yes or No for some files to Save dialog, then cancel for a file to save dialog, all files will be kept.

New behaviour:
The files for which user has answered for saving will be close, even the cancel answer at the end.

Fix #7553
2019-11-15 19:54:05 +01:00
steven-bellock
5ac062e731
Update Verilog / SystemVerilog keywords
Update Verilog / SystemVerilog keywords and system functions to the latest IEEE 1800-2017 standards document.

Close #5466
2019-11-13 01:53:58 +01:00
Markus Heidelberg
98f4b1503e
Fix GCC compile errors under Linux due to case sensitivity in #include
Closse #7528
2019-11-13 01:46:05 +01:00
popcorner
3011612c70
Update chineseSimplified.xml
Close #7535
2019-11-12 14:02:13 +01:00
Waldi Ravens
36c90c609d
Fix XML syntax in korean.xml
Close #7541
2019-11-12 13:58:53 +01:00
Rajendra Singh
4d5c1b6564
Improve 'Close all to the left' and 'Close all to the right' user experience
Description of the Issue
Improve "Close all to the left/right" functionality.
This is an enhancement request. Similar request was made in past #2555, but has been closed during tracker cleanup process.

Steps to Reproduce the Issue
1. Create 4 tabs says (tab 1, tab 2, tab 3, tab 4)
2. Make all the tab dirty (I mean type, something in each tab, but don't save any).
3. Now right click on tab 1 and choose "Close All to the right"
4. Three popup for asking to save file will appear (For tab 4, tab 3 and tab 2)
5. Click "No" for tab 4 and tab 3. And click cancel for tab 2.

Expected Behavior:
After step 5, tab 4 and tab 3 should be closed. And for Remaining tabs, operation should be cancelled.

Actual Behavior:
Nothing happens after step 5.

Same defect reproduction steps are applicable for "Close all to the left".

Fix #7501, close #7502
2019-11-12 13:30:36 +01:00
Scott Sumner
485b5aa7c7
Add disable In-Selection when multiple selections active for Count, Replace-All and Mark-all commands
Fix #7532
2019-11-12 10:09:10 +01:00
Don HO
f826c1180c
Fix Notepad++ blocked in notification zone issue
In the case of backup feature being disabled, if Notepad++ has a modified file, and it is reduced into the nofitication zone, closing Notepad++ via notification zone will trigger doSave dialog, then Notepad++ stuck after closing the dialog.

Fix #7508
2019-11-12 03:28:51 +01:00
Christian Grasser
9bba1291d4
Update of cmake config to reflect the vs proj changes since the last update
Close #3918
2019-11-08 12:54:50 +01:00
Scott Sumner
bdd9acb0f5
Make end-of-line conversion operations macroable
Fix issue to make end-of-line conversion operations macroable

Fix #6258, close #7516
2019-11-07 22:29:21 +01:00
Patriccollu
19517944fe
Update corsican.xml for Notepad++ 7.8.1
Close #7519
2019-11-07 22:26:28 +01:00
Don HO
d5a72b647b
Merge branch 'yunbj-master' 2019-11-07 22:22:57 +01:00
Don HO
604d653193
Merge branch 'master' of https://github.com/yunbj/notepad-plus-plus into yunbj-master 2019-11-07 22:22:46 +01:00
Christian Grasser
c741f83bde
Update makefile for mingw gcc builds
Close #4145
2019-11-07 22:13:47 +01:00
Bruce Yoon
bbd5bae46f Update Korean 2019-11-07 20:04:20 +09:00
Don HO
cf7e373dca
Add shortcuts to Save or not dialog
ALT-Y for Yes
ALT-N for No
ALT-C for Cancel
ALT-A for Yes to all
ALT-O for No to all
2019-11-06 23:43:08 +01:00
Paul van den Burg
1377cc6c04
Fix typo in spanish translation
Fix #7494, close #7505
2019-11-06 09:54:08 +01:00
Don HO
fce74dd894
Revert "Fix multi-line tab button stay pushed issue while swiching off."
This reverts commit 8342da3df8009f8d76d1d4990f3b5695eae88dd8 to fix a regression (#7509) which has been done to fix #3545.

Fix #7509
2019-11-06 00:55:03 +01:00
Don HO
6a334b1514
Update localization files 2019-11-02 13:47:09 +01:00
Scott Sumner
f477c095aa
Remove association check before enabling 'View Current File In' menu items
Fix #5903, close #6156
2019-11-02 01:17:21 +01:00
Don HO
7216849723
Add 8 story 2019-11-01 23:21:37 +01:00
Don HO
3ee5615c5f Notepad++ new release v7.8.1 2019-10-29 02:41:19 +01:00
Artem Polivanchuk
e6f9d31d2a
Update ukrainian.xml
Close #6181
2019-10-27 21:21:08 +01:00
schnurlos
52bbd2fc96
Update german.xlm to V7.8.1
Close #6234
2019-10-27 21:16:48 +01:00
Don HO
a156bf1052
Change the motivational quote of the installer to a better one 2019-10-27 02:22:56 +02:00
Hélio de Souza
56599eeb7a
Update brazilian_portuguese.xml to 7.8.1
Close #6236, close #6231, close #6270
2019-10-27 00:48:18 +02:00
Waldi Ravens
415fe5ce4f
Fix Portuguese localization
Fix #6167, close #6191
2019-10-27 00:46:04 +02:00
Luca
8d251e0538
Update italian.xml for version 7.8.1
Close #6198
2019-10-24 20:25:27 +02:00
xomx
4cd917d079
Update czech.xml translation to v7.8.1
Close #6237
2019-10-24 20:20:14 +02:00
Palash Bansal
f05fedda76
Fix issue for Alt+Tab doesn't show Notepad++ (Windows 7)
Issue is because of Tool window being used instead of normal window for these 2 dialogs- "Close All" and "Rename"
Known issue already discussed on- https://stackoverflow.com/questions/3760571/showdialog-makes-app-window-disappear-from-windows-alt-tab-list

Excerpt from https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles -

WS_EX_TOOLWINDOW 0x00000080L	The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE.
DS_MODALFRAME is added for "Close All" dialog, because after making it normal window, it started showing default empty windows file icon.

Fix #6244, close #6252
2019-10-24 09:56:47 +02:00
~GOLEM~
c423543aae
Update russian.xml for v7.8
Close #6230
2019-10-24 02:00:21 +02:00
rddim
0596e7ed60
Update Bulgarian localization
Close #6240
2019-10-24 01:58:05 +02:00
Rajendra Singh
26f797cd4b
Updated Hindi language
Close #6247
2019-10-24 01:56:17 +02:00
Waldi Ravens
4337f6e7e5
Update dutch.xml to 7.8.1
Close #6232
2019-10-23 20:11:00 +02:00
yasmise
42356e09a6
Update japanese.xml to v7.8.1
Close #6256
2019-10-23 20:08:05 +02:00
Mithil Poojary
5f5e4efca1
Update README.md
1. Fixed Github release link
2. Fixed a typo on line 60
3. Fixed the community link

Close #6257
2019-10-23 20:00:14 +02:00
Don HO
461aabb6aa
Update some localization files 2019-10-23 00:46:45 +02:00
~GOLEM~
3b77016dbf
Update English (hotkey menu)
Added 3 lines for hotkey menu.
id 50003 - Switch to previous document
id 50004 - Switch to next document
id 50005 - Toggle macro record

Close #6222
2019-10-23 00:37:26 +02:00
Mithil Poojary
e15bd18664
Update README.md
Fixed the contributors link at the bottom of the page. The earlier link was broken.

Close #6245
2019-10-22 09:47:48 +02:00
Don HO
b96f91c39a
Fix x64 installer option issue
x64 installer set installation path in "C:/Program Files/Notepad++/" but "don't use %APPDATA%" is enabled.
This commit fix this issue (make it disabled)

Fix #6243
2019-10-21 20:21:05 +02:00
Waldi Ravens
88a2f68f05
Fix typo
Close #6233
2019-10-21 10:47:00 +02:00
Waldi Ravens
8e78307951 Fix initialization of _monospacedFontFinfDlg parameter 2019-10-19 09:23:26 +02:00
Don HO
e5d83dbc00
Update some localization files 2019-10-18 13:38:57 +02:00
Waldi Ravens
50a4fc8ad1
Fix localization in Preferences dialog
Fix #6228, close #6229
2019-10-18 09:29:03 +02:00
Don HO
dde38183d3
Make monospaced font in Find dialog optional
Default value is disabled (old behaviour).
2019-10-17 14:16:10 +02:00
Don HO
bd95534ab2
Put an item of Preferences dlg in its right place. 2019-10-16 23:04:05 +02:00
Rajendra Singh
c16f7bbc1e
Fix a regression regarding notepad replacement issue
Fixed command line parsing logic error.

Root cause:
When you double click a file (where NPP has already replaced original Windows Notepad.exe) command like something like below is generated -

-notepadStyleCmdline -z "C:\WINDOWS\system32\NOTEPAD.EXE" F:\FakePath\PowerEditor\bin\change.log

After processing this command line, final command line is left as " F:\FakePath\PowerEditor\bin\change.log while others are ignored. Notice, quote " here just before the actual file path.

Later on, MS PAI ::PathIsRelative treats it as relative path because of quote " rather considering single file. It is expected too as per input to this API.

Now, notepad++ tries to open all the file from path F:\FakePath\PowerEditor\bin\ (in above case) along with file F:\FakePath\PowerEditor\bin\change.log.

Close #6215, fix #6211
2019-10-14 02:18:12 +02:00
Don HO
a739eade8e
Plugin list updater (in progress) 2019-10-13 21:48:27 +02:00
Don HO
45d4c8d35c Notepad++ 7.8 release 2019-10-11 01:41:48 +02:00
Don HO
29919bea22
Fix indent guideline bug regarding Python-like languages and non-Python-likes ones 2019-10-07 00:45:16 +02:00
Don HO
445dc5ebc1
Fix a memory leak for NppParameters
Fix a memory leak due to not releasing allocated memory for NppParameters while quitting Notepad++
2019-10-05 20:51:29 +02:00
Don HO
5cf296ee10
Remove Author from About and add Online Document to menu
Remove Author link from About dialog and add Online Document link to menu
2019-10-05 17:07:39 +02:00
Don HO
10f6ff6c1f
Fix a crash (regression) due to "new-less" of NppParameters
The commit 'Make NppParameters singleton "new-less"' make NppParameters instantiate in the stack instead of allocating in the heap:
3dbb2c4b8e

It makes Notepad++ crash:
https://community.notepad-plus-plus.org/topic/18316/notepad-7-8-release-candidate-3/4

The crash is on following code:

  vector<MacroShortcut> & vShortcuts = NppParameters::getInstance().getMacroList();
  size_t nbItems = vShortcuts.size();
  for (size_t itemIndex2 = 0; itemIndex2 < nbItems; ++itemIndex2)
  {
  ...

vShortcuts.size() here return a random large number, which makes crash.

The explanation about vector::size() unexpected behaviour:
https://stackoverflow.com/questions/30548944/c-vector-size-is-wrong-and-higher-than-the-number-of-elements

Obviously the stack size is not large enough to contain NppParameters singleton in 64 bits.
2019-10-03 14:05:50 +02:00
Don HO
7651d703a9 Fix include new release files problem 2019-10-02 03:36:26 +02:00
Don HO
fcaef73769
Fix macro playback crash issue
The crash issue is due to a mutex locked twice which should be a dead lock but a "device or resource busy" exception is lauched:
https://stackoverflow.com/questions/16664375/why-locking-a-stdmutex-doesnt-block-the-thread

From 7.8 the standard mutex is used, that changes the behaviour.
2019-10-02 03:18:31 +02:00
Oirfeodent
c92b3ca578
BaanC Add keyword lists and respective langs & styler xml tags
PR #6081 added the required keyword sets for BaanC.
Continuation of #5807 and the last change to enable all available scintilla keyword sets.

Close #6128
2019-09-25 09:53:25 +02:00
scootergrisen
718fa641ce
Update danish.xml to 7.7.2
Close #6143
2019-09-24 09:53:19 +02:00
Don HO
53d2ca4dd9
Add a good geek joke 2019-09-15 23:34:35 +02:00
Scott Sumner
797fdc340d
Fix File-Rename failing when new name is on a different drive
Fix #1978, close #6111
2019-09-02 23:39:41 +02:00
Rajendra Singh
34159ced7a
Updated Hindi
Close #5994
2019-09-02 14:45:16 +02:00
schnurlos
ae459831d0
Update german.xml - fix typo
fixed a small typo.

Close #5999
2019-09-02 14:43:05 +02:00
rddim
5604833e50
Update Bulgarian localization
Close #6002
2019-09-02 14:39:07 +02:00
Waldi Ravens
5e2d06e47c
Fix tag-names in slovenian.xml
Close #6032
2019-09-02 14:36:15 +02:00
Tmp341
7e74162c88
Update Turkish Localization
Added all new lines, changed existed ones.

Close #6068
2019-09-02 14:31:56 +02:00
Willy Wonca
b6a5b69b06
Improve Italian translation
Fix #6029, close #6071
2019-09-02 14:28:09 +02:00
André
8d082d3eee
Fixed inverted words in brazilian_portuguese.xml
Close #6104
2019-09-02 14:22:55 +02:00
Don HO
581aff630a
Use standard C++11 mutex
And remove unecessary files

Close #6093
2019-08-25 23:34:30 +02:00
Don HO
3439071c3c
Remove ATL (part two)
Use std::lock_guard instead of CComCritSecLock<CComAutoCriticalSection>

 Close #4320
2019-08-25 02:09:17 +02:00
Don HO
ec5fa6d2c4
Remove ATL (part one)
Use std::wstring instead of CStringW
2019-08-25 00:14:42 +02:00
Oirfeodent
d5c0ef2c77
Increase Keyword Set for the adaptation of new updated Scintilla
This will enable languages having more than 7 keyword sets to use it.

"You can set up to 9 lists of keywords for use by the current lexer. keyWordSet can be 0 to 8" :
https://www.scintilla.org/ScintillaDoc.html#SCI_SETKEYWORDS

Fix #6020, close #6081
2019-08-23 11:29:45 +02:00
Scott Sumner
e102ecb919
Fix find 2 occurrences in original/clonned doccuments issue
Fix for Find-All-in-All-Opened-Documents searching a cloned document two times, and reporting same results two times.

Fix #6704, close #6705
2019-08-22 12:53:43 +02:00
Don HO
ab46fe0806
Code enhancement: remove duplicated code 2019-08-22 01:19:22 +02:00
luisffranca
0d87d37d35
Handle Ctrl+A keyboard shortcut in MD5/SHA256 Generators
Added new window procedures for the HASH_PATH_EDIT/HASH_RESULT_EDIT
and HASH_TEXT_EDIT/HASH_RESULT_FOMTEXT_EDIT controls, where Ctrl+A
is now processed.

Fix #3863, close #3898, close #6034, close #6059
2019-08-22 00:50:13 +02:00
schnurlos
b933476632
Update lisp API
Included values from Autocad 13 reference.

Close #6000
2019-08-20 13:22:06 +02:00
Oirfeodent
025236be6b
Enhance BaanC language support
Changes for BaanC based on new Scintilla Version.

Close #5807
2019-08-20 12:56:03 +02:00
Scott Sumner
132441867e
Bookmark all lines of multiline match
Fix #6018, close #6040
2019-08-20 00:51:01 +02:00
Scott Sumner
f6d6e42ac1
Fix "clear all marks in find dialog also removes bookmarks" issue
Fix partially "clear all marks in find dialog also removes bookmarks" issue:
* Bookmark line unticked: Clear all marks button press clears only all redmarking
* Bookmark line ticked: Clear all marks button press clears all redmarking and all bookmarks

Fix #3546, close #6042
2019-08-19 12:50:51 +02:00
Don HO
93a9962fde
Code enhancement: Use C++11 =default & =delete for the constructor & destructor 2019-08-19 02:05:21 +02:00
Don HO
c34d3c9a4b
Make standard conformance for C++
Use SDK 10.
Use toolset v141.
Conformance mode is enable.

Check the following link for mre detail:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/6054
2019-08-18 01:52:25 +02:00
Rajendra Singh
3a1244177c
Code enhancement: Function arguments pass by reference
Close #6063
2019-08-18 01:16:23 +02:00
Nikita Kolotov
0bf3eea08a
Code enhancement: add std qualificator
Fixed build failure caused by use of function std::make_pair without qualificator.

Fix #6051, close #6052
2019-08-17 10:24:58 +02:00
Nikita Kolotov
e74cb34e22
Code enhancement: remove use of deprecated function std::bind2nd
Fixed use of deprecated function std::bind2nd.
2019-08-17 10:20:17 +02:00
Nikita Kolotov
d38559b339
Code enhancement: add base class template qualifier
Fixed build failure with "/permissive-" option caused by use of members of dependent base class template without qualifier.
2019-08-17 10:13:08 +02:00
Don HO
66fc977304
Pass VS Toolset from v140_xp to v141 2019-08-17 03:41:59 +02:00
Don HO
77da706207
Code enhancement: remove goto label
Close #6053, close #6054
2019-08-16 12:34:39 +02:00
Nikita Kolotov
67305b978c
Remove unecessary qualification
Remove extra qualification present on ShortcutMapper class members declarations

Close #6045, close #6046
2019-08-15 00:35:41 +02:00
Don HO
06db9ee338
Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
Don HO
bbc55d06f2
Code improvement for WcharMbcsConvertor 2019-08-14 01:54:56 +02:00
Don HO
2c764d7221
Code improvement for FileManager 2019-08-14 01:32:01 +02:00
Don HO
48f83a9d0f
Code improvement for EncodingMapper 2019-08-14 01:15:08 +02:00
Don HO
f80b0ed293
Add Npp Pugin List update capacity (in progress) 2019-08-13 23:51:05 +02:00
Rajendra Singh
938dae9b2a
Improve singleton
Close #6036
2019-08-13 12:48:05 +02:00
Don HO
3643a1875b
Make 2 singleton "new-less"
Make WcharMbcsConvertor & FileManager "new-less"
2019-08-11 01:17:53 +02:00
Don HO
3dbb2c4b8e
Make NppParameters singleton "new-less" 2019-08-10 23:53:59 +02:00
wjx0912
fc9dfc86fc
Make EncodingMapper singleton "new-less"
Use the modern way to code Singleton to get rid of the allocation memory.

Close #6031, close #6019
2019-08-10 19:32:57 +02:00
Waldi Ravens
d269fda5b2
Add new entries and improve French translation
Close #5990
2019-08-10 13:50:19 +02:00
Scott Sumner
0922512eb3
Make "Remove Consecutive Duplicate Lines" to be macro recordable
Fix #6023, close #6024
2019-08-10 13:29:00 +02:00
Waldi Ravens
2a7a35a4a3
Make "Command Argument Help" MessageBox modal
Fix #4067, close #6027
2019-08-10 13:21:46 +02:00
grisha vanika
ab4cf88336
Fix Folder as Workspace crash and "queue overflow" issues
Fix crash of Folder as Workspace when too many directory changes happen:
Remove limit for amount of queued directory changes: use auto-reset Event instead of Semaphore.

Fix #6005, fix #5907, fix #3740, close #6005
2019-08-07 14:14:59 +02:00
Scott Sumner
9d79d6c017
Fix "preventing Find All Curr Doc working in macro" issue
Fix #5973, close #6006
2019-08-07 09:37:34 +02:00
Scott Sumner
cd9f761293
Make backward-dir checkbox be shown on Find window's Mark tab
Fix #5974, close #6016
2019-08-07 09:27:27 +02:00
Don HO
c35a2b5708
Make Combobox font monospace in Find dialog
Close #5920, fix #3361, close #6001
2019-08-05 02:45:01 +02:00
ssk97
dd401f1379
Fix folding in user-defined languages for non-windows line endings
Close #3372, fix #2873
2019-08-05 00:45:58 +02:00
Cyrillev
053823e8ca
Fix check sign in Encoding menu not shown issue
Fix #3737, close #3738
2019-08-05 00:00:22 +02:00
Berner Martin
d901c73f7d
Add PL/SQL to FunctionList
Close #3741
2019-08-04 12:40:55 +02:00
Simon Sobisch
a5ec6be8a9
Enhance COBOL language support - function list & auto-completion
COBOL support in function list - new entries in functionList.xml (note: defaults to fixed-form reference format, manual switch to free-form reference-format possible in association for langID 50)

COBOL support in auto-completion - new file APIs/cobol.xml
COBOL syntax highlighter - recreated list

note: list of statements, functions and reserved words token from GnuCOBOL 3.0 (COBOL85,2002,2014 + extensions from IBM/MF/RM/ACUCOBOL), please report back if any words are missing

Close #4004
2019-08-04 00:54:18 +02:00
Scott Sumner
61abf06bf3
Make 'Clear all marks' and 'Inverse Bookmark' macroable
Fix #1948, close #5995
2019-08-03 16:26:25 +02:00
Micha Wiedenmann
b3a6638b93
'-nosession' must not overwrite config.xml (Fix #3938)
When `-nosession` is given as a command line parameter the attribute
`isSnapshotMode` in `config.xml` is overwritten with `no` regardless of
its original value.

    <GUIConfig name="Backup" action="0" useCustumDir="no"
               dir="" isSnapshotMode="yes" snapshotBackupTiming="7000" />

Change this to keep the original value.

Fix #3938, close #5845
2019-08-03 01:10:49 +02:00
schnurlos
9f1deb4823
Update german.xml to V7.7.2
Close #5993
2019-08-02 18:50:48 +02:00
popcorner
b61ad0c374
Update chineseSimplified.xml
Close #5992
2019-08-02 13:48:35 +02:00
knowyourway
1ba68b0449
Updated polish.xml
A retranslated and coherent version of polish.xml

Close #5846
2019-08-01 22:52:53 +02:00
Tmp341
e55b3501da
Update Turkish localization
* Update localization according to 074a4bc and 3f7956d commits.

Close #5905
2019-08-01 22:46:24 +02:00
xomx
6c765044bd
Update czech.xml to v 7.7.2
Close #5967
2019-08-01 22:32:53 +02:00
vlakoff
48ac04accc
Add "hasOwnProperty" method to the JavaScript autocompletion
Close #5957
2019-08-01 21:09:37 +02:00
rddim
34611c2eba
Update Bulgarian localization
Close #5925
2019-08-01 21:06:02 +02:00
Patriccollu
8bfa0671d1
Update corsican.xml for Notepad++ 7.7.1
Corsican translation has been updated to take the latest strings into account.

Close #5902
2019-08-01 19:53:41 +02:00
Rajendra Singh
4521194c70
Update Hindi localization
Close #5888
2019-08-01 19:40:37 +02:00
Jay.Skyworker
580a1c406c
Make a better translation for Chinese traditional.
提升 Style Configurator 翻譯的可讀性

Close #5854
Make chinese translation for "Style Configurator" more accurate
2019-08-01 19:33:31 +02:00
Waldi Ravens
e8ae016f3d
Update dutch.xml to 7.7.2
Close #5818
2019-08-01 14:05:56 +02:00
yasmise
9c2f897893
Update Japanese translation
Close #5797
2019-08-01 13:50:07 +02:00
Artur
87602bcd97
Update russian.xml
Add new line:
id3520
NeedToRestartToLoadPlugins
ExitToUpdatePlugins

Close #5793
2019-08-01 13:39:08 +02:00
Motaz Alnuweiri
6adac5f4f2
Update Arabic language to v7.7.2
Close #5778
2019-08-01 13:34:14 +02:00
Jani Kesänen
c37525cd90
Updated Zenburn theme to contain all the languages supported by 7.7
Close #5829
2019-07-31 22:19:29 +02:00
Waldi Ravens
ac1d9deed6
Update french.xml to 7.7.2
- Add missing entries.
- Remove surplus entries.
- Modify encoding menu entries according to #5951.

Close #5985
2019-07-31 22:11:29 +02:00
bovirus
99c8610774
Update italian.xml
Close #5977
2019-07-30 21:57:12 +02:00
Don HO
fb7785eeaa
Disambiguate 5 entries regarding encoding
Remove "Encode" word to avoid the confusion with "Convert".

Close #5951
2019-07-30 20:24:59 +02:00
Waldi Ravens
3282e5f4a4
Fix french.xml
Replace erroneous $INT_REPLACE$ with $STR_REPLACE$

Fix #5868, close #5875
2019-07-29 01:30:47 +02:00
Don HO
3cb9a594fb
Update README.md 2019-07-29 01:29:18 +02:00
Sergey Semushin
dbc9d79df6
Small grammar correction
Here's explanation why this is the correct way:
https://english.stackexchange.com/questions/222316/are-you-sure-to-delete-or-are-you-sure-you-want-to-delete
Also `Are you sure you want to` could be found in 4 other messages in this same file.

Close #5848
2019-07-28 02:35:29 +02:00
Don HO
e50236f559
Remove redundant information in File Summary dialog
Update Chinese & French binary translation as well.
2019-07-27 11:03:14 +02:00
Christian Grasser
418d03acfe
Add capabilty to translate file summary dialog info
Close #5594, fix #1487
2019-07-27 10:33:51 +02:00
Don HO
4a80a125c0
Fix the crash due to NPPM_DESTROYSCINTILLAHANDLE message
Destroying allocated Scintilla makes Notepad++ crash because created Scintilla view's pointer is added into _referees of Buffer object automatically.
The deallocated scintilla view in _referees is used in Buffer::nextUntitledNewNumber().

So we do nothing here and let Notepad++ destroys allocated Scintilla while it exit and we keep this message for the sake of compability withe the existing plugins.

Fix #4487, close #1500, close #5949
2019-07-26 09:39:52 +02:00
Don HO
21939308b0
Add NppExport 64 bits plugin in the distribution
Close #5944
2019-07-23 21:37:49 +02:00
Don HO
cfcca9f54a
UI position tuning
Close #5935
2019-07-23 01:59:30 +02:00
Don HO
4c7e18fd58
Fix PowerEditor compiling error 2019-07-22 13:45:31 +02:00
Don HO
92bad0a60a
Upgrade Scintilla from 4.1.4 to 4.2.0
Fix #5822
2019-07-22 13:08:41 +02:00
luisffranca
69da7a765d
Make context menu key work in Project Panel
Fix #3868, close #3871
2019-07-22 13:00:52 +02:00
Don HO
8fd691a3b2 Change shortcut for avoiding the clash
Change shortcut of "Replace All in All Opened Documents" from &o to &u.

Close #2276
2019-07-22 01:24:37 +02:00
Don HO
0db7c75ff9
Merge branch 'find-dlg-enhance-GUI' 2019-07-19 09:54:41 +02:00
Don HO
6f3166c865
Improve GUI in Find dialog
Thanx to:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/449#issuecomment-135799762
2019-07-18 23:28:02 +02:00
Don HO
d239c3d731
Make ASCII Codes Insertion panel's title shorter 2019-07-18 09:44:50 +02:00
mmosoll
6a30c31e0a
Add 2 new columns for HTML Code in the Character Panel
Added 2 new columns showing HTML Code and HTML Name in the Character Panel for ANSI and Windows-1252 character sets.
Modified NM_DBLCLK event to insert in document the current cell value when double clicked in the Character Panel.
Modified translation files for French, English, Spanish and Spanish Argentina to include the new added columns in the Character Panel.
Modified maximum length of the Character Panel title bar in Notepad_plus::launchAnsiCharPanel().

Close #4371
2019-07-17 20:01:48 +02:00
Silent
dc6bd2a8d2
Fix commandline parsing issue
Fix issues where filenames would have multiple whitespaces in them.

Fixes #5861, close #5883
2019-07-15 09:50:13 +02:00
Don HO
607999c8b8
Update French & Chinese localization 2019-07-12 23:53:54 +02:00
rddim
eed0c620bb
Update Bulgarian and add missing entry in english.xml
Close #5908
2019-07-12 10:18:05 +02:00
AngryGamer
9acf6e302f
Fix Document Peeker constantly changing focus
1. Title Bar no longer flickers like crazy.
2. Can interact with other dialogs (such as "Find/Replace dialog" while hovering from tab to tab).

Fix #3324, close #5882
2019-07-09 01:54:07 +02:00
Don HO
2d15d90e02
Fix local variable shadows outer variable issues 2019-07-08 14:39:14 +02:00
Don HO
6ddbca3a60
Make Save dialog not resizable 2019-07-06 15:00:07 +02:00
Rajendra Singh
4ebcf61917
Enhance Save dialog GUI
Close #5587
2019-07-06 14:50:45 +02:00
AngryGamer
8b151ac991
Fix Sort Line as Integer regression
The regression was made by #5555:
ff20c264df

Close #5843, fix #5839
2019-07-06 02:51:01 +02:00
Rajendra Singh
e9277deaa6
Localize "Restore recent close file" command
Close #5557, fix #1476, fix #5137, fix #5672
2019-07-05 09:44:10 +02:00
Silent
401dbbc7d5
Disable integrity checks in Debug
Close #5884
2019-07-05 01:36:07 +02:00
Waldi Ravens
31ae813286
Allow plugins to load private DLL files from the plugins folder
The problem is the way Windows searches for dynamically linked DLLs (Dynamic-Link Library Search Order).
For example, LuaScript.dll is the plug-in DLL, loaded by Notepad++.exe, and lua53.dll is the auxiliary DLL, required by LuaScript.dll and also by user-installed Lua modules. Both DLLs should be located in \plugins\LuaScript. But, when Notepad++ calls LoadLibrary to load LuaScript.dll, Windows will not find the dynamically linked lua53.dll, hence the LoadLibrary call fails. This happens, because Windows will look in the application directory (which is the location of Notepad++.exe), and not in the LuaScript.dll directory.
To make Windows search in the LuaScript.dll directory, Notepad++ needs to call LoadLibraryEx with the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag.

Close #5802, close #5853
2019-07-04 20:29:05 +02:00
AngryGamer
6c034985a2
Fix crash when sorting out_of_range columns
Fix crash while sorting the right part of equal sign with column-selection:

100/20 = 5

1/3    = 0.333

22/7   = 3.14285714286

Note that empty lines between the numbers are intentional.

Fix #5865, fix #3391, close #3771
2019-07-04 01:39:52 +02:00
AngryGamer
8449d9f5ea
Add more OS information to debug info
Close #5869, close #5872
2019-07-03 21:19:33 +02:00
Don HO
d98ecfbb84
Fix a typo 2019-07-03 20:32:31 +02:00
Don HO
3f7956dc1b
Add "No to All" and "Yes to All" options in Save dialog
It allows users, while closing files, to reply Yes or No only for once in Save dialog for the all rest of modified files.

Close #5835 , close #4385,  close #4392
2019-07-03 09:41:35 +02:00
Rajendra Singh
bfd8cd0702
Initialize a member value correctly to prevent from crash
_langType in CmdLineParamsDTO could not be copied so Initialize its value to prevent from the crash.

Close #5838
2019-06-27 09:42:47 +02:00
Don HO
34cd6db3be
Update README.md 2019-06-25 23:27:31 +02:00
Don HO
027a1dda76
Update CONTRIBUTING.md 2019-06-25 21:10:57 +02:00
Rajendra Singh
105dcebb9e
Improved isAllDigits algo
Close #4530, close #5828
2019-06-25 21:03:33 +02:00
zufuliu
3f114a557a
Use only SC_IV_LOOKFORWARD for Python like folding.
Code folding block for Nim, VB and YAML includes tailing empty or whitespace only lines,
it's better for these lexers to use SC_IV_LOOKBOTH.

Close #5821
2019-06-25 19:52:13 +02:00
Rajendra Singh
9539a892eb
Code quality improvement: pass string by reference instead of value
Also remove not implemented methods addBufferToView(), moveBuffer() and doActionOrNot() from Notepad_plus.h

Close #5784
2019-06-25 14:21:35 +02:00
Don HO
57a49c3ba5
Add the commandline argument to open folders in "folder as workspace" panel
Add the ability to open folders in "folder as workspace" panel via command line argument "-openFoldersAsWorkspace".
Example:
notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02
The above command will launch notepad++ with folder as workspace panel by opening myProj01 and myProj02 in panel.

Close #4253, close #5100
2019-06-25 13:50:41 +02:00
Don HO
eef1bf0ae9
Fix x64 compiling issue 2019-06-25 13:10:50 +02:00
Don HO
d1256c3c83
Fix indent indicators continue to following code blocks for Python
Fix indent indicators continue to following code blocks even if there is no indent for Python

Fix #5815
2019-06-23 16:15:57 +02:00
zufuliu
17628b7dd9
Fix Python folding collapse isuue
Fix Python folding collapse isuue by using a fold level stack.

Fix #1898, close #5131
2019-06-22 11:02:00 +02:00
Rajendra Singh
690fd45f07
Fix splitter resizing issue
Fix resizing dockable window (e.g. search result, function list, folder as workspace) and resizing the doc splitter (other view) one after the other issue.

Fix #5516, fix #680, fix #2097, close #5554
2019-06-21 09:43:41 +02:00
briddums
fa254e579c
Fix an issue in IDM_EDIT_CLEARREADONLY
Using ^= for the readonly attribute will cause it to always change the bit.  So if CLEARREADONLY is called on a file that isn't read only, the file will become read only.

Fix #5768, close #5774
2019-06-20 20:32:14 +02:00
AngryGamer
6d3606074a
Fix tab dragging issues under WINE and ReactOS
Fix tab dragging issues on both multiline and single line mode under WINE and ReactOS.

Fix #4885, close #5792
2019-06-20 20:27:42 +02:00
Don HO
4aec70273c Notepad++ 7.7.1 release 2019-06-20 02:13:55 +02:00
Don HO
04174b17a5
Restore conventional chameleon icon 2019-06-16 15:29:46 +02:00
AngryGamer
895c315df0
Fix drag and drop tab regression
The bug: Drag a short name tab to accross a longger name tab (w/o releasing mouse click) will make a swich - dragging the logger name instead of the shorter name one.
This regression is due to PR "Fix Tab non-responding after dragging bug".

This reverts commit c6e1a95098ada4db56dd9032bd5b2d4fa92458a7.

Fix #5072, fix #5450, open #4885
2019-06-15 11:37:06 +02:00
Rajendra Singh
1a97d3c854
Workarround to MS ReadDirectoryChanges bug
This is an workaround to deal with Microsoft issue in ReadDirectoryChanges notification
If command prompt is used to write file continuously (e.g. ping -t 8.8.8.8 > ping.log)
Then ReadDirectoryChanges does not detect the change.
The workarround is about using Notepad++ notification while Notepad++ getting focus.

Close #5773
2019-06-14 11:23:06 +02:00
Rajendra Singh
ad72f7c36c
Fix Reload dialog displaying issue during File Monitoring
Fix #5586, fix #4847, close #5591
2019-06-11 20:59:27 +02:00
rddim
a86870d8a0
Update Bulgarian localization
Close #5746
2019-06-11 11:39:42 +02:00
Don HO
cc2d246ae2
Fix Cyrillic, Turkish and other languages input issue in ANSI mode.
For more information, check:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5671

Fix #5671
2019-06-11 08:38:35 +02:00
Don HO
344850aedb
Fix assert in AutoCompletion::isAllDigits methode
Fix debug mode assert in `AutoCompletion::isAllDigits` methode while inputting non ASCII characters.

Fix #5280
2019-06-09 16:04:53 +02:00
Don HO
d14cb43e9d
Remove VS2013 project file. 2019-05-31 22:35:32 +02:00
gagarekumar
b1c57b183c
Update marathi.xml
Close #5582

Changed some spellings in marathi and added item it 46250
2019-05-31 22:25:06 +02:00
Rajendra Singh
155c93d3b0
Fix "unhide lines" markers disappears issue
How to reproduce:
1. Select a few lines, trigger "Hide lines".
2. Select a few other lines, trigger "Hide lines" as well.
3. Unhide the topmost block by clicking on the appropriate marker.
4. The marker to restore the other block disappear. So the block is still hidden, it cannot be unhidden and there is no more visual indication there are hidden lines!

Fix #1112, Close #5665
2019-05-31 10:13:25 +02:00
Rajendra Singh
36230cb31c
Fix Plugin Menu is not localized issue When no plugin installed
Fix #5577, close #5592
2019-05-30 22:43:17 +02:00
Rajendra Singh
074a4bca93 Add "Copy File Name" command in context menu of "Folder as Workspace"
Close #5574, close #5597
2019-05-30 19:13:50 +02:00
Rajendra Singh
ff20c264df
Fix crash while sorting lines with numbers longer than 20 digits
Fix #5261, close #5555
2019-05-30 17:26:22 +02:00
Kjell Rilbe
3e993ff4c7
Adjusted a few Swedish shortcuts in the Find dialog to avoid clashes.
Fix #3699, close #5549
2019-05-30 16:42:04 +02:00
Andreas Urbán
4c27f55ac4
Add Tcl 8.6 keywords
Close #5644
2019-05-30 16:40:02 +02:00
TigerxWood
44fdad9443
Update romanian.xml for v7.6.6
Close #5658
2019-05-30 16:36:45 +02:00
Alexander Grund
43893e5a2c
Add CMake new keywords.
Close #5701, close #5511
2019-05-30 16:31:03 +02:00
Imre NAGY
8a048b0957
Enable Scintilla Virtual Space Option change from macro
Fixes #5463, closes #5500
2019-05-30 16:27:46 +02:00
dail8859
e5de0c6d44 Set embedded ASP default language to VB
Closes #5702, Closes #5677
2019-05-30 07:47:30 -04:00
Don HO
1a76bd5913
解決『一個shortcut,各自表述』的困擾 2019-05-26 20:34:43 +02:00
dail8859
6ae03f64e8 Add Python literal string interpolation
Closes #5698

Add support for:
- SCE_P_DECORATOR
- SCE_P_FSTRING
- SCE_P_FCHARACTER
- SCE_P_FTRIPLE
- SCE_P_FTRIPLEDOUBLE
2019-05-25 15:44:49 -04:00
dail8859
492870be0b Use SCI_TARGETWHOLEDOCUMENT and SCI_COUNTCHARACTERS 2019-05-25 14:50:30 -04:00
dail8859
9a2dfeb263 Add literal string style to SQL lexer
Closes #3305
2019-05-25 14:49:56 -04:00
dail8859
133211051e Update AutoIt keywords
Closes #3933
2019-05-24 12:00:21 -04:00
dail8859
c9e5b0b1e3 Add comment doc style to SQL lexer
Closes #3086
2019-05-24 11:59:52 -04:00
Don HO
23dd65549a Notepad++ 7.7 release 2019-05-19 20:34:03 +02:00
Don HO
6d365d89c0
One more country in which same-sex marriage is legal. Congrats Taiwan! 2019-05-19 12:30:53 +02:00
Don HO
1a438ddc61
Fix some coding styles 2019-05-16 20:56:41 +02:00
Pavel Nedev
4988ee3fd3
Fix file manager memory leak in case of out of disk space.
File manager uses its Scintilla view (with its default document) to save and load file so these 2 op won't be done on foreground.
The fix decreases the  reference of document to save correctly while the failure of saving (out of disk space).

Close #5659
2019-05-16 20:41:30 +02:00
Don HO
1cd454a8d5
Fix the regression: "Replace all" and "Mark all" work partially 2019-05-16 01:59:17 +02:00
Rajendra Singh
2e25741a22
Fix all plugins being removed problem while Plugin Admin romoves an old plugin (of old system).
Fix #5576, fix #5279, close #5593
2019-05-14 01:15:45 +02:00
Don HO
f07ae664b4
Revert "Allow undo after file reload and don't purge undo buffer"
This commit makes a performance issue: Re-loading the same text file over and over results in huge memory taken up
This reverts commit 198cf90c164814802cf25e1bb68942adf43e4b7c.
Fix #5595
2019-05-13 22:37:40 +02:00
Coding Seb
448144c228
Update french.xml
A small correction for the SHA-256 submenu texts in french are wrong

Close #5634
2019-05-11 18:09:36 +02:00
Artur
1bce41a69e
Russian lang - revision and fixes
Added new lines. Reworked a lot of text in MiscStrings + its organization.

Close #5497
2019-05-11 17:42:47 +02:00
popcorner
ace66fac7c
Update chineseSimplified.xml
Close #5580
2019-05-11 17:25:45 +02:00
rddim
97bae85cbc
Update Bulgarian localization
Close #5528
2019-05-11 16:44:26 +02:00
xomx
4a9b693c93
Update czech translation to v7.6.6
Close #5542
2019-05-11 16:40:55 +02:00
Artem Polivanchuk
3c5e031886
Update ukrainian.xml
Close #5628
2019-05-11 16:29:15 +02:00
Christian Grasser
3fb6db3e53
Uupdate for build with updated scintilla 4.1.4 and vs2017
Close #5635
2019-05-10 13:52:30 +02:00
Don HO
01d8349b1f
Security: switch from component sha256 checking to certificate checking. 2019-05-10 09:35:25 +02:00
Don HO
f548db82ed
Upgrade Scintilla - Update Scintilla build informtion 2019-05-08 22:10:04 +02:00
Don HO
d22d1609ab
Upgrade Scintilla - Adaptation of PowerEditor part 2019-05-08 11:13:21 +02:00
Don HO
2d90b38795
Upgrade Scintilla - integrate boost's PCRE in 64 build
And remove compiling warning.
2019-05-08 10:43:30 +02:00
Don HO
37c4b894cc
Upgrade Scintilla from v3.56 to v4.14 2019-05-04 21:14:48 +03:00
Don HO
b2191e9e6f
Fix unexpected behaviour after double clicking an URL
Close #5529
2019-04-17 20:50:08 +02:00
Don HO
687c6486a3
Fix cursor flickering after double clicking on URL
Fix #5529
2019-04-16 22:11:43 +02:00
Don HO
b2d4430df9
Force Python files to use spaces instead of tabs
Close #5506
2019-04-15 17:49:57 +02:00
Don HO
db02d7f129
Fix a regression of enlargement string label commit 2019-04-14 12:04:06 +02:00
Don HO
7b198fc952
Update 4 localization files 2019-04-13 16:57:18 +02:00
Don HO
bbb21cd299
Make some strings longger for fitting translation
Close #3058
2019-04-12 23:50:20 +02:00
Don HO
4c548d187d
Add "Count in selection" option in Find dialog
Close #722
2019-04-11 00:35:52 +02:00
Don HO
7e716a57f7
Add Ctrl+R shortcut for "Reload from disk" command
Close #20
2019-04-09 13:11:48 +02:00
Don HO
59cdab098f
Add some awesome quotes in easter eggs 2019-04-09 09:46:02 +02:00
Tmp341
b714338e30
Update Turkish localization
Added new entries according to 54d2bc5 commit.

Close #5484
2019-04-07 15:24:49 +02:00
stonecrusher
fbfa15378c
Fix '\' display problem in CSS while using themes
Remove Batang font for CSS tags

fixes #3952, closes #5490
2019-04-07 14:03:38 +02:00
Hiro5
3e36c1ed8e
Update catalan.xml
Close #5491
2019-04-07 13:51:21 +02:00
Don HO
d94ad58d97
Remove unnecessary sub-projects 2019-04-06 18:00:43 +02:00
Don HO
784eea3ef7
Remove the test of null pointer for delete
Since deleting a null pointer just does nothing:
https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
2019-04-06 16:43:23 +02:00
Don HO
f55c4e3d26
Update README.md 2019-04-04 23:42:58 +02:00
Don HO
70300154eb
Add Notepad++ GPG public key
So 3 copies of public key for verifying:
1 copy on main server
1 copy on GitHub
1 copy on key server
2019-04-04 23:20:45 +02:00
Don HO
f0593f1a81
Fix crash while right clicking on DocSwitcher's column bar
Fix #5479
2019-04-04 19:59:58 +02:00
Don HO
aaa743ea3f Notepad++ 7.6.6 release 2019-04-04 01:18:29 +02:00
Patriccollu
c1c8a4d253
Update corsican.xml for Notepad++ 7.6.5
Corsican translation has been updated to take the new strings into account. In addition, apostrophe signs, suspension points and quotation marks have been modified and unnecessary uppercases removed.

Close #5469
2019-04-03 13:19:50 +02:00
yasmise
b575a50c6a
Update japanese.xml to v7.6.5
Close #5461
2019-04-03 13:17:30 +02:00
schnurlos
9b946ada81
Update german.xml to v7.6.5
Following 54d2bc5528

Close #5460
2019-04-03 13:15:12 +02:00
rddim
64898cafe7
Update Bulgarian localization
Close #5459
2019-04-03 13:11:59 +02:00
Don HO
9443e2e8f2
Fix a crash issue due to cfa702a8a87272c276e4cb46c8979f2418ef25e2
cfa702a8a87272c276e4cb46c8979f2418ef25e2 (Retain read only flag state in session)

Crash can be reproduced by replacing the content by following code (replace YOUR_FULL_FILE_PATH by your existing full file path):

<NotepadPlus>
    <Session activeView="1">
        <mainView activeIndex="0" />
        <subView activeIndex="0">
            <File firstVisibleLine="128" xOffset="0" scrollWidth="8768" startPos="11571" endPos="11571" selMode="0" lang="Normal Text" encoding="-1" filename="YOUR_FULL_FILE_PATH" backupFilePath="" originalFileLastModifTimestamp="-1930112874" originalFileLastModifTimestampHigh="30727970" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="177" mapWrapIndentMode="-1" mapIsWrap="no" />
        </subView>
    </Session>
</NotepadPlus>
2019-04-02 23:30:49 +02:00
Don HO
6e791965bf Notepad++ 7.6.5 release 2019-03-31 23:23:07 +02:00
Don HO
a7d2b6ea6e
Fix "Remove Consecutive Duplicate Lines" not working on old Macintosh EOL
Close #5467
2019-03-30 09:33:17 +01:00
Don HO
0467b7d6cd
Fix a bug in command "Remove Consecutive Duplicate Lines"
...while the last line's prefix is the content of its previous line.

Fix #5462
2019-03-29 02:37:52 +01:00
Don HO
198cf90c16
Allow undo after file reload and don't purge undo buffer
Close #5273, fix #5141
2019-03-28 19:59:02 +01:00
Don HO
017e09a23d
Refactoring loadFileData() 2019-03-28 13:55:15 +01:00
Rajendra Singh
cf35168491
Allow some more characters (up to 64 char) in UDL name
Fix #5400, fix #4714, close #5458
2019-03-27 22:32:20 +01:00
Rajendra Singh
cfa702a8a8
Retain read only flag state in session
Close #4987, Fix #4409, Fix #4872, Fix #2970, Fix #2548
2019-03-27 22:15:10 +01:00
Don HO
54d2bc5528
Update English translation modele, + French & Chinese 2019-03-26 13:42:04 +01:00
Jon Bockhorst
b75ccd29e2
Added close unchanged tabs command
Close #5185, close #5007
2019-03-26 13:11:15 +01:00
Rajendra Singh
ab4c2edde6
Fixed Read-Only flag (user read only) flag issue
Close #4943, fix #4942
2019-03-26 09:55:21 +01:00
Don HO
6ceda544a6
Use new NppPluginList release 1.0.8 2019-03-26 02:51:17 +01:00
Don HO
486e2188b2
Revert "Update uchardet to 0.0.6 to improve UTF-8 detection quality"
There are several important regression in uchardet to 0.0.6. Hence this revert.
This reverts commit bfb7e863cc6cd20f9f32389bee289607a212b12b.

Fix #5299, fix #5310, fix #5202, fix #5440
Close #5414
2019-03-25 19:35:15 +01:00
Rajendra Singh
a660c60d21
Delete autoCompletion folder on uninstall correctely
Close #5422
2019-03-24 14:47:08 +01:00
yasmise
9d7e553284
Update japanese.xml to v7.6.5
Close #5377
2019-03-24 14:26:37 +01:00
Don HO
4d58027f17
[EU-FOSSA] Add an enhancement to prevent from the eventual crash. 2019-03-22 20:08:31 +01:00
Don HO
63d3a42c64
[EU-FOSSA] Fix crash issue by command "On Selection->Open File"
Fix crash issue by command "On Selection->Open File" while the number of selected characters is exeed 2048.
2019-03-22 13:57:28 +01:00
Don HO
f7d92eb992
[EU-FOSSA] Fix crash issue of User Define dialog while deleting a unallocated entry 2019-03-22 09:03:59 +01:00
Don HO
32f1dafe77
Remove unused command 2019-03-21 23:56:37 +01:00
Don HO
1360ff82ba
Revert "Add "Multi-Select Next Occurence" feature"
The current commit contain unstable behaviour and could lead to crash.
OTOH Update Scintilla component will get the same feature. So Scintilla will be updated in short term.

This reverts commit 455fcb2da404f8a2746d9ded630babe86c7f48ed.
2019-03-21 23:40:59 +01:00
Tmp341
95c7868cad
Update Turkish localization
Close #5379

Updated according to 5423b50, 157846c and da3a17e commits.
2019-03-21 22:55:23 +01:00
schnurlos
11a45b5929
Update german.xml to 7.6.3
Close #5381
2019-03-21 22:53:10 +01:00
Rajendra Singh
3939551280
Add Hindi support for installer.
Close #5433
2019-03-21 22:51:01 +01:00
altiereslima
f92bedaad3
Update brazilian_portuguese.xml
Close #5443
2019-03-21 22:47:51 +01:00
Rajendra Singh
b0b29c2adf
Updated Hindi Translation and corrected typo in English
Close #5448
2019-03-21 19:59:49 +01:00
Luca
c22690d54a
Update Italian localization to 7.6.5
Close #5446
2019-03-21 19:50:54 +01:00
rddim
dd718442b4
Update Bulgarian localization
Close #5372
2019-03-21 09:47:06 +01:00
Rajendra Singh
f7645fe27e
Fixed crash due to "File status auto-detection" enhancement
Close #5438
2019-03-21 00:48:45 +01:00
Don HO
28f87ca6de
Make better UI for the file status auto-update enhancement 2019-03-21 00:06:01 +01:00
Don HO
469f4a2c69
Update README.md 2019-03-20 02:23:25 +01:00
Don HO
55e67a95ab
Update README.md 2019-03-20 02:10:40 +01:00
Don HO
2062ba25da
Update README.md 2019-03-20 02:09:05 +01:00
Don HO
90609f6b44
Update README.md 2019-03-20 02:06:22 +01:00
Don HO
d7d733613f
Add GPG Public Key Fingerprint in readme 2019-03-19 18:23:00 +01:00
Don HO
a7c59e1776
Add "Multi-Select Next Occurrence" into menu
Update localization files
2019-03-19 02:52:13 +01:00
jmbockhorst
455fcb2da4
Add "Multi-Select Next Occurence" feature
* Added Ctrl+Shift+D to select next occurence of selection
* Left and right movement works for multiple cursors
* Enter/return a new line works for multiple cursors

Close #5322, close #5399
2019-03-18 23:09:01 +01:00
Don HO
0c5a42153b
Remove unecessary cast 2019-03-18 09:45:25 +01:00
Don HO
0f933b16c3
Update localization files 2019-03-18 02:49:10 +01:00
Don HO
23bd8e484c
Use new "File Status Auto-Detection" option by default
And make it compatible with the existent arguments.
2019-03-17 21:19:20 +01:00
Don HO
193c4ecc5b
Clean up - remove dead code. 2019-03-17 18:02:06 +01:00
Rajendra Singh
ba60fbdd71
Enhance "File status Auto-Detection" to avoid switching editing tab off behaviour
Fix a long waiting issue about file auto change detection, by adding a new option to avoid an annoying behaviour:
If file content is changed outside of Notepad++, while focus back to Notepad++, the current editing tab will be switched off, the changed file will be switched to and user will be asked to reload the file in question.
The new option remains the editing tab. User will be asked to reload it only if the changed file is switched in.

Fix #1087, Fix #3349, Fix #3333, Fix #3528, Fix #3138, Fix #3934, Fix #3160, Fix #1822, Fix #745, Fix #3599, Fix #4329, Fix #3971, Fix #4592, Fix #1116, Fix #2082
Close #4180, Close #5386, Close #4189, Close #1995, Close #2867, Close #3306, Close #2776, Close #2724, Close #2405, Close #4072, Close #4747

Close #5389
2019-03-17 12:21:16 +01:00
vlakoff
54350715e4
Remove some duplicate entries from lang files
Close #5383
2019-03-16 05:48:07 +01:00
Don HO
52a4e21af5
Remove ugly coding style 2019-03-16 05:33:50 +01:00
Don HO
6dfd22d52f
Add "View Current File in Browser" for Firefox, Chrome, IE & Edge
Restore deleted "Launch in browser" customized shorcuts in [EU-FOSSA] by implementing them in more secure way.
2019-03-16 04:19:02 +01:00
Christian Grasser
0cddeaa9f2
Remove BOM from 2 localization files
- corrected xml encoding from UTF8 with BOM -> required UTF8 for zulu and kurdish
- added zulu to localization list, see also #5209
- space -> tab in localizationString.h according to the rest of the list

Close #5209, close #5397
2019-03-15 03:13:31 +01:00
Rajendra Singh
1af4d0f7f4
Remove duplicate quote and fix a typo 2019-03-15 00:26:34 +01:00
Don HO
5356f648c2
Remove some ugly coding styles 2019-03-13 02:02:35 +01:00
Don HO
e4f9778358 [EU-FOSSA] Fix crash issue on shorcut command while its length exceed 260
Fix stack Buffer Overflow in Command::extractArgs
2019-03-11 09:58:13 +01:00
Don HO
3f5f69c6a6 [EU-FOSSA] Enhance external call code to avoid eventual arbitrary commands execution 2019-03-10 23:27:05 +01:00
Don HO
a2e9421669 Fix renamed new tab incorrect behaviour
Double-clicking on a "find all in current document" result in a renamed new tab get a prompt to create it.
2019-03-10 03:14:47 +01:00
Don HO
6580255a2b Fix a regression: double-clicking on a "find all in current document" result for an unsaved doc prompts to save it 2019-03-09 16:02:32 +01:00
Don HO
faa2fb4e8a Notepad++ release 7.6.4 2019-03-06 14:28:29 +01:00
Don HO
8b0a85bd56 Use new style open/save file dialog by default 2019-03-05 19:42:29 +01:00
Don HO
103409464d Remove DSpellCheck due to some performance issues 2019-03-05 02:33:34 +01:00
Rajendra Singh
da3a17e912 Support More localization
Close #5323
2019-03-04 09:53:01 +01:00
Don HO
157846c60a Fix a small regression on Find dialog status bar
Fix #5070, close #5094
2019-03-04 03:25:54 +01:00
Alberto-Dev
acd2cc6ba2 Adde missing styles to Zenburn theme for PowerShell
Close #5161
2019-03-03 18:51:55 +01:00
Jon Bockhorst
dd8ae05429 Add shift + scroll for horizontal scrolling
Close #2682, close #5184
2019-03-03 18:36:17 +01:00
Rajendra Singh
eb8eb25799 Make naming homogeneous in xml file
No more dummy surprises.

Close #5276
2019-03-03 16:38:26 +01:00
Rajendra Singh
ae980ce4d4 Don't allow restricted characters for tab file rename
Extend class StringDlg, so that characters which are not allowed in a file name such as |, :, >, < etc. will be restricted for tab's new name so that there will be no problem while saving backup file.

Close #5324
2019-03-03 15:51:31 +01:00
Rajendra Singh
c4f493a7c8 Fixed file open hang issue in old style mode
Fix #5368, close #5370
2019-03-03 15:19:27 +01:00
Don HO
496e93e1b0 Minor change for the installation 2019-03-03 03:29:55 +01:00
Don HO
dcd3942362 Fix Markdown not working in installer package of v7.6.3
and add Markdown in zip packages
2019-03-03 03:12:27 +01:00
Rajendra Singh
ea08e037d2 Remove autocomplete directory on uninstall
Close #5277
2019-03-02 17:47:47 +01:00
rddim
aba4716c7b Update Bulgarian localization
Close #56366
2019-03-02 17:43:11 +01:00
Rajendra Singh
50e9e87e44 Use the reference parameter instead of copy parameter and some clean up
Close #5360
2019-03-02 14:46:17 +01:00
Rajendra Singh
5423b50635 Fixed regression and support localization for "Open Plugins Folder..."
Close #5365
2019-03-02 14:34:06 +01:00
FishDoctor78
ea8514a15f Updated slovak.xml to version 7.6.2
Close #5229
2019-03-02 12:15:36 +01:00
Christian Grasser
52ed9af685 Fix "Find in files" tab translation issue on initial dialog call
Fix #5236, close #5272
2019-03-02 00:41:56 +01:00
TigerxWood
b9f01afdd7 Update romanian.xml to version 7.6.2
Close #5284
2019-03-01 23:05:42 +01:00
Artur
d14e6bd5a9 Updated Russian translation (ShortcutMapper, SHA)
Russian translation for Notepad++
Updated to v7.6.2:
- add tr. SHA-256
- add tr. ShortcutMapper
- minor fixes

Close #5193
2019-03-01 23:03:57 +01:00
bubbajdf
b630f300e0 Update Pig latin
Added SHA-256 changes

Close #5188
2019-03-01 23:00:55 +01:00
Hiro5
280eb2e7b1 Update catalan.xml
Close #5187
2019-03-01 22:58:27 +01:00
scootergrisen
2587fdf91f Update danish.xml to 7.6.2
Close #5208
2019-03-01 22:56:32 +01:00
Daniel Kwan
150ce13cda Update chinese.xml
Close #5221
2019-03-01 22:29:07 +01:00
rddim
1aeddf10dc Update Bulgarian localization
Close #5362
2019-03-01 22:22:27 +01:00
popcorner
f5f2f4a12c Update chineseSimplified.xml
Close #5180
2019-03-01 22:06:07 +01:00
Tmp341
ff0d53bfba Update turkish.xml
Close #5179
2019-03-01 22:02:42 +01:00
Jon Bockhorst
b08d08b38b Fixed issue of splitter panes not being equal
Fixed issue #3776 of splitter panes not being equal due to the widths not taking into account the size of the splitter. Also fixed a spelling error.

Fix #3776, close #5190
2019-03-01 21:55:56 +01:00
Don HO
627c00b433 Replace file extension r in Rebol by r2 & r3
Close #5203
2019-03-01 20:37:19 +01:00
Rajendra Singh
02096e93b8 Update Hindi localization
Close #5326
2019-03-01 13:54:40 +01:00
Rajendra Singh
21d73d44fe Fixed macro playback junk char display issue on Find dialog
Fix #5339, close #5340
2019-03-01 13:43:43 +01:00
Don HO
94c4608cc1 Fix a typo & add some comments 2019-03-01 13:35:26 +01:00
Don HO
c22f181d80 Add hashes (32/64) of nppPluginList.dll new release 2019-03-01 03:41:47 +01:00
Pavel Nedev
1dfa92c4b7 Add 'Open Plugins Folder...' command
Closes #5224, closees #5225
2019-03-01 01:03:34 +01:00
György Bata
c3f96d6b9c Hungarian translation update for 7.6.3
Close #5287
2019-02-28 20:19:03 +01:00
Rajendra Singh
2a4a70ed21 Pass the arguments by reference instead of by copy to improve the performance
Close #5341
2019-02-28 13:38:03 +01:00
Don HO
3baef49079 Add SHA256 checking of the authentity of used modules
In order to remove the code signing certificate dependency, SHA256 checking of the authentity of used modules (Scilexer.dll, GUP.exe and nppPluginList.dll) is added.
See the followling link for the detail information:
https://notepad-plus-plus.org/community/topic/17184/remove-code-signing-from-notepad
2019-02-27 10:14:36 +01:00
Don HO
1f5ba1803f Fix compiling error 2019-02-24 18:21:28 +01:00
Don HO
da2d14436c [EU-FOSSA] Enhance the macroable detection to avoid crash 2019-02-24 11:34:27 +01:00
Don HO
d7c942ee2f Fix auto-update detection issue due to wrong version number used 2019-02-23 13:06:44 +01:00
Don HO
5085d9c95a [EU-FOSSA] Check string length to copy to avoid crash in purgeMenuItemString function 2019-02-22 19:58:20 +01:00
Don HO
eec82cc2a6 [EU-FOSSA] Replace "lstrcpy" by "wcscpy_s" in "BabyGrid.cpp" to avoid the eventual crash 2019-02-22 13:37:11 +01:00
Don HO
bd7816755c [EU-FOSSA] Replace lstrcat by wcscat_s to avoid crash 2019-02-22 12:57:58 +01:00
Don HO
70cd3e5ea6 [EU-FOSSA] Check if the command is macroable before playing the recorded macro
Such situation can happen via the manual modification of shortcut.xml by hackers.
2019-02-21 20:11:42 +01:00
Don HO
4472620f30 Remove "Get More Plugins" menu item 2019-02-20 09:46:17 +01:00
Don HO
b90be4a05b [EURO-FOSSA] Fix a vunerability from "Search on Internet" command
Restrict the usage of customized search engine on only "http://" or "https://" url schema to avoid whatever application can be launched via "Search on Internet" command.
2019-02-20 00:34:28 +01:00
Don HO
5bcf55c59e Add stackoverflow as search engine 2019-02-19 13:05:02 +01:00
Don HO
188565fd4a Fix x64 compiling error 2019-02-18 23:23:55 +01:00
Don HO
0adc06322f [EU-FOSSA] Fix buffer overrun in Print dialog 2019-02-18 23:13:28 +01:00
Don HO
194475ce64 [EU-FOSSA] Fix a crash bug on Macro execution with arbitrary parameters 2019-02-18 01:27:26 +01:00
Don HO
011aa960fb Fix a regression on c4ff9f76a35775b865c01e3ec7142bf222c2d95a
Fix a regression on c4ff9f76a3
2019-02-17 20:13:04 +01:00
Rajendra Singh
3546268c23 Add the capacity to rename non-existing document's tab
Close #5311
2019-02-17 18:17:24 +01:00
Don HO
c4ff9f76a3 Make "new #" document drag-and-drop operation among instances right.
New correct behaviour: Dragging out a "new #" document from instance 1 and dropping it into instance 2 makes disappear "new #" document from instance 1, and nothing happens in instance 2.
2019-02-16 23:47:03 +01:00
Rajendra Singh
17c40213ca Tab context menu bug fixes
Disable "Open containing Folder in Explorer" and "Open Containing Folder in CMD" commands for document non-exist on hard disk.

Close #5312
2019-02-16 09:55:12 +01:00
Don HO
fbffdd8825 Load nppPluginList.dll as resource instead of binary for the sake of security
Checck the discussion here:
https://github.com/notepad-plus-plus/nppPluginList/issues/31

More information:
https://blogs.msdn.microsoft.com/oldnewthing/20141120-00/?p=43573
2019-02-15 00:01:12 +01:00
Rajendra Singh
7aa953c55a Fix a crash (a regression) due to replacement of lstrcpy by wcscpy_s
Close #5314
2019-02-14 00:03:37 +01:00
Don HO
501980782f [EU-FOSSA] Check Updater's certificate before launching it 2019-02-13 19:39:39 +01:00
Don HO
1ab1624800 Fix a crash regression due to a bad length count for a replacement of wcscpy_s 2019-02-13 02:22:15 +01:00
Don HO
7fe3cda1d0 [EU-FOSSA] Use wcscpy_s instead of lstrcpy to prevent from buffer overflow 2019-02-11 02:07:04 +01:00
Don HO
b381ea5353 Make name more explicite: "Remove Duplicate Lines" to "Remove Consecutive Duplicate Lines" 2019-02-10 13:43:41 +01:00
Don HO
ea1fd44ff0 [EURO-FOSSA] Fix stack buffer overflow on strcpy 2019-02-10 04:11:26 +01:00
Don HO
494b4bc0db Fix crash on exit after creating or importing a UDL
And fix deletion userDefineLang.xml file bug on exit.
2019-02-09 22:52:13 +01:00
Don HO
58037e07b1 [EU-FOSSA] Fix stack buffer overflow on wsprintf in WordStyle dialog
Also remove dynamic allocation for CB_GETLBTEXT and use local array instead by controlling buffer size.
2019-02-09 03:28:52 +01:00
Don HO
0438447194 [EU-FOSSA] Fix stack buffer overflow on LB_GETTEXT 2019-02-08 22:13:12 +01:00
Don HO
cdd13ecadc [EU-FOSSA] Fix stack buffer overflow on CB_GETLBTEXT 2019-02-08 12:38:34 +01:00
Don HO
dfb9b5e330 Enhance User Defined Language System for supporting more than one UDL file.
Several UDL xml files can be loaded to allow to manage/share UDL more easily.

1. The old file userDefineLang.xml is kept in its old location and is still used.
2. The new folder userDefineLangs is added beside of the old UDL default file. Any UDL xml file can go into the folder userDefineLangs and will be loaded as UDL.
3. A UDL xml file must contain one (or several) user defined language(s).
4. The created UDL via UDL dialog and imported UDL are saved in  userDefineLang.xml (default UDL file).

https://notepad-plus-plus.org/community/topic/17072/new-enhancement-for-user-defined-language-system
2019-02-07 23:40:17 +01:00
Don HO
51f10bdba5 Add "Remove Duplicate Lines" feature
Remove duplicate consecutive lines from whole document.
2019-02-01 01:00:36 +01:00
Don HO
e691370e4f [EU-FOSSA] Fix stack overflow in extractSymbol function 2019-01-31 20:17:59 +01:00
Don HO
c906af27b2 [EU-FOSSA] Fix stack overflow in exts2Filters function 2019-01-30 23:33:16 +01:00
Don HO
5eaf67b647 [EU-FOSSA] Fix stack overflow issue on User Define Language dialog 2019-01-30 01:52:18 +01:00
Don HO
c314ed1d8a [EU-FOSSA] DLL hijacking of plugins\Config\Config.dll loaded by Notepad++ 2019-01-28 19:54:50 +01:00
Don HO
1a356c2019 Notepas++ 7.6.3 release 2019-01-27 23:13:30 +01:00
Don HO
e5108cc0ea Add Markdown language.
via User Defined Language.
Markdown++: https://github.com/Edditoria/markdown-plus-plus

Included only for Installer.
2019-01-27 02:53:02 +01:00
Don HO
9fecbae030 Move plugins home from %ProgramData% to %ProgramFiles% for the sake of security
Whole specs here:
https://notepad-plus-plus.org/community/topic/16996/new-plugins-home-round-2
2019-01-25 02:10:11 +01:00
Don HO
c1bf412f57 [EU-FOSSA] Avoid to execute eventual hijacked binaries from Notepad++
If the same name binaries are placed in user's PC and the fake binaries path are set before the system ones:
https://superuser.com/questions/897644/how-does-windows-decide-which-executable-to-run/897645
then the fake ones are executed.
Remove these entries for avoiding to execute eventual hijacked binaries from Notepad++.
2019-01-22 00:04:06 +01:00
Don HO
abf78e84b2 [EU-FOSSA] Fix loading unexpected dll as plugin issue
Unexpect behaviour: if "<NppDir>\...dll" and/or "<NppDir>\plugins\..dll" exist, they will be loaded because Notepad++ try to load "<NppDir>\pluginName\pluginName.dll" as plugin, in our case "<NppDir>\plugins\..\...dll" and "<NppDir>\plugins\.\..dll" respectively.

The fix is excluding both directories ".." & "." to not load mentionned above unwanted dll.
2019-01-19 03:30:54 +01:00
Don HO
e813f0383b Fix x64 build error 2019-01-19 03:27:08 +01:00
Don HO
4421161848 [EU-FOSSA] Fix stack overflow issue while affecting "ext" field on stylers.xml 2019-01-18 23:09:00 +01:00
Don HO
ccdf7d8d8b [EU-FOSSA] Fix stack overflow in XML Parsing 2019-01-18 03:50:20 +01:00
Don HO
b9ce848881 [EU-FOSSA] Fix EXE Hijacking of gup.exe launched by Notepad++
Notepad++ launches updater (gup.exe) without checking the signature, that makes exe hacking possible.
The fix is to check updater binary's signature before launching it.
2019-01-18 00:40:01 +01:00
Don HO
ac2ac8cb4b Fix x64 build error 2019-01-18 00:34:40 +01:00
Don HO
5b1f530204 [EU-FOSSA] Fix crash issue due to heap overflow in clipboardHistoryPanel.cpp
When the amount of clipboard data is too important, it makes crash of function WideCharToMultiByte (win32 API).
The remedy is to capture this error to prevent Notepad++ from crash.
2019-01-17 13:56:41 +01:00
Rajendra Singh
694415f8af Make exception error more clear
Close #5212
2019-01-15 09:56:41 +01:00
Don HO
0f936707a2 [EU-FOSSA] Fix a security issue: RCE via unsanitized command line in "Open containing folder"
Summary of the Issue:
A remote code execution (RCE) vulnerability was found when a user opens a crafted containing folder in the command line. Code execution is possible by injecting a & followed by system commands into the name of the folder.

Steps to reproduce:
Download the attached archive on Windows: unzip_me.zip (F404758)
Unzip it and navigate into it
Open the txt file inside with Notepad++
Go to File -> Open containing folder -> cmd

Impact statement:
Successful exploitation of this vulnerability would allow an attacker to remotely execute arbitrary commands on the victim's computer.
2019-01-14 20:20:19 +01:00
Don HO
fd32585c14 List plugins in alphabetical order in Plugins Admin dialog 2019-01-14 20:02:47 +01:00
Don HO
70dee50dc7 Notepad++ 7.6.2 release Gilet Jaune Edition 2019-01-01 02:46:17 +01:00
Artem Polivanchuk
201b5afabe Update ukrainian.xml
Close #5132
2018-12-30 18:45:34 +01:00
Artem Polivanchuk
e335050fbf Update belarusian.xml
Update Belarusian translation

Close #5143
2018-12-30 18:41:30 +01:00
Luca
bb09cda273 Updated italian to 7.6.2
Close #5177
2018-12-30 18:18:46 +01:00
rra0137
b1285e7b1e Add Zulu localization
Close #5160
2018-12-29 12:40:35 +01:00
schnurlos
3f2126c758 Update german.xml (48503, SHA-256, ...)
Close #5172
2018-12-29 01:38:41 +01:00
yasmise
8c03066351 update japanese.xml to v7.6.2
Close #5169
2018-12-27 21:01:28 +01:00
rddim
1bc50df4e7 Update Bulgarian localization
Close #4954
2018-12-27 20:58:18 +01:00
Don HO
953919c406 Make new added SHA-256 hash features translatable 2018-12-26 00:06:04 +01:00
historicbruno
a8f3ef12dc Updates rust keywords and primitive types for 2018 edition
https://doc.rust-lang.org/book/ch03-02-data-types.html
https://doc.rust-lang.org/book/appendix-01-keywords.html

Close #5159
2018-12-25 20:10:19 +01:00
Don HO
589e21151d Change the access right of folders via installer
%PROGRAMDATA%\Notepad++\plugins\ will be restricted
%PROGRAMDATA%\Notepad++\plugins\Config\ will has full access
2018-12-25 19:25:38 +01:00
Don HO
62bfef46ef Remove unused "plugins\disabled" folder 2018-12-24 02:49:30 +01:00
Don HO
a76843cf65 Remove auto-completion files from the old location while update 2018-12-23 15:02:50 +01:00
Don HO
90c724ae43 Change folder location of auto-completion for zipped package 2018-12-23 04:44:48 +01:00
Don HO
d6f5b7b13a Change folder location of auto-completion
from "<NPP_INST>\plugins\APIs\" to "<NPP_INST>\autoCompletion\"
2018-12-23 04:27:56 +01:00
Don HO
699b9b08ed Add Plugins Admin module into zipped package 2018-12-23 01:20:32 +01:00
Don HO
6eabece7ad Make Plugin Admin excluded from Windows XP because wingup doesn't work
under XP
2018-12-22 18:47:27 +01:00
Jon Bockhorst
4f24f81eb8 Add new feature: double click splitter resets panes to equal size
Close #5118
2018-12-20 09:51:42 +01:00
Don HO
412c5986a0 Fix a compiling error due to bad formatted ressource file. 2018-12-17 14:11:41 +01:00
Don HO
a079013c22 Fix the plugin crash issue due to the inexistent path
Inexistent path %APPDATA%\Notepad++\plugins\Config\ made some plugins crash.
In this PR the folder is checked (and created if it doesn't exist) by each launch of Notepad++.
2018-12-17 10:16:01 +01:00
Don HO
647651b7ee Add generation of SHA-256 hash feature 2018-12-16 20:14:30 +01:00
Don HO
e7b04a6a1a Notepad++ 7.6.1 release 2018-12-13 02:37:11 +01:00
Don HO
b709bc9f1b Fix installer's plugins copy issue under Linux (by using WINE) 2018-12-11 18:50:57 +01:00
Don HO
e9563aeb8c Remove unecessary message boxes from some NPPM API 2018-12-09 22:29:34 +01:00
Tmp341
6c6a4d5bbd Updated Turkish.xml
Updated after english.xml [fab3db5](fab3db50df (diff-2a8496e2537c34b95cbeca007cd2346b)) and [1719000](17190009bf (diff-2a8496e2537c34b95cbeca007cd2346b)) commits.
Close #4960
2018-12-09 16:06:12 +01:00
Rajendra Singh
6c73e5cba7 Fixed printer header footer font issue
Fix #4749, close #5003
2018-12-09 16:02:03 +01:00
xomx
9175b55ff0 Update Czech Translation
Update czech.xml for Plugins Admin

Close #5106
2018-12-09 15:54:33 +01:00
Christian Grasser
0686435d1a Fix invalid xml syntax issue from #4572
Close #5112
2018-12-09 15:50:23 +01:00
KOLANICH
41fa7f6d95 Add and reorder keywords in Python
Added nonlocal and moved async and await according to lexicographical order
2018-12-09 15:42:30 +01:00
Don HO
03daf5559e Make installer more coherent for the option doLocalConf.xml
If the install path is under %PROGRAMFILE% then option to copy doLocalConf.xml will be unchecked and disabled.
2018-12-08 17:33:03 +01:00
Don HO
15ef9bd052 Change nppPluginList.dll installation locaion
From %LOCALAPPDATA%\Ntepad++\plugins\Config\ to %PROGRAMDATA%\Ntepad++\plugins\Config\
2018-12-06 02:31:39 +01:00
Don HO
775d204ef9 Change loading plugin list location
Loading plugin list location is changed from %LOCALAPPDATA%\Notepad++\plugins\Config\ to
%PROGRAMDATA%\Notepad++\plugins\Config\

Enhance API NPPM_GETPLUGINSCONFIGDIR
2018-12-04 13:38:25 +01:00
Kovra
4f67c09859 Make text display right in summary panel
Close #5037

User @buggalicious found the summary text is displaying a count of characters without line endings not blanks.
Patch should address #3849 by updating the text to describe what is actually being counted.
2018-12-03 03:09:31 +01:00
Brad G
184a6f6ce5 PHP: Add styler entry for complex variables
Close #5066
2018-12-03 02:39:06 +01:00
0017031
d7507013e0 Enhance pluginsAdmin.h
use _TCHAR and _istdigit() to avoid wchar/char mismatch, and possible undefined behavior.
https://en.cppreference.com/w/cpp/string/byte/isdigit

Close #5067
2018-12-03 02:11:30 +01:00
mogu1121
b4f012985f Add new JavaScript API for auto-completion
Close #5023
2018-12-03 00:55:06 +01:00
Christian Grasser
678321df97 Merge branch 'chcg-xml_syntax_issues' 2018-12-02 23:58:55 +01:00
Christian Grasser
ef29c78945 Merge branch 'xml_syntax_issues' of https://github.com/chcg/notepad-plus-plus into chcg-xml_syntax_issues
checked all files of the APIs dir for xml syntax issues and corrected the invalid files

Tested with plugin tools and checked also against https://www.xmlvalidation.com/

The current invalid xml syntax seems to have no bad influence on the functionality of the files.
2018-12-02 23:55:27 +01:00
bubbajdf
f632002c62 Fix a entry of Pig latin
Corrected GENERAL to ENERALGAY
Close #5069
2018-12-02 23:37:16 +01:00
vlakoff
ef1b04b6fc Adjust displayed name for Swift language in stylers
Close #5052
2018-12-02 23:27:20 +01:00
nikita.smirnov
087add6490 Remove DIRECTIVE from VHDL styles table
Close #4931
2018-12-02 23:24:44 +01:00
Luca
67b5fcd8c5 Update Italian translation
Add plugins admin translation entries

Close #5095, close #4953
2018-12-02 22:45:17 +01:00
Rajendra Singh
6e4f591bd1 Fix typo and remove unecessery files
Close #5071
2018-12-02 18:36:48 +01:00
Artur
0f9aaf1626 Update russian.xml
Add PluginsAdminDlg's entries

Close #5008
2018-12-02 16:53:12 +01:00
Rajendra Singh
db8b20dd15 Update Hindi translation
Add new localization entries for Admin plugin

Close #5070
2018-12-02 03:27:13 +01:00
schnurlos
06743d8db4 Update german.xlm (Plugins Admin)
Close #5073

Additional encloses 1afc5b3adf from polluks & https://github.com/notepad-plus-plus/notepad-plus-plus/pull/4969 from sloper42
2018-12-02 03:24:21 +01:00
Robert Wilhelm
77cdbe7179 german.xml: fix typo
Close #4969
2018-12-02 03:21:56 +01:00
Per Persson
c85f9f2177 Swedish translation typo
Spelling 'öpnnas' -> 'öppnas'

Close #4970
2018-12-02 03:12:36 +01:00
Andriy Poznakhovskyy
37e67c098f Update occitan.xml
XML syntax error fix, `<Menus>` was replaced with <Menús>

Close #5081
2018-12-02 02:49:03 +01:00
Andriy Poznakhovskyy
505e7a05e6 Update spanish.xml
XML syntax error, `<` was typed instead of `&lt;`

Close #5082
2018-12-02 02:46:00 +01:00
andre2007
4128e8f04d D language keywords update
Close #5080
2018-12-02 02:41:09 +01:00
Andriy Poznakhovskyy
5c227b25c6 Update portuguese.xml
XML syntax error fix, `&amp;` was typed as `&`

Close #5083
2018-12-02 02:35:07 +01:00
Andriy Poznakhovskyy
0a8a337168 Update brazilian_portuguese.xml
XML Syntax error fix, `quot;` was specified as `"` inside XML attribute

Close #5084
2018-12-02 02:31:42 +01:00
yasmise
6c5e4db085 Add Japanese translations for Plugins Admin
Close #5090
2018-12-02 02:10:16 +01:00
Don HO
f8aba0122e Make %PROGRAMDATA%\Notepad++\plugins\ as default plugins installation location
And remove %LOCALAPPDATA%\Notepad++\plugins\ location
2018-12-02 00:58:07 +01:00
Christian Grasser
24a839434c checked all files of the APIs dir for xml syntax issues and corrected the broken files 2018-12-01 15:09:39 +01:00
Don HO
c919dc6270 Notepad++ won't load plugins from %LOCALAPPDATA%\Notepad++\plugins\ anymore
Notepad++ loads plugins only from 2 locations:
1. %PROGRAMDATA%\Notepad++\plugins\ - while Notepad++ installed on: %PROGRAMFILES%\Notepad++\ or wherever without doLocalConf.xml
2. <NPP_INST_DIR>\plugins\ - while Notepad++ installed on wherever (except in %PROGRAMFILES%\Notepad++\) with doLocalConf.xml
2018-11-28 13:31:44 +01:00
Don HO
5df59ba2fc Add Pig latin language in installer 2018-11-28 02:56:02 +01:00
Don HO
b466e5bf08 Add Pig latin language 2018-11-28 02:31:37 +01:00
Don HO
5080fdf2d8 Add Plugins Admin translation entries into english.xml
And translate Plugins Admin in Chinese and French
2018-11-27 13:20:51 +01:00
Don HO
78a0f57ed1 Make Plugins Admin translatable 2018-11-27 13:12:56 +01:00
taveirajc
6cf238a6ab Update Brazilian Portuguese translation
Close #5024
2018-11-25 22:51:08 +01:00
Opher Shachar
c0fb9f3578 Update Hebrew for menu bar
Close #5025
2018-11-25 22:46:34 +01:00
Daniel Kwan
7f1cbfea89 Update chinese.xml
- Fixed "Chinglish" Grammar (Original Chinese translator's defence: they are not "Chinglish", they are good Chinese translations which are not accepted by "normal people", who lakes the imagination and creactivity)
- Unified Translation for some terms
- `$STR_REPLACE` -> `$STR_REPLACE$`
- Added Several Translation
2018-11-25 19:05:11 +01:00
Don HO
44baa33d1e Add the option to installer for installing the plugins in %PROGRAMDATA% 2018-11-24 17:30:19 +01:00
Don HO
61402a354f Add elevation capacity for wingup if plugins are installed in %PROGRAMDATA%
While plugins are in %PROGRAMDATA%, we need admin's rights to modify them. This PR detects the plugins installation in %PROGRAMDATA%, then launch wingup with UAC.
2018-11-24 16:26:24 +01:00
Don HO
116f400753 Add thee new capacity to load plugins from %ALLUSERSPROFILE%
By putting an empty "pluginsForAllUsers.xml" file, all the plugins will be loaded from %ALLUSERSPROFILE%\Notepad++\plugins\.
2018-11-21 02:20:36 +01:00
Don HO
f03ce289d3 Fix "Import plugins" not working issue. 2018-11-17 19:01:24 +01:00
Don HO
3465cac7ce Fix Installer HI-DPI GUI glitch. 2018-11-14 03:37:13 +01:00
Don HO
1ef92c6cce Fix a "Frenglish" issue. 2018-11-14 00:42:14 +01:00
Don HO
5251bdd6db Because some people don't love sex...
...so change the awesome spiritual quote to a boring one.
2018-11-13 18:06:11 +01:00
Don HO
40fbf0da61 Notepad++ 7.6 release 2018-11-13 02:31:46 +01:00
Don HO
f1534118e1 Add a spiritual quote into Installer 2018-11-13 02:29:34 +01:00
Adrian Stanciu
8ea3c4fe55 Make installer DPI-aware
Close #4947
2018-11-12 23:29:49 +01:00
Rajendra Singh
fd52450d16 Fixed memory leaks
Close #4945
2018-11-12 22:56:28 +01:00
Don HO
17ac06f83a Fix a regression of fail removing different architecture plugins 2018-11-12 03:37:42 +01:00
Don HO
0abde25440 Clean up GUI in Plugins Admin 2018-11-12 02:21:21 +01:00
Silent
acb30b9e61 Fix "Close all but this" behaviour if multiple views are present and some files are dirty.
This PR contains three types of changes:

1. Actual bug fix. This bug appeared, because prior to closing files, "Close all but this" attempts to save modified files, and for that it needs to switch views. Those views were not restored after that, however - so further actions could end up being executed on a wrong view. Those are changed commented with // We may have to restore previous view after saving new files.

2. Another potential bug fix. Closing files in both views could result in views being switched (it may or may not, I did not manage to unambiguously find that out from the code). To prevent any possible issues, I stored view IDs in viewNo. If those could never switch, then the code changes nothing - but if they could, it fixes a potential bug.

3. Code clarity fix in Notepad_plus::switchEditViewTo. std::swap makes it more obvious this code is there only to swap values around!

Fixes #4911, Close #4920
2018-11-10 16:45:37 +01:00
Rajendra Singh
94cf9d53ca Fix tool tip in document switcher showing the old name issue (after being renamed).
Fix #4910, close #4936
2018-11-10 13:53:53 +01:00
Rajendra Singh
b9b3faf307 Fix crash issue due to Unix style path input in Open file dialog.
This issue occurs when "Use New Style Dialog" setting is not used .
Ctrl+O, then type D:/*.log and hit Enter.

Fix #4946, close #4986
2018-11-10 12:15:08 +01:00
Cyril Ganchev
08b0156472 Fix auto-indent issue by typing Enter on empty line.
Do not alter indentation if we were at the beginning of the line and we pressed Enter.

Fix #443, close #4991
2018-11-10 04:17:17 +01:00
Chris Cammack
fd51703ad8 Fix a performance issue for swiching back to folded document.
Use the _isFolding flag to fix several overlooked edge case hangs.
This pull request fixes additional hangs I found after #4867 when working with deeply-nested fully-folded files. The hangs are easy to reproduce by following these steps:

Download the sample file https://raw.githubusercontent.com/notepad-plus-plus/notepad-plus-plus/master/PowerEditor/src/Parameters.cpp
Open the downloaded file by itself in NPP and fold it using Alt-0
Create a new empty tab and remain focused on it
Perform the six actions below, each of which will produce a hang as NPP tries to change focus back to the first tab. On my machine, each hang lasts about 30 seconds. After control returns, refocus the empty tab again and try the next action.
Use File>>Open to reopen the downloaded file, even though it is already open
Drag and drop the downloaded file onto NPP to reopen it
Double-click the downloaded file to reopen it
Right-click the downloaded file and select Edit with Notepad++ in the context menu
Open the downloaded file from the command line: C:\Program Files (x86)\Notepad++\notepad++.exe" .\Parameters.cpp
Click the red [X] in the upper right corner to close NPP
After applying the patch, none of the hangs should happen any more.

Close #4999
2018-11-10 03:05:13 +01:00
Christian Grasser
6cdac077f2 Add autoit autoCompletion
Add autoit.xml autoCompletion from http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files#A -> http://notepad-plus.sourceforge.net/commun/userDefinedLang/Autoit.xml

Close #4977
2018-11-09 20:24:48 +01:00
Silent
bfb7e863cc Update uchardet to 0.0.6 to improve UTF-8 detection quality
This PR updates uchardet (https://www.freedesktop.org/wiki/Software/uchardet/) to the newest stable version (0.0.6).
This version seems to improve UTF-8 detection quality, so updating this dependency is expected to squash numerous charset detection issues.

Fixes #4878, Fixes #4767, Fixes #4428, Fixes #4246, Fixes #3705, Fixes #3588, Fixes #431, Closes #4925
2018-11-09 13:49:58 +01:00
Silent
ac09857656 Fix UTF-8 detection for 4 byte characters
This PR fixes UTF-8 detection for 4 byte characters (a 2002 code used by npp assumed characters longer than 3 bytes are invalid -.-). This means such files will not be erroreously displayed as ANSI anymore.

Steps to reproduce:

Create a new UTF-8 file (w/out BOM)
Paste eg. this character 🍪 and save.
Reopen the file again.
Prior to this PR, file is detected as ANSI (even if Notepad++ is configured to default-assume UTF-8!!!). After this fix, file gets opened as UTF-8 correctly.

Fixes #4730, Fixes #3986, Fixes #3441, Fixes #3405, Closes #4922
2018-11-09 13:39:00 +01:00
david082321
11e479326c Update chinese.xml
Change "$STR_REPLACE" into "$STR_REPLACE$". To fix the problem that file name can't display.
把 $STR_REPLACE改成 $STR_REPLACE$,修正檔名無法正常顯示的問題。

Close #4944
2018-11-09 13:13:53 +01:00
Adam Stachowicz
5685a50e58 Polish translation: Ampersand fix
Close #4935
2018-11-09 13:10:45 +01:00
Jeffrey Ozanne
0aafe91be9 Fixed Typos in quote eastereggs
Close #4948
2018-11-09 12:58:50 +01:00
Christian Grasser
2d81570be5 added lua autoCompletion
added lua autoCompletion from http://ageekandhisblog.com/notepad-plugin-lua-corona-api-autocompletion/
as the one mentioned under http://docs.notepad-plus-plus.org/index.php?title=User_Defined_Language_Files#L -> http://www.davidcarrigg.com/uploads/LuaLangFile.zip is no longer available

Close #4978
2018-11-09 12:41:51 +01:00
Don HO
a87e89ea92 Add new Plugin message NPPM_GETPLUGINHOMEPATH in API
The new message NPPM_GETPLUGINHOMEPATH allows plugins to get plugin home root path. It's useful if plugins want to get its own path by appending <pluginFolderName> which is the name of plugin without extension part.
2018-11-07 23:30:59 +01:00
Don HO
8dea25feb5 Refactoring for optimizing/simplifying the code for getting plugin root path 2018-11-07 22:51:27 +01:00
Don HO
4fa910c74b Add nppPluginList into the installer. 2018-11-06 13:31:20 +01:00
Don HO
e61fe03d89 Install default plugins into new location
Install default plugins into %USERPROFILE%\AppData\Local\Notepad++\plugins\ instead of %PROGRAMFILES(x86)%\Notepad++\plugins\
2018-11-04 22:21:04 +01:00
Don HO
113212547f Remove allowAppDataPluginsLoading option from the installer 2018-11-03 20:57:10 +01:00
Don HO
e9a489c5c9 Remove allowAppDataPlugins.xml detection.
Simply plugins loading emplacement:
NPPM_GETAPPDATAPLUGINSALLOWED to check to see if loading plugins from "%APPDATA%\..\Local\Notepad++\plugins" is allowed.
If doLocalConf no
else yes
2018-11-03 19:45:04 +01:00
Don HO
7e555b67fc Remove the legasy plugin loading way and apply only the new plugin loading method
1. Load plugins only from the new plugin folder structure. example: Notepad++\plugins\myAwesomePlugin\myAwesomePlugin.dll
2. Load plugins from only one directory. If doLocalConf.xml is present, then it will be <NPP_INSTALLATION_DIR>\plugins\
   otherwise %USERPROFILE%\AppData\Local\Notepad++\plugins\
2018-11-03 12:39:23 +01:00
Don HO
ee763ca0ad Change Plugins Admin installation behaviour
Old installation behaviour is loading installed plugins without restart Notepad++, which could make some plugins loading uncomplete.
New behaviour use the same implementation of plugin updating, witch quit notepad++ for plugin installation then restart Notepad++.
2018-11-01 18:42:35 +01:00
Don HO
fdf954f714 Revert "Fix scintilla restoring wrapped buffer issue" due to a serious performance issue
Check https://notepad-plus-plus.org/community/topic/16468/notepad-7-5-9-release

This reverts commit 40192bda0ccbd18077abb02fac30292dfe8e62f4.
2018-10-31 00:38:26 +01:00
Don HO
ab8b5dc7a0 Shift the post installation (checking if the plugin is deployed correctely) responsability to WinGup
For the sake of retro-compatibility, change the way of plugin packaging:
1. The plugin DLL file should be placed at the root level of the ZIP file. It has to be the only DLL file on this level.
2. The root level of the ZIP file can also contain additional files and folders which will be copied to the users harddisk as well.
3. Everything what gets copied from the ZIP file will be stored under <Npp-installation-folder>\plugins\<plugin-name>.
2018-10-29 20:21:15 +01:00
Don HO
b01a396668 Remove SHA-256 hash checking from Plugins Admin
Pass hash to check to WinGup. WinGup will verify sha-256 hash of zip package for the plugin installation and update.
2018-10-27 15:41:12 +02:00
Don HO
c531a4d42a Send NPPN_READY notification to loaded plugins after their installation by Plugin Admin 2018-10-25 20:48:36 +02:00
Don HO
ef5d07771a Fix checking plugin crash issue due to plugin packaging error. 2018-10-25 03:34:49 +02:00
Don HO
519fecbb82 Add SHA-256 implementation and use sha-256 instead of md5 in Plugin Admin 2018-10-24 09:45:35 +02:00
Don HO
e919d4d05a Remove getFileContain function's limitation. 2018-10-24 00:54:52 +02:00
Don HO
ec340000cc Make command line more clear. 2018-10-22 09:25:00 +02:00
Don HO
312ddff837 Notepad++ 7.5.9 release 2018-10-15 00:25:52 +02:00
Don HO
45812764cd Update "wingup for Notepad++" to version 5.0.3 2018-10-12 23:42:00 +02:00
Silent
0db302953b Add -notepadStyleCmdline for Notepad-style command line processing (/p -> -quickPrint and joining paths)
Close #4620
2018-10-12 00:41:52 +02:00
Silent
f0821d9835
Add stripIgnoredParams to implement "Wish: "ignore first item" command line argument (for replacing Notepad)"
Closes #852
2018-10-08 22:18:44 +02:00
Silent
74d39b1cec
Greatly simplify commandline parsing 2018-10-08 21:55:52 +02:00
Sergei Bulgakov
f159a62163 Update Russian translation
Add w/ BOM and remove w/o BOM
Close #4605
2018-10-08 09:41:54 +02:00
Rajendra Singh
0bdbf348d9 Fix Plugin directories not removed regression after uninstalling Notepad++
Close #4771
2018-10-08 09:25:54 +02:00
Chris Cammack
fe458a7072 Fix hanging problem while switching back a fully-folded document by using shortcut (Ctrl-TAB)
Use the _isFolding flag to avoid expensive redundant operations that cause an apparent hang when opening or switching tabs to a large fully-folded file.

The released version of Notepad++ uses the _isFolding flag to avoid expensive redundant operations when switching to a fully-folded tab using the mouse pointer.

However, opening a fully-folded file or switching to a fully-folded tab with the keyboard can produce a delay so long that Notepad++ appears to hang forever.

The hang is 100% reproducible and can be demonstrated in less than 60 seconds:

Download a deeply-nested file such as https://raw.githubusercontent.com/notepad-plus-plus/notepad-plus-plus/master/PowerEditor/src/Parameters.cpp or https://github.com/notepad-plus-plus/notepad-plus-plus/files/1555939/nppTest.zip
Open the file in Notepad++ and fold it using Alt-0
Create a new empty tab
Switch back and forth between tabs using the mouse, which is fast
Switch back and forth between tabs using the keyboard (Ctrl-Tab, Ctrl-Page(Up|Down), Ctrl-NumPad[0-9]), which will hang
This pull request applies the existing _isFolding flag to the forgotten keyboard and file open operations and prevents the hang caused by opening or switching tabs to a fully-folded file.

Fix #3996, fix #1128, fix #1806, fix #4871
Close #4867
2018-10-07 23:42:47 +02:00
CFrank
84938b7b0f Add new plugin API NPPM_REMOVESHORTCUTBYCMDID to allows plugins to remove unneeded shortcuts
Fix #4674, close #4687
2018-10-07 03:08:34 +02:00
Rajendra Singh
efbc3b2160 Fix Tail moniotoring incoherent status after deleting a monitored file
Steps to Reproduce the Issue:

1. Open two files a.txt (first tab) and b.txt (second tab)
2. Start tail monitoring for a.txt (first tab) and activate b.txt (second tab)
3. Now delete a.txt from the explorer
4. Come back to notepad++
5. Observe the behavior now

Unexpected Behavior:

At step 4, if user choose to keep the file, a.txt is still marked as monitoring. As soon as del action occurs, b.txt automatically comes under "tail monitoring".
If user choose to remove file, a.txt should be removed from the notepad. This is absolutely fine.

Fix #4750, close #4751
2018-10-05 23:49:55 +02:00
Rajendra Singh
17190009bf Fixed Typo in localization files
Close #4897
2018-10-04 09:01:56 +02:00
Pavel Nedev
456ff70554 Fix issue with wrong smart highlighting when it is disabled
Fixes #4774, close #4893
2018-10-04 00:55:44 +02:00
Rajendra Singh
55394cfb08 Improve Hindi translation
Close #4844
2018-10-04 00:46:00 +02:00
Rajendra Singh
90ab58aea8 Fix last active tab is ignored on N++ restart issue
Fix #4716, fix #4755, close #4722
2018-10-03 09:36:44 +02:00
Pavel Nedev
abc6bc144b Fix possible file corruption during backup or power loss or other abnormal N++ termination
Fixes #240, Fixes #2381, Fixes #2883, Fixes #4346, Fixes #4655 and probably more issues related to loss of data.
Close #4803
2018-10-03 01:42:57 +02:00
Wurstbrot
c6e1a95098 Fix Tab non-responding after dragging bug
Short problem description:
Drag/drop a tab with the mouse to another position,
then all other tabs can't be activated with clicking anymore.

Also a missing include was added, that prevented compilation

Fix #4885, close #4886
2018-10-02 20:18:11 +02:00
Christophe Meriaux
40192bda0c Fix scintilla restoring wrapped buffer issue
When we are restoring a wrapped buffer,
we send SCI_VISIBLEFROMDOCLINE message to convert a file line number to a visual line number,
scintalla seems to ignore the "wrap" option of this buffer.
Workaroud: execute SCI_ENSUREVISIBLE after set position and before executing SCI_VISIBLEFROMDOCLINE.

It seems that this issue has been encountered in ScitillaComponent/FindReplaceDlg.cpp in Searching::displaySectionCentered

Fix #4571, close #4624
2018-10-02 02:52:34 +02:00
Don HO
050ba58a80 Add new quotes. 2018-10-01 02:38:30 +02:00
Don HO
d2c32ddc1d Add 2 more spitural quotes 2018-09-30 13:12:35 +02:00
Don HO
f0d130bbc5 Make plugin installer threadable. 2018-09-29 17:12:19 +02:00
Don HO
b662bcf5ae Add checking MD5 ability in Plugin Admin
Check MD5 after installing to prevent from MITMA
2018-09-27 09:56:58 +02:00
Don HO
6fb78db414 Fix a passing argument to wingup bug for Plugin Admin. 2018-09-24 02:25:33 +02:00
Don HO
da49749438 Define the plugin-list's path for Plugin Admin
It will be in plugins/Config/
2018-09-21 20:16:30 +02:00
Don HO
bfff12fd9c Add the load capacity after installing the plugins in Plugin Admin. 2018-09-20 09:24:11 +02:00
Don HO
6510889ba0 Add version management for Plugins update in Plugin Admin 2018-09-19 09:21:23 +02:00
Don HO
74e89bdf5f The best easter egg I could hide ;) 2018-09-19 00:32:26 +02:00
Don HO
71dd261a50 Plugin Admin: Change the way to remove & update plugin
uninstall: tell user to restart Notepad++ - Gup.exe remove all - clean in batch - relaunch Notepad++
gup.exe -clean "appPath2Launch" "dest_folder" "fold1" "a fold2" "fold3"
gup.exe -clean "c:\npp\notepad++.exe" "c:\temp\" "toto" "ti ti" "tata"

update:    tell user to restart Notepad++ - Gup.exe download - remove all in directory - unzip/clean in batch - relaunch Notepad++
gup.exe -unzip -clean  "appPath2Launch" "dest_folder" "toto http://toto" "titi http://titi" "tata http://tata"
gup.exe -unzip -clean "c:\npp\notepad++.exe" c:\temp\ "toto http://toto" "ti et ti http://titi" "tata http://tata"

Install:   GUp.exe download - create directory - unzip: one by one, no relaunch
gup.exe -unzipTo c:\donho\notepad++\plugins "https://github.com/npp-plugins/mimetools/releases/download/v2.1/mimetools.v2.1.zip"
2018-09-13 23:07:22 +02:00
Pavel Nedev
b48c086831 Fix wrong backup file deleted isuue
On doClose() delete the right backup file

Fix #4744, close #4745
2018-09-03 00:33:40 +02:00
Pavel Nedev
4969f377ad Fix backup not fully disabled issue
Fixes #4663, close #4738
2018-09-03 00:22:42 +02:00
Artur
2439a4eec0 Update russian.xml
Update russian.xml due to the confusion BOM with FI

Close #4695
2018-09-02 18:11:54 +02:00
Motaz Alnuweiri
ab3f5e5651 Update Arabic language to v7.5.5
Close #4759
2018-09-02 17:48:57 +02:00
Daniel Kwan
e32d89c629 Big Update of the Translation of Chinese (Trad.)
What makes me edit the translation is the translation from "No Cloud" (Cloud Settings) to 晴朗無雲 (Sunny with NO CLOUD)... Finally, I reviewed the whole translation once. I'm from Hong Kong and this is actually my first pull request.

Close #4773
2018-09-02 17:39:35 +02:00
Magnus Österlund
f92d5e69ad Update Swedish localization
Close #4777
2018-09-02 17:14:20 +02:00
Stefan
e1ad5ccf43 Update german.xml
Close #4784
2018-09-02 17:10:12 +02:00
Don HO
3325da03a0 Fix a plugin installation problem
Add a new plugins loadding behaviour:
if it's not doLocalConf mode, then plugins can be loadded from "AppData\Local\Notepad++\plugins\", without presence of "allowAppDataPlugins.xml".
2018-08-19 18:04:16 +02:00
Don HO
f3c17e9886 Fix Plugin Admin installing plugins issues.
Fix Plugin Admin installing plugins bugs and check also wingup certificate before use it.
2018-08-12 15:21:21 +02:00
Don HO
e75cf910bd Add new brhaviour of checking Plugin List's certificate 2018-07-31 09:12:57 +02:00
Don HO
9aebe5baf1 Add a new file extension for cpp 2018-07-25 03:00:30 +02:00
Don HO
89fbbad94e Notepad++ 7.5.8 release 2018-07-23 02:45:12 +02:00
Rajendra Singh
14b5e161cc Fixed crash issue by checking & unchecking "Disable extension column" in preferences dialog
Fix #4682, close #4684
2018-07-22 20:31:03 +02:00
Rajendra Singh
1c60f3f93e Fix "Explorer Here" from "Folder as Workspace" problem if folder name contains comma
Close #4686, Fix #4249
2018-07-22 10:50:44 +02:00
Don HO
43b2344b23 Fix Folder as Workspace not updating regression
This regression is due to commit 6890e9495251ebe7088c3fdf18aa0c9952cc4d2a (#4257)

Fix #4644, fix #4379
2018-07-22 02:42:28 +02:00
Silent
388e874bfc Fixed a crash when trying to launch a secondary instance with string commandline arguments
Fix #4621, close #4622
2018-07-20 03:03:53 +02:00
schnurlos
c4d4428847 Update german.xml
Modified some phrases.

Close #4540
2018-07-19 23:34:49 +02:00
ordtrogen
5c72d8902d Update swedish.xml
Make swedish.xml align with english.xml, fixed typos and corrected translations

Close #4630
2018-07-19 23:29:07 +02:00
xomx
3246a47fdf Fixed DoCloseOrNot translation
Close #4645
2018-07-19 23:26:50 +02:00
altiereslima
da35cf9663 Update brazilian_portuguese.xml
Added some missing strings.

Close #4647
2018-07-19 23:23:11 +02:00
Don HO
75e326895d Update a localization file 2018-07-19 02:14:42 +02:00
Don HO
eb4edb50ef Plugin Admin - in progress 2018-07-19 02:03:17 +02:00
Don HO
7ce0ab04e6 include the newest version of winGup 2018-07-19 02:01:18 +02:00
Don Ho
97467eb802 Notepad++ 7.5.7 release 2018-06-30 16:54:33 +02:00
AngryGamer
85e3c53a21 Fix hanging problem while shutingdown and backup file is absent
Fix #4295, fix #4276, close #4611
2018-06-28 21:11:26 +02:00
Silent
6b5144d176 Fix format specifier warnings - /Wv:18 can now be removed
As a follow up to my previous pull request, this PR fixes the last remaining improper format specifiers. This allows to remove /Wv:18 compilation flag completely, since (presumably) the only reason it was added in the first place were those format specifier warnings, introduced in VS2015.

Effectively, all this PR does is applying fixes suggested by the compiler (included in those warnings).

Close #4604
2018-06-27 22:35:32 +02:00
Don HO
587d3494c7 Fix the compiling failure on x64 build 2018-06-27 02:15:55 +02:00
Don HO
ef13902206 Use corret name for length variable 2018-06-26 13:50:33 +02:00
Don HO
6326115662 Use automatic variable with static size instead of dynamical allocation 2018-06-25 01:01:00 +02:00
Silent
a9d203a60a Deprecate wstat/stat in favour of WinAPI GetFileAttributesEx - unifies code and behaviour between Windows versions
Fixes #4491, fixes #3969, fixes #2535, fixes #215, close #4541
2018-06-25 00:33:09 +02:00
Silent
9cb8fce854 Migrate timestamps from time_t to FILETIME and store them in UTC universally
Fixes #4491, #3969, #2535 and #215.
2018-06-25 00:32:46 +02:00
Silent
08eb29e3d6 Force cpp standard const char pointer on string literals
const-ified all string literals to suppress warnings on gcc and allow /Zc:strictStrings to be used with Visual Studio

Fix #4146, close #4150
2018-06-25 00:06:26 +02:00
vlakoff
06fb4dd99f Remove "from" which is not a reserved JavaScript keyword
Close #4410
2018-06-24 23:28:02 +02:00
Christophe Meriaux
b69c36b55f Make carret line always visible on click from Finder panel
Close #4518, fix #4510
2018-06-24 23:16:50 +02:00
Hiro5
26a3af946d Update catalan.xml
Close #4537
2018-06-24 23:05:20 +02:00
Don HO
593cf451fb Clean up 2018-06-24 01:16:01 +02:00
WoodsCheney
bac637ddfa Fix Open File Dialog error for a long path
Fix #4345
2018-06-24 00:42:03 +02:00
SinghRajenM
a83fa30de6 Fixed the macro deletion bug
Fix the issue that deleting a Macro doesn't remove it from the Run Macro multiple times dialog until restart

Fix #4526, close #4532
2018-06-21 09:57:04 +02:00
Silent
1482420fcb Fixed pointer truncations reported after removing /Wv:18
Close #4544
2018-06-21 02:36:28 +02:00
Derek
0c55b381da Fix a bug where the document map highlights incorrectly when the view is scrolled past the end of the file.
Fix #4579, close #4580
2018-06-21 02:28:51 +02:00
Don HO
32c1427c12 Add run process sync method & Plugin Admin's operations
Make Updater run sync for removing & restoring plugin info from & to the
plugin lists while the Plugin Admin's operation of installation, update and removal.
2018-06-19 09:39:42 +02:00
Don HO
2b7cd05093 Restore the needed functions 2018-06-13 14:02:49 +02:00
Don HO
c94319e863 Enhance installed list in Plugin Admin 2018-06-13 04:15:21 +02:00
Don HO
c30c0de0fc Refactoring Plugin Admin codes 2018-06-12 03:20:37 +02:00
Adrien Cordonnier
a99fa9ae50 Installer enhancement: Place program shortcut in top-level Start folder
Fix #2143, close #4342
2018-05-26 02:02:09 +02:00
vlakoff
ab903c4554 Cleanup in context menu and Run entries
Close #4519
2018-05-26 00:00:09 +02:00
along
0a6b19fedc Fix toolbar display bug in big icon mode issue
Close #4509
2018-05-25 09:53:32 +02:00
Tmp341
8848c3151e Update turkish.xml
Close #4478
2018-05-24 01:29:14 +02:00
Don HO
9391fa764f Enhance Notepad++ installation packaging
Use GUP to retrieve GUP release from its website while doing Notepad++ release.
2018-05-20 03:28:48 +02:00
Don HO
07b7653163 Remove Updater binaries 2018-05-20 03:28:48 +02:00
Don HO
3a52ab1af1 Remove unused method 2018-05-07 21:11:22 +02:00
nrecker
e65b4c37bf Fix Sort Lines as Integers issue: use Natural Sort algorithm
This changes the line operations "Sort as Integers Ascending" and "Sort as Integers Descending" to sort by Natural Sort Order, in which consecutive numerals are considered as one character. This causes "2" < "10", just like in the old Integer sort, but also "foo 2" < "foo 10", which was not previously available functionality. In cases where every line is a single integer, Natural Sort functions exactly the same as Integer Sort; when every line begins with a single integer, it is a valid Integer Sort.

Close #4413, fix #2025
2018-05-06 13:25:10 +02:00
MCCshreyas
2e4b01cd3d More improvements in C# intellisense
Close #4419
2018-05-06 02:18:33 +02:00
schnurlos
08b0d390ee Small fix in german.xml
Close #4316
2018-05-06 02:13:11 +02:00
Artur
f4460075e6 Update Russian translation for 7.5.6
Close #4441
2018-05-06 01:58:28 +02:00
Nicedward
ddb886c665 Update Indonesian.xml
Close #4446
2018-05-06 01:54:30 +02:00
Don HO
454f92af4a Adapt new plugin file system structure for the future release. 2018-04-30 19:36:15 +02:00
Don HO
7cf5232056 Make new file system of plugin works on installation directory 2018-04-25 20:46:09 +02:00
Luca
a4ac43f141 Update italian.xml to version 7.5.6
Various update on translation for italian
Close #4355
2018-04-21 15:51:01 +02:00
SinghRajenM
6890e94952 Fixed a code in ReadDirectoryChangesPrivate.cpp
Close #4257
2018-04-21 14:51:57 +02:00
Acheron
bdae39ff24 Update dutch.xml
Fix a few spelling mistakes, change mail address

Close #4344
2018-04-20 13:23:58 +02:00
SinghRajenM
094fbabe02 Updated Hindi Translation
Close #4376
2018-04-20 13:17:54 +02:00
Christian Grasser
0f4b0ec9a4 Fix typo to make translation work.
correct typo STRT_REPLACE -> STR_REPLACE

Fix #4354, close #4391
2018-04-20 13:10:18 +02:00
FishDoctor78
92e65f33eb Updated Slovak language file for the latest Notepad++ version.
Close #4341
2018-04-20 12:57:56 +02:00
vlakoff
f0e0e0248a Various fixes in french.xml
Close #4319
2018-04-20 12:52:44 +02:00
SinghRajenM
e9c0ee4866 Fixed UDL export extension issue
Fix #4372, close #4377
2018-04-20 02:42:56 +02:00
Don HO
9210bd37b6 Fix a typo in French translation 2018-04-17 02:22:22 +02:00
Don HO
ce1ffd441d Update stylers.xml model 2018-04-13 18:22:57 +02:00
Don HO
c4cf9165ae Update Russian translation 2018-04-13 18:19:44 +02:00
Don HO
3aaf083c1d Add unit tests for function list feature
go to notepad-plus-plus\PowerEditor\Test\FunctionList directory then
launch the following commands:
powershell ./unitTestLauncher.ps1
2018-04-13 12:46:03 +02:00
Don HO
985fa654b9 Fix Javascript not working regression in Function list since 2016
due to 2 commits:
5d438aa
fb189fa
2018-04-09 00:35:53 +02:00
Don HO
01cfe5d083 Rename label in functionlist output json 2018-04-04 01:14:11 +02:00
Don Ho
9733729bfb Notepad++ 7.5.6 release 2018-03-19 01:46:19 +01:00
MCCshreyas
460564554e Major improvements to C# intellisense
Close #4142
2018-03-18 23:50:39 +01:00
d0vgan
58fa70b580 Fix file status detection issue under Windows XP (32-bit only)
Close #4226
2018-03-18 00:52:52 +01:00
Don HO
6c9a5a2afe Fix typos in translation entry string 2018-03-17 23:06:03 +01:00
Don HO
5fa7a718eb Update French localization 2018-03-17 22:39:08 +01:00
swirti
9685f46229 Update french.xml
Close #4263
2018-03-17 19:09:32 +01:00
Phroneris
af1cc71b28 Fit access keys of the main manu to English behavior
Close #4230
2018-03-17 19:03:55 +01:00
SinghRajenM
543dce8942 Update Hindi Localization
Close #4244
2018-03-17 18:47:16 +01:00
rddim
d4d403dabd Update Bulgarian localization
Close #4260
2018-03-17 18:42:50 +01:00
Tmp341
2291bb3a75 Update Turkish localization
Close #4289
2018-03-17 18:35:36 +01:00
Patriccollu
03abfc8f7c Update Corsican translation for Notepad++ 7.5.5
Close #4290
2018-03-17 18:15:55 +01:00
MAPJe71
51b7eb1b59 Update Dutch translation for 7.5.5
Close #4292
2018-03-17 16:40:13 +01:00
Magnus Österlund
0924134533 Update Swedish localization
Close #4296
2018-03-17 16:33:16 +01:00
Artem Polivanchuk
d99ce6ff02 Update Ukrainian translation
Close #4304
2018-03-17 16:30:11 +01:00
György Bata
93142b12c6 Hungarian translation update for 7.5.5
Close #4308
2018-03-17 16:24:54 +01:00
schnurlos
ef07777714 Update german localization
Close #4310
2018-03-17 16:05:33 +01:00
Don HO
3332aa918b Add more funny quotes 2018-03-16 02:19:00 +01:00
yasmise
fab3db50df Change english.xml to match to GUI texts
Some texts of `english.xml` is not equivalent to GUI texts. This commit change `english.xml` to match GUI.

Close #4297
2018-03-14 02:01:59 +01:00
Don HO
a3be39a3ad Quotes clean up 2018-03-13 21:16:45 +01:00
xomx
a808e3fd92 Update czech.xml for v7.5.5
Close #4235
2018-03-11 21:09:37 +01:00
schnurlos
7969e30841 Update german.xml to v7.5.5
Closes #4256
2018-03-11 11:29:29 +01:00
SinghRajenM
1e0b0b2cd9 Fix crash on styler dialog of User Defined Language dialog
Fixes #2646, fixes #4215, close #4279
2018-03-11 01:36:56 +01:00
GaryBloom
a724cc49a6 Function List enhancement: Highlight the current function based on cursor position
Closes #715, close #4113
2018-03-11 01:27:32 +01:00
Asaq
86aa5e6484 Fix GDI objects leak problem
Fix #1017, close #3896
2018-03-11 01:05:29 +01:00
popcorner
ecba7be9e4 Update english.xml & chineseSimplified.xml 2018-03-10 23:57:51 +01:00
popcorner
22abebefe9 Update chineseSimplified.xml 2018-03-10 23:57:31 +01:00
Don HO
d9b9fb6046 Add a message from outer space 2018-03-10 12:22:02 +01:00
Don HO
5df6e9bbfe Ghost typing enhancement
1. Make ghost typing Unicode supported so any language can be displayed.
2. Ghost typing's speed (slow, rapid and spped of light) can be set.
3. Any supported programming language (syntax highligting) can be applied.
4. All above supports are accessible via command line arguments.
2018-03-10 11:30:55 +01:00
Don HO
f0e1ecdc72 Add ghost typing Unicode capacity 2018-03-07 02:17:26 +01:00
Don HO
d9f3cfd82b Remove the TODO to prevent from the useless modification 2018-03-04 22:13:53 +00:00
Don HO
9b565319e3 Fix macro playing back crash issue
Fix crash issue while playing back macro if "find previous" and/or "find next"
button actions are/is recorded.

Also prevent from future crash if new commands in Find dialog are forgotten to be
treated.
2018-03-04 01:56:28 +01:00
Don HO
789cf387df Make new entries translatable 2018-03-02 20:23:24 +01:00
dail8859
8c84e92349 Fix EOLs 2018-02-27 20:31:22 -05:00
Don Ho
f0a8c61d07 Notepad++ release 7.5.5 2018-02-27 22:46:24 +01:00
Don HO
7bf117dfe2 Fix a label display glitch in Preference 2018-02-27 20:06:17 +01:00
Don HO
abcbec181a Change the EOL 2018-02-27 01:18:00 +01:00
popcorner
d6daac2434 Update chineseSimplified.xml
Close #4223
2018-02-27 00:55:49 +01:00
Silent
166cb3fc9a Fix for "Toggle Single Line Comment" malfunctioning with HTML/XML
Add space for a null character so last line character does not get cut off, and thus allow closing tag to be matched properly.

Fix #3869, close #3870
2018-02-26 00:47:54 +01:00
rddim
6896c801ac Update Bulgarian translation
Close #4218
2018-02-25 23:08:33 +01:00
Spadar Shut
ae49acb803 Update belarusian translation
Close #4212
2018-02-25 23:05:48 +01:00
TigerxWood
034232a9d0 Update romanian.xml for version 7.5.5
Close #4210
2018-02-25 23:02:21 +01:00
schnurlos
511915c98f Update german.xml to v7.5.5
Close #4209
2018-02-25 22:59:02 +01:00
popcorner
0fa26f4bae Update chineseSimplified.xml
Close #4175
2018-02-25 22:54:17 +01:00
MISE Yasuhiro
332ac2865b update japanese.xml to v7.5.5
Close #4139
2018-02-25 22:48:14 +01:00
mogu1121
9951fcd087 Add new keywords of javascript for auto-completion
Close #4156
2018-02-25 20:40:03 +01:00
Jorge Rocha Gualtieri
182063f31b Fix for "Monitoring" doesn't detect changes
Fix #3142, close #3882
2018-02-25 20:34:35 +01:00
Don HO
5719420c3b Update translations 2018-02-25 13:38:26 +01:00
AngryGamer
13801e3540 Make column names translatable in Window->Window...
Close #4219
2018-02-25 12:43:11 +01:00
Don HO
a242214a28 Disable DSpellCheck by default due to some performance issues 2018-02-25 11:08:14 +01:00
Don HO
f9c8a0e221 Change the label of one option to match Unix style path on open dialog 2018-02-22 20:42:46 +01:00
Isaiah Norton
556901b83b Make Unix style path (slashes) work in open file dialog (optional)
Close #3948, fix #2438, fix #3840
2018-02-22 09:58:15 +01:00
rddim
721f7f0608 Update Bulgarian translation
Close #4143
2018-02-20 21:22:45 +01:00
SinghRajenM
6e315e076a Updated Hindi localization
1. Updated "Hindi.xml"
2. Corrected typos in English.xml (changed "NppIO.cpp" and "shortcut.rc" accordingly)
3. Synced "english_customizable.xml" with "English.xml"

Close #4152
2018-02-20 20:22:49 +01:00
SinghRajenM
bf9416d17f Minor enhancements for Kurdish language
Make Kurdish be RTL
Command line support for Kurdish

Close #4206
2018-02-20 18:10:00 +01:00
xomx
55f061ebb9 Fixed the czech.xml v7.5.5
Fixed the wrong integer replacements (instead of string) according to the english.xml latest change.

Close #4207
2018-02-20 18:05:24 +01:00
scootergrisen
065b6f9e1b Update danish.xml to 7.5.5
Close #4135
2018-02-20 17:36:56 +01:00
Don HO
a1b4628b8b Fix the wrong integer replacement (instead of string)
Fix also some minor grammatical errors

Close #4203
2018-02-20 13:38:09 +01:00
schnurlos
803917dd09 Update german.xml to 7.5.5
Close #4137
2018-02-20 00:24:37 +01:00
Tmp341
8b2f0f6c5a Update Turkish localization
Close #4197
2018-02-20 00:20:51 +01:00
xomx
744ec4c3f3 Update czech.xml translation to v7.5.5
Close #4199
2018-02-20 00:18:22 +01:00
Hiro5
3de7561173 Update catalan.xml
Close #4200
2018-02-20 00:13:52 +01:00
Christophe Meriaux
7572015bda Enhance ShortcutMapper resizing
- keep centered buttons while resizing
- set minimum width and height

Close #4178
2018-02-19 23:56:27 +01:00
AngryGamer
883045d96f Keep Doc Switcher's ordering in sync with Tab bar
Close #946, close #1684, close #2342, close #4015
2018-02-19 23:40:23 +01:00
Louis-Berlic
87feb9677e Update occitan.xml localisation to v.7.5.5
Closes #4196
2018-02-19 16:39:36 +01:00
Artem Polivanchuk
0b66932abe Update ukrainian.xml
Closes #4198
2018-02-19 16:34:14 +01:00
AngryGamer
6fba3ac067 Fix tab sticks to mouse pointer problem after external update of a file open in
Notepad++

Fixes #4122, fixes #3851, closes #4182
2018-02-19 15:53:46 +01:00
Silent
16fa79f057 Warning/error fixes as per VS2017 code analysis
Closes #4154
2018-02-19 12:21:35 +01:00
Silent
e403204103 Simplify and fix memory leak in getSpecialFolderLocation
Fixes #399, closes #4138
2018-02-19 12:13:55 +01:00
Don HO
bd0867ee62 Add new language and update translations 2018-02-19 11:40:47 +01:00
Don HO
213af53389 Add more translations
Find dialog status bar messages are translatable.
Add more shortcut mapper translation entries.
2018-02-14 10:02:55 +01:00
Christophe Meriaux
360d45db1a Add filter capacity in the shortcut mapper
Closes #4096, closes #2562
2018-02-11 16:37:30 +01:00
Christophe Meriaux
b47de8048d Shortcut Mapper is resizable and maximizable 2018-02-11 10:03:58 +01:00
Don HO
fb17638de7 Enhance Shortcut Mapper and make it translatable 2018-02-10 18:52:59 +01:00
Don HO
70f7287e58 More translatable entries for Folder as Workspace 2018-02-08 02:57:07 +01:00
Don HO
37b30dd396 More translatable dialogs 2018-02-06 03:02:28 +01:00
Don HO
1a86603a0c Make more dialog strings translatable 2018-02-04 21:38:49 +01:00
Don HO
1f7f00b607 Add forgotten translation entries 2018-02-04 16:51:38 +01:00
Silent
683c358e8a Fix 2 different files whose canonic names are the same can't be opened
in the same time issue

Fix Unicode file name comparision to match Windows behaviour (as opposed to doing a linguistic filename comparision)

Fixes #3820, closes #4141
2018-02-04 04:26:52 +01:00
Silent
7a0dae5912 Fix a crash by improving cutString() function
Remove an arbitrary MAX_PATH character limit

Fixes #2727, closes #4037
2018-02-03 01:00:33 +01:00
Don HO
0e60bd8957 Restore "Find Previous" & "Find Next" button in Find dialog
The pair of button "Find Previous" and "Find Next" have been removed in
the previous version due to some regressions. It's restored with being optional.
2018-02-01 10:09:24 +01:00
Silent
2c4a389f55 Fix encoding not sync (on status bar) after reloading
Extracted parts of FileManager::reloadBuffer and FileManager::loadFile
to a separate function, so that both exhibit the same feature level of
EOL/encoding detection. reloadBuffer() used to have less logic than loadFile() and incorrectly handled UTF-8 detection when the file was ANSI

Fixes #2637, fixes #2843, closes #4124
2018-01-30 09:43:58 +01:00
SinghRajenM
926a5f5300 Fix menu items' state is not maintained due to save macro command
Fixes #4112, fixes #4114, closes #4115
2018-01-30 09:26:08 +01:00
MISE Yasuhiro
2a15c216a8 Update japanese.xml to v7.5.4
* Replace '\r' by real carriage return
* Fix some translations for clear japanese

closes #4043
2018-01-28 23:46:49 +01:00
SinghRajenM
fc9f0de771 Update localization files (English & Hindi)
Fixes #4040, closes #4046
2018-01-28 23:36:23 +01:00
SinghRajenM
7132a8540c Add commandline support for few more languages
Closes #4084
2018-01-28 23:31:00 +01:00
SinghRajenM
fcb3ce31a0 Code improvement
Closes #4085
2018-01-28 23:22:47 +01:00
SinghRajenM
440c9c57fe Use reversed header image for RTL installer
Closes #4107
2018-01-28 23:05:47 +01:00
SinghRajenM
8104d8ae01 Make UI Right To Left when Farsi & Uyghur are loaded
Closes #4108
2018-01-28 22:48:45 +01:00
SinghRajenM
46d0f12c3e Fix line ending changes are not detected in reloaded changed files issue
Fixes #4033, closes #4043
2018-01-28 22:40:02 +01:00
Shreyas Jejurkar
e0c4011982 Added .coffee extension to CoffeeScript 2018-01-28 15:09:14 -05:00
Don HO
c05f24a3f6 Fix a typo 2018-01-28 21:07:48 +01:00
Don HO
3101a2f395 Plugins Admin (in progress) 2018-01-28 17:42:00 +01:00
dail8859
c97b35c815 Fix highlighting of <script> tags in XML files 2018-01-03 13:29:26 -05:00
Don Ho
1725c8f8c1 Notepad++ release 7.5.4 2018-01-01 02:58:59 +01:00
Joel Teichroeb
999b1cfa7b Improve smart highlighting performance
Abort highlight search if the selection crosses a line boundry.

Closes #3908
2017-12-31 12:55:29 +01:00
annbumagina
f07ebbf806 Autompletion enhancement: remove unwanted symbols
Fixes #3861
Closes #3917
2017-12-29 13:16:25 +01:00
Don HO
92d962782e Fix typo in French translation
Closes #3921
2017-12-29 13:01:40 +01:00
Don HO
58d70b46b7 Merge branch 'SinghRajenM-nsis_ImproveInstaller' 2017-12-29 12:31:05 +01:00
Don HO
6fff9837c6 Merge branch 'nsis_ImproveInstaller' of https://github.com/SinghRajenM/notepad-plus-plus into SinghRajenM-nsis_ImproveInstaller 2017-12-29 12:30:17 +01:00
Drewler
06e42023bd Fix spanish translation for "tail"
Command `tail` shouldn't be translated (there isn't a `cola` command)

Closes #3920
2017-12-29 02:59:01 +01:00
oirfeodent
2c4e5b2601 Add Auto Completion for BaanC
Closes #3927
2017-12-29 02:47:23 +01:00
Shreyas jejurkar
5cf0292dad Added keywords auto-completion for CoffeeScript
Closes #3977
2017-12-28 23:05:42 +01:00
György Bata
5aff254c73 Hungarian translation update for 7.5.3
Closes #3978
2017-12-28 23:03:13 +01:00
Devin Nakamura
1002865144 Fix broken indicies in EncodingMapper
Fixes #3983
Fixes #3991
Closes #3992
2017-12-28 20:34:07 +01:00
SinghRajenM
250ca9e6e2 Improve installer 2017-12-28 22:33:25 +05:30
dail8859
8f848b7b27 Remove duplicate keywords for autocompletion 2017-12-27 19:34:26 -05:00
dail8859
a73c45db5a Fix 9f0ba445 typo 2017-12-27 18:22:37 -05:00
Don HO
2390b19706 Fix a crash bug due to eventual disordered notifications sent to plugins
The Access Violation while closing Notepad++:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3961
could be due to SCN_UPDATEUI sending after NPPN_SHUTDOWN, that makes
plugins treat SCN_UPDATEUI on the released handle.

To avoid such situation, once NPPN_SHUTDOWN has been sent, no more
message will be sent to plugin.

Fixes #3961, fixes #4021
2017-12-27 18:19:01 +01:00
Don Ho
b2c3e82ce7 Notepad++ release 7.5.3 2017-12-06 00:59:33 +01:00
Don Ho
48b3613d38 Fix DSpellCheck incomplete installation 2017-12-05 22:12:53 +01:00
Don HO
7faaa1bb24 Fix installer issues
1. Fix shell extension registration error (due to notepad++.exe has not
yet been copied)
2. Fix themes' absence after installation (one variable depends on
its initialization in mainSection)
2017-12-04 20:00:55 +01:00
Don Ho
5dcb0efedc Fix a crash issue in Plugin Admin 2017-11-28 02:32:40 +01:00
Don Ho
e339c0f600 Notepad++ 7.5.2 release 2017-11-27 09:32:44 +01:00
Don Ho
dd6101ea18 Upgrade wingup to fix the problem of connetion for updating 2017-11-25 23:36:30 +01:00
oirfeodent
16b62c9f45 Add BaanC Sections in functionlist.xml
Based on
https://notepad-plus-plus.org/community/topic/14494/functionlist-classrange-question

Closes #3842
2017-11-25 16:53:31 +01:00
SinghRajenM
c8a15a5225 Add version and other info into installer
Closes #3751
2017-11-25 15:06:01 +01:00
SinghRajenM
60f113727c Remove unused/empty encoding from shortcut mapper
Closes #3763
2017-11-25 14:54:45 +01:00
Don HO
5eee71f493 Prevent from crash in TAB settings 2017-11-25 14:26:52 +01:00
SinghRajenM
dfeaa578f0 Fixed hang issue while opening JavaScript file
Fixes #3770, closes #3785
2017-11-25 13:34:09 +01:00
EugenioAvila
c978a18894 Update spanish.xml
Closes #3814
2017-11-24 19:06:11 +01:00
xomx
e9ebed957f Update czech.xml translation to v7.5.1
Closes #3701
2017-11-24 03:57:09 +01:00
Hiro5
7ee0522589 Update catalan.xml
Closes #3762
2017-11-23 23:51:22 +01:00
schnurlos
c653634261 Update german.xml
Closes #3715
2017-11-23 23:45:54 +01:00
Luca
3278822f73 Update Italian translation to version 7.5.1
Closes #3778
2017-11-23 23:39:58 +01:00
TigerxWood
8fc25d8782 Update romanian.xml
Updated and corrected romanian to version 7.5

Closes #3872
2017-11-23 23:32:52 +01:00
Tmp341
7c61bf274d Update turkish.xml
Updated localization to latest changes.

Closes #3890
2017-11-23 23:24:08 +01:00
Shreyas jejurkar
9f0ba4450d Added more C# keywords for auto-completion
Closes #3899
2017-11-23 23:16:01 +01:00
Don HO
4005bf4182 Add DSpellCheck plugin into distribution 2017-11-23 22:44:22 +01:00
Don HO
d975bc24a1 Fix compiling warning problem 2017-10-30 02:46:18 +01:00
Oleksandr Redko
c304b3b873 Fix static analyzer message "The ternary operator always returns constant"
V583 The '?:' operator, regardless of its conditional expression, always returns one and the same value: 22. nppcommands.cpp 1696
2017-10-29 18:18:22 +02:00
Oleksandr Redko
29f28098ae Fix static analyzer issue "A virtual function was overridden incorrectly"
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'UserDefineDialog' and base class 'StaticDialog'. userdefinedialog.h 332
V762 It is possible a virtual function was overridden incorrectly. See first argument of function 'redraw' in derived class 'SplitterContainer' and base class 'Window'. splittercontainer.h 61
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'FindReplaceDlg' and base class 'StaticDialog'. findreplacedlg.h 245
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'GoToLineDlg' and base class 'StaticDialog'. gotolinedlg.h 45
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'FindCharsInRangeDlg' and base class 'StaticDialog'. findcharsinrange.h 52
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'ColumnEditorDlg' and base class 'StaticDialog'. columneditor.h 45
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'WordStyleDlg' and base class 'StaticDialog'. wordstyledlg.h 77
V762 It is possible a virtual function was overridden incorrectly. See first argument of function 'redraw' in derived class 'WordStyleDlg' and base class 'Window'. wordstyledlg.h 99
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'PluginsAdminDlg' and base class 'StaticDialog'. pluginsadmin.h 100
2017-10-29 18:18:15 +02:00
Oleksandr Redko
81847599d0 Fix static analyzer issue "The enumeration constant 'inactiveText' is used as a variable of a Boolean-type."
V768 The enumeration constant 'inactiveText' is used as a variable of a Boolean-type. wordstyledlg.cpp 438
2017-10-29 18:18:07 +02:00
Oleksandr Redko
bdcc386a3a Fix static analyzer issue "An exception should be caught by reference"
V746 Object slicing. An exception should be caught by reference rather than by value. filedialog.cpp 183
V746 Object slicing. An exception should be caught by reference rather than by value. nppbigswitch.cpp 110
V746 Object slicing. An exception should be caught by reference rather than by value. pluginsmanager.cpp 259
2017-10-29 18:18:00 +02:00
Oleksandr Redko
9181f70d47 Fix static analyzer message "Expression is always true"
V547 Expression '_isFloating == true' is always true. dockingcont.cpp 1080
V547 Expression 'itemSelected == 2' is always true. treeview.cpp 504
V560 A part of conditional expression is always true: 0xff. babygrid.cpp 711
2017-10-29 18:17:44 +02:00
Don HO
8a01e5e29b Make mouse hook functions right 2017-10-29 12:17:59 +01:00
Christian Grasser
28c9bb6d31 correct appveyor.yml VS vcxproj after rename
add logger to see warnings/errors in the message tab

Closes #3825
2017-10-19 23:29:10 +02:00
Don HO
7476ada223 Enhance Plugin Admin UI 2017-10-16 03:26:39 +02:00
Motaz Alnuweiri
cc76d7a372 Update Arabic language file 2017-10-11 09:26:39 +02:00
Don HO
40163e0338 switch from VS2013 to VS2015 & VS2017 2017-10-01 23:16:17 +02:00
Don HO
1c5e6191bd Adapt json format for Plugin admin 2017-09-24 18:27:42 +02:00
Gerard Dalmau
cacc1500a9 Add version badge
Closes #3725
2017-09-20 00:57:06 +02:00
Christophe Meriaux
2d1eee8b47 fix feedScintKeys when more than two shortcuts are configured
Closes #3732, fixes #3720
2017-09-19 20:04:56 +02:00
Don HO
505d2452d3 new easter eggs quotes 2017-09-19 09:41:30 +02:00
SinghRajenM
461936ef44 Fix the issue that batch.xml is missing from installer
Closes #3677, fixes #3680
2017-09-17 01:24:43 +02:00
jeldert
ad959ac826 Fixed typo in help text
EsterEggName should be EasterEggName

Closes #3681
2017-09-17 01:21:16 +02:00
SinghRajenM
3cb8bc85a1 Fix certificate checking error message issue
1. Fixed issue (caption and message are interchanged)
2. Disabled lexerdll signature checking in debug mode

Closes #3691, Fix #3688
2017-09-17 01:16:47 +02:00
Rennie Petersen
97fce27cfe Nitpicking - quotations
Britain should be capitalized, one of the quotations is duplicated.

Closes #3743
2017-09-17 01:13:39 +02:00
Rodrigo
509c9c27d9 Better disply of installer components page description
Colses #3745
2017-09-17 01:03:38 +02:00
Don HO
840f4b31c3 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2017-09-17 00:54:57 +02:00
Don HO
e2f5f51fbc Read plugin list as json format (in progress) 2017-09-17 00:52:35 +02:00
Don HO
59234b91a7 Switch to VS 2015 2017-09-11 15:48:26 +02:00
Don HO
ef3ad5d909 Use VS2015 for appveyor instead of VS2013 2017-09-11 09:36:38 +02:00
Don HO
b033d907b2 Export function list in json format 2017-09-11 02:46:15 +02:00
Don HO
405d4240cd Update spiritual quotes 2017-09-06 01:27:59 +02:00
Don HO
21adc62eed Add 1 quote and delete some. 2017-09-03 02:58:51 +02:00
Don HO
1c191ee146 Fix un installer issue
While install a x64 version, it should remove x86 version if it exists (and vice versa).
The removal feature doesn't work though user answer Yes for the deletion.
This commit fixes this issue.
2017-09-02 14:57:59 +02:00
Don Ho
d7f64d2027 Notepad++ 7.5.1 release 2017-08-29 03:01:24 +02:00
vlakoff
60b4aa6b75 Enhance Function List for PHP and JavaScript
Support interface and trait in PHP.
Support space between function name and opening parenthesis in PHP and JavaScript. Fixes at least #1919 and #2604.

About the JavaScript regex:

Current:
function(\s+[A-Za-z_]?\w*\([^\)\(]*\)|\([^\)\(]*\))

There are 2 parts, for named and anonymous functions. Note there is some duplication, let's simplify it:
function(\s+[A-Za-z_]?\w*)?\([^\)\(]*\)

The first character of function name is not optional (of course when the function is named), let's fix it:
function(\s+[A-Za-z_]\w*)?\([^\)\(]*\)

Finally let's support the possible spaces before opening parenthesis, for both named and anonymous functions:
function(\s+[A-Za-z_]\w*)?\s*\([^\)\(]*\)

Fixes #1919, fixes #2604, fixes #1667, fixes #2962
closes #2523, closes #2621
2017-08-27 02:04:19 +02:00
popcorner
478bb6f241 Update chineseSimplified.xml
Closes #3660
2017-08-27 02:01:00 +02:00
Don HO
5b5dfb90a8 Fix the bug that Notepad++ create %appdata%\local\notepad++\ folder even in doLocalConf mode 2017-08-27 00:04:40 +02:00
marcoM32
de648eff62 Add batch auto-completion
A new resource for auto-completion in batch scripting environment

Closes #3157
2017-08-26 14:25:50 +02:00
scootergrisen
c34d8d0a8a Update danish translation to 7.5
Closes #3641
2017-08-26 14:15:42 +02:00
Artem Polivanchuk
ef654d0334 Update Ukrainian translation
Closes #3647
2017-08-26 14:08:39 +02:00
Rusi Dimitrov
e6c049298c Update Bulgarian translation
Closes #3649
2017-08-26 14:06:47 +02:00
Don HO
f7dc09b5e8 Add a philosophy quote in easter eggs 2017-08-26 01:56:14 +02:00
Thomas Linder Puls
854acae4a1 Add Visual Prolog language support
Closes #1439
2017-08-25 09:43:36 +02:00
Don HO
440577f647 Fix restore back language menu item on the wrong position 2017-08-23 20:47:35 +02:00
Don HO
193ecfd6df Replace '\r' by real carriage return
Closes #3280
2017-08-22 21:39:18 +02:00
Don HO
2efd5682e8 Fix a localization regression
Closes #3639
2017-08-22 09:41:12 +02:00
SinghRajenM
cc397f8c71 Make double click work for language menu disabling/enabling in preference dialog
Fixed issue and organized code

Fixes #3589, closes #3594
2017-08-21 02:53:42 +02:00
SinghRajenM
d5b01d61b8 Improve file extension movement between ListBox in Preferences dialog
Now mouse double click can be used to move File extension between ListBoxes.

Closes #3595
2017-08-21 02:35:57 +02:00
Christophe Meriaux
a7c1e354b9 Shortcut Mapper improvements - add cathegory
Shorcut mapper - main panel : new colums that show the category of the shortcut
Shorcut mapper - plugin panel : new colums that show the plugin name that the shortcut belongs to
Shorcut mapper - scintilla panel : it shows every shortcuts configured for one command

Fixes #3583, Closes #3635
2017-08-21 02:12:00 +02:00
Don HO
086f7b2735 Update localization files for v7.5 modification 2017-08-20 21:50:47 +02:00
Don HO
dca3f7dee0 Update croatian.xml 2017-08-20 17:34:17 +02:00
MISE Yasuhiro
28d3c59e75 update japanese.xml to v7.5
Changed to follow: "Open in Default Viewer", changes in Find dialog
Closes #3625
2017-08-20 17:16:25 +02:00
Patriccollu
bc15617308 Update Corsican translation for Notepad++ 7.5
Closes #3630
2017-08-20 17:12:31 +02:00
Don HO
aa64edadd5 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2017-08-18 10:15:42 +02:00
Don HO
bd025df18f Fix some excluded language cannot be remembered bug 2017-08-18 10:12:02 +02:00
Don Ho
040ad04c56 Notepad++ 7.5 release 2017-08-15 23:58:06 +02:00
schnurlos
67ea1025f3 Update german.xml to v7.5
Closes #3618
2017-08-15 11:29:54 +02:00
Don HO
be610b4022 Merge branch 'translation' of https://github.com/rddim/notepad-plus-plus 2017-08-15 11:21:39 +02:00
Don HO
f1bb57c607 Update Russian translation 2017-08-15 02:04:38 +02:00
Don HO
14a8b510be Update Korean translation 2017-08-13 16:04:21 +02:00
Rusi Dimitrov
c6e76fc575 Update Bulgarian translation 2017-08-13 13:54:09 +03:00
SinghRajenM
6f872ebb7e Corrected/updated Hindi localization
Colse #3605
2017-08-13 12:30:12 +02:00
SinghRajenM
295cbafe7d Code improvement
Closes #3582
2017-08-13 12:10:04 +02:00
Cyrillev
fbbe9344d9 New feature: Opens file in its default viewer
This feature has the same effect as double-clicking this file in Windows Explorer.

Closes #3577, fixes #3576
2017-08-13 12:04:00 +02:00
Don HO
2593d64fbb Update translation files 2017-08-13 00:43:14 +02:00
Don HO
4d921b7ffd Roll back from 2 find buttons to 1 find button
Due to 2 find buttons logic limit (lost replacing up capacity), the
direction option is added back, and 1 find button is restored (instead
of 2 find buttons).
2017-08-12 04:46:38 +02:00
xomx
f55b137cc0 Update czech.xml translation to 7.4.2
Closes #3555
2017-08-08 02:26:23 +02:00
Cyrillev
1381ae0555 Add "Fortran (fixed form)" in compact Language menu
In addition to "Fortran (free form)"

Fixes #3566, closes #3567
2017-08-08 01:38:43 +02:00
Rajendra Singh
9600bbd2f2 Corrected typo
happend -> happened

Closes #3568
2017-08-08 01:36:11 +02:00
Don HO
c94fe0dd69 Fix a typo 2017-08-08 01:26:37 +02:00
Don HO
78ea2110d2 Fix export fuctionlist bug 2017-08-07 02:00:50 +02:00
Don HO
1f89110b04 Add "-quickPrint" command line argument
"-quickPrint" allows user to launch Notepad++ via command to print a
given document then quit Notepad++ immediately.
Usage:
notepad++.exe -quickPrint c:\funcListTests\EncodingMapper.cpp
2017-08-07 00:01:12 +02:00
Don HO
1d58c1d3d3 Add function list export feature
"notepad++.exe -export=functionList -lcpp c:\funcListTests\whatever.cpp"
will open whatever.cpp as cpp file, then parse this file to write the
funcLst result on disk, then exit Notepad++.
The result will write into c:\funcListTests\whatever.cpp.result.
2017-08-06 00:03:18 +02:00
Jay Satiro
3fbd537371 Fix command line argument parsing regression
Work with the arguments in a temporary array of pointers to the command
line before assigning them to paramVector as generic_string.

Follow up to afb3889. Since then the arguments were copied to
paramVector as generic_string too early, before the command line parsing
finished.

Closes https://github.com/notepad-plus-plus/notepad-plus-plus/pull/3575
2017-07-31 13:17:08 +02:00
Don HO
ecc9258d45 Fix the long time bug that non-exist folder to pass via command line is not opened without warning 2017-07-28 10:30:42 +02:00
Don HO
afb3889ffb Fix a regression regarding b85930314847727ee8070d1417e674afd1bb24ab 2017-07-27 12:44:06 +02:00
Don HO
385746de01 Rename variables & clean up 2017-07-27 10:30:53 +02:00
AngryGamer
8342da3df8 Fix multi-line tab button stay pushed issue while swiching off.
Make sure previous tab does not keep focus when switching tabs.
TO REPRODUCE:
Step 1: Move a tab using drag and drop.
Step 2: Use a tab switching hotkey/feature which doesn't set TCM_SETCURFOCUS AND TCM_SETCURSEL

Fixes #3545, closes #3552
2017-07-25 11:41:29 +02:00
SinghRajenM
194376d6d7 Fixed monitoring related issuse and corrected code
Updated file "NppIO.cpp" to deal with issue #3553

However both existing and updated code looks same, but it is not.
command(IDM_VIEW_MONITORING);
looks equal to

buf->stopMonitoring();
checkMenuItem(IDM_VIEW_MONITORING, false);
_toolBar.setCheck(IDM_VIEW_MONITORING, false);
buf->setUserReadOnly(false);
Updated code works on the current file being processed while existing code command(IDM_VIEW_MONITORING); works with current active buffer. Debugging for reported case can help to understand the above statement.

Justification for updating file "NppCommands.cpp":

See static HANDLE hThread gets a handle when monitoring is activated on a tab.
This handle is overwritten if monitoring is activated on another tab. Resource leak happens here as previous handle can't be closed at all.
However, this handle is not used anywhere in the code, then just why not to close the handle as soon thread is created.

Closes #3554, fixes #3553
2017-07-24 19:28:26 +02:00
Svyatoslav
5861d416ea Fix a memory leak
functionParser.h: add virtual destructor into abstract class.
A memory leak has been found by using PVS-Studio analyzer.

Analyzer warning: V599 The virtual destructor is not present, although the 'FunctionParser' class contains virtual functions.

Closes #3402
2017-07-23 12:09:19 +02:00
Cyrillev
02bdd11700 Add new languages support
Connect Scintilla Lexers to npp : SCLEX_ASN1 (Abstract Syntax Notation One), SCLEX_AVS (AviSynth), SCLEX_BLITZBASIC, SCLEX_PUREBASIC, SCLEX_FREEBASIC, SCLEX_CSOUND, SCLEX_ERLANG, SCLEX_ESCRIPT, SCLEX_FORTH, SCLEX_LATEX, SCLEX_MMIXAL, SCLEX_NIMROD, SCLEX_NNCRONTAB, SCLEX_OSCRIPT, SCLEX_REBOL, SCLEX_REGISTRY, SCLEX_RUST, SCLEX_SPICE, SCLEX_TXT2TAGS

Connect Scintilla Lexers to npp :

asn1 (Abstract Syntax Notation One) : https://fr.wikipedia.org/wiki/ASN.1#Exemple
avs (AviSynth) : http://avisynth.nl/index.php/Script_examples
blitzbasic : http://www.blitzbasic.com/bmdocs/command.php?name=Mid&ref=2d_cat
http://www.blitzbasic.com/codearcs/codearcs.php?cat=8"
csound : http://www.csounds.com/manual/html/PrefaceGettingStarted.html
erlang : http://erlang.org/doc/man/file.html
http://erlang.org/documentation/doc-5.3.6.13/doc/getting_started/getting_started.html"
escript : http://erlang.org/doc/man/escript.html
forth : http://wiki.c2.com/?ExampleForthCode
freebasic : http://www.freebasic.net/
latex : http://physics.clarku.edu/sip/tutorials/TeX/intro.html (Sample LaTeX file)
mmixal : http://mmix.cs.hm.edu/examples/hello.html
nimrod : http://www.csse.monash.edu.au/~nimrod/nimrodportal/manual/planfileexamples.shtml
nncrontab : http://www.nncron.ru/help/EN/working/cron-format.htm
oscript : http://www.oscriptadventures.com/
purebasic : https://www.purebasic.com/documentation/reference/ide_form.html
rebol : http://www.rebol.net/cookbook/recipes/0031.html
registry : windows registry file
rust : http://rustbyexample.com/std_misc/file/open.html
spice : http://www.seas.upenn.edu/~jan/spice/spice.overview.html
txt2tags : https://github.com/txt2tags/txt2tags/blob/master/samples/sample.t2t
2017-07-23 10:24:53 +02:00
Don HO
cb7d6070fb Fix a crash issue (regression)
Fix bad pointer deletion.
Fix incorrect pointer deletion.
Fix a memory leak.
2017-07-23 10:10:26 +02:00
Antoine Lang-Cavelier
e76b5dc869 Add foreground colours for diff in Monokai.xml
Some styles were missing and hence, was replaced by black.

Closes #3433
2017-07-21 14:22:56 +02:00
SinghRajenM
a476b885e4 Fix some incoherent codes
Fixed PVS-Studio static analyser reported issues:
FindReplaceDlg.cpp: Release dynamically allocated memory.
BabyGrid.cpp: lpcs variable assigned twice successively.
ProjectPanel.cpp: A memory leak is possible.
TreeView.cpp: Wrong value is returned.

Closes #3463
2017-07-21 11:50:36 +02:00
Don HO
29bbf3ce83 Update chineseSimplified.xml 2017-07-20 11:20:12 +02:00
popcorner
c748d8d18b Update chineseSimplified.xml 2017-07-20 11:11:42 +02:00
EugenioAvila
639fbad4ea Make some Spanish traduction correct
En la RAE. propone 'ascendiente' con otro sentido diferente. Referencia: http://dle.rae.es/srv/fetch?id=3vjB2P7

Closes #3299
2017-07-20 11:07:12 +02:00
SinghRajenM
0a54214a1e Fix TAB key wired behavior on find window
Fix TAB key on "always" radio button (for transparency) of Find dialog make dialog transparent

Fixes #3345, fixes #3439, closes #3346
2017-07-20 10:58:20 +02:00
SinghRajenM
164e2c6738 Fix click on tab close file issue
How to reproduce the bug:
If the current tab size is smaller then next tab, click on 'x' button to close current tab, then next tab replces the closed tab position. Without move cursor and click on the next tab (now it becomes current tab), clicked tab is closed.

Fixed:
This bug is due to the current tab's information is not updated between 2 clicks.
Update the current hover tab RECT (_currentHoverTabRect) and close hover flag (_isCloseHover), so that x will be highlighted or not based on new _currentHoverTabRect.

Fixes #3004, closes #3340
2017-07-17 10:53:15 +02:00
Magnus Österlund
d2f8ccce1b Update Swedish translation to 7.4.2
Closes #3473
2017-07-17 10:49:49 +02:00
Rusi Dimitrov
9128cba496 Update Bulgarian translation
Closes #3431
2017-07-17 10:45:17 +02:00
SinghRajenM
a9adc4835d Remove some useless codes
Closes #3472
2017-07-17 10:39:46 +02:00
SinghRajenM
ee69531823 Fixed cppChecker reported issues
1. Removed unused variable/code
     smarthighlighter.cpp, Babtgrid.cpp, shortcut.h, ImageListSet.h

2. Member variable not initialised in ctor
     ShortcutMapper.h, FileBrowser.h, ProjectPanel.h, TaskList.h, VerticalFileSwitcher.h, WindowDlg.h, lastRecentFileList.h

Closes #3478
2017-07-17 10:35:25 +02:00
Don HO
b859303148 Fix the original cmd line modified problem
Notepad++ command line could be seen by other processes (process explorer of SysInternals) as truncated due to parsing behavior.

Closes #3495
2017-07-15 14:53:37 +02:00
Don HO
d0d1bd9476 Merge remote-tracking branch 'refs/remotes/AndresTraks/master' 2017-07-15 14:38:51 +02:00
Roman Artiukhin
0d90ad1374 Fix text selection in combo boxes of find/replace dialog problem on resize
Fixes #3367, closes #3416
2017-07-14 20:19:23 +02:00
schnurlos
3aa8535d5d Update german.xml to v7.4.2 with newest fixes
Closes #3471
2017-07-14 16:30:31 +02:00
irgendsontyp
7aef4a6b6d Fix file not dirty while its content changed on the hard drive.
Set buffer state to dirty when the file on the file system has changed but the user decided to not reload it in Notepad++.

Fixes #3246, closes #3499
2017-07-14 11:53:33 +02:00
SinghRajenM
feff20893f Fixed saved duplicated file in the same view issue
While D:\test.txt has been opend. And open new Tab (new 1), add random text then save
it as D:\test.txt - 2 different tabs having same file opened and they could have
different content.

The fix checks for opened file existence only in the other view
(either in sub view or in main view), but does not check in same view.

Fixes #3384, Closes #3500
2017-07-14 11:38:06 +02:00
SinghRajenM
50c2a300e7 Fixed Folder as Workspace toolbar button not activated issue
Dropping folder into Notepad++ to have Folder as Workspace not make its
toolbar button activated. This bug is fixed by this commit.

Fixes #3282, closes #3501
2017-07-14 11:25:12 +02:00
Luca
55b8bad2af Update italian translation for 7.4.2 version
Closes #3505
2017-07-14 11:15:53 +02:00
SinghRajenM
d27a7fc012 Fixed typo
intall -> install

Closes #3507
2017-07-14 11:13:08 +02:00
Hiro5
7d8b119458 Update catalan.xml to v7.4.2
Closes #3509
2017-07-14 11:09:35 +02:00
Don HO
a0bc7ac5fb Remove Plugin Manager from the package 2017-07-13 20:47:03 +02:00
Don HO
77d9a9959a Add /noUpdater argument for installer
By launch "npp.7.4.3.Installer.exe /noUpdater /S" allows users install
Notepad++ silentely, without including Auto-Updater.
2017-07-13 08:46:44 +02:00
Don HO
4c2e41b649 Plugin name should match to plugin folder name
Load plugin only when plugin name match to plugin folder name.
For example: "NppPluginDemo.dll" can be loaded only when it in the
folder named "NppPluginDemo".
2017-07-10 19:26:22 +02:00
Don HO
2c9f096d6d Make plugins loadable from %LOCALAPPDATA%\Notepad++\plugins\ 2017-07-09 15:56:18 +02:00
Don HO
19f24d1d65 Add new installer argument /allowAppDataPluginsLoading
The new installer argument /allowAppDataPluginsLoading add file
allowAppDataPlugins.xml which allows Notepad++ to load plugins
from "%APPDATA%\Notepad++\plugins\"
2017-07-09 09:10:04 +02:00
Roman Artiukhin
e7a5c72465 Restore empty "Replace with" and "Filters" in the next session
Closes #3407
2017-07-02 21:45:17 +02:00
Don HO
f162181fba Update translations 2017-07-02 18:40:07 +02:00
MISE Yasuhiro
f15e136fa3 update japanese.xml to v7.4.2
Add new lines to catch up with v7.4.2 (Document peeker, "<< Find" in
Find dialog).

Closes #3413
2017-07-02 14:48:03 +02:00
Lando
cc04476dfc Update spanish.xml
Some fixes and improvements and also added missing translation for new find previous button and Mark tab in the Find & Replace dialog

Closes #3414
2017-07-02 14:44:18 +02:00
orbitcowboy
269a065bb9 Fixed memory leak.
Closes #3417
2017-07-02 14:40:16 +02:00
SinghRajenM
fb998007d7 Update English & Hindi translation
Localization for find dialog

Closes #3452
2017-07-02 14:31:49 +02:00
Don HO
f6d4d0c827 Remove a duplicated entry for shortcut mapper 2017-06-28 01:18:12 +02:00
Don Ho
3d76ab73ac Notepad++ 7.4.2 release - fix a typo
I hate tpyos!
2017-06-18 23:40:46 +02:00
Don Ho
5b35000c30 Notepad++ 7.4.2 release 2017-06-18 23:18:14 +02:00
SinghRajenM
f48255d647 Installer shows installation size as 0 for minimalist
Closes #3371
2017-06-18 15:52:41 +02:00
Luca
bcae363497 Update for document peeker, version 7.4.1
Add translations for document peeker

Closes #3322
2017-06-18 15:45:45 +02:00
Magnus Österlund
caf45e6f10 Update Swedish to v7.4
Closes #3388
2017-06-18 12:54:57 +02:00
popcorner
0b7065a4b8 Update chineseSimplified.xml
Closes #3401
2017-06-17 23:59:41 +02:00
Don HO
c8969b773f Add SWIFT language support 2017-06-17 20:03:28 +02:00
Don HO
4f81261a85 Make button size & position right in find replace dialog 2017-06-15 20:29:11 +02:00
Tony Karlsson
9f421eb2a9 Find previous and next instead of combo direction Down/Up
Add "Find Previous" button and remove "Direction Down/Up combo"

Closes #3339
2017-06-15 13:07:08 +02:00
Don HO
6f84824c2b Fix verifying certificate function passes empty string to compare
For unknown reason, all strings passed by parameters are empty string,
use the macros solve this problem.
2017-06-15 02:25:25 +02:00
Svyatoslav
39b2386b33 Fixes identical sub-expressions for certificate verification
An issue has been found by using PVS-Studio analyzer.

Analyzer warning: V501 There are identical sub-expressions to the left
and to the right of the '!=' operator: subject != subject.

Closes #3399
2017-06-15 01:13:34 +02:00
Svyatoslav
6d542a4041 Fixed NULL Pointer Dereference
A weakness has been found by using PVS-Studio analyzer.

Analyzer warnings:

* V595 The 'pScint' pointer was utilized before it was verified against
nullptr. Check lines: 347, 353. scintillaeditview.cpp 347

* V713 The pointer _langList[i] was utilized in the logical expression
before it was verified against nullptr in the same logical expression.
parameters.h 1286

closes #3400
2017-06-14 19:54:59 +02:00
AngryGamer
694fd80fa5 Fix visual glitchy on clicking on tab due to Document Peeker.
Closes #3367
2017-06-13 20:53:52 +02:00
Roman Artiukhin
b3be0b448b Make FindReplace dialog resizable horizontally
Closes #3376, closes #2516, closes #774
2017-06-13 09:24:13 +02:00
Rusi Dimitrov
cb3df2a3a3 Update Bulgarian translation
Closes #3278
2017-06-12 01:33:31 +02:00
schnurlos
2f5a79dadd Update german.xml to v7.3.3
Closes #3268
2017-06-12 01:29:07 +02:00
Hiro5
f4d1dd81bd Update catalan.xml
Closes #3286
2017-06-12 01:25:56 +02:00
xomx
ffa22adee6 Update czech.xml translation to v7.4
Closes #3291
2017-06-12 01:22:41 +02:00
EugenioAvila
d936d0e373 Fix a typo in Spanish translation
Complementada palabra Insertar

Closes #3300
2017-06-12 01:19:36 +02:00
SinghRajenM
a78046b5df Translation for new strings for Hindi & English
Closes #3265
2017-06-12 01:15:01 +02:00
Roman Artiukhin
e8e325b7c1 Fixed Toolbar initialization code
It seems REBARBANDINFO.cbSize initialization logic got broken after
migration to VS 2013 (last working version - 6.6.9)

That leads to various problems related to toolbar logic (like missing
chevron - #3385 or incorrect plugin toolbar placement #3094)

Closes #3386, fixes #3385, fixes #3094
2017-06-12 01:09:58 +02:00
Don HO
eb43167fbf Disable document peeker as default 2017-06-11 16:52:03 +02:00
Don HO
dbe2b698b1 Fix replace in files regression.
Make focus always on main editor, so we don't need to set document as
read only while it's being peeked.
2017-06-11 13:07:48 +02:00
Don HO
8e4b7014ff :) 2017-06-04 11:25:49 +02:00
AngryGamer
6b0977b0b8 Fix rapid swapping between two tabs during tab drag and drop.
Closes 3328, Fixes #3017, fixes #2771
2017-05-31 08:49:01 +02:00
Don HO
a00a913752 Fix a crash issue while doing a column insertion on a CJK unicode document
Fixes #3314
2017-05-30 09:01:51 +02:00
Boris
85216fe577 Fix repeated requests of reloading from disk
A popuped message appear for the 1st modification from outside of
Notepad++, if users ignore it and save another change outside, the 2nd
popuped message appears. This commit fix this bad behaviour, which could
lead crash.

Closes #3307
2017-05-27 14:14:54 +02:00
Don Ho
71ffe870c5 Notepad++ 7.4.1 release 2017-05-18 03:22:33 +02:00
Don HO
a067de8ce2 Improve Document Peeker performance issue for large files 2017-05-17 10:01:28 +02:00
Don HO
8dbd956344 Disable the certification chain verification
WinTrust library checks chain of trust on line which makes Notepad++
hanging due to the Firewall's restriction.
2017-05-16 19:50:22 +02:00
Don HO
caee890960 Refine the empty file as UTF8 encoding feature 2017-05-16 19:45:56 +02:00
Don HO
8aa6562ac3 Fix the opened zero length file not saving bug 2017-05-16 01:02:18 +02:00
Don HO
2befd1321e Change to the right name 2017-05-15 09:22:31 +02:00
Don HO
a98c884470 Notepad++ release 7.4 - fix typo in change.log 2017-05-14 22:44:50 +02:00
Don HO
66d91d93bb Notepad++ release 7.4 - make name right
Change "Document Snapshot" to "Document Peeker".
Fix a peeker bug on reading from setting file.
2017-05-14 20:26:23 +02:00
Don Ho
481a275ad6 Notepad++ 7.4 release 2017-05-14 14:54:14 +02:00
SinghRajenM
7e5afd862a Don't open change.log everytime
This bug is reproduced that user is pinning Notepad++ on the task bar
after its installation.

Fixes #2896, fixes #2979, fixes #3014,  closes #3162
2017-05-13 16:22:14 +02:00
Patriccollu
08fd2cfbdf Update Corsican translation for Notepad++ 7.3.3
Corsican translation has been updated to take some new strings into account.

Closes #3230
2017-05-13 14:15:04 +02:00
SinghRajenM
b45b10385f Make folding style visible using proper color
Fixes #2948, closes #2949
2017-05-10 18:35:02 +02:00
SinghRajenM
3c1a7dd436 Updgrading from 32bit to 64 bit and vice versa does not remove app registry key
Closes #2965
2017-05-10 18:32:18 +02:00
jiffe
f917abd1f4 Setting fold.quotes.python in setPythonLexer
Closes #3104
2017-05-10 18:28:57 +02:00
Supriyo Biswas
23cdf94926 Add ip(6)tables.* commands for bash.
Closes #3242
2017-05-10 18:24:48 +02:00
Egor
23dd7228d0 Fixed file attribute managing in FileManager::saveBuffer
Original code was flawed:
 * On +S+H (hidden and system) files, the attributes are set 4 times,
   when there's only need for 2 calls.
 * When clearing +S bit, it is masked out from the _original_
   attribute value, which means that if the +H was cleared previously,
   it is set back again. It doesn't seem like this was intended, so
   I assume it's a bug.
 * When restoring the attributes, there's a pointless OR operation.

Close #2881
2017-05-10 18:21:29 +02:00
Don HO
bfb672d8bb A small modification regarding the certificate checking function 2017-05-10 18:14:27 +02:00
Don HO
e2329fd15c Improve certificate verifying method 2017-05-10 02:12:10 +02:00
Don HO
11accf92e9 Fix issue of lossing syntax highlighting during "save as"
The new behaviour is: as user set a new syntax highlighting once, the
new file extension of "save as" will be ignored.

Fixes #1298
2017-05-09 01:59:05 +02:00
LinuxLab
675d586840 Update Portuguese translation
Fixes #2998, Closes #3021
2017-05-08 19:53:22 +02:00
Cimon Lucas (LCM)
b2e46391ab Putting unused javascript.js type2 keywords into instre2 keywords
Fixes #3117, closes #3119
2017-05-08 19:49:12 +02:00
SinghRajenM
65a90fd91a Fixed regression for save session file
Fixes #3029, closes #3032
2017-05-08 19:45:18 +02:00
SinghRajenM
3661527fca Enhancement for saving workspace file
closes #3029, closes #3234
2017-05-08 19:41:55 +02:00
AngryGamer
ca3c2a6016 Make "Window->Windows...->Sort Tabs" more user friendly
Closes #3248
2017-05-08 19:39:10 +02:00
Don HO
76395bb5e5 Add copyright information 2017-05-08 03:27:32 +02:00
Don Ho
5c714043fb Fix compiliing issue in VS2013 2017-05-08 01:43:04 +02:00
Don HO
6b0a3c8e6b Enhance certificate check 2017-05-08 00:19:56 +02:00
Don HO
f4228f5e52 Add "droppong folder as workspace" warning while both files and folddrs are being dropped. 2017-05-02 20:01:53 +02:00
dail8859
74c24cf6b5 Fix issue with clicking links in html/js/asp/php 2017-05-01 20:47:38 -04:00
Richard Brock
a9de79a550 Apply the new file custom encoding to an opened empty file
Closes #2997, fixes #2947, fixes #1874
2017-05-01 03:09:22 +02:00
Tmp341
4c03c3eab7 Update turkish.xml
Update to latest version.

Closes #3147
2017-05-01 00:25:56 +02:00
Steven Vascellaro
d817584986 shortcuts.xml: Reword Trim Trailing and save
Reword option from `Trim Trailing and save` to `Trim Trailing Space and Save`

Closes #3154
2017-04-30 23:33:44 +02:00
AngryGamer
adf02ca9eb Fix right clicking tabs with multiline enabled
Fixes #3186, closes #3110
2017-04-30 20:39:11 +02:00
AngryGamer
cb2c8e102d Remove excess margin with multi-line. 2017-04-30 20:39:04 +02:00
SinghRajenM
336992ea77 Activate buffer after reload
Fixes #3080, closes #3082
2017-04-30 20:33:00 +02:00
SinghRajenM
e10847b429 Improve whitespace visibility
Closes #3200
2017-04-30 20:30:22 +02:00
SinghRajenM
ea87ffd7d0 Support RTL for header & footer printing
Closes #3208
2017-04-30 20:25:34 +02:00
Patriccollu
6d28c81a6c Add Corsican as Installer Language
Closes #3164
2017-04-30 20:21:33 +02:00
Patriccollu
80083c7388 Updates localizationCode for Corsican
closes #3165
2017-04-30 20:12:54 +02:00
SinghRajenM
257cdf2812 FIxed Preference(MISC) UI Issue
Issue fixed:
1. UI clipping
2. Tab order

Closes #3218
2017-04-29 18:08:34 +02:00
Don HO
8752bcad57 Add UI part for Document snapshot feature
Enhance doc snapshot on several points.
2017-04-27 13:03:31 +02:00
Don HO
a43c9b9745 Add snapshot on document map feature 2017-04-25 09:28:24 +02:00
Don Ho
c1f6b9e7df Fix VS2013 compiling error 2017-04-18 02:47:39 +02:00
Don HO
20e669ff01 Add document snapshot feature (in progress) 2017-04-18 01:31:41 +02:00
Don HO
f57a565b6b Fix typos and grammar errors 2017-04-16 21:31:15 +02:00
Don HO
14639c01af :) 2017-04-16 18:58:02 +02:00
dail8859
c63673a1d8 Fix buffer overrun for wordchar list 2017-04-07 16:30:12 -04:00
MISE Yasuhiro
315a161ae2 update japanese.xml to v7.3.3
* Add new lines to catch up with v7.3.3.

Closes #3011
2017-03-25 15:05:49 +01:00
Chocobo1
330a47d752 README.md cleanup
Use svg badge and remove details
Use https
Remove trailing spaces

Closes #3025
2017-03-25 15:03:02 +01:00
Lando
5fe42667ef Some fixes
Some orthography and typo corrections, also, changed the texts that meant programming "language" from "idioma" to "lenguaje" since idioma in spanish is meant mostly for human language, and for programming languages is "lenguaje de programación". (It sounds really weird to say "idioma de programación")

Closes #3031
2017-03-25 14:43:04 +01:00
Lando
7755542b3a Added missing js es2017 keywords
`async` and `await` are now part of javascript since es2017. `yield` was there even before that

examples:
````
//async and await:
function resolveAfter2Seconds(x) {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve(x);
    }, 2000);
  });
}

async function add1(x) {
  var a = resolveAfter2Seconds(20);
  var b = resolveAfter2Seconds(30);
  return x + await a + await b;
}

add1(10).then(v => {
  console.log(v);  // prints 60 after 2 seconds.
});

async function add2(x) {
  var a = await resolveAfter2Seconds(20);
  var b = await resolveAfter2Seconds(30);
  return x + a + b;
}

add2(10).then(v => {
  console.log(v);  // prints 60 after 4 seconds.
});
//yield:
function* foo() {
  var index = 0;
  while (index <= 2)
    yield index++;
}
````
This should close issue #2455 too.

References:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield

Closes #3041, fixes #2455
2017-03-25 14:32:53 +01:00
rddim
73a928aa56 Update Bulgarian translation
Closes #3074
2017-03-25 14:29:34 +01:00
SinghRajenM
fe45f2e9b1 Remove duplicate code for checking certificate
Closes #3076
2017-03-25 14:17:33 +01:00
Damien Gerard
6947bf3909 winmain: add newline at the end of file
winmain: move local functions to anonymous namespace
winmain: remove redundant static keyword
winmain: add newline at the end of file
winmain: move UAC related code to anonymous function
winmain: declare MSGFLT_ADD/MSGFLT_ALLOW only if not already defined
winmain: check only for emptiness
parameters: move winKeyDefs & scintKeyDefs & PGNSI to anonymous names
parameters: remove redundant static/inline keywords
misc: remove unused source code

Closes #3030
2017-03-25 12:15:48 +01:00
Don HO
a308ea57b7 Fix a typo
Closes #3077
2017-03-20 11:27:11 +01:00
AngryGamer
5184880161 Fix drag and dropping tabs with multi-line enabled.
Closes #3075
2017-03-20 00:25:36 +01:00
AngryGamer
e94036114b Hijack shift+MW hotkey to move tabs rather than switch to them (while drag and drop enabled) 2017-03-20 00:19:50 +01:00
AngryGamer
96c0943ad6 Fix tab switching hotkeys in multi-line (shift+MW, ctrl+MW, shift+ctrl+MW) 2017-03-20 00:19:48 +01:00
AngryGamer
b7a560c012 Fix text on active tabs being clipped (multi-line) 2017-03-20 00:19:46 +01:00
AngryGamer
07a565e935 Add two functions: one correctly switches to the active tab, the second swaps tab item data when given two tab indexes 2017-03-20 00:19:43 +01:00
Don HO
1205ab9805 Clean up 2017-03-19 13:47:11 +01:00
Christian Grasser
eba913d887 Scintilla Namespace
- corrected missing scintilla namespaces
- activated usage of scintilla namespace in nmakefile and vcxproj

Closes #3033
2017-03-15 09:29:28 +01:00
Don HO
568248b127 Disable undone feature 2017-03-14 09:25:34 +01:00
Don HO
6a3d9e994d Fix a minor bug in "Show content in doc map on mous hover"
Fix a compiling error for x64 build
2017-03-14 09:09:01 +01:00
Don HO
fe463dc03a Check content via document map on hovering (in progress) 2017-03-13 02:10:47 +01:00
Don Ho
388c430e21 Notepad++ v7.3.3 release
In this release:
Fix CIA Hacking Notepad++ issue
(https://wikileaks.org/ciav7p1/cms/page_26968090.html).
and more...
2017-03-08 04:04:59 +01:00
Don Ho
e5f4344f69 Add Crypto lib in vcproj to make Notepad++ compiled under VC2013 2017-03-08 03:14:54 +01:00
Don HO
7aa7788af0 Add clean up for isCertificateValidated() function 2017-03-08 02:57:11 +01:00
Don HO
b869163609 Check SciLexer.dll certificate
This fix is about the issue "Vault 7: CIA Hacking Tools Revealed"
published on Wikileak:
https://wikileaks.org/ciav7p1/cms/page_26968090.html
2017-03-08 02:52:58 +01:00
Richard Brock
133977da67 Fix the mouse wheel to task list scroll crash issue
Closes #2982, fixes #1616, fixes #2603, fixes #2828, fixes #607
2017-03-06 03:25:42 +01:00
Artem Polivanchuk
71b3c499a3 Update belarusian.xml
Closes #2961
2017-03-06 02:17:48 +01:00
BdR76
a3a7fadac8 Incorrectly translated "space" to Dutch "ruimte"
In Dutch a space-character is commonly refered to as "spatie".
(the Dutch word "ruimte" does mean "space" but more in the sense of a physical area or location, like living space or shelf space)

Closes #2942
2017-03-05 16:08:57 +01:00
Christian Grasser
b335fd156b update docu from udl v2.0 to v2.1
see https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2713
Closes #2943
2017-03-05 16:03:50 +01:00
SinghRajenM
eaf8f8e0e6 Remove ANSI version of: Hungarian (ANSI), Slovak (ANSI)
Corrected order for: Friulian, Kannada
Fixes #1789, closese #2954
2017-03-05 15:53:43 +01:00
popcorner
ae5cd04100 Update chineseSimplified.xml
Closes #2994
2017-03-05 15:49:53 +01:00
rddim
24c47fd172 Update Bulgarian translation
Closes #2955
2017-03-05 15:40:47 +01:00
SinghRajenM
e82110395e Update Hindi translation
Closes #2959
2017-03-05 15:33:08 +01:00
schnurlos
07da57eace Update german.xml to v7.3.2
Closes #2967
2017-03-05 14:51:28 +01:00
Don HO
97573c80a0 (In progress) New feature: check content via Document Map while mouse hovering on a inactivated tab 2017-03-05 14:03:02 +01:00
dail8859
739593fb66 Update HTML attribute wordlist
Closes #2938
2017-03-01 19:07:21 -05:00
Don HO
5b3818288b Remove BOM from langs4Npp.nsh 2017-03-01 19:44:24 +01:00
Don HO
f4bddcac3d Add new function names for Java auto-completion
Closes #2926
2017-02-27 00:27:58 +01:00
AndresTraks
03ff54910d Estonian translation
Close #2951
2017-02-26 23:03:02 +01:00
Eduard Braun
ffe2ddace3 Fix flickering issue if Doc is deleted from outside
Improve behavior when notifying the user about a buffer change (opened file changed or deleted)
- Restore the Notepad++ window and switch to the document in question *before* showing the dialog (this was only done afterwards before)
- Fix flickering issue described in #1018 and #2010 which was exposed by f2cd7790669ec3867977293f5c83bdec235b81b5

Closes #2956
2017-02-26 18:53:36 +01:00
Don HO
61bc5e27bb Add more keywords for Assembly syntax highlighting
Add the instructions movabs and cvtsi2sdq; and the register sets r8-15
and xmm8-15.

Closes #1821
2017-02-26 14:46:18 +01:00
Geoffray
53c3a2ab03 Add new PHP7 functions to syntax highlight
Add following new functions :
random_bytes
random_int
error_clear_last
gmp_random_seed
preg_replace_callback_array
gc_mem_caches
get_resources
posix_setrlimit

Closes #1729
2017-02-26 12:49:01 +01:00
Don HO
cf32cb0ede Add keywords for MS SQL Server
Add the UNIQUEIDENTIFIER, MERGE and NVARCHAR  keywords for MS SQL Server

Closes #1672, fixes #1097, fixes #1616
2017-02-26 02:52:57 +01:00
Markus Heidelberg
6b6b81278b Integrate lexers for several hex file formats
Integrate Motorola S-Record lexer.
Integrate Intel HEX lexer.
Integrate Tektronix extended HEX lexer.

Fixes #1256, closes #1257
2017-02-26 00:25:05 +01:00
SinghRajenM
beda685dc6 Fix flickering issue if Doc is modified outside Notepad++
Fixes #2010, fixes #1018, fixes #1761, closes #2952
2017-02-25 19:06:52 +01:00
Don HO
701d1f79d7 Add Shift+Enter tip translations 2017-02-24 21:15:21 +01:00
AndresTraks
3f81828b67 Estonian translation 2017-02-24 12:54:24 +02:00
Don HO
3ba1b100f2 Refactoring and clean up for tab interface 2017-02-24 03:14:47 +01:00
Don HO
9faa97a6f9 Fix a regression of hidden status bar due to the enhancement of tab interface 2017-02-23 23:58:57 +01:00
Don HO
a482cbd215 Add tip in Find dialog for informing users the usage of Shift+Enter 2017-02-23 23:56:35 +01:00
fvannee
a435e68164 Add Find dialog enhancement
Change search direction when pressing 'shift' while searching

Closes #1739, closes #2008
2017-02-23 08:55:42 +01:00
Don HO
e1125f0bbc Improve multi-line mode for tab interface 2017-02-23 02:52:26 +01:00
Don Ho
82dd554c49 Move xsd file 2017-02-22 00:15:54 +01:00
AngryGamer
9967c59912 Enhance multiline tabs
Stop mutli-line tabs from changing rows when switching tabs.

Closes #1858
2017-02-21 21:21:25 +01:00
Don HO
3d6fc3f2d8 Add Ctrl+Shift+W fshortcut or Close All
Closes  #1572
2017-02-19 18:28:17 +01:00
Christophe Meriaux
7ab6458978 Add shortcut mapper clear command
In the shortcut mapper, shortcuts can be cleared easily

Close #2800
2017-02-19 15:04:51 +01:00
SinghRajenM
6388d48e0c Enhance Load/Save Session Feature
1. If any session ext is set, then give preference to session ext instead
of "All Types (* . *). This is applicable for both save/load session
methods.
2. Show error message when user tries to load wrong session file (e.g. any
text file which is not a valid session file).
3. Correct typo and wrong description in a messagebox.

Closes #2921
2017-02-19 13:21:34 +01:00
SinghRajenM
c36ee6ec9a Make uninstaller cleaner again!!
Fixed uinstaller issues:
1. Folder "localization" is not removed even all the files are removed from
this folder.
2. Folder "pluging\APIs" is not removed even all the files are removed from
this folder.
3. Three files are not removed (contextMenu.xml, functionList.xml and
shortcuts.xml). There might be more files.
From "%appdata%\Notepad"
4. Bakcup folder (form %appdata%\Notepad++) is not removed if backup folder
is not empty.
5. Folder "themes" is not removed even all the files are removed.
6. Because of above two items, parent folder ("%appdata%\Notepad") is also
not removed.
7. Rephrase user message when user tries to install 64 bit while 32 is
already installed (vice versa).

Closes #2565
2017-02-18 22:29:13 +01:00
AraHaan
855e581e44 Add Support Highlight for 3.5.0+ Syntax.
This adds in highlighting for Python 3.5.0+ users who uses "async def" and
"await"'s for coroutines.
These keywords are also planned to change in 3.6.0 as well with PEP-530.
http://www.python.org/dev/peps/pep-0530

Closes #2650
2017-02-18 22:23:19 +01:00
rddim
f787d22a70 Update Bulgarian language
Closes #2900
2017-02-18 22:16:14 +01:00
SinghRajenM
4ac288a944 Add NPP icon for uninstaller as well
Closes #2905
2017-02-18 22:13:44 +01:00
SinghRajenM
24a3acfcc8 Retain Delimiter selection on several lines setting
Fixes #2911, closes #2911
2017-02-18 22:07:49 +01:00
SinghRajenM
2f7667a22a Fixed Text clip issue on preference->Print->Print Line Number
Closes #2913
2017-02-18 22:05:19 +01:00
Christian Grasser
bc84b83af0 Correction of bufferID for iface document
- corrections for interface of bufferID, as x64 requires usage of UINT_PTR aka WPARAM instead of INT
- used new EolType instead of formatType
- removed commented NPPM_ADDREBAR, NPPM_UPDATEREBAR, NPPM_REMOVEREBAR not available in n++ code
- corrected typos

Closes #2920
2017-02-18 22:00:26 +01:00
Don HO
4a0e880557 Fix the command "Empty recent files list" doesn't restore menu width
Closes #2399
2017-02-18 18:41:43 +01:00
Don HO
6373222668 Updated slovenian.xml
Closes #2902
2017-02-18 16:02:17 +01:00
Don HO
bd70dcbe0a Change 2 default settings
Activate parameter hint of auto-completion.
Make caret blink rate slower.
2017-02-18 02:04:59 +01:00
Don HO
ee5601960c Activate clicable URL by default 2017-02-17 10:12:20 +01:00
Don HO
f524dfaf06 Fix add char into word char list bug
New word characters are applied only on the current document, not on the
other documents or new opened document.
2017-02-17 00:35:28 +01:00
Don Ho
2f2b56eb43 Notepad++ release 7.3.2 2017-02-14 00:55:20 +01:00
Don Ho
cc4b47975f Update translation files 2017-02-12 23:10:26 +01:00
Magnus Österlund
2d138e9752 Update Swedish.xml to version 7.3.1
Closes #2899
2017-02-12 23:07:14 +01:00
Marcus
6dacca9508 Fixed fontname and font size in Obsidian.xml
See changes mentioned in #1299; This update fixes it in the files used by the installer so it works by default without requiring the steps in #1299.

Closes #1799
2017-02-12 23:03:44 +01:00
Don Ho
343aae1f7a Update Russian translation
Closes #2862, closes #1410
2017-02-12 01:48:22 +01:00
Mark Raymond
28eedd86dd Detect "Vagrantfile" as Ruby file.
Closes #1981
2017-02-12 00:01:37 +01:00
SinghRajenM
896d0ab695 Fix toolbar not showing issue while launching Notepad++ from system tray
Fixes #2600, closes #2729
2017-02-11 12:26:03 +01:00
redmanmale
73ee4426e4 Fix uncomment in block for line comment bug
Fixed block uncomment in undoStreamComment func, new argument.
tryBlockComment is to avoid loop call.
Fixed typo in doStreamComment func.

Fixes #1200, fixes #1714, fixes #2125, fixes #2854, closes #2875
2017-02-11 11:48:17 +01:00
SinghRajenM
3dfe526019 Show OS platform (32/64 bit) in Debug Info.
Closes #2895
2017-02-11 11:28:46 +01:00
Don HO
1d59e3ed0e Plugin Admin (in progress) 2017-02-10 00:08:29 +01:00
Don Ho
67b0ed9b42 Minors fixes
Closes #2797, closes #2663
2017-02-09 23:35:17 +01:00
Artem Polivanchuk
131716121e Update belarusian.xml
Closes #2872
2017-02-09 23:22:15 +01:00
bradley101
e5babc3d2b Add StringBuilder keyword for Java API
Closes #2882
2017-02-09 23:18:57 +01:00
Dan Gibson
7ad86ad688 Enhance 'Open File' command - open file without selecting whole path.
Closes #2878
2017-02-09 23:12:45 +01:00
CFrank
389524d230 Fix check sign in Language menu not shown
Closes #1095, Closes #1677
2017-02-05 19:51:37 -05:00
SinghRajenM
286a33dc16 Fixed localization installation issue.
Closes #2849
2017-02-06 00:25:54 +01:00
SinghRajenM
2119b171af Fix crash issue on clomn mode editor
If empty column(s) is/are selected in column mode: create a new document
then Alt-Shift + Arrow right key to select, launch colomn mode editor to
insert some number -> NPP crash.

Fixes #2820, Closes #2850
2017-02-05 17:49:12 +01:00
redmanmale
1caa457aae Disable couple of File menu items when it's needed.i
Fixes #2620, Closes #2858
2017-02-05 17:30:37 +01:00
Don Ho
9fa1637605 Update vb.xml 2017-02-05 17:08:11 +01:00
SinghRajenM
7f98067c12 Add error notification on run dialog
1. GetLastErrorAsString is moved from PluginsManager.cpp to Common.h and common.cpp and also function signature is changed
2. Below method were already defined in common.cpp, but not declared in common.h
       generic_string intToString(int val);
       generic_string uintToString(unsigned int val);
3. Updated RunDlg.cpp to show error if ShellExecute fails

Closes #2626, Fixes #2179
2017-02-05 13:12:03 +01:00
Wanibzh29
6c340a3189 Update breton.xml
Closes #2832
2017-02-05 01:11:48 +01:00
CyberDragon777
b939ec9c7f Treat Arduino .ino extension as C++
Fixes #1433, Closes #2834
2017-02-05 01:07:21 +01:00
Artem Polivanchuk
01da32e285 Update Ukrainian translation
Closes #2846
2017-02-05 01:02:05 +01:00
Joey Novak
05e75b139b Added elif to the list of Inno Setup (.iss) preprocessor directive keywords.
Inno Setup has an "else if" preprocessor directive (elif).
Closes #2575
2017-02-05 00:57:33 +01:00
SinghRajenM
1ee8cbd21c Retain the caret position between document move
Close #2664, Fixes #2541
2017-02-04 18:57:56 +01:00
Don Ho
754b92871d Fix Word char list bug
Fix custom word char list doesn't take effect after relauching
Notepad++.
2017-02-04 13:17:40 +01:00
xomx
e3f1a31a51 Update czech.xml translation to v7.3.1
Closes #2816
2017-02-01 01:43:57 +01:00
SinghRajenM
f9aac2e58a Updated Hindi Translation
Closes #2823
2017-02-01 01:41:05 +01:00
dail8859
f2756c2286 Go to correct position after word completion
Closes #2675, Closes #2802
2017-01-29 11:20:56 -05:00
Don Ho
6e3726950c Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2017-01-27 01:45:06 +01:00
MAPJe
9dc109f599 FunctionList Update 2
* Implemented XML Schema for functionList.xml.
* functionList.xml:
1. new layout of association map;
2. placed `displayName` before `id` attribute where applicable;
3. utilize inline comments;
4. parsers added: 'XML for FunctionList', Assembly, AutoIt3, InnoSetup, PowerShell, KRL, Sinumerik and UniVerse BASIC;
5. parsers improved: C, Java, Batch, Bash, XML and NSIS;
6. replaced `[\t\x20]` with `\h` where possible;
7. using upper case notation for hexadecimal values e.g. `\x7F-\xFF`;

Closes #2602
2017-01-27 01:40:57 +01:00
Don HO
1a0e6d7611 Fix the regression in settings
Closes #2814
2017-01-23 09:47:37 +01:00
oirfeodent
1b1265302f Enable Scintilla Lexer SCLEX_BAAN (BaanC Language)
Closes #2696
2017-01-22 23:10:08 +01:00
scootergrisen
4e14e14893 Update danish.xml to 7.3.1
Closes #2810
2017-01-22 19:10:15 +01:00
Christophe Meriaux
96ed68c24b Language VHDL updated
Reserved keyword from IEEE 1076-2008 LRM §15.10
Closes #2659
2017-01-22 15:53:15 +01:00
György Bata
eb0d5ed757 Hungarian translation update for 7.3.1
Closes #2742
2017-01-22 15:39:04 +01:00
Luca
246c1147cb Update italian to v7.3.1
Update italian translation according to version 7.3.1 (MD5 tool &
Customization of Word char set)

Closes #2745
2017-01-22 15:32:26 +01:00
Artem Polivanchuk
4fd376058d Update ukrainian.xml to v7.3.1
Closes #2787
2017-01-22 15:27:15 +01:00
MISE Yasuhiro
22df4c4738 update japanese.xml to v7.3.1
Closes #2697
2017-01-22 15:01:42 +01:00
Don HO
f62bf83bca Make VS2015 compile again 2017-01-22 00:59:40 +01:00
Don Ho
c235e17f7d Add Plugins Administrator (UI part, in progress) 2017-01-20 14:13:41 +01:00
Don Ho
8f2977a018 Notepad++ v7.3.1 release 2017-01-17 20:34:41 +01:00
Don Ho
f3db698166 Fix warning display for Word char list bug 2017-01-17 02:08:54 +01:00
Motaz Alnuweiri
6a0b7653b0 Improve Folder Browse And Save Dialog
Enable the new user interface for "Folder Browse Dialog" including the
edit box and enable Vista style for "Save Dialog".

Closes #2631
2017-01-17 00:02:32 +01:00
rddim
6f00f73b56 Update bulgarian.xml
Closes #2751
2017-01-16 23:49:56 +01:00
schnurlos
6834191d07 Update german.xml to 7.3.1
Including the suggestion #2737 from https://github.com/notepad-plus-plus/notepad-plus-plus/pull/2737

Closes #2741
2017-01-16 23:45:16 +01:00
vlakoff
b7cf7271fd Add some missing AutoIt keywords
Closes #2728
2017-01-16 23:31:38 +01:00
popcorner
444840f2db Update chineseSimplified.xml
Closes #2748
2017-01-16 23:23:17 +01:00
Don HO
80004ebe7c Add new language Breton 2017-01-16 22:08:14 +01:00
Don HO
d923ece38d Fix an issue due to VS2015 compiling result (bug) 2017-01-16 21:52:52 +01:00
Don HO
f49133a1dc Update 3 translations 2017-01-16 02:21:09 +01:00
Don HO
6a05bedd05 Enhancement of "Word characters list"
While double-clicking to select or searching with "Match whole word
only" option, the selected characters stop on non-word characters. With
this enhancement, users can include any non-word character into word
characters list, to change its default behaviour.
2017-01-15 22:16:17 +01:00
Don HO
035bcfeb22 Fix VS 2015 post build error 2017-01-10 09:10:42 +01:00
Don HO
b0a625913c Fix the shadow declarations & make VS2015 compile again 2017-01-10 01:09:18 +01:00
Don Ho
f98686d9f4 Add some functions for future use 2017-01-08 23:59:36 +01:00
Don Ho
e838758e9b Fix geneation of MD5 on Unicode bug
"Geneate MD5 fom text dialog" has geneated wrong result on non ANSI
character (Unicode text).  This bug is due to wong input data.

Fixes #2743
2017-01-04 20:31:53 +01:00
Don Ho
cad87a0124 Fix "Don't check at launch time" not working problem
Preferences... -> Recent Files History -> Don't check at launch time
does not work anymore. If it is unchecked, it will be checked again on
next Notepad++ launch time.
Fixes #2746
2017-01-04 03:08:05 +01:00
Don Ho
8efadf9bf7 Notepad++ v7.3 release 2017-01-01 23:24:48 +01:00
Don Ho
8fc1a2ed30 Add MD5 functionalities 2017-01-01 18:28:25 +01:00
SinghRajenM
c95e098500 Fix the problem of launch Notepad++ with Admin right after installation.
Launch N++ with same privileges as explorer
FIxes #2641, fixes #159, fixes #556, closes #2643
2016-12-24 21:11:34 +01:00
SinghRajenM
746c3da88a Add to recent file history only if file is removed from all the views
There might be cases when file is cloned/moved to view. Don't add to recent list unless file is removed from all the views
Closes #2665, Fixes #2277
2016-12-24 20:57:34 +01:00
Don Ho
ac871cacd4 Get back Find dialog while you lost it
In the environment of multi-monitor with a laptop + a stantion, it
happens all the time that users have lost Find dialog after detaching
and retatching - the solution: Ctrl-F twice will get back your Find
dialog.
2016-12-18 17:37:43 +01:00
dail8859
911fd9a7bd Simplify determination of URL at click location
Closes #1248, Closes #1255, Closes #1595, Closes #1762, Closes #1768, Closes #2583
2016-12-11 10:54:59 -05:00
Don Ho
4c23de61b4 Notepad++ 7.2.2 release 2016-11-27 19:55:58 +01:00
Don Ho
9b4ceae15e Update translations 2016-11-27 16:00:37 +01:00
dail8859
5045b02fa3 Remove duplicate keywords from langs.model.xml
Closes #2592
2016-11-27 09:57:47 -05:00
SinghRajenM
a07fcd8f9a Fixed auto-updater setting toggles between startups bug
Fixes #2597, closes #2599
2016-11-27 13:06:48 +01:00
rddim
3bf3778535 Update bulgarian.xml
Closes #2591
2016-11-27 12:59:33 +01:00
popcorner
009943827c Update chinese.xml and chineseSimplified.xml
Closes #2588
2016-11-27 12:47:01 +01:00
Don Ho
591a07110e Add Plugin Manager default behaviour 2016-11-26 18:46:00 +01:00
Don Ho
1ce7df0408 Restore "Find All in Current Document" buttons none shorcut status
In Find dialog, the new shortcut of "Find All in Current Document"
buttons (in v7.2.1) has hijacked the one of Replace &All.  Here's the
fix for this regression.
2016-11-26 12:42:45 +01:00
Don Ho
7ee1a5d935 Notepad++ v6.2.1 released 2016-11-21 00:25:54 +01:00
schnurlos
f0cb492268 Update german.xml to v7.2
Closes #2530
2016-11-19 18:39:58 +01:00
evpobr
44d90cd228 CMake: use WIN32 variable
Closes #2434
2016-11-19 18:33:18 +01:00
SinghRajenM
2b27a5f33b Write additional uninstaller information
- Use DWORD instead of string for Minor and major version
 - Show only "Uninstall" instead of "Uninstall/Change"
 - Write installed size as well which will be shown in "Program and Features"

Closes #2580
2016-11-19 18:09:18 +01:00
SinghRajenM
bd6f7b4d20 Make installer Unicode again !!
Closes #2570
2016-11-19 18:04:27 +01:00
Magnus Österlund
8372082b53 Update swedish.xml
Closes #2567
2016-11-19 18:01:01 +01:00
Luca
9645f9871f Update italian translation to v7.2
Update italian translation to v7.2, with new higjlights and language settings pages

Closes #2533
2016-11-19 17:54:50 +01:00
xomx
06e05939a5 Update czech.xml translation to v7.1
Closes #2511
2016-11-19 17:32:46 +01:00
Chris
407fccba67 Added new VB keywords
Added new VB keywords; all from addhandler to xor are official keywords
of the current VB.NET; those from attribute to unload are legacy
keywords (VB6 etc.); those from aggregate to yiels are not reserved but
still have a special meaning in most cases

Closes #2496
2016-11-19 16:31:31 +01:00
Doug Ilijev
4c5a1f96bf Add an accelerator key in Find dialog
Add accelerator key to "Find &All in Current Document" in Find dialog.
Closes #2391
2016-11-19 15:27:04 +01:00
dail8859
642fdb421a Fix double click after double clicking hotspot
Closes #2547, Closes #1259, Closes #2569
2016-11-18 19:13:11 -05:00
evpobr
2007cac5a6 Fix incorrect type conversion
UINT -> UINT_PTR as declared in MSDN.
Closes #2448
2016-11-14 09:17:16 +01:00
Don Ho
e6fad9bd4f Fix x64 installer install in "C:\Program Files (x86)" regression 2016-11-14 01:11:53 +01:00
dail8859
5af1c055d1 Correctly identify when a macro is playing
In certain cases (e.g. running the current macro until the end of file) and auto-completion and auto-indentation was not getting turned off, causing certain commands to get interpreted incorrectly. Closes #2553, Closes #2545, Closes #2556
2016-11-12 11:20:51 -05:00
SinghRajenM
decc9645e1 Remove post installation leftover files from temp
Closes #242
2016-11-11 19:31:59 +01:00
SinghRajenM
2c2c80a266 Remove 32bit shell dll from 64bit installer
Closes #2408
2016-11-11 19:22:47 +01:00
SinghRajenM
6fdfd04704 Small tune on Run Macro dialog UI.
1. Radio button and edit box were overlapped
2. Edit box and comboxed were not vertically aligned.

Closes #2549
2016-11-11 19:12:43 +01:00
SinghRajenM
bc38c74c3a Improve Javascript string readability
Fixes #1543, closes #2550
2016-11-11 18:59:56 +01:00
Don HO
490ed5be92 Update readme.txt 2016-11-08 20:15:34 +01:00
dail8859
5f3654b362 Expand environment variables in backup path
Fixes #2520, Fixes #2525
2016-11-08 08:07:32 -05:00
Don Ho
6baac0afd7 Notepad++ release 7.2 2016-11-02 11:52:43 +01:00
Don Ho
da59327552 Update translations 2016-10-31 22:55:07 +01:00
Christian Grasser
b39c9a1848 cmake config update
- added usable cmake config file by transferring files structure from visual studio project file
- contains also basic support for mingw make file creation
- see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.38 for successful with own appveyor config

Closes #2477
2016-10-31 20:00:09 +01:00
Rajendra Singh
a4b03a1f57 Fix Encoding radio button issue in New Document
Sync UTF-8 checkbox with UTF-8 radio button

Closes #2377
2016-10-31 19:30:28 +01:00
Hiro5
752c1329e3 Update catalan.xml
Update to v7.0

Closes #2412
2016-10-31 19:20:16 +01:00
Artem Polivanchuk
01e9ab480b Update Ukrainian translation
Closes #2414
2016-10-31 19:11:02 +01:00
MISE Yasuhiro
8dd7eecb42 Japanese translation update
* update translations to v7.1
* correct indent
Closes #2436
2016-10-31 19:03:25 +01:00
Christian Grasser
5a96eb68b2 MinGW GCC update
- changes necessary to get back a buildable version with mingw, last adapted with https://github.com/notepad-plus-plus/notepad-plus-plus/pull/1229
- fixed some gcc compiler errors and warnings, see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.3 to https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.13
- remaining task is the wincontrol "ReadDirectoryChanges", which uses ATL, propably not available with mingw
Closes #2478
2016-10-31 14:03:29 +01:00
SinghRajenM
f9d1341cf3 Change styler to make makefile more readable
Closes #2482
2016-10-31 12:34:49 +01:00
Don Ho
80092ea90c Fix Installer for 64-bit fails with argument "/D" 2016-10-31 02:22:08 +01:00
Don Ho
c58043ea0d Fix uninstaller silent mode issue
Remove also unecessary files
2016-10-30 13:38:42 +01:00
Don Ho
2897dee54a Fix a tab settings regression
Tab settings per language broken due to the entries are doubled by error
during the preferences dialog reorganization.
2016-10-30 01:02:32 +02:00
Don Ho
1b66acd5e9 Fix a regression of double click on several zones of status bar. 2016-10-29 22:02:06 +02:00
Don Ho
3924190fb1 Add smart highlighting extension to anothe view option
Add new option to enable smat highlighting extension to anothe view,
while both views are visible side by side.
2016-10-28 11:47:36 +02:00
dail8859
a82d9f9981 Ensure backup directory exists
Failed backups result in a user error message and asks to save the file anyways. Closes #2346, Closes #2441
2016-10-23 21:07:17 -04:00
squarefractal
b3f56a47cf Add .profile, .bash_profile, and .bashrc extensions. 2016-10-23 21:06:24 -04:00
SinghRajenM
3e3cbe0c22 Fixed disable smart highlihgt inconsistent behaviour
This bug can be reproduce by turning off smart highlight then restart
Notepad++ : some smart highlight options are still enabled.

Fixes #2442, closes #2465
2016-10-23 14:01:44 +02:00
Don Ho
39df01dab5 Add SmartHighLight node for config.xml generation 2016-10-23 13:43:28 +02:00
Don Ho
0746d1f4f7 config.xml is generated by notepad++
No more config.model.xml. config.xml is generated by notepad++ directly.
2016-10-23 03:50:41 +02:00
Don HO
76bc03fc92 Update config.model.xml 2016-10-21 01:47:26 +02:00
SinghRajenM
5edc47b233 Updated hindi.xml
Closes #2375
2016-10-20 00:19:31 +02:00
Don Ho
76f6ba8cb6 Notepad++ 7.1 release 2016-10-16 16:18:00 +02:00
Don Ho
17b6a47f7f Update slovenian.xml to v7.1 2016-10-15 23:23:04 +02:00
Don Ho
c070fd3075 Update farsi.xml to 7.1 2016-10-15 23:10:17 +02:00
Don Ho
150f36d1ef Update translations 2016-10-15 15:43:02 +02:00
schnurlos
ae660ab4d0 Update german.xml to version 7.0 - 14.10.16
including last updates following english.xml from 14.10.2016

Closes #2423
2016-10-15 14:29:04 +02:00
Don Ho
b6b11d9f6d Update english.xml
Update english.xml, chinese.xml and french.xml
2016-10-14 09:26:28 +02:00
Don Ho
66c6aca759 Enhance smarthighting UI
Use checkboxes instead of combobox.
If "Use Find settings" is checked, use both "match case" & "whole word
only" (instead of only "whole word only")
2016-10-13 02:01:09 +02:00
dail8859
addc9b483a Add contextual keywords to C# word list
Closes #2413, Closes #2416
2016-10-12 12:28:35 -04:00
dail8859
e1f01e00ba Add C# type keywords to style configurator
Closes #2415
2016-10-12 12:27:59 -04:00
Don Ho
4fec265304 Reorganization of preferences dialog 2016-10-10 00:20:38 +02:00
Don Ho
8bf3decf21 Integrate Corsican language 2016-10-09 20:12:28 +02:00
Patriccollu
63ae2a9e9f Add Corsican translation for Notepad++ 7.0
Closes #2344
2016-10-09 17:59:18 +02:00
Rajendra Singh
a7c87b8e72 Fixed UI issue for RTL layout
1. For RTL languages such as hebrew, "Close" button goes beyond the dialog.
2. Few Text is chopped (specially ". matches newline" and "Regular expression")

Closes #2337
2016-10-09 17:52:06 +02:00
Don HO
b849edc924 Update CONTRIBUTING.md 2016-10-09 02:04:02 +02:00
Rajendra Singh
ae0f870ee6 Improve About OK button look
Fixes #2151, Closes #2152
2016-10-09 01:57:16 +02:00
schnurlos
fd5c706f18 Update german.xml to version 7.0
Closes #2328
2016-10-09 01:37:33 +02:00
popcorner
8c7151a40f Update chineseSimplified.xml to version 7.0
Closes #2329
2016-10-09 01:34:23 +02:00
xomx
7ebc5baadb Update czech.xml translation for v7
Closes #2340
2016-10-09 01:30:17 +02:00
MAPJe
9265620ce1 Avoid Auto-Close HTML tags
Updated list of void elements (self-closing tags).

Closes #2379
2016-10-09 01:23:55 +02:00
Rajendra Singh
11c71210b6 Fix some text display problems on preferences dialog
Adjusted static controls position

Closes #2300
2016-10-08 00:11:52 +02:00
MAPJe
5d438aa082 Normalize functionList.xml
- Updated file header and `associationMap`-header.
- Changed order of associations and parsers to follow ascending 'langID' numerical values.
- Removed `displayMode` attributes (are not used).
- Make functionList.xml XML compliant.
- Put set of characters in same order in all character groups.
- Correct `)/` to `/)` in `commentExpr`-attribute.
- Add pattern modifier to multi-line comment expression.
- Add pattern modifier to single-line comment expression.
- When applicable remove outer most parentheses of `commentExpr`-attribute.
- As an underscore is part of character class `\w` (equals group `[A-Za-z0-9_]`) remove the underscore when both are used in the same group.
- Replace the `A-Za-z0-9_` set in a group with character class `\w` as they are equal.
- No need to put one character class in a group e.g. change `[\w]` to `\w`.
- Replace space character with its hexdecimal representation i.e. \x20.
- Corrected Python parser i.e. renamed `funcNameExpr` to `nameExpr` in function-parser part.
- Changed use of L_JS (19) to L_JAVASCRIPT (58).

Closes #2335
2016-10-08 00:08:12 +02:00
Rajendra Singh
029cb09893 Fix Folder as Workspace toolbar icon inconsist behaviour
Fix Folder as Workspace toolbar button inconsist state while closing
Folder as Workspace windows directely (by clicking X button)

Fixes #2249, closes #2263
2016-10-07 20:15:10 +02:00
dail8859
c364144c39 Ignore numbers for autocompletion by default 2016-10-07 09:17:55 -04:00
dail8859
91e81d9f50 Set SQL lexer property after setting lexer
This way it respects the property's value the first time using the lexer.

Closes #2353, Closes #1330, Closes #1253, Closes #704, Closes #2385
2016-10-07 09:10:40 -04:00
dail8859
98a246c1e5 Add option to skip numbers during word completion
Closes #2365, Closes #2378
2016-10-07 09:08:58 -04:00
dail8859
a59f49a992 Reshow CallTip text on separator character
Closes #2352, Closes #2356
2016-10-07 09:08:21 -04:00
Tiax
d63170852e Enhance Smart Highlighting feature
SmartHighlighting now highlights based on 3 modes:
1. whole word
2. any selection
3. same as find dialog setting.

Closes #2262
2016-10-07 09:25:32 +02:00
dail8859
5f8ba93b78 Check plugin architecture before loading
Closes #2348, Closes #2350
2016-10-06 20:59:22 -04:00
dail8859
d64a525f3e Sort plugin menu by plugin name 2016-10-06 17:24:27 -04:00
dail8859
7853876faa Completely clear bookmarks when they are toggled off
It seems markers within Scintilla are not a true/false value but rather a counter. Closes #2366
2016-10-06 17:23:43 -04:00
Don Ho
7ee63496d3 Add 64-bit/32-bit installer detection ability
64-bit Installer can detect the 32-bit installation (and vice versa),
and suggest users to remove the existing one before install the new one.
It works only when the existing installation is on "C:\Program Files
(x86)\Notepad++" or "C:\Program Files\Notepad++" directory
2016-10-06 09:37:25 +02:00
Don Ho
bb01b0f528 Ask user for keeping userr data during uninstallation 2016-10-04 17:58:08 +02:00
Don Ho
5c031d9f81 Fix a regression of themes installation
Take consideration of installation with doLocal Conf.xml activated.
2016-10-03 01:11:21 +02:00
Don Ho
f3fcb50015 Fix uninstaller bug to not remove themes files from APPDATA 2016-10-02 14:38:17 +02:00
Don Ho
181b487521 Fix 64-bit installer's uninstallation problem.
After uninstalling 64-bit Notepad++ via uninstaller, the entry remains in
the "uninstall programs" section of panel of configuration. This commit fixes the bug.
2016-10-01 23:20:06 +02:00
Rajendra Singh
df91244234 Distinguish between x64 and x86 installer
Closes #2330
2016-10-01 13:19:43 +02:00
Don Ho
0fa10cb9fa Translation: remove invalidated entries 2016-09-25 12:38:50 +02:00
dail8859
0a7122a6ae Align checkbox
Align the new checkbox with the others. Fixes #2316
2016-09-24 16:56:10 -04:00
dail8859
38c13ca2d5 Update CSS keywords
Fixes #2298 Fixes #711 Fixes #2315
2016-09-24 16:56:10 -04:00
dail8859
10c6dc0174 Skip auto-complete of tags within HTML script
Closes #2282 Closes #2284
2016-09-24 16:56:10 -04:00
dail8859
eddafe55e8 CallTip text uses start/stop/separator settings
Closes #2274 Closes #2278
2016-09-24 16:56:09 -04:00
dail8859
27216901d4 Fix poor performance of hex XML entities
Closes #2245 Closes #2269
2016-09-24 16:56:09 -04:00
Don Ho
8e9e8c04cd Fix a x64 crash issue on macro recording 2016-09-23 23:58:16 +02:00
Don Ho
517d82a29a Fix x64 crash on UDL dialg
Fix x64 crash on new language dialog of UDL
2016-09-23 00:13:49 +02:00
Don Ho
8777d752af Notepad++ release 7 2016-09-22 02:13:36 +02:00
Don Ho
1a0cde0271 Remove unecessary component (ChangeIcon.exe)
Sign all binaries
Add License header
2016-09-21 20:55:10 +02:00
Don HO
f3d88284d7 Make NSIS String more readable 2016-09-21 10:48:06 +02:00
Don Ho
6d2b1e4f5e Remove the old icon 2016-09-21 09:06:22 +02:00
Don Ho
53ca639b17 Adapt wingup new version 4.1 to distinguish between 32 and 64 bit for update 2016-09-20 01:01:40 +02:00
schnurlos
51797bf59e Update german.xml to version 7.0
Closes #2194
2016-09-18 02:15:33 +02:00
gszo123
79277dcd56 Update polish translation.
Closese #2199
2016-09-18 02:09:05 +02:00
Artem Polivanchuk
3cdc9470db Update Ukrainian translation
Updated ukrainian.xml tranlslation for version 7

Closes #2248
2016-09-18 01:53:43 +02:00
xomx
92453d0da6 Update czech.xml translation to v7
Closes #2250
2016-09-18 01:49:45 +02:00
Luca
d9a601acfd Update Italian translation to version 7.0
Closes #2267
2016-09-18 01:44:44 +02:00
dail8859
d0c528e999 Add "void" to PHP keywords
Fixes #2258, Closes #2261
2016-09-18 00:53:04 +02:00
dail8859
78750e9174 Update batch keywords
Closes #2270, Closes #2273
2016-09-18 00:49:27 +02:00
Rajendra Singh
c0c80c28d4 Updated Hindi Translation
Closes #2193
2016-09-17 11:57:21 +02:00
Rajendra Singh
ee2604341d Added Description for Localization in installer
Added description for "Localization" on component selection page in
installer.
Reword some items in installer.

Closes #2281
2016-09-17 11:50:43 +02:00
Rajendra Singh
b491ef0f64 Remove extra slash in Urdu Localization
Closes #2280
2016-09-17 11:35:21 +02:00
Rajendra Singh
a361c8cec7 Corrected typo in nsis script
compability ->compatibility

Closes #2285
2016-09-17 11:32:00 +02:00
Don Ho
c5645d009d Update Croatian & Russian translations 2016-09-17 10:06:05 +02:00
Don Ho
4b18a878e5 Fix NSIS compiling warning 2016-09-16 04:11:27 +02:00
Don Ho
0278554272 Update translations 2016-09-15 00:27:53 +02:00
Don Ho
6bbfc7a095 Add an option to restore the old behaviour while dropping a folder
The new behaviour (by default) is open the folder in "Folder as
Workspace". The old behaviour is open all files in folder (recursively).
Now user can choose it.
2016-09-13 23:12:36 +02:00
Don Ho
e31e37ebc3 Change quitOnEmpty trigger from command line to settings 2016-09-11 11:45:56 +02:00
Don Ho
f71fd6c63f Make command name more accurate
"Title Case" to "Proper Case"
2016-09-10 12:30:43 +02:00
MaxXor
0f44c299f2 Change repository URls
Closes #2219
2016-09-09 23:52:24 +02:00
Don Ho
fc014595a3 Make x32 and x64 packages
Refactoring NSIS installer
2016-09-09 23:26:15 +02:00
Don Ho
a136ec2381 Add a philosophical quote 2016-09-08 00:13:46 +02:00
Don Ho
000e447cb9 Fix "Folder as Workspace" not updating regression 2016-09-05 01:48:42 +02:00
Don Ho
6b3e562d6a Fix crash issue in x64 version while launching Styler Configurator 2016-09-01 02:53:43 +02:00
Don Ho
fae21ebdea Add missing commands in shortcut list 2016-08-30 02:49:50 +02:00
Don Ho
e451efbd29 Add "Search on Internet" for selected words as build-in command
Update translation for French, Chinese and English.
2016-08-29 00:13:28 +02:00
Don Ho
863c4e90c1 Add open file on selection & open container on selection commands 2016-08-22 00:52:26 +02:00
Don Ho
fe01f7501b Update translations
Update english.xml, english_customizable.xml, chinese.xml, french.xml to
7.0
A minor refactoring
2016-08-19 13:39:31 +02:00
Don Ho
a43e2db58f Minor code enhancement 2016-08-18 11:30:33 +02:00
György Bata
c15ff9dc13 Update english.xml
Closes #1475
Add 3 missing translatable items
2016-08-18 11:07:54 +02:00
Dino
b14d3d5f7b Prohibit TAB size 0 in TAB settings.
Closes #1814, fixes #1341
2016-08-17 15:28:07 +02:00
A-R-C-A
438926bbd9 Make Task List dpi aware
Closes #2172
2016-08-17 13:28:55 +02:00
Don HO
40509ccb3d Update CONTRIBUTING.md
C++ conversion - good
C-Style cast - bad
2016-08-17 11:54:53 +02:00
A-R-C-A
3bf382f16b Make margins dpi aware
Closes #2171
2016-08-17 00:12:13 +02:00
Rajendra Singh
60105c9326 Reduce the installer size by 30~35%
Closes #2175
As of now npp installer is not using any compression to reduce the installer size. I don't know if there is any history behind not using any compression algorithm.

But I noticed a reasonable difference after using /SOLID lzma compression technique. It reduces the installer size by 30~35%.
If we uses /FINAL lzma, it is improved by 15~18%.
2016-08-15 16:15:18 +02:00
Vineel Kumar Reddy Kovvuri
f3abc30c7a Recognize new file type via its file extension when file is created from the command line
Closes #2018, fixes #2016
This commit fixes the issue of notepad++ defaulting to 'Normal text file'
file type when creating new file form the command like:
notepad++.exe new_example_file.cpp
2016-08-14 18:28:31 +02:00
vlakoff
311c4e58cf Fix autocompletion for PHP function class_alias()
Closes #1468
2016-08-14 16:19:06 +02:00
Tythos
300a48659b Update MATLAB keywords
Closes ##2109
Added new (>r2008) MATLAB keywords, as returned by MATLAB iskeyword() commant
2016-08-14 13:47:53 +02:00
Fábio Paganini
54f8367c11 Update Brazilian Portuguese
Closes #2121

Add some missing menu itens translation.
2016-08-14 13:38:54 +02:00
Lautis Sun
318a6207ea Update english.xml, chinese.xml : Add 41022 "Open Folder as Workspace" and 44085 "Folder as Workspace"
Closes #1903
2016-08-14 11:30:00 +02:00
A-R-C-A
5f3225b825 Improve tab alignment in Shortcut Mapper
Closes #2160
2016-08-14 11:12:27 +02:00
dail8859
871c5abe5a Save wordchar list during hotspot click
Fixes #2159 Fixes #2164
2016-08-13 13:59:38 -04:00
Don Ho
3f4816b030 Update some binaries and script file 2016-08-13 02:19:27 +02:00
Don HO
d4bcec1c01 Lost in Translation 3 2016-08-11 22:29:39 +02:00
dail8859
a21196d356 Unify line ending terminology
Closes #2038 Closes #2141
2016-08-09 19:28:50 -04:00
Don HO
37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +02:00
Don HO
2e82a99649 Lost in translation
while (true)
{
conversion<C++>(C-Style cast );
}
2016-08-06 01:29:54 +02:00
Don HO
e76c929137 Safer C++ conversion
use static_cast instead of reinterpret_cast
2016-08-03 21:00:40 +02:00
Don HO
f8a24efa90 Fix DLL Hijacking Vulnerability
Closes #2086

DLL Hijacking Vulnerability is present in old version of NSIS. This
issue is fixed by updating new version of NSIS to build Notepad++
installer.
2016-08-03 20:01:52 +02:00
Mark
8b0f5165d2 Added a -quitOnEmpty command line flag
closes #1923, Fixes #1006

-quitOnEmpty command line flag makes Notepad++ to quit when the last tab is closed. Useful for people who use Notead++ for things like editing Git commit messages (using -multiInst -notabbar -nosession), and want to signal they are done editing by closing the tab with Ctrl-W instead of Alt-F4.
2016-08-02 09:49:15 +02:00
dail8859
27d80432d8 Add thousands separator for FindReplace dialog
Closes #2132
2016-08-01 18:24:03 -04:00
dail8859
c547dce797 Add doxygen keywords for C++ lexer
Closes #2131
2016-08-01 18:23:37 -04:00
Don HO
6397ba51e6 Fix a regression that opened file is not selected 2016-08-01 21:32:37 +02:00
A-R-C-A
c76981421f Add Scroll Tab Bar with mouse wheel capacity
Closes #521, closes #522, closes #2071
2016-07-31 23:43:55 +02:00
A-R-C-A
9fe39017cb Added new Option: Enable scrolling beyond last line
Closes #2034

This option configures the vertical scroll range of Scintilla.
Disable this will configure the scroll range to end at last line
(DEFAULT).
Enable this will configure the scroll range to end one page beyond the
last line.
2016-07-31 23:33:29 +02:00
A-R-C-A
9cf45dea29 Add commands for moving the current file tab Forward/Backward
Closes #1864, closes #2033
2016-07-31 23:24:06 +02:00
A-R-C-A
f6e47cd536 Added more Change Case variants
Closes #2032

Added some more Change Case functions (Title Case, Sentence Case,
Invertcase, Randomcase).
Some of them have a normal and a blend version. The normal version will
change any formatting in the start/middle/end part of the word/sentence to
the chosen case. The blend version applies the changes only to the start
part but don't changes the middle/end part of the word/sentence. You can
use it when you want to keep some formatting in the middle/end part, for
instance CamelCase or proper nouns.
2016-07-31 21:48:24 +02:00
A-R-C-A
7fcc20f84a Improved Single Line Comment
Closes #2031

Improved the Single Line Comment/Uncomment/Toggle behaviour for Lexers
with the following condition:

  Single Line Comment Symbol  :  false
  Stream Comment Symbol Start :  true
  Stream Comment Symbol End   :  true

This includes among others: XML, HTML, CSS, Caml, Pascal, ...

In the current Npp a 'Single Line Comment' will do a 'Block Comment' and
the 'Toggle Single Line Comment' entry does nothing at all for these kind
of Lexers.

This implementation uses the stream comment symbols (start/end) to
accomplish a single line comment,
exactly the same way as the usual Single Line Comment/Uncomment/Toggle
functionality does for Lexers with a single line symbol.
This will add more consistency to the Single Line Comment feature.

NOTE
The selection range behaviour has been revised to be more accurate and for
fixing some 'line leaving' bugs when uncommenting.
2016-07-31 21:29:21 +02:00
A-R-C-A
1abac15799 Enhancement: add conflict detection to Shortcut Mapper
Closese #2029
Added a basic conflict detection functionality to the Shortcut Mapper.
This includes:

* Marking conflicts with a different background color.
* Displaying conflict information.
* Warning when attempting to assign an already existing short-key.

Some more related changes to the Shortcut Mapper:

* Fixed some bugs, for instance:
  1. Babygrid was shrinking on any attempt to adjust its position to integral
rows.
  2. Context menu entries were enabled for empty lists. Using them would crash
Npp.
  3. ... some more minor bug fixes.
* Performance enhancements to Babygrid.
* Minor UI improvements.
* Babygrid is configured dpi aware.
2016-07-31 21:08:56 +02:00
dail8859
80ddd05197 Create ISSUE_TEMPLATE.md
Fixes #1678, Fixes #1496
2016-07-25 08:38:40 -04:00
willdevgh
52df792cd9 Fix bug of monitoring not working for files under root
Closes #2061
To reproduce such bug, the file foo.txt to monitor should be in the root folder (ie. c:\foo.txt).
The algorithm is check if folder path has '\' at the end, if no, then add a '\' then append file name.
In the original code, instead of checking folder path, the file name is checked. Since file name doesn't contain '\' (ie. c:\temp), a '\' is always added on folder path which has no '\' at the end. it works for none root folder such as C:\, E:\ or F:\.
2016-07-23 16:32:41 +02:00
Don HO
83f291acf8 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2016-07-23 11:39:04 +02:00
Don HO
30bd15f04a Use C++ conversion instead of C style cast 2016-07-23 11:37:58 +02:00
dail8859
2e4defe459 Simplify word detection for SmartHighlighter
Utilizes SCI_WORDSTARTPOSITION and SCI_WORDENDPOSITION from Scintilla. Fixes #2110
2016-07-22 16:50:40 -04:00
dail8859
bd373788ad Add thousands separator for Summary and Statusbar
Fixes #1329, Fixes #2103
2016-07-22 16:50:39 -04:00
dail8859
13e44916ed Add SCI_LINEENDEXTEND to Parameters.cpp
Fixes #1612, Fixes #2102
2016-07-22 16:50:39 -04:00
Jishin42
7f1fb46223
Updated functionList.xml to support Ruby
Supports def & class
Fix indentation with tabulations
closes #1742
2016-07-20 09:24:33 +09:00
gszo123
2fb505b5a8
translation: updated polish translation to 6.9.2
closes #2055
2016-07-20 09:21:43 +09:00
dail8859
daafd77c51 Skip auto-complete of XML processing instructions
Fixes #2050
2016-07-18 19:21:36 -04:00
dail8859
ace8a4cf58 Revert "Skip auto-complete of <?xml> tag"
This reverts commit 9183281921b180428e3cc748c074db9977d1d5e2.
2016-07-18 19:21:36 -04:00
Don HO
797765173d Improve code quality by using static code analysis tool (cppchecker) 2016-07-18 02:08:29 +02:00
nmlgc
ddf81ecc02 Update old themes to use the correct style IDs for Pascal
Scintilla got a [new Pascal lexer] in version 1.78, which was included in
Notepad++ version 5.4.4. However, this lexer also introduced [new style IDs]
and most of Notepad++'s bundled themes that were created before version 5.4.4
haven't been updated in all that time.

Fixes #249, closes #1912
2016-07-15 02:32:27 +02:00
Don HO
38ddd32ac5 Added some error checking during file saving.
Closese #1930
2016-07-15 02:18:01 +02:00
Christian Grasser
fe7257faf1 Fix the crash issue in UDL
Fixes #1887, Closes #1965
Fix crash issue while UDL's user keyword list is too long.
2016-07-15 01:04:59 +02:00
xomx
79a9f42e37 Update czech.xml translation to v6.9.2
Closes #2068
2016-07-15 00:43:37 +02:00
Don HO
79028b3341 Appveyor artifacts debug and release for x86 & x64
Fixes #1942 Closes #2079
2016-07-15 00:10:15 +02:00
Don HO
2573f4b492 Some code enhancements 2016-07-11 01:07:01 +02:00
Don HO
1e38c628bc Use C++ type conversion instead of C-Style conversion 2016-07-10 02:21:15 +02:00
Don HO
59238e5a2e Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2016-07-09 16:47:37 +02:00
Don HO
472d54d7c9 Fix crash in x64 due to C style cast 2016-07-09 16:47:09 +02:00
Don HO
3b1e722ba6 Fix typo 2016-07-06 16:33:06 +02:00
dail8859
a3bb9d294a Report the correct crashed plugin
Closes #1980
2016-07-05 16:55:24 -04:00
Tmp341
ec433863c3
translation: updated turkish
There was a change in line 89, which states singular other than plural. And id 2036 added too.
closes #1393
2016-07-05 18:16:42 +09:00
gszo123
e770aff94d
translation: fixes for polish.xml
closes #2044
2016-07-05 18:12:56 +09:00
Markus Heidelberg
6dab6621ba
Make Scintilla build properly with GCC/MinGW
Fix GCC compile error: extra qualification 'WordList::' on member 'SetWordAt' [-fpermissive]

Fix GCC compile error: a storage class can only be specified for objects and functions

Fix GCC compile error with invalid usage of conditional operator
  Invoke the "afterthought" part of the for loop in the normal code at the
  end of the loop where proper conditions can be used.
  Error message:
  third operand to the conditional operator is of type 'void', but the second operand
  is neither a throw-expression nor of type 'void'

closes #1656
closes #1655
2016-07-04 18:09:47 +09:00
Markus Heidelberg
aa0bb73981
Adapt .gitignore for Scintilla GCC/MinGW build 2016-07-04 18:08:20 +09:00
Igor Minin
bf2a987ad1
translation: updated russian
Closes #1899, #1900
2016-07-04 18:04:18 +09:00
Luca
5b92b4b9cf
translation: updated italian
closes #1901
2016-07-04 18:03:05 +09:00
Sérgio
ec9bcf00af
translation: updated Brazilian Portuguese
Fix Brazilian Portuguese misspelled words and added some missing entries
closes #1987
2016-07-04 18:03:05 +09:00
Hiro5
87757e1a3f
translation: updated catalan
closes #2001
2016-07-04 18:03:02 +09:00
Mike Schwörer
bb0eea56e5
translation: Removed cloding parenthesis in text 47004
closes #2024
2016-07-04 17:56:07 +09:00
dail8859
9183281921 Skip auto-complete of <?xml> tag
Closes #1999
2016-07-03 16:21:35 -04:00
dail8859
e2ec03c35e Add ellipsis to "Open Folder as Workspace"
Closes #1933
2016-07-03 16:02:10 -04:00
dail8859
ed4143bbdf Skip attempt to auto-complete when closing XML comment
Closes #1977
2016-07-03 16:01:47 -04:00
dail8859
cf4d3d2599 Add xml entity style
Fixes #1991
2016-07-03 16:01:06 -04:00
Don HO
15d4dd16e7 Fix x86 build error 2016-07-03 20:46:58 +02:00
vlakoff
2b87e3a850 Correct "JavaScript" capitalization in themes
Closes #1860
2016-07-03 18:30:23 +02:00
A-R-C-A
3f09ebc976 Fixed crash issue due to unsigned variable
Close #2035
2016-07-03 17:56:17 +02:00
don4d
a82ad53e9c Update given examples 2016-06-20 12:22:47 +02:00
Don HO
c15a0deb35 Make bitness available in DebugInfo 2016-06-17 20:18:06 +02:00
Linquize
c059cc03dc Show Notepad++.exe bitness in about box 2016-06-17 09:18:11 +02:00
Don HO
9835445c8b Detect x32 and x64 compatibility between plugins and Notepad++ 2016-06-17 01:10:32 +02:00
Don HO
5a5582b972 Make Scintilla 64-bit built with boost's pcre 2016-06-15 20:52:24 +02:00
Don Ho
cb25cd6dc2 Add a tech fact 2016-06-12 13:29:44 +02:00
gszo123
15561c8d69 Fix file saving crash due to invald buffer
While trying to save a untitled empty document, user could open a existing
file that erases the untitled document's buffer, then save action make
Notepad++ crash:
https://www.youtube.com/watch?v=balHtvy4Toc
Fixes #1857, Closes #1904
2016-06-08 01:04:41 +02:00
Motaz.Alnuweiri
4c26009a2e Installer Enhancement
Check if Notepad++ is running and ask the user to close it before
continue.
Closes #1876
2016-06-07 23:24:52 +02:00
Don HO
561713e46c Put warning as error in Release x64 build 2016-06-06 20:07:17 +02:00
Don HO
59a23f0386 Fix a crash issue due to CmdLineParams
CmdLineParams object of the block "case COPYDATA_PARAMS" is always made
by another instance of Notepad++, (located usually in C:\Program Files
(x86)\Notepad++\) which is launched by NppShell.dll.
If CmdLineParams structure is modified in the local instance, and file
is opened via NppShell.dll, then crash happeds.
2016-06-06 09:56:36 +02:00
Don HO
2c0b66da43 Remove duplicate line in gitIgnore 2016-06-05 21:50:53 +02:00
Don HO
64d7535be1 x64 ready
1. Remove all warning while compiling in x64
2. Treat warning as error (W4) while compiling in x64
2016-06-05 20:30:22 +02:00
Don Ho
80219be9ac Upgrade WinGup to 3.3 2016-05-24 02:30:48 +02:00
Don HO
3aa44ce9e7 Fix a build problem in Appveyor
Fix a path problem while pushing artifact in Appveyor:
https://ci.appveyor.com/project/donho/notepad-plus-plus/build/1.0.90#L1676
2016-05-22 12:13:44 +02:00
yuyaryshev
9708382bfe Add new command line optio -p : Scroll to indicated position on given filePath
Closes #1777, closes #1776
2016-05-21 20:28:16 +02:00
Christophe Meriaux
d26f910ece Add nighty build in AppVeyor
Add appveyor artifacts
Close #1726, closes#1725
2016-05-21 20:08:12 +02:00
Don Ho
e3c18f61ea Add "Never" button in auto-updater prompt dialog
Update wingup to v3.3 : make Auto-Updater's periodical check being able
to be abdisable via auto-update prompt dialog.
2016-05-21 16:43:41 +02:00
Don Ho
52392a0b81 [RELEASE] Notepad++ 6.9.2 release 2016-05-18 01:47:03 +02:00
Don HO
7e299fdd31 Fix status bar display bug in high dpi environment
Fixes #1536, fixes #356, fixes #366, fixes #539, fixes #1447
2016-05-16 18:19:42 +02:00
Julien Nabet
7b596fa488 Fix some out of index errors
Closes #1851
[PowerEditor/src/Parameters.cpp:2581]: (warning) Array index -1 is out of bounds. Otherwise there is useless condition at line 2568.
[PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp:3079]: (style) Unused variable: newline
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:166]: (style) Array index 'j' is used before limits check.
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:171]: (style) Array index 'j' is used before limits check.
[scintilla/lexers/LexUser.cxx:1128]: (error) Array 'maskMapper[15]' accessed at index 15, which is out of bounds.
2016-05-16 13:25:16 +02:00
antonyflash
d6c2d6cc9f Fix not localized caption of FindReplaceDlg
Fixed not localized caption of FindReplaceDlg when it appear the first time.
Closes #1395
2016-05-16 00:30:33 +02:00
dail8859
0273917bbe Fix open in explorer problem while path contain unusual characters
Wrap path arg in quotes to properly open explorer

Closes #1689, fixes #1628
2016-05-15 22:42:59 +02:00
WGriffing
3ff59b2a70 Update themes' styles for fortran.
Closes #1741, closes #1784
2016-05-15 18:14:55 +02:00
xomx
4dcbc78914 Update czech.xml translation to v6.9.1
Closes #1687
2016-05-15 01:27:54 +02:00
Christian Grasser
163c8a0e5d add missing additional dirs from filebrowser feature also for x64 builds
Closes #1698
2016-05-15 01:09:56 +02:00
Magnus Österlund
620a3c16ab Update Swidish translation
Closes #1710

Info from https://notepad-plus-plus.org/community/topic/164/unofficial-strings-for-translations
2016-05-15 00:53:09 +02:00
dail8859
48d3a8ee04 Fix smart highlighter issue after zoom / code folding change
Fixes #1717, Closes #1718
2016-05-14 15:16:00 +02:00
Linquize
8113476dd7 Fix Selected line count is 0 while the selection is on one line
fixes #1521, closes #1522
2016-05-14 13:41:22 +02:00
Don Ho
e584c47429 Fix several typos 2016-05-14 13:14:22 +02:00
Jan Schreiber
4d829ae373 Update german.xml
Changes for Notepad++ 6.9.1 by schnurlos

Closes #1694
2016-05-14 11:16:28 +02:00
Evgeny Mandrikov
91c9897baf Exception treatment: throw object instead of pointer
Closes #1685
2016-05-14 11:11:01 +02:00
dail8859
4c6e5af484 Safely convert EOLs
Prevent eol conversion frrom readonly file.
Closes #1702, Closes #1701, Closes #1581, Closes #1371
2016-05-14 11:02:16 +02:00
Don HO
d9e62f1af6 Fix an incoherent behaviour in Log Monitoring
Quit Monitoring mode and close file (with user's permission) while
monitored file is deleted or renamed..
2016-05-12 23:59:10 +02:00
Don Ho
4268349bf0 Fix crash bug in Log Monitoring while monitoring a large file 2016-05-11 02:18:04 +02:00
Don Ho
6c4f9a64d2 Add new API to disable auto-updater
New API : NPPM_DISABLEAUTOUPDATE
2016-05-07 23:12:38 +02:00
Don HO
2ff03fe250 New feature: Log Mornitoring (tail -f)
This feature allows users to monitor log files' writing, as Unix "tail -f"
command.
Here are the conditions of monitoring:
1. file to monitor should exist.
2. file will be set as readonly during monitoring.
3. each update will scroll to the last line.
2016-05-07 12:12:18 +02:00
Don HO
50c7e228ff Add new feature: Find in Finder
After finding in files, user can launch the find in Finder dialog from
the finder via its context menu command "Find in this finder...".
Find in Finder feature searchs the other occurrence into found results,,
that allow user to narrow down the search  and to refine their search
results.
2016-03-31 09:35:41 +02:00
Don HO
287ce9ec14 Add a geek joke 2016-03-25 16:52:37 +01:00
Don HO
9a47f14a5f Update README.md 2016-03-24 22:29:58 +01:00
Don HO
2acac98528 Update README.md 2016-03-24 22:15:25 +01:00
Don HO
5b8a7f3feb Update README.md 2016-03-24 22:13:19 +01:00
Don Ho
cf48975b1c Add 2 philosophic deep thought quotes 2016-03-24 21:46:50 +01:00
kozintsev
77c98318a3 Enhance C# keywords
Closes #1661
2016-03-24 16:06:32 +01:00
Luca
84652665d1 Updatee italian.xml to current release (6.9.x)
Closes #1664
2016-03-24 15:38:13 +01:00
squarefractal@gmail.com
e32d678703 Continuous integration with Appveyor
Closes #1526
2016-03-23 17:13:39 +01:00
Don Ho
93c704c857 Add "Open Folder as Workspace" command in file menu 2016-03-19 16:15:21 +01:00
Don Ho
77858aac6a Fix a crash problem of Folder as Project in debug build.
Make sure the folder does exist before adding it for monitoring.
2016-03-18 18:01:46 +01:00
vlakoff
4a89971ee4 Improvements for JSON highlighting
Closes #1349
2016-03-18 17:16:52 +01:00
Maks Naumov
86ab42031f Avoid GetLongPathName() call for files with long name
Fixes #1148; Closes #1150
2016-03-18 17:09:03 +01:00
kanti1992
51cc22fb3d updated polish.xml to 6.8.2
Close #1486
- coding style fixed
- removed no longer used defines (based on english.xml)
- added new translates + fixed previous
2016-03-18 16:34:36 +01:00
Harry Oikawa
d19c35ed7b Update japanese.xml
Closes #1557
To update japanese.xml to version 6.8.2, with some corrections/modifications on wording.
2016-03-18 16:29:45 +01:00
Pavel Nedev
76bf262c2a Fix Find In Files progress bar position bug
Fixes #1531; Closes #1549
the bug concerns multi-monitor systems
2016-03-18 16:01:12 +01:00
Don Ho
24bb021d71 Restore commit history prior to 2009-04-24
Closes #343
2016-03-15 18:28:23 +01:00
Adrian Stanciu
6c70948c4d Fix VS2015 compilation errorrs due to Folder as Workspace
Closes #1472, closes #1563
2016-03-11 16:26:40 +01:00
György Bata
4f6c58d598 Hungarian translation update for Notepad++ 6.8.8
Closes #1474
2016-03-11 15:50:01 +01:00
xomx
0112f44573 Update czech.xml translation to v6.9
Closes #1488
2016-03-11 15:45:40 +01:00
dail8859
86c1138a76 Fix cfa57b6
Closes #1584
2016-03-11 15:41:37 +01:00
popcorner
940152b5cc Update chineseSimplified.xml
Closes #1599
2016-03-11 15:21:53 +01:00
Don Ho
d983212c07 Fix bad detection of sub-folder in Folder as Workspace 2016-03-10 17:38:37 +01:00
dail8859
ce0c298c3e Minor performance enhancement to autocomplete 2016-03-03 21:26:08 +01:00
dail8859
24c11375cf Use SCI_SETTARGETRANGE where possible 2016-03-03 21:25:48 +01:00
dail8859
7d76a18ec8 Let Scintilla deal with some of the folding functionality 2016-03-03 21:25:47 +01:00
Don Ho
338b98dee8 Enhancement: Add "Find in files" command in "Folder as Workspace" 2016-03-03 14:39:12 +01:00
Don Ho
ac45b04bee Update Chinese translation 2016-03-01 23:08:42 +01:00
NN
016e9775df Add Ctrl+Shift+Z for Redo
Fixes #856, Closes #1540
2016-03-01 21:46:44 +01:00
YWX
cfa57b6818 Notepad++ support both SCLEX_FORTRAN and SCLEX_F77
Closes #1381
2016-03-01 21:34:52 +01:00
Don Ho
8aeb6f3f20 Fix html tag auto-completion bug
Closes #1510
Prevent from auto-closing html tag for "br", "hr", "img", "link" and
"meta" not working under Windows 10 32 bits. This patch fix this bug.
This patch prevents also from closing <!doctype>.
2016-02-29 01:32:45 +01:00
Don Ho
86f3a953d6 Fix crash bug in debug mode due to mismatch() function.
1. Use find méthod to detect the prefix instead of mismatch() fuction to
fix the crash bug.
2. Add "<?" for php detection (not only "<?php").
2016-02-27 14:49:08 +01:00
Don HO
19476bbbae Fix debug assert problem
Assert is launched while displaying delimiter settings dialog in
preferences.
2016-02-26 15:05:03 +01:00
Don HO
96fc4bc714 Fix "copy" command bug in find result panel
While find result panel has a lot of results, and user has not scrolled
down yet, this bug can be reproduce easily by command "select all" then
copy - not all the found results are copied into clipboard.
2016-02-25 13:24:58 +01:00
Don Ho
ecfbf906c6 [RELEASE] Notepad++ 6.9 release 2016-02-22 00:36:01 +01:00
Don HO
1305d44be3 Remove 2 unfunny jokes 2016-02-21 20:47:17 +01:00
Don Ho
5197dcd63d Update localization files 2016-02-21 20:39:46 +01:00
Don Ho
877e10f70e Code signing 2016-02-20 15:26:40 +01:00
György Bata
b349dbdc11 Add 3 missing translatable items to master XML for 6.8.8
This is an attempt to add the complete, currently known unofficial strings to original english.xml language template. For version 6.8.8. Don Ho should review them, and make them official.
2016-02-14 11:56:27 +01:00
Don Ho
1b29aeff2b IE never dies, it just fades away 2016-02-13 18:34:32 +01:00
Don Ho
951c51a32a Fix a GUI bug of "Folder as Workspace"
Bug : while click on close button of Folder as Workspace Panel, it still
appears activated on toolbar and in the menu.
2016-02-12 22:21:20 +01:00
dail8859
d7a0649c1f Adds string styles to other themes for D
Closes #1146, fixes #1445
2016-02-11 22:48:01 +01:00
Don HO
c53d7ea109 Add unique 0 to verilog keyword list 2016-02-11 18:32:39 +01:00
dail8859
5e3313d8a5 Selection start is gauranteed to return the smaller of the two positions
Closes #1373
2016-02-11 15:30:05 +01:00
dail8859
faf107a4ef Use built in Scintilla commands for moving lines up/down 2016-02-11 15:29:39 +01:00
Don Ho
ae4503ebbe Folder as Workspace enhancement
Try to open a sub-folder of an already opened folder will make a new
selection of this sub-folder.
2016-02-11 15:04:29 +01:00
Don Ho
3dbdb52448 Folder as Workspace - Bonus: Shell Execute command 2016-02-09 00:18:13 +01:00
Don Ho
058c9d5923 Folder as Workspace (implementation done) 2016-02-08 01:34:33 +01:00
Don Ho
7d0d874296 File Browser (New name: Folder as Workspace) - in progress
Add "copy path", "add folder" and "remove all folders" 3 menu commands.
2016-02-06 14:58:42 +01:00
Don Ho
81deab0554 File Browser (In progress)
1. Memorize the opened folders for the next session.
2. Add tip infos.
3. Add "Explorer from here" & "Command from here" context menu.
2016-02-02 19:06:23 +01:00
Don Ho
fb189fa247 File Browser (in progress)
Make it more stable and usable.
2016-02-01 01:25:20 +01:00
Don Ho
0ad1964d1d File Browser (in progress)
Make file and folder add/delete/rename detection from outside work.
2016-01-28 19:05:41 +01:00
Don Ho
a1c608ba61 File browser (in progress) 2016-01-25 00:51:34 +01:00
Don Ho
07ce6c2516 New feature: File browser 2016-01-23 02:25:44 +01:00
Don HO
576de36a12 Add Objective-C++ file extension "mm" for Objective-C 2016-01-19 11:35:29 +01:00
Don Ho
f2cd779066 Fix crash issue due to the bad fix of touchscreen hanging issue
This crash issue is a regression due to
6f4140a281f87316911776e7375f6c86dc4f5bdc which was intended to fix a
touchscreen hanging bug.
The crash issue is fixed in this commit, as well the touchscreen hanging
issue thanks to the answer from StackOverflow:

http://stackoverflow.com/questions/34816597/messagebox-not-responsing-in-wm-activateapp-on-touchscreen/34825851#34825851
2016-01-16 13:00:39 +01:00
Don Ho
7ba01cb7f4 [RELEASE] Notepad++ 6.8.9 release 2016-01-13 22:39:45 +01:00
Don Ho
6f0b57ed0d Update swedish.xml to v6.8.2 2016-01-11 23:16:57 +01:00
Don Ho
96fd7947a1 Enlarge text control items to fit translated texts
Closes #554
2016-01-10 14:56:38 +01:00
dail8859
7fc86fb3c4 Make behavior of SHIFT+END and SHIFT+HOME more consistent when word wrapping is enabled
Closes #273, fixes #255
2016-01-10 01:25:56 +01:00
Don HO
7213ee053b Update italian.xml 2016-01-10 00:35:18 +01:00
squarefractal
4423ed1528 Add new keywords in C and C++
Close #1065
Add (u)int{8,16,32,64}_t, {size,time,clock,wchar}_t and FILE datatypes for C, and {clock,ptrdiff,time_t} datatypes for C++.
2016-01-10 00:28:43 +01:00
squarefractal
74a0c8c398 Prevent HTML tags with no closing tags from being autocompleted.
Closes #1068
2016-01-10 00:11:28 +01:00
Stefanos Anastasiou
624e5fa1ae Add new API NPPM_SAVEFILE to save any file.
Close #1214, closes #817
This API saves a file without having to actually focus on the file.
// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
2016-01-09 23:42:25 +01:00
dail8859
1c84051d99 Allows user defined extension to associate workspace files
Closes #209; Close #169
Files ending in the defined extension will be opened in the project panel instead of as a normal file to edit (much like how the session file extension works).
2016-01-09 22:59:52 +01:00
Don HO
4c53179c52 Update english.xml 2016-01-09 22:48:34 +01:00
squarefractal
6091910dda Add lex file extension for treating lex sources as C files
Closes #1066
2016-01-09 19:36:38 +01:00
vlakoff
09d505ab1d Enhance JS keywords and JSON in Zenburn theme
Closes #1337, Closes #1338, Fixes #1303
Add JSON language to Zenburn theme
Add "null" literal to list of JavaScript keywords
2016-01-09 19:19:42 +01:00
Don HO
7bad388361 Update chineseSimplified.xml 2016-01-09 18:22:14 +01:00
popcorner
a088675c36 Make simplified Chinese translation more understandable.
Close #1340
2016-01-08 15:41:00 +01:00
xomx
35933c1fc6 Update czech.xml translation to v6.8.7
Closes #1203
2016-01-08 15:25:42 +01:00
kms70847
90ec3f10d1 Remove "triple" from the list of Python keywords
Closes #1243
"triple" is in the list of keywords for Python, but it is not actually a Python keyword.
2016-01-08 15:19:55 +01:00
Sarang Baheti
0d35d607bd Enhancement: better error messages when plugins fail to load
Close #1284
2016-01-08 15:12:11 +01:00
dail8859
70175ee8be Add YAML keywords and indentation 2016-01-08 15:00:12 +01:00
Don Ho
9636431f94 Update License
1. Remove added lines which could make void License from GPL text.
2. Update the header (notepad++ statement to prohibit rewrapping
practice).
3. Remove space at the end of each line.
2016-01-04 14:56:48 +01:00
NN
374d669948 Add file extension of JS based languages
Add JSX TSX and TS (Closes #1216)
TS is TypeScript , javascript based language from Microsoft.
JSX is javascript with xml elements. Used in React framework.
TSX is JSX with TypeScript. ( I forgot to add it )

https://en.m.wikipedia.org/wiki/TypeScript
https://en.m.wikipedia.org/wiki/React_(JavaScript_library)
https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript
2016-01-03 19:26:32 +01:00
Luca
a1b55e5052 Update italian.xml to version 6.8.8
Closes #1315
2016-01-03 19:20:53 +01:00
vlakoff
a459d10e03 Show dialog before printing via toolbar icon
Closes #1278, fixes #1215
So little change, such hassle less, much paper saved, wow.
2016-01-02 20:15:10 +01:00
qme5400
bc4603ef00 Add FreePascal/Lazarus pascal files extensions
Closes #1261
(www.freepascal.org) (www.lazarus-ide.org)
2016-01-02 20:10:09 +01:00
dail8859
03c8e0c80c Add identifier style to R
Closes #1264, closes #1265
2016-01-02 20:05:43 +01:00
Hiro5
fc0664d158 Update catalan.xml
Closes #1276
Updated to np++ 6.8.8.
3 strings added, and 1 changed a little bit.
2016-01-02 19:59:46 +01:00
Don Ho
5c48259aee Clean up
Remove unnecessary directive.
2015-12-26 01:17:01 +01:00
Don Ho
6f4140a281 Fix Notepad++ hanging issue while user uses touch screen to activate Notepad++ windows
Make checkModifiedDocument as thread to avoid Notepad++ hanging while
user uses touch screen to activate Notepad++ windows.
2015-12-25 16:41:26 +01:00
Markus Heidelberg
715a64a32a Make GCC/MinGW build work again and support cross-building under Linux
Close #1229, Fixes #385
Only build errors are fixed, compile warnings are left alone. To reduce
the number of changes, even the compiler option "-fpermissive" has been
used to downgrade several errors to warnings.
2015-12-15 17:10:46 +01:00
Don Ho
2d7ae96a64 [RELEASE] Notepad++ 6.8.8 release 2015-12-10 01:07:07 +01:00
Don Ho
232ccc7d46 Revert 735e0193822f9f39db6816e0d63e27650753e975 for preventing from regression 2015-12-09 19:58:43 +01:00
Don Ho
53809d8ef9 Fix Slovenian translation not working problem
The old version contain UTF8 BOM.
The new version remove UTF8 BOM, and solve the problem.
2015-12-09 17:43:42 +01:00
Luca
45ea135848 Update Italian translation for v6.8.7
Add 6430 string
2015-12-09 15:50:19 +01:00
Don Ho
c54bc72b90 Enhance debug info display message 2015-12-09 00:41:08 +01:00
Don Ho
773397d6ea Add Debug Info feature 2015-12-07 01:15:17 +01:00
Don Ho
48e9b84bb2 Enhance the version detection capacity
By adding targeting in notepad++.manifest:

https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx
Windows 8.1 and windows 10 are detected correctely
2015-12-05 21:39:53 +01:00
Don Ho
6c7ca02fea Add no editor border edge option
Close #707
Add no editor border edge option in preferences dialog.
Add new API NPPM_SETEDITORBORDEREDGE
2015-12-04 19:01:28 +01:00
Flobe
32b45e16d8 Minor coding style fix, removed unecessary comment
Closes #1192, fixes #868
2015-12-04 13:06:59 +01:00
SEATURCH
e800e7efbf Removed unneccessary, refactored out code left in as comments for review 2015-12-04 13:06:32 +01:00
SEATURCH
d96f8890f7 Changed testing of whether or not position is within comment section through xml definition of system versus self testing character sequence 2015-12-04 13:06:31 +01:00
Amy Wu
e37354842d fixes highlighting for tags inside comment, needs improvement 2015-12-04 13:06:30 +01:00
dail8859
7b2b640357 Add styles for additional strings in D
Closes #1099, closes #1210
2015-12-04 12:58:49 +01:00
dail8859
4fee79907b Add styles for Powershell
Close #1184
Comment blocks, here-strings, here-characters, and comment document keywords. Closes #1183
2015-12-01 17:03:27 +01:00
dail8859
378673da90 Add styles for Lua label and identifier
Closes #1181, closes #1182
2015-12-01 17:01:43 +01:00
dail8859
5b45ddb7d9 Add style for Python decorator
Closes #1179, closes #1180
2015-12-01 16:56:47 +01:00
dail8859
6a91b26af0 Add styles for preprocessor comments
Closes #803, Closes #1180
2015-12-01 16:54:53 +01:00
Pavel Nedev
accf7da2d1 Fix find in files progress window alway on top issue.
Closes #1202. Fixes #293, fixes #1198

Progress window is not "always on top" anymore.
2015-12-01 16:05:12 +01:00
Don Ho
0e6e84c0ed Fix a regression of link style in html/php
This regression was inserted by d8f6ac67ea31a33feaeca37f00d01835ce9904d7
2015-12-01 15:23:23 +01:00
Eduard Braun
5b7f900ce8 Improve and simplify drawing of tabs in TabBarPlus
Closes #1075

- All positions are dynamically calculated relative to the tab rectangle now (i.e. no hardcoded pixel values are used to position icons/text anymore)
- Match positioning of icons/text in active and inactive tabs (i.e. elements are not "jumping around" anymore upon selection)

Some specific fixes:
- Most issues with vertical TabBar are resolved now (it was basically unusable before, for example labels were cut)
- Darkened background of inactive tabs fills the whole tab now (fixes #1011)
- Close button is centered correctly now (fixes #1010)
2015-11-30 17:08:48 +01:00
Don HO
da144f4688 Update CONTRIBUTING.md 2015-11-29 22:04:36 +01:00
Don Ho
901f772e54 Small cosmetic enhancement in preference dialog 2015-11-29 22:00:22 +01:00
vlakoff
48238b704b Fix some bugs and inconsistencies in installer
Closes #1100
2015-11-29 19:52:21 +01:00
Don Ho
9a419cec57 [RELEASE] Notepad++ 6.8.7 release 2015-11-26 23:39:55 +01:00
Don Ho
b61170d669 Restore file extension feature in save dialog
Fixes #1159, fixes #1129
Restore file extension feature in save dialog: make new style save
dialog optional (without file extension feature).
2015-11-26 19:09:40 +01:00
Pavel Nedev
89cd163cca Fix crash issue while moving Find In Files progress window
Close #1187, Fixes #1172
Fix crash issue when moving the Find In Files progress window while the
search finishes.
2015-11-26 14:52:58 +01:00
Christian Grasser
d8f6ac67ea Remove scintilla deprecated calls/defines
Closes #1174
remove deprecated INDIC1_MASK and INDIC2_MASK, see http://www.scintilla.org/ScintillaDoc.html#DeprecatedMessages
2015-11-26 13:27:10 +01:00
Don Ho
d7b0eb9ebf Enhance language detection while "Save as"
By using detectLanguageFromTextBegining function
2015-11-26 09:25:09 +01:00
Christian Grasser
735e019382 Remove scintilla deprecated calls SCI_SETSTYLEBITS
Close #1173
Remove deprecated call to SCI_SETSTYLEBITS, see http://www.scintilla.org/ScintillaDoc.html#DeprecatedMessages
2015-11-25 13:59:19 +01:00
Don Ho
d24d3bc33c Add a new translation and update some translation 2015-11-24 23:54:58 +01:00
Artem Polivanchuk
0b1832e2ba Update ukrainian.xml
Closes #1120
2015-11-22 20:47:46 +01:00
fpaganini
7c791956c5 Update brazilian_portuguese.xml
Closes #1118, closes #1155
Add new features translates.
2015-11-22 20:32:55 +01:00
cpasmoi
91b9503beb french.xml typos + improve 2015-11-22 20:24:50 +01:00
JAMESY9868
5b8f8ac800 Fix Chinese wrong translate.
Closes #1079
空白操作->空白字符操作
2015-11-22 19:57:55 +01:00
vlakoff
14c84f68e1 Update GetWindowsVersion installer script to 4.1.1
Closes #1164
Adds support for Windows 8.1 and 10
2015-11-22 17:52:59 +01:00
Don Ho
5d369194d9 Make the name CMake right 2015-11-22 10:23:42 +01:00
Don Ho
c866bb7e95 Make several language names right
Fixes #907
2015-11-22 00:13:08 +01:00
Stanislav Golovin
7fbdb31dee Add back-quoted string support for javascript
Closes #1084, Fixes: #1055
2015-11-21 15:25:17 +01:00
Don Ho
8e43715baf Fix tab settings not working in javascript
When tab settings exists only for L_JS (the old settings) but if the
current document is L_JAVASCRIPT, tab settings for L_JS won't apply to
L_JAVASCRIPT document.
The fix is to use L_JS's tab settings for both L_JS and L_JAVASCRIPT
documents, and to synchronize the values of both type while user
modifies javascript tab settings.
2015-11-20 18:26:38 +01:00
Don Ho
08bc46ddfa Fix user defined keywords no effect in Javascript.
Fixes #1152
2015-11-20 17:40:50 +01:00
Christian Grasser
71edfb2dba Fix out-of bounds read access issue for smart highlighting.
Closes #1111
See https://github.com/notepad-plus-plus/notepad-plus-plus/pull/187/files
, see also comments added in the PR:

String returned by SCI_GETWORDCHARS from scintilla is not null terminated, so check for strlen in isWordChar() below on listChar is dangerous as strlen accesses data after the buffer until the first following null is found in memory
- seen with MS Application Verifier on x64 release
- expected to also happen on win32 x86 release
2015-11-18 12:12:52 +01:00
Don Ho
54cf3ca3a3 Let user choose to keep DSpell or not in Installer 2015-11-13 00:07:21 +01:00
JAMESY9868
43a7f39d47 Make "change Cace To" translation correct.
Close #1077
2015-11-01 22:55:21 +01:00
Don HO
e8af7b0770 Update CONTRIBUTING.md 2015-11-01 21:01:41 +01:00
dail8859
5bb6c81615 Move position to center when using "-n" option
Closes #1073, fixes #923
2015-11-01 13:22:48 +01:00
Don Ho
94bddd5a85 Fix crash due to backups and session snapshots
(Closes #1070)
When backups and session snapshots feature is enabled, batch
modification a big file could make Notepad++ crash. The solution is to
prevent from backing up modified file during the operation of batch
modification.
2015-10-31 14:54:32 +01:00
Don Ho
3733d97146 [RELEASE] Notepad++ 6.8.6 release 2015-10-29 02:15:49 +01:00
Don Ho
88e390fbc0 Fix 3 bytes file open issue
(Fixes #725)
Open a file of 3 bytes length with '\0' in the middle, only 1 character
shown in editor.
Such file is detected as UTF16 w/o BOM, that makes the wrong length
interpretation. Adding the "len mod 2 == 0" condition to enhance the
detection is the only solution I can find so far.
2015-10-28 01:57:47 +01:00
Don Ho
fe62ff989b Make function naming more explicite 2015-10-27 17:26:29 +01:00
Don Ho
7e8218f735 Fix wrong EOL detection for big files while reloading 2015-10-27 16:51:31 +01:00
Don Ho
280ddcd493 Make the EOL type more explicite 2015-10-27 15:35:19 +01:00
dail8859
2fd963d932 Fix wrong EOL mode for big files
Closes #1054, Fixes #1002

The problem is if fread() is called multiple times, then
UnicodeConvertor->convert() is called multiple times, which causes
m_pNewBuf to point to the last read in chunk. Then after the entire file
was loaded, getEOLFormatForm(UnicodeConvertor.getNewBuf(), ...) was being
used which was only trying to detect the EOL mode from the last read in
chunk. If this last chunk started with \n then the file was detected as
Unix line endings. The file linked from issue #1002 happened to have just
the right situation where this occurred.
2015-10-27 14:03:08 +01:00
Don Ho
14edff6892 Fix maintain indent not working in javascript regression 2015-10-26 12:33:40 +01:00
dail8859
459d59f8ba Update DocMap when setting user or external lexer
Closes #1050, fixes #1009
When setting the language to a user defined or external lexer, the DocMap
was not being refreshed to the new syntax.
2015-10-26 00:17:47 +01:00
Don HO
c2eb1e1919 Update english.xml
I have asked a question to a friend in USA for which one should I use, here is his answer:

1. "Extended (\r, \n, \t, \x..., \0)"
2. "Extended (\n, \r, \t, \0, \x...)"

The ellipsis (three dots) means that the list does not show everything that could be shown. 
If you mean that there are more items than what you can show, but you are listing just the most important ones, you want the second one. 

The first one implies that you are following a certain order and that some items are not listed but that \0 is last, either in list order or importance. At least, that's what it looks like to me.
2015-10-25 20:04:15 +01:00
Don Ho
ef38c0209c Fix reload file but document marked as unsaved bug
Closes #689
2015-10-25 01:50:07 +02:00
NN
8ba3a46b89 Synchronize VS2015 project
(fixes #1003)
2015-10-24 22:02:07 +02:00
dail8859
7781f1d03e Fix possible file corruption during macro playback
closes #1007, closes #919, closes #834
When backups are enabled, playing back a macro that takes a while can
corrupt a file (see the mentioned issues). I tested this with a ~100,000
line text file, ~3.3MB in size. Created a macro of Down5, Delete10. Played
this till the end of the file. Took about 20s to run so it had a few
backup cycles during it. Reproduced it fairly easily and never had it
happen after this adjustment.
2015-10-24 19:32:37 +02:00
Hiro5
6f9c845c17 Update catalan.xml
Update to v6.8.2.
Just one missing line (id="47004"), and a few small changes.
(closes #1033)
2015-10-24 18:50:09 +02:00
Luca
17e5e4ea6d Update italian.xml (6.8.2) 2015-10-24 18:44:00 +02:00
Don Ho
0b9ea49d5d Make it conform to the coding standard. 2015-10-23 00:07:44 +02:00
Don Ho
ae7c93305a Merge remote-tracking branch 'remotes/g3candy/master' 2015-10-22 23:51:53 +02:00
Frank Fesevur
8ac0aba68e Improve the language detection at the beginning of file content
* The Shebang detection is much improved:
  - detect more languages
  - not tied to any specific full path
  - See https://en.wikipedia.org/wiki/Shebang_%28Unix%29 for more details about Shebang
* There is not need to have a space after <?php. Closes #1014
* Remove the closing > in the html doctype to support older
* versions of html as well
2015-10-22 17:21:38 +02:00
Frank Fesevur
6526dd0b26 Improve the language detection at the beginning of a file
* The Shebang detection is much improved:
  * detect more languages
  * not tied to any specific full path
* There is not need to have a space after <?php
* Remove the closing `>` in the html doctype to
  support older versions of html as well
2015-10-22 17:21:16 +02:00
gerr
f632bc3b99 Merge remote-tracking branch 'origin/master'
Conflicts:
	PowerEditor/src/ScitillaComponent/Buffer.cpp
2015-10-22 15:59:50 +01:00
gerr
751069ab83 changed the semantics for fallback line endings. When the file format (line endings), can't be deduced (empty files, files without any newlines), then the buffer uses the setting for the Newdocument 2015-10-22 15:52:25 +01:00
Don Ho
49260a1dee Fix functionlist not working for Javascript regression. 2015-10-19 23:32:44 +02:00
Don Ho
828e14aca1 [RELEASE] Notepad++ 6.8.5 release 2015-10-18 23:00:48 +02:00
Don Ho
986492e47b Fix Javascript autocompletion not working regression. 2015-10-18 20:12:40 +02:00
Don Ho
8e103d837a [RELEASE] Notepad++ 6.8.4 release 2015-10-16 21:02:54 +02:00
Krzysiu
4c95669234 Update polish.xml
Fixed untranslated strings, removed jokes (sic!), fixed grammar, typography, typos, unification of translation, removed Love of RANDOM capiTaliZation.
2015-10-16 11:10:14 +02:00
Yves Goergen
6b16ba2ef3 Update German translation
Added back spaces before ellipses, used proper ellipsis character
2015-10-16 10:54:28 +02:00
Yves Goergen
3678644a94 More clarifications and consistency edits in menus and dialog windows 2015-10-16 10:53:56 +02:00
Yves Goergen
3a9c2b2dd8 More fixes in menu texts (consistent wording, unique accelerators) 2015-10-16 10:53:55 +02:00
Yves Goergen
2edee1dbb3 Removed space before ellipses in German translation 2015-10-16 10:53:54 +02:00
Cyrillev91
037b41e29a Fix smart highlighting not working in some case.
Change isQualifiedWord because isQualifiedWord use hardcode and no SCI_GETWORDCHARS smarthighlight is not always OK.
This Fix use SCI_GETWORDCHARS. (closes #187)
2015-10-15 10:33:13 +02:00
Don Ho
6571731236 Enhance auto-insert for parenthesis, bracket and Braces
Enhance auto-insert behaviour for parenthesis, bracket and Braces inside
of
parenthesis, bracket or Braces.
2015-10-14 20:38:12 +02:00
Don Ho
2c80fc3018 Fix file content detection for xml/html/php/bash
Add the ability of take into account Unicode BOM for file content
detection (xml/html/php/bash).
2015-10-13 21:15:50 +02:00
NN
2cbc6a7a99 Make WarningAsError true for 64-bit builds 2015-10-13 14:16:26 +02:00
Don Ho
bb2f771cba Merge remote-tracking branch 'remotes/NN---/x64' 2015-10-13 14:01:39 +02:00
Don Ho
e81ac898c0 Enhance auto-insert for quotes and double quotes
Enhance auto-insert behaviour for quotes and double quotes inside of
parenthesis or bracket.
2015-10-13 12:16:04 +02:00
Don Ho
963d7fc885 Enhance Javascript syntax highlighting
Separate the normal javascript (*.js) syntax highlighting from the
embbeded Javascript (in html) syntax highlighting.
2015-10-11 21:32:41 +02:00
Don HO
e5493a7210 Update bengali.xml 2015-10-09 20:23:52 +02:00
Don Ho
34307173fb Applying language by using file extension as 1st indicator.
Applying language by using file extension as 1st indicator instead of
detection via file content.
2015-10-09 17:32:23 +02:00
Don Ho
981ee5ed72 Fix macro playback inseting/removing characters randomly.
Fix macro playback inseting/removing characters randomly due to
auto-insert interfering during macro recording and playing back. (fixes
#649, fixes #970, fixes #304, fixes #992)
2015-10-07 17:55:29 +02:00
Don Ho
35adb1910b Enhance auto-insert
Make auto-insert more usable - no auto-insert if the following (and
previous character - in the case of quote or double quote) character is
not blank character. (fixes #584, fixes #450)
2015-10-06 18:07:30 +02:00
NN
ff8949d65b Review changes 2015-10-05 20:06:15 +03:00
Linquize
52dda771d3 Remove non-existing files from vcxproj.
Remove files in vcxproj that do not exist to avoid rebuild all the time.
(closes #939)
2015-10-05 15:40:44 +02:00
Adrian Avramescu
90afac88c4 Fix Save All button is still enabled problem while no file to save.
Update state after closing tab (closes #935, fixes #850, fixes #915)
2015-10-05 02:33:20 +02:00
NN
bd54295e15 64-bit fixes 2015-10-04 22:06:39 +03:00
NN
46e6bed223 Merge remote-tracking branch 'base/master' 2015-10-04 21:51:52 +03:00
Jon Fritzler
f02e567c9e Fix slow tab switching while folding restoring.
Resolve slow tab switching of folded XML file by setting the isFolding
flag to true, so it can ignore events while folding is taking place, when
switching tabs and when loading the next tab after deleting a tab.
(closes #168, fixes #236 #329)
2015-10-04 12:31:20 +02:00
dail8859
fefdda75f6 Update CONTRIBUTING.md
closes #985, fixes #984
2015-10-02 17:15:10 +02:00
NN
37c0a5958b Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-10-01 12:30:18 +03:00
Linquize
02b342f441 Fix x64 crash in Find all files (closes #954, fixes #953)
This issue has begun since d9299e644f4deaaebd2a00dd9e97986565c83e02
2015-09-30 18:00:36 +02:00
Don Ho
4836f4b004 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-09-30 00:10:53 +02:00
Don Ho
d738f80d7e Make file save dialog modern style 2015-09-29 18:35:24 +02:00
dail8859
dd31ea2e66 Fix auto-insert for xml comment incorrect insertion (closes #598, fixes
Skip auto-insertion detection for xml comment tag.
2015-09-26 15:53:44 +02:00
Don Ho
be057973bc Remove unpopular xml file extension from lang.xml file.
The fact that xml format can be detected now, these unpopular file
extensions are no more needed for applying xml lexer.
2015-09-26 13:14:34 +02:00
NN
1fd41dbeb6 Merge remote-tracking branch 'base/master' 2015-09-24 09:58:25 +03:00
Don Ho
7a25c9827e Make tabbar higher 2015-09-22 20:33:28 +02:00
Don Ho
37c4eb123c Enhance bash auto-detection. 2015-09-21 09:12:29 +02:00
Don Ho
46e810aa53 Add JSON language support; Add auto-detection for xml, php and bash. 2015-09-19 18:49:55 +02:00
Don Ho
11b49e6ad5 Remove wrong committed file 2015-09-19 18:44:22 +02:00
Don Ho
9b91480ecf Add language auto-detection for php, xml, html and bash
Check the beginning of file content to learn which programming language
in the content.
The detected lang type will be applied only if php, xml, html or bash is
detected.
The language type is determinated via file extension, if the file
extension is unknown or  the determinated lang type is different from
the detected value, then the detected lang type via the file content
will be used.
2015-09-19 18:44:19 +02:00
Don Ho
69a57e5e8d Fix user command save problem on exit. 2015-09-16 17:56:12 +02:00
Christophe Meriaux
4df21f16dc Fix macro save problem on exit. (closes #831, fixes #830) 2015-09-16 00:40:28 +02:00
Don Ho
27787fa062 Remove bad asserts.
Remove 2 incorrect asserts.
Add 1 correct assert.
2015-09-14 23:52:48 +02:00
Don Ho
ae324bd97e Remove NppFTP
Remove NppFTP due to System error on startup -
api-ms-win-crt-runtime-l1-1-0.dll is missing
2015-09-14 23:21:12 +02:00
Don Ho
44e9a03101 Fix the restoring problem from system tray when running in admin mode (closes #884)
It seems the notification area is locked (for the sake of security)
while application is in Admin mode.
Disabling the tray icon mode while Notepad++ is in Admin mode is the
compromised solution.
2015-09-11 01:34:28 +02:00
Don Ho
2854de22ec [RELEASE] Notepad++ release 6.8.3 2015-09-04 20:24:46 +02:00
Don Ho
40c902425f Update localization files 2015-09-03 23:50:01 +02:00
Don Ho
ea548169cc Fix a display regression in functionList Panel.
Fix a regression inserted by:

bd6d650e8a
2015-09-03 20:50:51 +02:00
György Bata
5c48338f4e Update Hungarian translation for Notepad++ 6.8.2 (closes #758)
Hungarian translation update for Notepad++ 6.8.2
2015-09-03 18:35:27 +02:00
Tmp341
286a65851e Update turkish.xml (closes #767)
Catch up with the english.xml for v6.8.2 update
2015-09-03 18:31:01 +02:00
Lin Xiao
35b9f5e376 Update Chinese (Simplified) translation (closes #770) 2015-09-03 18:26:57 +02:00
h-h-h-h
e0cfa3abc5 Update german.xml (closes #779)
Changed "Mark occurences" to "Mark" as in English language file. This is obsolete. You could also say: "Replace occurences".

Also, used the same word as in menu rather than a different one.
2015-09-03 18:22:38 +02:00
Artur
db658ff503 Update RUSSIAN translation for v.6.8.2
Reworked fast access
Small fixes
2015-09-03 18:17:30 +02:00
Artem Polivanchuk
7621ca2a91 Update translation ukrainian.xml (closes #818) 2015-09-03 18:11:07 +02:00
squarefractal
ffaa74c15a Update Obsidian theme for diff/patch syntax highlighting (closes #841)
Make the Obsidian theme color additions, deletions and position indicators in diff files.
2015-09-03 18:03:22 +02:00
squarefractal
8e9fe97500 Update shell/bash keywords (closes #839)
Add a few more commonly available commands, and remove a few deprecated/rarely used commands.
2015-09-03 17:46:19 +02:00
Rikk
bd6d650e8a Fix functionList display problem under high DPI (closes #739, fixes #733)
- Fix: when search field is not empty, Function List's background color does not follow Npp theme.
- Fix: close button and textual search box now scale in high-dpi.
- Fix: icons' image not centered in icons' rectangle.
- Fix: when double-clicking the panel's toolbar, it briefly displayed a dialog to customize icons, but we can't use it there.

Known issues:
- I couldn't made toolbar icon images scale properly in high-dpi; I imagine they need to be in a ImageList, something I don't know how to use.
- TreeView icons should also be scaled, and I've done it, but they displayed strange gray background, so I decided to leave it as is now.
- It would be better to wrap icons when they don't fit in panel's width, but I don't know how to refresh the toolbar properly.
2015-09-03 17:24:27 +02:00
Christian Grasser
d8acff80d0 Add final and override for c++ 11 in fuctionList (closes #790)
, see:
- http://en.cppreference.com/w/cpp/language/final
- http://en.cppreference.com/w/cpp/language/override
2015-09-03 16:59:43 +02:00
Don Ho
429dfb0ab8 Fix Norwegian localization bad display and wrong encoding. (closes #561)
Fix Norwegian localization.
Fix Nynorsk localization's minor problem.
Update english_customizable.xml.
2015-08-30 02:54:30 +02:00
Don Ho
4fc06e2bc1 Fix plugin shortcut configuration lost problem by using option -noPlugin. (closes #589)
Solution: save shortcut.xml only if shortcuts have been modified.
2015-08-29 21:49:49 +02:00
Don Ho
d7ca1eaaf6 Fix the problem of display refresh missing in exit (closes #800)
Solution: release lock updating before killing main handle.
2015-08-28 01:05:36 +02:00
Don Ho
6db831fcd0 [ADD] Add assert. 2015-08-26 09:03:21 +02:00
Don HO
dc4897c8f2 [BUG_FIXED] Fix the crash by using wide card to open files on cmdline.
By using string instead of char * in the constructor std::string::string() make a call:
string (const string& str, size_t pos, size_t len = npos);
instead of:
string (const char* s, size_t n);
2015-08-25 14:39:11 +02:00
Don HO
091082c31c [REMOVE] Remove unpopular file extensions 2015-08-22 19:27:10 +02:00
Ricardo
ea8c4f21f9 langs.model.xml: Additions to PHP highlight (closes #700)
+ August 10:
  * Added/updated Functions and Predefined Constants from these categories: Direct IO, xdiff, xattr, Proctitle, Inotify; Math, Statistic, BC Math, bcmul, GMP, Trader; Zip, Zlib, Bzip2, LZF, Rar; PDF, PS, RPM Reader, GnuPG, FDF, Ming; OpenAL, ID3, oggvorbis; Cairo, GD and Image, Exif; IIS, COM, win32ps, win32service, Eio, Expect, Libevent, PCNTL, POSIX, pthreads, WinCache; Session, Msession, Session PgSQL; Ncurses, Newt, Readline, Kerberos V, Radius; Mailparse, Cyrus, vpopmail; SVN, SSH2, Socket, TCP, Gupnp, Gopher, SNMP, mqseries; MCVE, SPPLUS; BBCode, ssdeep; bcompiler, APC, APD, Blenc, OPcache, Xhprof; SPL, GeoIP, Yaml, Fann, Judy, Parsekit, Taint, Tokenizer, Tidy; mnoGoSearch.

+ July 25:
  * Comprehensive addition of PHP Functions and Predefined Constants from systems running these PHP versions: 5.6.8 (win), 5.5.24 (win), 5.4.38 (linux), 5.3.10 (linux) and 5.3.5 (win).
  * Added "array_sort" that is not in any list.

+ July 20:
  * Added/updated Functions and Predefined Constants from these categories: Multibyte String, HTTP, intl.
  * Added procedural style Functions and Predefined Constants related to databases: CUBRID, DB++, Firebird/InterBase, FrontBase, IBM DB2, Informix, Ingres, MaxDB, Mongo, Mssql, MySQL, MySQLi, OCI8, ODBC, Paradox, PostgreSQL, SQLSRV, SQLite, SQLite3, dBase, dbx, filePro, mSQL, Sybase.
2015-08-20 13:57:54 +02:00
Ricardo
3ed63d2b02 langs.model.xml: Add some extensions 2015-08-20 13:57:45 +02:00
Adrian Avramescu
3319612a26 Fix word count regex to include words separated by newline (fixes #640, closes #653) 2015-08-20 13:54:03 +02:00
squarefractal
ec66bc059a UNIX: Add a list of commonly available Linux commands (closes #753) 2015-08-20 13:52:29 +02:00
Artem Polivanchuk
c914c5a325 translation: update of Ukrainian lang (closes #742) 2015-08-20 13:50:15 +02:00
Arben Çokaj
55a2a38b38 translation: updated albanian.xml (closes #748) 2015-08-20 13:48:30 +02:00
squarefractal
d39f11a57a ASM: Add movsxd and cdqe instructions (closes #751) 2015-08-20 13:47:15 +02:00
squarefractal
6c93399c6b C/C++: Add uint{8,16,32,64}_t and size_t data types (closes #750) 2015-08-20 13:46:09 +02:00
Don Ho
234e0615db [RELEASE] Notepad++ 6.8.2 release
Use default font if font name loaded from stylers.xml cannot be found in
system.
2015-08-20 02:35:38 +02:00
Don Ho
54b04cd284 [RELEASE] Notepad++ v6.8.2 released 2015-08-19 01:20:56 +02:00
Don Ho
4ebd2d6c65 [UPDATE] Update localization files 2015-08-18 22:43:09 +02:00
Don HO
7b352fb438 Fix some typos 2015-08-17 23:48:20 +02:00
João Pereira
da1abe066e [UPDATE] Update portuguese.xml 2015-08-17 23:28:45 +02:00
Don Ho
b94767f5e6 [UPDATE] Update english.xml for v6.8.2 2015-08-17 00:34:00 +02:00
Don Ho
2739a973d7 [RESTORE] Add back "Notepad++ Community (Forum)" menu item 2015-08-15 16:29:17 +02:00
Damien GERARD
f2bb34ccb2 Code simplification 2015-08-14 23:32:23 +02:00
Damien GERARD
9c857ed811 Parameters: using nullptr instead of NULL, added static 2015-08-14 22:51:44 +02:00
Damien GERARD
6e6ca7fe12 Parameters: fixed alignment (indent with tabs, align with spaces) 2015-08-14 22:42:56 +02:00
Damien GERARD
a53c25499e Code simplification 2015-08-14 22:22:27 +02:00
Rikk
592bd76244 [BUG_FIXED] Fix "Open in/Move to new instance" issue (closes #709, fixes
the new window always started at top-left corner of screen, and did not remember maximized state.
Now it will use the last saved window position and state.
2015-08-14 19:12:18 +02:00
Rikk
ee563e5dba Remember line and column when opening file in a new instance 2015-08-14 19:11:54 +02:00
Rikk
e4b0b8c0b5 Fix: manually selected language not persistent when opening file in a new instance 2015-08-14 19:11:53 +02:00
Damien GERARD
a30de2e605 Build: revert changes on platform toolset 2015-08-14 18:29:59 +02:00
Damien GERARD
d56d42269f Code: remove useless code 2015-08-14 06:06:50 -07:00
Damien GERARD
dc3ef779ce SplitterContainer: removed useless code 2015-08-14 05:59:29 -07:00
Damien GERARD
2ad6ba5a44 Code: using enum class for FormatType 2015-08-14 05:57:19 -07:00
Damien GERARD
3fb1d96671 Some warning fixes 2015-08-14 04:32:38 -07:00
Don Ho
f6aae43fb2 [REMOVE] Remove Source Code Pro font (forgotten file) 2015-08-13 02:26:46 +02:00
Don Ho
7198ac7458 [REMOVE] Remove Source Code Pro font from vs project file 2015-08-13 02:25:04 +02:00
Don Ho
ef27d7db62 [REMOVE] Remove Sourc Code Pro font for several regressions.
Revert the default font to Courier New to solve several regressions due
to Sourc Code Pro font since v6.8
2015-08-13 02:22:47 +02:00
Don Ho
cb0ad2786d [ENHANCEMENT] Remove incorrect assert statement
1. Remove incorrect assert statement.
2. Use standard allocation method instead of Microsoft's obscure one.
2015-08-12 22:35:15 +02:00
Tmp341
685971e3fa translation: updated turkish.xml (closes #688) 2015-08-10 10:55:30 +02:00
Rikk
dfc24b1919 Toolbar: properly refresh when switching over small/big icons (fixes #673, closes #692) 2015-08-10 10:43:13 +02:00
Don Ho
0844123b44 [BUG_FIXED] Fix Preferences dialog loses focus issue (closes ##674)
Fix Preferences dialog loses focus while enabling "Show Docment List
Panel" bug.
2015-08-10 01:33:51 +02:00
Don Ho
ae29f305ea Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-08-08 11:54:41 +02:00
Don Ho
61842a6759 [BUG_FIXED] Fix list column width and item height
This commit fixes 2 issues:
1. In Ascii Insert Panel the columns are too narrow under a high
resolution.
2. In function list panel and project panel, the item heights are
squeezed under a high resolution.
2015-08-08 11:54:32 +02:00
Ricardo
4d2090298e Disable the unused gripper of toolbar (fixes #633, closes #667) 2015-08-07 13:46:11 +02:00
Christian Grasser
b779f5e647 Fix for detecting C/C++ in function list (fixes #457, closes #609)
* Detect C functions: `void ** VoidStarStar ( )`
 * Detect C++ functions: `void ** VoidStarStar ( )`
 * Detect C++ functions: `int& RefReturnValue ()`
 * Detect C++ methods: `void ** Class::VoidStarStar ( )`
 * Detect C++ methods: `int& Class::RefReturnValue ()`
2015-08-07 13:44:01 +02:00
Jan Schreiber
927d7310a4 translation:uUpdated german.xml for 6.8 (closes #635) 2015-08-07 13:43:56 +02:00
h-h-h-h
b28bb97745 Reorder of escape sequences (search-and-replace dialog) (closes #574)
Reorder of escape sequences to make it more clear that there's no word ellipsis,
but a character ellipsis. Order of line break characters is natural order of
Windows line breaks. Seldomly used \0 at the end.
2015-08-07 11:09:56 +02:00
h-h-h-h
39395c39d9 translation: update of German language file (closes #566) 2015-08-07 11:08:13 +02:00
Damien GERARD
01c419ae9a Removed the no longer used OTF version of the Source Code Pro font (#638, #666) 2015-08-07 10:45:33 +02:00
Damien GERARD
af27081759 Updated year in copyright (#638, closes #666) 2015-08-07 10:42:35 +02:00
Don Ho
5464e62067 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-08-06 22:27:55 +02:00
Don Ho
4991fb1309 [BUG_FIXED] Fix panel caption display
On a high resolution screen, the panel caption is too small. This commit
fix this bug.
2015-08-06 21:23:34 +02:00
Damien GERARD
85c728573e Visual Studio Project: added more checks in debug
* Added `/RTCu`: Unitialized variables
 * Added `/RTCc`: Smaller Type check
2015-08-06 13:55:41 +02:00
Damien GERARD
4a20a4c412 Fixed buffer overrun when opening a recent file (fixes #558) 2015-08-06 13:49:14 +02:00
Ricardo
95b2ada22f Improve space usage in File Association dialog (closes #637, #654)
- This improves the commit 77e816439 that didn't completely fix #535
 - This fixes the remaining text cuts, while adding space for future changes.
 - Round numbers for object position/sizes.
 - "exts :" -> "extensions:" for clarification.
2015-08-06 13:21:39 +02:00
Damien GERARD
366a393f13 minor code cleanup for future refactoring 2015-08-06 11:50:58 +02:00
Don Ho
ba5d36e2bf [BUG_FIXED] Fix a visual glitch on exit
Don't make Notepad++ redraw on exit.
2015-08-06 01:18:43 +02:00
Damien GERARD
05183aeec5 Avoid useless redraws at start up, especially useful when numerous tabs are opened 2015-08-04 19:01:52 +02:00
Damien GERARD
660951bdf6 Coding style / Code cleanup 2015-08-04 18:09:17 +02:00
Don HO
7a43154934 Update CONTRIBUTING.md 2015-08-04 01:47:14 +02:00
Don Ho
f6b7bb0469 [RELEASE] Notepad++ 6.8.1 release 2015-08-03 23:41:25 +02:00
Don Ho
5748fdb49f [BUG_FIXED] Fix the inconsist code (closes #624)
Fix using of the member just after object deleting itself.
2015-08-03 23:02:16 +02:00
Don Ho
a36b4f7810 [UPDATE] Update localization files 2015-08-03 01:56:18 +02:00
Don Ho
24c557392f [BUG_FIXED] Fix inconsistant untitled name issue.
The inconsistant untitled name issue is the first untitled document name
is "new 0" or "new 2" instead of "new 1". This fix make the first
untitled document name always be "new 1".
2015-08-03 01:32:43 +02:00
NN---
5e052c5bd0 Build: VS2015 project update (closes #628)
+ Added `_CRT_NON_CONFORMING_WCSTOK` define
2015-08-02 21:44:18 +02:00
NN
1082cd1f34 Merge branch 'master' of https://github.com/NN---/notepad-plus-plus 2015-08-02 22:16:32 +03:00
NN---
53c4791064 Merge remote-tracking branch 'base/master'
Add _CRT_NON_CONFORMING_WCSTOK define.
2015-08-02 22:15:53 +03:00
NN---
1948df23c4 Add _CRT_NON_CONFORMING_WCSTOK define. 2015-08-02 22:08:01 +03:00
NN---
5e3dfd8671 Merge remote-tracking branch 'base/master' 2015-08-02 22:03:38 +03:00
Damien GERARD
fefca9f9b7 Added missing +x attribute for executables 2015-08-02 09:01:09 +02:00
Artur
5aa4c22d33 [UPDATE] Update russian translation (closes #559) 2015-08-02 04:13:36 +02:00
rddim
2df4c76938 [UPDATE] Update bulgarian.xml (closes #575) 2015-08-02 04:00:33 +02:00
Klaas Nekeman
513e2569fb [UPDATE] Update dutch localization for Notepad++ 6.8 (closes #550) 2015-08-02 02:17:02 +02:00
Don Ho
77e8164390 [UPDATE] Enlarge File Association dialog's extension field. (closes #535)
The extensions field of file Association in Preferences dialog is too
small to display entire extensions if the scroll bar appears.
2015-08-02 01:32:37 +02:00
Damien GERARD
bdb0c48762 Added +x on ChangeIcon.exe (fixes #590, closes #591) 2015-08-01 23:35:09 +02:00
Don Ho
c902f94d5a Merge remote-tracking branch 'remotes/hypherion2/master' 2015-07-30 23:36:23 +02:00
Adrian Avramescu
e63f5d3908 [BUG_FIXED] Fix snapshot file after saving being always dirty (closes
Fix preventing override of dirty state on saving snapshot file.
2015-07-30 22:33:30 +02:00
Ricardo
9b4e8888b0 [TYPO] Fix "disply" typos. 2015-07-30 20:20:59 +02:00
Don Ho
efbea233d2 [ENHANCEMENT] Enhance the bat script: use the variables instead of hard coded constant strings. 2015-07-30 19:45:45 +02:00
Don Ho
209058ed45 [UPDATE] ignore the font files 2015-07-30 02:05:41 +02:00
Don Ho
40019fd5b3 [ENHANCEMENT] bat launches x86/64 NSIS
Make script capable launch  NSIS in both x86/64 environment.
2015-07-30 00:37:47 +02:00
Don Ho
c2cf84e774 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-07-30 00:25:51 +02:00
Don Ho
9bb3c7d5be [ENHANCEMENT] Improve the usage of Source Code Pro font
1. fix the hanging problem for some rare situation (some specific
graphic cards?) by replacing otf file by ttf file.
2. make better font look by adding bold, italic and bold-italic fonts
3. load Source Code Pro privately so it won't be listed for the other
application during Notepad++ session.
2015-07-29 23:38:18 +02:00
Don HO
16b4113afc Add forgotten parenthesis. 2015-07-29 14:30:50 +02:00
Don Ho
21b5d6d27c [UPDATE] Update to the modern terminology for Unicode 2015-07-29 13:45:35 +02:00
Adrian Avramescu
1e1f447ec8 Set initial macro menu state (fixes issue #172) 2015-07-28 13:57:42 -07:00
Adrian Avramescu
7c2b6e73c2 Merge remote-tracking branch 'upstream/master' 2015-07-28 13:51:33 -07:00
Don Ho
a958b019ff [BUG_FIXED] Fix "Restore recent close file" text disappears (closes #346)
Detailed description: "Restore recent close file" text disappears from
menu while closing a file.
2015-07-28 22:47:17 +02:00
Adrian Avramescu
cfd946eeb4 [BUG_FIXED] Change splitter percent value to double (closes #585, fixes #405)
Prevents round-off error when resizing splitter
2015-07-28 22:14:49 +02:00
Adrian Avramescu
550246ffc9 Change splitter percent value to double (fixes issue #405)
Prevents round-off error when resizing splitter
2015-07-27 12:56:37 -07:00
Don Ho
11ad9f699a [BUG_FIXED] Fix a regression of Preferences dialog (closes #570)
In v6.8, some options in Preferences dialog are not applied dynamically.
This fix makes them work again.
2015-07-25 17:25:10 +02:00
Don HO
809500f1cd Create scintillaUpdatingWorkFlow.txt 2015-07-25 01:35:43 +02:00
xomx
25edab9ded translation: update czech.xml (closes #536) 2015-07-25 00:44:29 +02:00
NN
4acf228f65 Adjust x64 build paths 2015-07-24 14:53:44 +02:00
György Bata
90ce994325 translations: Hungarian translation update (closes #541)
Updating the Hungarian translation for Notepad++ 6.8. Correcting Cloud related items. Added known unofficial strings.
2015-07-23 17:34:56 +02:00
Ach3r0n
fdd69b77f9 translationsd: update dutch localization (closes #537) 2015-07-23 17:22:47 +02:00
Don HO
0774345d32 [TYPO] Fix a typo. 2015-07-23 13:19:40 +02:00
Ricardo
428b4f1596 Improve readability of CONTRIBUTING.md (closes #513) 2015-07-21 11:59:58 +02:00
Don Ho
1b8bdfb6e5 [RELEASE] Notepad++ release 6.8 2015-07-21 02:46:23 +02:00
Pavel Nedev
d930f10330 Fixed Context menu not shown regression bug (closes #492, fixes #383)
After FindInFiles operation context menu was no longer accessible.
2015-07-20 13:21:51 +02:00
Damien GERARD
fe2defb536 Increased static buffer size and forced initialization (#514)
This is a temporary measure waiting for a more complete refactoring.
2015-07-20 11:23:20 +02:00
Don Ho
fb452e0c69 [MODIF] Remove DSpellCheck from the package
Remove DSpellCheck plugin which has a hanging issue for Windows 10,
according Microsoft test team (ref:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/427)
2015-07-19 21:59:45 +02:00
Don Ho
125aee20f7 [REMOVE] Remove VS 2005 project
The minimum supported version of VS project is VS2013.
2015-07-19 01:35:13 +02:00
Don Ho
e8bb6bdede [UPDATE] Update gitIgnore file 2015-07-19 01:26:40 +02:00
Don Ho
91992d0b7c [ENHANCEMENT] Use "Source Code Pro" as default font
Source Code Pro is included in the Notepad++ distribution for its
internal use.
If it's not the first time of Notepad++ installation (ie. updating),
users need to set Source Code Pro as default font manually via style
configurator dialog, or just delete "%APPDATA%\Notepad++\stylers.xml".
2015-07-18 21:18:39 +02:00
Don Ho
7164d4f516 [ENHANCEMENT] Make smooth font optional
The old behaviour enabled smooth font and it didn't allow user to change
this setting. The new behaviour makes it optional and turn it off by
default.
2015-07-16 12:52:16 +02:00
Artem Polivanchuk
861cac6951 translation: repaired and updated Ukrainian locale (closes #464) 2015-07-16 11:22:51 +02:00
Damien GERARD
38c29e1818 Removed .gitattributes for now 2015-07-16 11:18:59 +02:00
Luca
0557e8ccc3 translations: updated italian.xml (closes #509)
Last translation for version 6.7.9.2
2015-07-16 11:07:05 +02:00
Robert Dailey
d2f0649c9e Add .gitattributes file (closes #122)
Convert line endings to CRLF on checkout for Windows batch
scripts and Visual Studio solution/project files.
2015-07-15 17:07:07 +02:00
xomx
1a8548e56f translations: updated settings on cloud in czech.xml (closes #473) 2015-07-15 17:03:47 +02:00
Damien GERARD
4d0597136c Fixed compilation error introduced by 0cd514de 2015-07-15 14:17:48 +02:00
Damien GERARD
23cd144198 Applied coding style / cleanup 2015-07-15 14:09:31 +02:00
Damien GERARD
0cd514de13 Added some missing extensions to File Associations (closes #306, fixes #375) 2015-07-15 13:12:02 +02:00
ROBERTO
f00f5eb14b translation: updated italian language 15.07.2015 (closes #499) 2015-07-15 13:06:55 +02:00
Ricardo
3e5de6194d langs.model.xml: Additions to PHP highlight (closes #488, fixes #459)
+ Add some extensions.
+ Additions to PHP highlight:
  * Added/updated huge amount of PHP Functions of several categories:
    Filesystem, Directory, Program execution, Fileinfo, Date/Time Functions,
    Calendar, Variable handling, Function handling, Array, Filter,
    Classes/Object, String, POSIX Regex, Output Control, Password Hashing,
    OpenSSL, Mcrypt, Mhash, Hash, FTP, SSH2, cURL, LDAP, IMAP, Network, JSON,
    URL, Stream, XML Parser, Misc., GD and Image, Exif, Zip, Zlib, Apache,
    PHP Options/Info, Error Handling, Semaphore.
  * Update functions related to databases (*sql_ ; sqlite_ ; odbc_ ; dba_),
    also adding MySQLi and MaxDB procedural style commands.
  * Added/updated PHP Reserved Words, Control Structures, and Predefined Constants
    from these categories: Network, Core, Magic constants, Arrays, Filter,
    URLs, Streams, Strings, Output Control.
  * Removed duplicates and sorted.
  * Break too long lines (>10k chars) so the entire file display properly in SmartGit.
2015-07-15 12:02:15 +02:00
gallegretti
8bec636304 Added missing macro commands (fixes #374, closes #454) 2015-07-15 11:59:05 +02:00
Damien GERARD
ed0a0a68f2 COMTRIBUTING: Prefer C++11/14 coding style 2015-07-15 11:57:06 +02:00
Don HO
8254d32cb4 Update new community budge
Thanks to Ricardo (@Rikk)!
2015-07-14 01:22:41 +02:00
Don HO
6b0485f458 Update CONTRIBUTING.md 2015-07-13 00:49:50 +02:00
Damien GERARD
e58ae03897 User defined commands: fixed typo for searching in the php documentation 2015-07-11 11:47:29 +02:00
Damien GERARD
c6f206082e User defined commands: using https instead of http for search engines 2015-07-11 11:46:46 +02:00
Jon Fritzler
77a00e3434 build: removed sqlite3.c and sqlite3.h from VS2015 project (closes #445) 2015-07-11 11:09:39 +02:00
Jan Schreiber
beecea39a9 translations: updated german.xml for 6.7.9.2 (closes #458) 2015-07-11 11:08:21 +02:00
ROBERTO
259b605e5b translations: updated Italian language (cloud settings) (closes #467)
Update Italian language (related to cloud settings).
Please take care that there is on item "Trim trailing and Save" (Under Macro menu) that don't have an item in language file.
Please add it.
2015-07-11 11:06:43 +02:00
g3candy
2a589c820a Merge pull request #1 from g3candy/g3candy-empty-file-endings
empty files line endings #461
2015-07-10 17:36:12 +01:00
g3candy
07fc127eab empty files line endings
when a user creates a new file, uses user preferences
however when opening an empty file where notepad++ can't detect the line endings, it uses windows line endings

I've proposed a coupe of changes. First noticing that on construction Buffer::_format is set to the users eol preference, theres no need for a default fallback to be set. 

1) FileManager::loadFileData sets *pFormat to -1 when it can't detect a line ending (empty file)
2) FileManager::loadFile and FileManager::ReloadBuffer only set the line ending of the buffer when format!=-1, thus uses the users preference
2015-07-10 17:26:55 +01:00
NN---
684a6d114b build: Synchronize VS2015 project (closes #379) 2015-07-08 20:23:59 +02:00
Damien GERARD
6ec3d55b65 translation: arabic: removed invalid slash 2015-07-08 20:15:34 +02:00
Tmp341
b72b0f3b91 translation: updated turkish.xml (closes #433)
Catch up with the latest english changes.
2015-07-08 19:48:59 +02:00
ROBERTO
aa12ea5773 translation: update italian.xml (closes #423)
revised italian.xml fiel version for Notepad++ 6.7.9.2
2015-07-08 19:48:10 +02:00
Konstantin Lesnichenko
24ca971c25 adding yaml file extension in languages (closes #418) 2015-07-08 19:45:32 +02:00
Don Ho
5e240147c5 [MODIF] Remove settings on cloud dependency
This feature got a lot of regression due to its dependency on dropbox,
google drive and one drive implementation. This modification removes
such dependecy and allow users to set their settings location - any
cloud location path and even customized local location.
2015-07-08 13:33:53 +02:00
Damien GERARD
c64f434a83 tinyxml: added missing include <cassert> 2015-07-06 00:37:00 +02:00
Ricardo
5fa40fbf7e Add more extensions to highlight (closes #409) 2015-07-05 17:49:50 +02:00
xomx
18f1f9e05b translation: updated czech (closes #412) 2015-07-05 17:42:16 +02:00
batagy
e591c5dfaf translation: updated Hungarian (closes #410) 2015-07-05 17:34:07 +02:00
NN---
f2e99474c5 Synchronize VS2015 project. 2015-07-01 22:40:49 +03:00
Joshua Noel
11a51aa05e Removed the extra space in default document name at startup (closes #254, fixes #97)
Fixed extra space between UNTITLED_STR and document number "0" when creating a
new buffer on start up through the function FileManager::bufferFromDocument().
2015-07-01 13:41:04 +02:00
NN
8c18baf06b Add vsixmanifest as XML (closes #274) 2015-07-01 13:24:40 +02:00
Damien GERARD
928e859fd6 README: restored the previous badge for Notepad++ Comuunity 2015-07-01 11:06:18 +02:00
Damien GERARD
9a776f9f14 Added missing standard include <iso646> 2015-06-29 17:02:13 -07:00
Andreas Jönsson
759fc1b0f3 ui: only set font quality if ClearType is enabled (fixes #216, closes #311, closes #327) 2015-06-29 13:40:25 +02:00
Ricardo
a9ed6b436b HTML auto-completion: Additions to HTML lang and auto-complete (fixes #222, closes #336)
HTML auto-complete
- add missing html elements and global events/attributes
- remove some deprecated elements, keeping popular ones
- remove duplicates

HTML lang
- add missing html elements (including deprecated ones) and global events/attributes to langs.model.xml
- remove duplicates

Use JavaScript highlight for JSON, because they have the same syntax.
2015-06-29 13:27:35 +02:00
Tmp341
c329442ed7 translations: Updated turkish.xml (closes #358)
Catch up with the latest english.xml changes
2015-06-29 13:09:38 +02:00
Lspeciosum
031f4b0657 Scintilla new requires UTF-8 font-names (closes #220)
Present version scintilla(x>3.5.3) accepts a font name only in utf-8.

See also:

 - http://sourceforge.net/p/scintilla/bugs/1684/
 - http://www.scintilla.org/ScintillaHistory.html
2015-06-28 18:31:58 +02:00
Andreas Jönsson
eb02c73e89 translations: update english.xml (closes #313) 2015-06-28 18:22:44 +02:00
Andreas Jönsson
70bb9c1fd8 Fix spelling of "Icelandic" (closes #314) 2015-06-28 18:19:39 +02:00
Andreas Jönsson
1f3662fef8 Improve Swedish translation (closes #315) 2015-06-28 18:18:26 +02:00
Alexander Riccio
6fa86f17de Additions to README.md for clarity & comprehension (closes #352) 2015-06-28 18:14:30 +02:00
Don HO
b31e213b7b Update README.md 2015-06-27 17:01:12 +02:00
Don HO
f0fa5e74b8 Update README.md 2015-06-26 20:57:38 +02:00
Alexander Zabluda
7af2cc58d1 Merge branch 'pre-2009-04-24' 2015-06-26 12:58:57 +02:00
Alexander Zabluda
e10294a340 Merge tag 'new-history' into pre-2009-04-24 2015-06-26 12:58:20 +02:00
Damien GERARD
0617b20e69 Translations: encoded all translation files using utf-8 - 2nd attempt (#307) 2015-06-24 17:48:22 +02:00
Damien GERARD
a3656c1945 Translations: fixed utf-8 encoding for arabic (#307) 2015-06-24 16:50:58 +02:00
Damien GERARD
cb15091e0d Translations: encoded all translation file using utf-8 (#307)
- [x] `afrikaans.xml` from `iso-8859-2` to `utf-8`
 - [x] `albanian.xml` from `iso-8859-2` to `utf-8`
 - [x] `arabic.xml` from `iso-8859-2` to `utf-8`
 - [x] `aragonese.xml` from `utf-8` to `utf-8`
 - [x] `aranese.xml` from `iso-8859-2` to `utf-8`
 - [x] `azerbaijani.xml` from `utf-8` to `utf-8`
 - [x] `basque.xml` from `ascii` to `utf-8`
 - [x] `belarusian.xml` from `windows-1251` to `utf-8`
 - [x] `bengali.xml` from `utf-8` to `utf-8`
 - [x] `bosnian.xml` from `iso-8859-2` to `utf-8`
 - [x] `brazilian_portuguese.xml` from `ibm855` to `utf-8`
 - [x] `bulgarian.xml` from `windows-1251` to `utf-8`
 - [x] `catalan.xml` from `iso-8859-2` to `utf-8`
 - [x] `chinese.xml` from `big5` to `utf-8`
 - [x] `chineseSimplified.xml` from `gb2312` to `utf-8`
 - [x] `croatian.xml` from `iso-8859-2` to `utf-8`
 - [x] `czech.xml` from `iso-8859-2` to `utf-8`
 - [x] `danish.xml` from `iso-8859-2` to `utf-8`
 - [x] `dutch.xml` from `iso-8859-2` to `utf-8`
 - [x] `english.xml` from `ascii` to `utf-8`
 - [x] `english_customizable.xml` from `ascii` to `utf-8`
 - [x] `esperanto.xml` from `utf-8` to `utf-8`
 - [x] `estonian.xml` from `iso-8859-2` to `utf-8`
 - [x] `extremaduran.xml` from `windows-1251` to `utf-8`
 - [x] `farsi.xml` from `utf-8` to `utf-8`
 - [x] `finnish.xml` from `windows-1255` to `utf-8`
 - [x] `french.xml` from `iso-8859-2` to `utf-8`
 - [x] `friulian.xml` from `iso-8859-2` to `utf-8`
 - [x] `galician.xml` from `windows-1251` to `utf-8`
 - [x] `georgian.xml` from `utf-8` to `utf-8`
 - [x] `german.xml` from `iso-8859-7` to `utf-8`
 - [x] `greek.xml` from `iso-8859-7` to `utf-8`
 - [x] `gujarati.xml` from `utf-8` to `utf-8`
 - [x] `hebrew.xml` from `windows-1255` to `utf-8`
 - [x] `hindi.xml` from `utf-8` to `utf-8`
 - [x] `hungarian.xml` from `utf-8` to `utf-8`
 - [x] `indonesian.xml` from `ascii` to `utf-8`
 - [x] `italian.xml` from `iso-8859-2` to `utf-8`
 - [x] `japanese.xml` from `shift_jis` to `utf-8`
 - [x] `kabyle.xml` from `utf-8` to `utf-8`
 - [x] `kannada.xml` from `utf-8` to `utf-8`
 - [x] `kazakh.xml` from `utf-8` to `utf-8`
 - [x] `korean.xml` from `euc-kr` to `utf-8`
 - [x] `kyrgyz.xml` from `utf-8` to `utf-8`
 - [x] `latvian.xml` from `iso-8859-8` to `utf-8`
 - [x] `ligurian.xml` from `iso-8859-2` to `utf-8`
 - [x] `lithuanian.xml` from `iso-8859-2` to `utf-8`
 - [x] `luxembourgish.xml` from `iso-8859-2` to `utf-8`
 - [x] `macedonian.xml` from `utf-8` to `utf-8`
 - [x] `malay.xml` from `ascii` to `utf-8`
 - [x] `marathi.xml` from `utf-8` to `utf-8`
 - [x] `mongolian.xml` from `utf-8` to `utf-8`
 - [x] `norwegian.xml` from `iso-8859-2` to `utf-8`
 - [x] `nynorsk.xml` from `iso-8859-2` to `utf-8`
 - [x] `occitan.xml` from `iso-8859-2` to `utf-8`
 - [x] `polish.xml` from `iso-8859-2` to `utf-8`
 - [x] `portuguese.xml` from `ibm855` to `utf-8`
 - [x] `romanian.xml` from `iso-8859-2` to `utf-8`
 - [x] `russian.xml` from `windows-1251` to `utf-8`
 - [x] `samogitian.xml` from `ascii` to `utf-8`
 - [x] `sardinian.xml` from `iso-8859-2` to `utf-8`
 - [x] `serbian.xml` from `iso-8859-2` to `utf-8`
 - [x] `serbianCyrillic.xml` from `windows-1251` to `utf-8`
 - [x] `sinhala.xml` from `utf-8` to `utf-8`
 - [x] `slovak.xml` from `utf-8` to `utf-8`
 - [x] `slovenian.xml` from `iso-8859-2` to `utf-8`
 - [x] `spanish.xml` from `iso-8859-2` to `utf-8`
 - [x] `spanish_ar.xml` from `iso-8859-2` to `utf-8`
 - [x] `swedish.xml` from `iso-8859-2` to `utf-8`
 - [x] `tagalog.xml` from `ascii` to `utf-8`
 - [x] `tajikCyrillic.xml` from `utf-8` to `utf-8`
 - [x] `tamil.xml` from `utf-8` to `utf-8`
 - [x] `tatar.xml` from `utf-8` to `utf-8`
 - [x] `telugu.xml` from `utf-8` to `utf-8`
 - [x] `thai.xml` from `tis-620` to `utf-8`
 - [x] `turkish.xml` from `iso-8859-2` to `utf-8`
 - [x] `ukrainian.xml` from `utf-8` to `utf-8`
 - [x] `urdu.xml` from `iso-8859-2` to `utf-8`
 - [x] `uyghur.xml` from `utf-8` to `utf-8`
 - [x] `uzbek.xml` from `utf-8` to `utf-8`
 - [x] `uzbekCyrillic.xml` from `utf-8` to `utf-8`
 - [x] `vietnamese.xml` from `utf-8` to `utf-8`
 - [x] `welsh.xml` from `iso-8859-2` to `utf-8`
2015-06-24 15:14:03 +02:00
Don HO
6690079c45 [UPDATE] Change the guidelines
Remove the unnecessary guideline due to the new workflow.
2015-06-24 13:45:12 +02:00
Damien GERARD
36b08b551c updated CONTRIBUTING.md (closes #241)
Trying to provide a simple workflow for accepting pull requets
2015-06-24 13:27:01 +02:00
Don HO
223caa25d0 Merge pull request #164 from turbanoff/master
[BUG_FIXED] Fix Uninitialized read in tinyxmlparser
2015-06-24 01:01:52 +02:00
Don HO
7f7d2809c4 Merge pull request #132 from NN---/patch-3
[UPDATE] Add .vs folder to ignore
2015-06-24 00:59:19 +02:00
Don HO
c6e101b655 Merge pull request #178 from chcg/x64_build_adaptions
[UPDATE] X64 build adaptions
2015-06-24 00:55:41 +02:00
Don HO
95d7f45ff0 Merge pull request #184 from rddim/master
[UPDATE] Bulgarian language update
2015-06-24 00:41:58 +02:00
Don HO
4f0896df30 Merge pull request #231 from stenox/master
[UPDATE] Update ukrainian.xml
2015-06-24 00:39:51 +02:00
Don HO
3df3636f09 Merge pull request #268 from Rikk/patch-2
[UPDATE] Add CSS to languages that are auto-indented
2015-06-24 00:38:18 +02:00
Don HO
b0ec01b19e Merge pull request #278 from hrwatahiki/Japanese-localization
[UPDATE] Japanese localization for Notepad++ 6.7.7
2015-06-24 00:36:45 +02:00
Don HO
14b2fe1339 Merge pull request #283 from Rikk/patch-3
[UPDATE] Add "php" string to PHP auto-complete
2015-06-24 00:34:48 +02:00
Don Ho
b828ed21d2 [NEW_RELEASE] Notepad++ 6.7.9.2 release. 2015-06-23 00:06:27 +02:00
Ricardo
2ad0a7df57 Add "php" string to PHP auto-complete
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/issues/279
2015-06-22 05:13:35 -03:00
hrwatahiki
83964662bb Japanese localization for Notepad++ 6.7.7 (same version as english.xml) 2015-06-21 21:43:51 +09:00
Don Ho
e3450defc0 [RELEASE] Notepad++ release 6.7.9.1 2015-06-21 10:44:17 +02:00
rddim
2147bcc0d2 [UPDATE] Bulgarian language
added <Item id="47011" name="Live Support"/>
2015-06-20 11:16:33 +03:00
Don HO
0d768dd289 Update langs.model.xml 2015-06-20 02:56:27 +02:00
Ricardo
3f7dedfeb7 Add CSS to languages that are auto-indented
Possible fix for https://github.com/notepad-plus-plus/notepad-plus-plus/issues/257

Needs testing. Someone that can compile Npp, please test this!
2015-06-19 19:59:54 -03:00
Christian Grasser
d6c72fa3f7 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus into x64_build_adaptions 2015-06-18 07:23:03 +02:00
Christian Grasser
1c25ae96e6 Correct issue with missing text in keyboard shortcut mapper grid 2015-06-18 07:22:27 +02:00
Don Ho
d1ed7683f4 [UPDATE] Change the print default option
from WYSIWYG to "without background coloour".
2015-06-18 02:50:28 +02:00
Don Ho
c14f87c4b0 [UPDATE] Replace "Forum" command by "Live Support" one. 2015-06-18 01:35:15 +02:00
Don HO
4dfd9b63bb Update CONTRIBUTING.md 2015-06-16 00:11:21 +02:00
Don HO
f1cdc425ba Merge pull request #229 from BrainJelly/VS2015_Project_Missing_Files
[UPDATE] Add missing Mutex files to VS2015 project.
2015-06-15 23:41:56 +02:00
Artem Polivanchuk
8b0c4c0732 Update ukrainian.xml 2015-06-15 22:21:13 +03:00
Jon Fritzler
7986366249 Add missing Mutex files to VS2015 project :) 2015-06-15 12:09:29 -06:00
Don HO
fed0ff5b73 Merge pull request #167 from Rikk/patch-1
[UPDATE] Add some more keywords to JS auto-completion.
2015-06-14 18:39:54 +02:00
Don Ho
856924658b [NEW] Add "Google Search" in the context menu. 2015-06-14 17:50:10 +02:00
Don Ho
4ace901a07 [UPDATE] Method getContextMenuFromXmlTree refactoring
The method getContextMenuFromXmlTree of NppParameters is too long to
maintain. Making 2 new methods to make the method in question more
readable.
2015-06-14 17:49:27 +02:00
Don Ho
c0cd924c1e [BUG_FIXED] Fix js block not recognized in HTML 2015-06-13 18:23:12 +02:00
Don HO
bf36bb35bb Merge pull request #188 from gitter-badger/gitter-badge
[UPDATE] Add a Gitter chat badge to README.md
2015-06-13 11:49:20 +02:00
The Gitter Badger
5cd9a6f58c Added Gitter badge 2015-06-12 22:19:35 +00:00
Don Ho
9ad71107e9 [BUG_FIXED] Lock some operations for data integrality.
Use mutex of Yuni library to lock critical operation for the
compatibility of windows xp sp2.
For more info of Yuni library: https://github.com/libyuni
2015-06-12 22:10:37 +02:00
rddim
34c6a542e5 [UPDATE]Bulgarian language update
Bulgarian language update for version 6.7.9
2015-06-12 17:55:44 +03:00
Don Ho
acb713d9e6 [RELEASE] Notepad++ 6.7.9 release 2015-06-12 00:53:35 +02:00
Don Ho
0ee535b263 [BUG_FIXED] Make retro-compatibility with xp sp2 2015-06-12 00:26:00 +02:00
Christian Grasser
a8a6f2c881 - avoid some compiler warning
- build also without SCI_OWNREGEX
2015-06-11 17:41:07 +02:00
Christian Grasser
fdd2dbc21f - add npp boostregex dir/sources and define SCI_OWNREGEX
- add boost via nuget package
2015-06-11 17:37:54 +02:00
Christian Grasser
a6e0dd9a53 adapted scintilla vs project to notepad++ naming of build configurations from
Debug -> Unicode Debug and Release -> Unicode Release, to hav a consistent look in VS solution
Used same
ToolsVersion="12.0"
and
<PlatformToolset>v120_xp</PlatformToolset>
2015-06-11 11:31:59 +02:00
Christian Grasser
0d1297b9c7 added x64 build target, copied from win32 version, relaxed treat warning as error, as multiple errors show up due to x64 type truncations on assignments 2015-06-11 11:25:16 +02:00
Christian Grasser
9d9be045ae avoid access violation with empty string s -> length == 0 2015-06-11 11:22:05 +02:00
Christian Grasser
4cfdd40497 avoid build issue due to difference between declaration and definition INT_PTR vs. BOOL 2015-06-11 11:19:14 +02:00
Christian Grasser
e0bc440df7 - avoid compiler warning about unused parameter 2015-06-11 10:10:43 +02:00
Christian Grasser
2a9b099a08 - avoid build issue for unicode:
2>..\lexers\LexUser.cxx(1406): error C2664: 'void GenerateVector(vvstring &,const char *,char *,int)' : cannot convert argument 3 from 'const wchar_t [3]' to 'char *'
2>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2015-06-11 10:10:19 +02:00
Ricardo
dcfcd13a30 Add more keywords to JS auto-complete
Add more keywords to JS auto-complete.
This list is indeed in need of a complete update...
2015-06-08 19:36:34 -03:00
Christian Grasser
324a29a848 Merge branch 'GWLP_648' of https://github.com/chcg/notepad-plus-plus into x64_build_adaptions 2015-06-08 13:51:57 +02:00
Christian Grasser
10dfc331bf merge with master 2015-06-08 13:39:07 +02:00
Christian Grasser
e8dfab6711 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-06-08 13:09:18 +02:00
Christian Grasser
a371ddf822 avoid level 2 warning about variable size mismatch for x64 2015-06-08 13:07:45 +02:00
Christian Grasser
edfa987f4e x64 issue, replace int for bufferid by bufferid itself, otherwise x64 crashes as bufferid aka buffer * differs from int under x64 2015-06-08 12:11:10 +02:00
Christian Grasser
581c7b2a72 enable common controls als for amd64\x64 architecture, otherwise xp style is not available and bitmap buttons are not working correctly 2015-06-08 09:26:24 +02:00
Christian Grasser
6ec31f4f85 avoid x64 pointer issues, leading to crash on tab resorting 2015-06-08 09:07:41 +02:00
Christian Grasser
73dee04dea Further changes for x64 builds 2015-06-08 08:48:05 +02:00
Don Ho
251e987a71 [NEW_FEATURE] Add 2 context menus on status bar
Add language context menu and EOL conversion context menu on status bar.
2015-06-08 03:19:34 +02:00
Don Ho
7edd53a535 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-06-07 23:23:26 +02:00
Don Ho
4ac665d0ce [UPGRADE] Upgrade Scintilla from v3.34 to v3.56. 2015-06-07 23:19:26 +02:00
Don HO
a2acbede53 Merge pull request #165 from Rikk/patch-1
[UPDATE] Add key words "let" and "of" for JavaScript lang.
2015-06-07 13:56:46 +02:00
Don HO
aa944fdfe3 Merge pull request #105 from NN---/unordered_map
[ENHANCEMENT] Use unordered_map instead map for better performance.
2015-06-07 00:16:39 +02:00
Ricardo
92df4f6840 Add "let" and "of" for JavaScript lang
Add `let` and `of` for JavaScript lang.

Refs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of
2015-06-06 18:23:26 -03:00
NN
3ef870227d Use unordered_map 2015-06-06 23:25:05 +03:00
turbanoff
40bb92c0af Fix Uninitialized read in tinyxmlparser 2015-06-06 18:55:43 +03:00
Don HO
3ff0ad484d Merge pull request #151 from NN---/EnumFonts
[UPDATE] Use updated prototype of EnumFontFamExProc.
2015-06-06 14:34:50 +02:00
Don HO
76b77ac8c4 Merge pull request #152 from NN---/DlgProc
[UPDATE] Make DlgProc returns INT_PTR but not BOOL.
2015-06-06 12:36:23 +02:00
Don HO
33fd37a6f4 Merge pull request #157 from NN---/VS2015
[UPDATE] Update VS projects
2015-06-06 01:15:01 +02:00
Don Ho
4cca41267e [NEW_FEATURE] Save in new instance with admin privileges.
While user tries to save a file which requires administrator privileges,
another instance in admin mode could be launched to save the file in
question.
2015-06-05 18:51:52 +02:00
Don HO
c3037a91df [TYPO] Fix a typo. 2015-06-05 14:21:06 +02:00
Don HO
0774106a40 Update langs.model.xml 2015-06-04 16:25:16 +02:00
Christian Grasser
10d1c91c39 Merge branch 'master' of https://github.com/chcg/notepad-plus-plus into GWLP_648 2015-06-03 21:58:28 +02:00
Christian Grasser
90229782a3 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-06-03 21:49:19 +02:00
NN
def5952213 Merge branch 'master' into DlgProc 2015-06-03 07:19:34 +03:00
NN
6de87e3ecc Add _WIN32_WINNT=0x0501 to defines list. 2015-06-03 07:16:01 +03:00
Christian Grasser
4a14960090 correct whitespace merge difference to master 2015-06-03 01:38:44 +02:00
Christian Grasser
d11cba6798 merge with master and resolve confilcts 2015-06-03 01:31:39 +02:00
Don Ho
bc94d07766 [UPDATE] Unprecompile headers (part 4 - final) 2015-06-03 00:55:28 +02:00
Christian Grasser
7089022006 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2015-06-02 23:45:35 +02:00
Don Ho
246c8bd168 [UPDATE] Unprecompile headers (part 3) 2015-06-02 18:01:47 +02:00
Don HO
3f1e3da7d2 Merge pull request #153 from NN---/VS2015
[UPDATE] Make compilation on VS2015
2015-06-01 23:48:04 +02:00
Don HO
ea4b409c3d Merge pull request #149 from milipili/xml-memory-leaks
[BUG_FIXED] fixed minor memory leak when exporting the parameters to XML.
2015-06-01 23:36:30 +02:00
Don HO
f1d5c9f081 Merge pull request #145 from milipili/fix-invalid-read-via-strlen-when-loading
[BUG_FIXED] buffer: fixed invalid read via strlen when loading a file
2015-06-01 23:08:59 +02:00
Don HO
ed8a51334d Merge pull request #150 from andreas-jonsson/finder_copy2
[ENHANCEMENT] Improve copy found lines to clipboard.
2015-06-01 20:54:29 +02:00
Don HO
6df7762c1d Merge pull request #144 from milipili/fix-invalid-stack-read-when-loading-file
[BUG_FIXED] buffer: fixed invalid read in the stack when loading a file
2015-06-01 20:45:42 +02:00
NN
c18101823a Add missing files.
Add warning 4091 to be ignored.
Define _CRT_NON_CONFORMING_WCSTOK globally.
2015-06-01 21:40:20 +03:00
NN
dbb43a729f DlgProc returns INT_PTR and not BOOL. Use correct prototype and remove casts.
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms645469(v=vs.85).aspx
2015-06-01 21:30:41 +03:00
NN
485c7f21d0 Use correct prototype of EnumFontFamExProc. 2015-06-01 21:09:10 +03:00
Andreas Jönsson
f3934fadb7 Fix array termination error. 2015-06-01 18:55:25 +02:00
Andreas Jönsson
23ac5e3da8 Mark some methods as const. 2015-06-01 18:48:49 +02:00
Andreas Jönsson
933aae4fc2 Improve str2Clipboard.
Make it take generic_string instead of TCHAR*, since at most callsites
we already have a generic_string.

Improve error handling. Depending on where we are in the function when
we get an error, we need to free the memory, unlock the memory, or
close the clipboard.

Note that if SetClipboardData succeeds then we should not do anything
more to the memory.
2015-06-01 18:47:24 +02:00
Andreas Jönsson
d6081a5f37 Improve copy functionality in find results window
Just copy the actual results, without the additional formatting with
line and file name. It respects the hierarchy in the results, i.e.
you can copy all results from a search operation, or from a specific
file, or just the lines you selected.
2015-06-01 18:39:22 +02:00
Andreas Jönsson
54c8fd7ac8 Make case of "all" consistent. 2015-06-01 18:10:43 +02:00
Don HO
2002ecfbd2 Merge pull request #140 from Morange21/master
[UPDATE] Remove extra space when creating a new document
2015-06-01 01:04:22 +02:00
Don HO
57664ff70e Merge pull request #142 from NN---/thread
[UPDATE] Remove unnecessary casts.
2015-06-01 00:56:05 +02:00
Don HO
4979760b57 Merge pull request #148 from milipili/gitignore-scintilla-generated-files
[UPDATE] ignore scintilla generated files
2015-06-01 00:51:22 +02:00
Don HO
7f2af7a264 Merge pull request #146 from milipili/fix-documentmap-uninitialized-variables-drawzone
documentmap: ViewZoneDlg: fixed uninitialized variables
2015-06-01 00:38:40 +02:00
Christian Grasser
6d654bef5a Merge branch 'master' of https://github.com/chcg/notepad-plus-plus into GWLP_648 2015-05-31 22:55:50 +02:00
Don Ho
e9e710a3d4 [UPDATE] Unprecompile headers (part 2) 2015-05-31 22:40:07 +02:00
milipili
25b3a712fb fixed minor memory leak when exporting the parameters to XML
When writing the parameters as a XML file (when the application quits), a new
node was created but not destroyed (`InsertEndChild` makes a clone of the
given node).
2015-05-31 21:27:27 +02:00
milipili
41c2d99327 ignore scintilla generated files 2015-05-31 20:59:49 +02:00
Christian Grasser
ebd90df66c Merge branch 'master' of https://github.com/donho/notepad-plus-plus 2015-05-31 20:15:35 +02:00
Don Ho
b35e759d11 [UPDATE] Unprecompile headers 2015-05-31 15:57:17 +02:00
milipili
9f5f8d13c5 documentmap: ViewZoneDlg: fixed uninitialized variables
The real problem is `_viewZoneCanvas`, which can be used unitialized by `drawZone`.
2015-05-30 23:34:58 +02:00
milipili
d09947d22d Scintilla: Buffer: fixed invalid read via strlen when loading a file
When loading a file via `FileManager::loadFileData`, a fixed-length buffer
is filled via `fread`. Then, in some cases, a conversion is done with the help
of `Utf8_16_Read`. However, the method `Utf8_16_Read::convert` performs a call
to `strlen` on this buffer. This is obviously wrong: `\0` char should be
accepted (even if a bit strange) and the buffer is not zero-terminated.

The changes merely consist in adding an additional parameter `length` to
not have to guess the size of the buffer.
2015-05-30 21:28:51 +02:00
milipili
6adc3b35fc scintilla: buffer: fixed invalid read in the stack when loading a file
The method `FileManager::loadFileData` uses a stack-based buffer for reading
a file. However, due to the optimization used by `Utf8_16_Read` (`UnicodeConvertor`),
this buffer is not copied, but a pointer to this object is kept.
After `loadFileData`, this object is destroyed, but is used afterward
(via `UnicodeConvertor.getNewBuf`).
2015-05-30 21:19:01 +02:00
NN
3319bcc581 Fix incorrect thread procedure prototype. It has to be __stdcall.
Remove unnecessary casts.
2015-05-30 21:06:32 +03:00
Joshua Noel
bc0b68b2ba Fixed extra space between UNTITLED_STR and document number when creating a new document through the function FileManager::newEmptyDocument() 2015-05-30 13:40:41 -04:00
Don HO
17e8ca3c15 Merge pull request #120 from andreas-jonsson/tempfix_corruption
[BUG_FIXED] Prevent big file corruption on some long period operations.
2015-05-30 18:00:16 +02:00
Andreas Jönsson
3ca488d0bc Also sync when pasting.
See Sourceforge #5327.
2015-05-30 10:16:19 +02:00
Don HO
8976240dcd Merge pull request #138 from milipili/master
[ScitillaComponent: Buffer: _currentStatus is used uninitialized in ctor
2015-05-30 02:41:46 +02:00
milipili
0ce219566a ScitillaComponent: Buffer: fixed an uninitialized variable in ctor
The non-default constructor of the class Buffer calls the inner method
`checkFileState()`, using the private variable `_currentStatus` to determine
whether some checks on the file attached to the buffer are required or not.
However this variable is properly initialized _after_.
2015-05-30 02:26:55 +02:00
Don Ho
da262dd975 [FIX] Fix not compling issue. 2015-05-30 01:26:00 +02:00
Don HO
7fec9fa070 Merge pull request #130 from NN---/patch-2
[UPDATE] Add more file extensions of XML based formats.
2015-05-29 22:38:48 +02:00
Don HO
7bde130c0b Merge pull request #131 from NN---/master
Synchronize VS2015 project with VS2013.
2015-05-29 10:36:11 +02:00
Don HO
14a9ec6d19 [UPDATE] Add Section "Coding Style" 2015-05-29 03:56:29 +02:00
NN
1f5f5db147 Add .vs folder to ignore 2015-05-28 21:59:41 +03:00
NN
62120359e0 Merge remote-tracking branch 'base/master' 2015-05-28 21:07:47 +03:00
Christian Grasser
e1d8e055c8 Merge branch 'master' of https://github.com/chcg/notepad-plus-plus into GWLP_648 2015-05-28 19:37:24 +02:00
Christian Grasser
c8254f89d1 renamed missed CallWindowProcW Unicode version also to CallWindowProc 2015-05-28 19:33:39 +02:00
Christian Grasser
f45f58b4b2 Correct build issue on donho master 2015-05-28 19:26:16 +02:00
Don Ho
9d50da76b1 [CODE_ENHANCEMENT] Code enhancement. 2015-05-28 18:11:35 +02:00
NN
c8e0943286 Synchronize VS2015 project with VS2013. 2015-05-28 07:39:27 +03:00
NN
39ccda99ce More XML based formats 2015-05-28 07:00:50 +03:00
Don Ho
7f6dd17f03 [CODE_ENHANCEMENT] Code enhancement. 2015-05-28 01:22:28 +02:00
Don Ho
c123fd1a01 [CODE_ENHANCEMENT] Init some uninitialized vars. 2015-05-27 23:47:06 +02:00
Christian Grasser
c3697d2055 Cleanup usage of remaining Pre-Unicode interface usage of SetWindowLongPtrW, SetWindowLongPtrA -> SetWindowLongPtr; GetWindowLongPtrW -> GetWindowLongPtr 2015-05-27 22:59:46 +02:00
Christian Grasser
311c7d578e Further x86, x64 compatibility fix by reinterpret_cast<LONG_PTR> instead of reinterpret_cast<LONG> for SetWindowLongPtr 2015-05-27 22:47:40 +02:00
Christian Grasser
4d694ea704 Add patch from http://sourceforge.net/p/notepad-plus/patches/648/ by Xileer Torias with comment:
Updated the GetWindowLongPtr and SetWindowLongPtrW nIndex reference as per https://msdn.microsoft.com/en-us/library/windows/desktop/ms633585%28v=vs.85%29.aspx and https://msdn.microsoft.com/en-us/library/windows/desktop/ms644898(v=vs.85).aspx

This alters the function to be compatible with both x86, and x64 as to simplify future x64 builds.
2015-05-27 22:06:53 +02:00
Don HO
084d3c60a8 Update CONTRIBUTING.md 2015-05-27 17:11:08 +02:00
Don HO
2216c19dd0 Update CONTRIBUTING.md 2015-05-27 16:56:49 +02:00
Don HO
ad5788d266 Merge pull request #114 from pnedev/findinfiles_1
Enhance FindInFiles - part 1
2015-05-27 02:42:48 +02:00
Andreas Jönsson
5b28e27b3d Add "static" to get internal linkage. 2015-05-26 22:54:11 +02:00
Andreas Jönsson
2a7ef2ecf0 Guard long-running operations with a mutex
The session snapshot feature runs in its own thread and access to
Scintilla etc is not thread-safe. As a *temporary* and *non-exhaustive*
fix we guard some long-running operations (undo, redo, replace, sort)
with a mutex to prevent data corruption.
2015-05-26 15:58:46 +02:00
Don Ho
2beb7e2dfe Update .gitIgnore file 2015-05-26 09:25:36 +02:00
Don HO
56ceaf5546 Merge pull request #117 from NN---/VS2015
[ADD] Add VS2015 project file and make notepad++ project compatible with VS2015.
2015-05-26 09:12:03 +02:00
Don HO
07968d7ed6 Merge pull request #116 from jay1109/master
[UPDATE] Optimize font quality for LCD.
2015-05-26 03:00:03 +02:00
Don HO
805ab2b9ff Merge pull request #86 from andreas-jonsson/decimal_sort
[NEW_FEATURE] Refine sort lines feature: Add Sort Lines Lexicographically/Integer/Decimal (comma) /Decimal (dot) with Ascending and Descending commands.
2015-05-25 22:59:26 +02:00
Andreas Jönsson
f43c9875b3 Fix menu options. 2015-05-25 20:50:57 +02:00
NN
7ead0542cc Add special project for VS2015 2015-05-25 13:04:18 +03:00
jay1109
e2472bce88 Optimize font quality for LCD 2015-05-25 11:40:38 +02:00
Pavel Nedev
d6b321d2d5 Properly position on screen FindInFiles progress window
Use Search Dialog position as bias for the progress window position to avoid bad appearence on multiple monitors setups.
2015-05-25 11:04:31 +03:00
Pavel Nedev
df7ddabff0 Make FindInFiles progress window behave like modal 2015-05-25 11:03:21 +03:00
Pavel Nedev
4409277180 Display find progress status on cancel operation also 2015-05-25 11:01:50 +03:00
Pavel Nedev
43ac186d2b Auto-fit filename in FindInFiles progress window
This way the filename doesn't spread on multiple lines.
2015-05-25 11:01:16 +03:00
Pavel Nedev
ccee6ea29d Refresh N++ window on Finder creation
This makes Notepad++ window look clean when starting Find/Replace InFiles operation for the first time.
2015-05-25 11:00:47 +03:00
Don HO
a7e00affb4 Merge pull request #110 from andreas-jonsson/remove_struct
[UPDATE] Remove OPENFILENAMENPP structure.
2015-05-25 01:10:53 +02:00
Don Ho
bdb06f3861 [UPDATE] Update a quote. 2015-05-25 00:55:00 +02:00
Don HO
ec9712665a Merge pull request #104 from NN---/patch-2
[UPDATE] Add more xml file extensions.
2015-05-25 00:45:59 +02:00
Don HO
af664e49c5 Merge pull request #112 from Croydon/master
[UPDATE] Add jsm to the Javascript extensions.
2015-05-25 00:36:27 +02:00
Michael
b8adf46489 Add jsm to the Javascript extensions
.jsm is short for Javascript module and is at least used in Mozilla Addons for shared code.
2015-05-25 00:03:48 +02:00
Don HO
f7e5be4e2b Merge pull request #12 from dail8859/splitlines
[ENHANCEMENT] "Split Lines" uses the edge mode if enabled.
2015-05-24 19:18:59 +02:00
Don HO
e70eb054b0 Merge pull request #46 from andreas-jonsson/repeat
[ENHANCEMENT] Add "repeat" option to column editor.
2015-05-24 18:40:04 +02:00
Don Ho
0628508ef0 [REMOVE] Remove solution file from git index. 2015-05-24 01:28:43 +02:00
Don Ho
ec105d7b5f [UPDATE] Remove solution file from git index.
VisualStudioVersion could be different.
2015-05-24 01:23:59 +02:00
Don HO
99eca7b1bf Merge pull request #90 from rcdailey/multi-processor-build
[UPDATE] Enable multiprocessor compiling; Remove pre-compiling method.
2015-05-23 20:21:15 +02:00
Don Ho
6870368034 Update gitIgnore file. 2015-05-23 18:57:06 +02:00
Andreas Jönsson
4bd32caa5c Remove OPENFILENAMENPP structure. 2015-05-23 15:48:58 +02:00
Don Ho
b85fc02841 [RELEASE] Notepad++ 6.7.8.2 release 2015-05-23 14:14:33 +02:00
Don Ho
d3c7ade18c [NEW] Prevent from launching updater under XP due to the obsolet security
layer
2015-05-22 21:11:08 +02:00
Don HO
f74bb0813b Merge pull request #95 from NN---/patch-1
[REMOVE] Remove binary file npp.pdb.
2015-05-22 13:20:18 +02:00
Andreas Jönsson
7c3376ae6b Use a rectangular selection as sort key. 2015-05-21 15:53:48 +02:00
NN
3644983bcb Add more xml file extensions 2015-05-20 20:37:08 +03:00
NN
f867f40cb9 Add warnings description. 2015-05-20 12:39:28 +03:00
Andreas Jönsson
626dc02c4c Use old-style loop to be compatible with VS2010. 2015-05-20 08:25:14 +02:00
NN
2ef5e5eca3 Support compilation in VS2015.
Changes:
_CRT_NON_CONFORMING_WCSTOK - to have old wcstok behaviour
dbghelp.h doesn't disable warnings, do it manually.
Better casting from pointer to integral.
Disable warnings in tinyXml headers.
Disable warnings 4456;4457;4459 to not touch the source.
More details about the warnings: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
2015-05-19 14:01:27 +03:00
Don Ho
a76ff09ac0 [RELEASE] Notepad++ 6.7.8.1 release (WinGup bug-fix: remove the dependency of msvcr120.dll) 2015-05-19 03:40:56 +02:00
NN
eca9471ba8 This file is not intended to be committed 2015-05-18 16:18:19 +03:00
Andreas Jönsson
7b9c342bda Fix outdated comment. 2015-05-18 09:32:24 +02:00
Robert Dailey
5c69e59187 Enable multiprocessor build
Project now utilizes the /MP compiler switch to perform
parallelized builds. The number of parallel builds performed
is determined on a per-machine basis based on available
logical CPUs.

Long term this will provide the best performance output to
code maintainability ratio compared to just enabling
precompiled headers.

Using my personal machine (8 cores), I got the following
timings (Debug configuration):

* Normal build           : 89 seconds
* Multi-processor build  : 28 seconds
* PCH enabled            : 27 seconds

Note that the multi-processor build timings can be further
reduced with proper dependency management and removal of
existing precompiled header file (precompiledHeaders.h).

Specific Changes:

* Precompiled header support disabled (not compatible with
  /MP flag).
* precompiledHeader.cpp deleted.
* Solution File added.
* Minimal Rebuild (/Gm) disabled (ignored when /MP is on).

precompiledHeaders.h still exists because it contains a ton of
inclusions required by lots of files. A second and less trivial
cleanup will involve removing the precompiledHeaders.h file and
individually correcting and satisfying dependencies in each source
file in the code base.
2015-05-17 22:34:34 -05:00
Andreas Jönsson
91da641adc Use initializer list in ISorter. 2015-05-17 21:50:06 +02:00
Andreas Jönsson
be230c1a29 Add a version of std::stod which takes locale.
We need a string-to-double conversion function which acts the same on
all computers, irrespective of which locale is running. We need to
guarantee that the function expects '.' as the decimal point, and not
','. The choice of en-US is more or less arbitrary.
2015-05-17 21:23:08 +02:00
Andreas Jönsson
0e42d3348a Fix handling of negative numbers + empty lines. 2015-05-17 20:05:25 +02:00
Andreas Jönsson
ad2cc85c0e Simplify NativeLangSpeaker::messageBox. 2015-05-17 19:29:43 +02:00
Andreas Jönsson
d0bafb7fba Add more options for sorting.
User can now choose between lexicographic, integer and decimal sorting.
For decimal sorting there are two further options: decimal point ('.')
or decimal comma (',').

When doing integer/decimal sort, the parsing is not as strict as
before. E.g during integer sorting the program will interpret "123abc"
as 123.

Performance of integer sorting has been improved by 30%.

The implementation of sorting is delegated to classes which implement
the new "ISorter" interface. Unfortunately due to template issues most
of the code had to go in the header file.
2015-05-17 19:18:43 +02:00
Andreas Jönsson
4d8e731d3e Add const to NativeLangSpeaker::messageBox(). 2015-05-17 19:09:21 +02:00
Don Ho
5c272a8818 [RELEASE] Notepad++ 6.7.8 release. 2015-05-16 02:36:09 +02:00
Don Ho
50410cc744 [BUG_FIXED] Fix compiling problem in debug mode
This problem is due to the sort lines enhancement.
2015-05-15 19:41:59 +02:00
Don Ho
6b853cf3d3 [UPDATE] Update WinGup to version 3.0 and several localization files. 2015-05-15 16:10:42 +02:00
Don Ho
c033d58cb8 [UPDATE] Remove outdated user manual from release package. 2015-05-15 15:19:20 +02:00
Andreas Jönsson
98cafadc3f Remove const. 2015-05-15 11:49:42 +02:00
Andreas Jönsson
014c06c89c Remove const. 2015-05-15 11:46:39 +02:00
Don HO
72c8f0b4ae Merge pull request #44 from andreas-jonsson/more_optimize_sort
[BUG_FIXED] Fix issues related to sort optimization.
2015-05-15 03:32:15 +02:00
Don HO
b6d5c2b45a Merge pull request #35 from cmeriaux/goToNextIndicator
[BUG_FIXED] Fix "Jump to next indicator" command broken with only one character.
2015-05-15 03:00:00 +02:00
Don HO
3a301ee6ad Merge pull request #48 from laugel/master
[UPDATE] Added the "config" extension for XML files.
2015-05-13 20:07:49 +02:00
Don HO
c3c0cc4a24 Merge pull request #47 from prclx323800/translation
[UPDATE] Translate "Restore Recent Closed File".
2015-05-12 10:53:27 +02:00
Don HO
4ab13f02cb Merge pull request #52 from oneill/fix-auto-detect-settings
[BUG_FIXED] Fix file status auto-detection settings.
2015-05-12 10:40:56 +02:00
oneill@users.noreply.github.com
cf0f8df7a8 Retain field values when disabling status auto-detection 2015-05-12 01:28:00 +02:00
oneill@users.noreply.github.com
d98232b76e Fix the file status auto-detection setting not being set correctly 2015-05-12 01:24:16 +02:00
Andreas Jönsson
83de4a9da2 Use long long in numeric sort (ie 64 bit numbers). 2015-05-11 09:26:31 +02:00
Jean-Yves LAUGEL
22f2e101a6 Added the "config" extension for XML files. 2015-05-10 16:59:57 +02:00
Lin Xiao
ba0e08f06e Conform to translation file format 2015-05-10 20:22:28 +08:00
Lin Xiao
2968fb9a29 Translate "Restore Recent Closed File" 2015-05-10 20:01:29 +08:00
Andreas Jönsson
f4132c1634 Add "repeat" option to column editor.
This allows the inserted text to be repeated x times. As an example,
if we have selected 6 columns and let initial number = 10,
increase by = 5 and repeat = 2, then the column editor will insert the
following:

10
10
15
15
20
20
2015-05-10 13:06:25 +02:00
Andreas Jönsson
ee225f5cad Handle empty lines properly in numeric sort. 2015-05-10 11:00:58 +02:00
Andreas Jönsson
936d9c56fc When sorting, reserve enough space for work + output. 2015-05-10 10:30:17 +02:00
Andreas Jönsson
60505765cc Remove ScintillaEditView::getLine, no longer used. 2015-05-10 10:29:21 +02:00
Andreas Jönsson
dd846658e6 Use new kind of loop. 2015-05-10 10:27:36 +02:00
Andreas Jönsson
501ce1d689 Make reference signs consistent. 2015-05-10 10:25:56 +02:00
Andreas Jönsson
83c16755ab Don't cache int->string conversion, it doesn't speed up anything. 2015-05-09 21:23:40 +02:00
Andreas Jönsson
4b3fbdd570 Don't throw pointers (MFC habit). 2015-05-09 13:25:36 +02:00
Andreas Jönsson
6f004d86a4 Rename sortAllLines -> sortEntireDocument. 2015-05-09 13:21:35 +02:00
Andreas Jönsson
e258bcb3a7 Speed up numeric sorting by 10x.
Convert strings to int, sort, then convert back to strings.
2015-05-09 13:20:37 +02:00
Andreas Jönsson
bcbe48b13f Make stoi_CountEmptyLinesAsMinimum more restrictive.
It now only accepts digits and possibly a single minus character as the first character.
Ordinary std::stoi has too much special magic, e.g. it converts "1 a" to "1".
2015-05-09 12:49:47 +02:00
Andreas Jönsson
0eca4db949 Improve numeric sorting. No need to read lines from Scintilla, we already
have them in a vector.
2015-05-09 11:25:07 +02:00
Andreas Jönsson
eee7c4f16e Sort numerically (not lexicographically) if all lines are integers. 2015-05-09 11:02:58 +02:00
Andreas Jönsson
6e84be21f4 Fix newline bug when not sorting all lines. 2015-05-09 10:22:50 +02:00
Andreas Jönsson
351b9b6bff Rename quickSortLines -> sortLines. 2015-05-09 10:05:45 +02:00
Andreas Jönsson
01c1667b09 Use TCHAR instead of _TCHAR. 2015-05-09 08:34:56 +02:00
Andreas Jönsson
c926e18f42 Use more const. 2015-05-09 08:34:44 +02:00
Don HO
00c2e09d98 Merge pull request #40 from andreas-jonsson/optimize_sort
[ENHANCEMENT] Improve largely the performance of sort lines feature
2015-05-09 01:54:37 +02:00
Andreas Jönsson
4f7752e4a3 Add more const. 2015-05-09 00:17:18 +02:00
Andreas Jönsson
1f4a1fb2e7 Optimize sort.
Remove custom, recursive implementation of quicksort which becomes too
slow to use after a couple of hundred lines.
2015-05-08 23:27:21 +02:00
Don Ho
4e065b2d3f [UPDATE] Conform to GitHub project standard format. 2015-05-08 16:00:42 +02:00
Don HO
b02adce942 Merge branch 'master' of https://github.com/donho/notepad-plus-plus 2015-05-08 12:53:51 +02:00
Don HO
c40a6fc384 [UPDATE] Make project recompilable on VS2005 2015-05-08 12:53:32 +02:00
Don Ho
91f9751a85 [BUG_FIXED] Fix Setting on cloud for Google drive unrecognized regression. 2015-05-08 04:12:12 +02:00
Christophe Meriaux
352965b2e7 go to next indicator broken with only one char 2015-05-07 10:02:30 +02:00
Don HO
572f67f511 Merge pull request #9 from andreas-jonsson/tabbar
[CHANGE_BEHAVIOUR] When hiding tab bar via command-line parameter, don't affect settings.
2015-05-07 00:40:05 +02:00
Don Ho
9aa5d708ed [BUG_FIXED] Fix a annoying regression about "the buffer passed to GetFullPathName was too small!" message dialog. 2015-05-06 20:45:56 +02:00
Don HO
a2a75be11d Merge pull request #21 from kmb32123/patch-1
[UPDATE] Add readme.md hyperlinks.
2015-05-06 01:00:00 +02:00
Don HO
055481ab32 Update CONTRIBUTING.md 2015-05-06 00:46:37 +02:00
Don HO
68ad9c4b45 Merge pull request #22 from kmb32123/patch-2
Create CONTRIBUTING.md
2015-05-06 00:43:10 +02:00
Don HO
078cf28864 Merge pull request #28 from pnedev/unused_code_remove
Remove unused code piece
2015-05-06 00:39:04 +02:00
Pavel Nedev
ea8bf88130 Remove unused code piece 2015-05-05 18:11:09 +03:00
Kevin Brey
3ce1ac28f5 Create CONTRIBUTING.md 2015-05-04 18:26:39 -05:00
Kevin Brey
5456a45d4e [DOCS] add hyperlinks to readme 2015-05-04 18:04:47 -05:00
Don HO
b03eb6a8d9 Merge pull request #3 from rddim/master
[UPDATE] Update incorrect language code for bulgarian.xml
2015-05-02 11:54:05 +02:00
Don HO
1c49679fc2 Merge pull request #4 from stenox/patch-1
Update ukrainian.xml
2015-05-02 11:51:03 +02:00
Don HO
2fe9845dbe Merge pull request #7 from andreas-jonsson/find_ampersands
Fix ampersands in find dialog status bar.
2015-05-02 11:49:36 +02:00
Don HO
46cb58069f Merge pull request #8 from andreas-jonsson/plurals
Fix plurals in find-replace dialog.
2015-05-02 02:26:31 +02:00
Don HO
532ec666cf Merge pull request #10 from MAPJe71/master
Let's ignore some files i.e. added '.gitignore'.
2015-05-02 00:08:01 +02:00
MAPJe71
f43a4025be Merge pull request #1 from donho/master
Sync with master repository
2015-05-01 20:47:22 +02:00
Don HO
a92d142911 Merge pull request #5 from dail8859/readme-format
[FIX] Fix readme.md formatting
2015-05-01 20:15:56 +02:00
Don Ho
6bf823d3f8 [BUG_FIXED] Fix Tab close button too small issue with a very high resolution display. 2015-05-01 19:51:59 +02:00
dail8859
ec2bb7f8b7 [UPDATE] "Split Lines" uses the edgemode if enabled 2015-04-29 16:39:52 -04:00
dail8859
8ed68c3826 [FIX] More readme.md formatting and path fixes 2015-04-28 10:11:28 -04:00
Andreas Jönsson
31f6bf8398 When hiding tab bar via command-line parameter, don't affect settings. 2015-04-25 13:11:35 +02:00
Andreas Jönsson
930464fb8c Cleanup after comments in pull review. 2015-04-25 08:59:38 +02:00
Andreas Jönsson
43879e64ef Fix plurals in find-replace dialog. 2015-04-24 19:32:08 +02:00
Andreas Jönsson
5bacca3601 Fix ampersands in find dialog status bar. 2015-04-24 19:18:54 +02:00
MAPJe
0f6d80b8d9 Let's ignore some files. 2015-04-23 01:49:23 +02:00
Don Ho
ac61c43d15 [UPDATE] Update ADA language keywords. 2015-04-22 23:38:10 +02:00
dail8859
5be453b6f2 [FIX] Fix readme.md formatting 2015-04-21 11:32:09 -04:00
Artem Polivanchuk
e4944cdfd2 Update ukrainian.xml
Translation of new strings
2015-04-20 16:11:28 +03:00
Artem Polivanchuk
f11ac8f4ae Update ukrainian.xml
Adding new strings from EN
2015-04-20 14:50:38 +03:00
Artem Polivanchuk
7f0d3084f7 Update ukrainian.xml 2015-04-20 14:19:35 +03:00
rddim
5867668898 [UPDATE] Update incorrect language code 2015-04-19 20:03:04 +03:00
Don HO
ee2dbc251d Merge pull request #1 from rddim/master
Update bulgarian.xml
2015-04-18 20:42:14 +02:00
rddim
679724a0be Update bulgarian.xml 2015-04-17 20:39:19 +03:00
Don Ho
fdf47cd300 [RELEASE] Notepad++ v6.7.7 2015-04-16 02:55:40 +02:00
Don Ho
e2f19f30ca [BUG_FIXED] Fix "Restore last closed file" (Ctrl+Shift+T) display bug. 2015-04-16 00:34:23 +02:00
Don Ho
c683b344e4 Merge branch 'master' of https://github.com/donho/notepad-plus-plus 2015-04-16 00:24:16 +02:00
Don Ho
5492003355 [TEST] npp.pdb 2015-04-15 22:22:23 +02:00
Don Ho
7e61afffb8 Merge branch 'master' of https://git.iwi.me/npp/notepad-plus-plus
Conflicts:
	PowerEditor/bin/updater/GUP.exe
	PowerEditor/installer/nativeLang/bengali.xml
	PowerEditor/installer/nativeLang/hungarian.xml
2015-04-15 22:09:35 +02:00
Damien GERARD
a658547727 updated debugging information database 2015-04-15 10:39:39 +02:00
Don Ho
9114f1da31 updated GUP for notepad++ 2015-04-15 10:26:37 +02:00
Don Ho
8d4003c52e updated installer translations 2015-04-15 10:24:43 +02:00
Don Ho
faca774c5c [RELEASE] Notepad++ release 6.7.6 2015-04-15 02:12:28 +02:00
Don Ho
515932b338 [UPDATE] Update change log. 2015-04-14 13:00:27 +02:00
Don Ho
ce9810ecb5 [NEW_FEATURE] Add "Restore last closed file" (Ctrl+Shift+T) feature. 2015-04-07 02:10:03 +02:00
Don Ho
3ed1e767b1 [BUG_FIXED] Fix Settings on Cloud Google Drive not working issue. 2015-04-06 18:29:59 +02:00
Don Ho
73f47a2c04 [BUG_FIXED] Fix Setting on Cloud for dropbox not working issue. 2015-04-06 01:49:53 +02:00
Don Ho
1f8ad1e75c [BUG_FIXED] Fix a regression that system64 files cannot be opened by Notepad++. 2015-04-04 23:29:30 +02:00
Damien GERARD
47a2a4e8d7 renamed readmeFirst.txt to readme.md 2015-03-30 15:40:36 +02:00
Don Ho
55099cb4b7 [BUG_FIXED] (Author: Alexander Riccio) Fix several bugs.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1352 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-03-14 22:55:03 +00:00
Don Ho
8ec487d668 [RELEASE] Notepad++ 6.7.5 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1351 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-03-10 20:53:52 +00:00
Don Ho
31f81b2150 [UPDATE] Update the command line argument display content.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1350 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-03-05 12:26:08 +00:00
Don Ho
473769cd58 [BUG_FIXED] (Author: Pekka Pöyry) Filename rendered incorrectly on tab bar while it contains '&' character.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1349 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-28 13:17:37 +00:00
Don Ho
8d3583ccfd [MODIF] Code clean up: make code adapt the coding convention.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1348 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-24 18:27:55 +00:00
Don Ho
aa7461f062 [ENHANCEMENT) (Author: Pavel Nedev) Enhance displaying of searching files on the progress bar while finding files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1347 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-23 17:42:38 +00:00
Don Ho
f224c673bf [NEW] (Author: Pavel Nedev) Add notification for plugins : NPPN_BEFORESHUTDOWN NPPN_CANCELSHUTDOWN NPPN_FILEBEFORERENAME NPPN_FILERENAMECANCEL NPPN_FILERENAMED NPPN_FILEBEFOREDELETE NPPN_FILEDELETEFAILED NPPN_FILEDELETED
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1346 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-21 18:20:50 +00:00
Don Ho
d9299e644f [ENHANCEMENT] (Author: Pavel Nedev) Show progress window during FindInFiles and ReplaceInFiles.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1345 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-19 01:01:12 +00:00
Don Ho
78bbeb4624 [ENHANCEMENT) (Author: pinchy) Make keystroke ENTER trigger the shortcut editor dialog in Shortcut Mapper.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1344 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-17 07:56:17 +00:00
Don Ho
6420dfb67e [NEW] (Author: Korikulum) Adds a message showing the total number of matches in the current document to the Incremental Search bar.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1343 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-14 17:21:09 +00:00
Don Ho
deb3b8fcfe [BUG_FIXED] (Author: Andreas Jonsson) Fix the crash issue while user Ctrl + double click on an empty document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1342 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-13 23:30:34 +00:00
Don Ho
d5f8a23a09 [NEW) (Author: Michael) Allow drop files onto doc switcher and other side panels.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1341 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-13 18:04:33 +00:00
Don Ho
68fdd209b8 [ENHANCEMENT] (Author: Eduard Braun) Installer remembers user's choices of last installation.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1340 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-12 00:46:14 +00:00
Don Ho
9db6d61b2c [BUG_FIXED] (Author: mittmemo) Fix Auto-indent in new code block not respecting current EOL bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1339 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-09 18:46:59 +00:00
Don Ho
c922089e28 [NEW] (Author: Mike Cowperthwaite) Python lexer: enable EXTRAWORDS.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1338 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-09 08:45:30 +00:00
Don Ho
bab1575d2b [BUG_FIXED] (Author: Mike Cowperthwaite) Restore focus to editor when a panel is closed.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1337 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-09 08:33:01 +00:00
Don Ho
9a54f90312 [EN[ENHANCEMENT] Enhance Incremental search: make highlighting follow typing.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1336 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-06 18:18:04 +00:00
Don Ho
3d2f570aba [ENHANCEMENT] (Author: Mike Cowperthwaite) Enhance Incremental search. (part 2/2)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1335 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-06 03:46:15 +00:00
Don Ho
b7edd3c8e2 [ENHANCEMENT] (Author: Mike Cowperthwaite) Enhance Incremental search. (part 1/2)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1334 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-06 02:29:07 +00:00
Don Ho
435b1001b9 [BUG_FIXED] Fix auto-insert bad behaviour.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1333 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-04 01:13:58 +00:00
Don Ho
b75fb7cb4a [BUG_FIXED] Fix crash bug on loading dropbox settings.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1332 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-04 01:12:41 +00:00
Don Ho
b1d9ffe83f [BUG_FIXED] Fix a crash bug while file not found for -qf argument on start up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1331 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-02 08:20:52 +00:00
Don Ho
b1b6f01f34 [BUG_FIXED](Author: Pavel Nedev) Remove erroneous use of FreeLibrary(_hUser32).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1330 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-01 21:03:01 +00:00
Don Ho
a7074ee7b9 Back to the regular release mode.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1329 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-01 16:41:08 +00:00
Don Ho
b09a7c17f3 [NEW_FEATURE] Add new possibility to launch the auto-typing text from command line:
-qnQuoterName
-qfQuoteFileNameFullPath
-qtQuoteText


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1328 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-01 12:16:12 +00:00
Don Ho
00f664188f [RELEASE] Notepad++ 6.7.4 Release - Je suis Charlie edition
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1327 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-01-10 23:41:49 +00:00
Don Ho
5815817601 [RELEASE] Notepad++ 6.7.3 Release with change.log
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1326 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-01-01 12:45:29 +00:00
Don Ho
600e09b72e [RELEASE] Notepad++ 6.7.3 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1325 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-01-01 12:19:56 +00:00
Don Ho
9de1967bf3 [BUG_FIXED] Fix a crash issue for old processors due to SSE2 instruction.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1324 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-31 22:58:26 +00:00
Don Ho
8df7635063 [BUG_FIXED] Remove a language which makes Notepad++ crash.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1323 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-29 00:44:54 +00:00
Don Ho
395110c26b [BUG_FIXED] Fix the regression for the translation: remap the sub-menu entry for the added command "Mark...".
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1322 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-28 00:38:53 +00:00
Don Ho
c420316fe8 [RELEASE] Notepad++ 6.7.2 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1321 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-27 22:21:49 +00:00
Don Ho
0041757cb1 [ENHANCEMENT] Improve the usability of User Defined Language dialog: reduce dialog's height.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1320 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-27 15:33:24 +00:00
Don Ho
51a5fbfd59 [BUG_FIXED] Fix the crash issue while config.xml and stylers.xml are not loaded.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1319 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-27 00:32:51 +00:00
Don Ho
24c1dab2cb [BUG_FIXED] (Author: Andreas Jonsson) Fix the bug that "Function parameters hint on input" checkbox in preferences dialog is not initialized correctly.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1318 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-26 15:36:57 +00:00
Don Ho
8e63a6a496 [BUG_FIXED] Fix saving theme modified styles not working problem (Copy theme files in %APPDATA% to avoid UAC problem).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1317 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-26 01:32:18 +00:00
Don Ho
04cd96d11c [ENHANCE] (Author: Andreas Jonsson) Improve readability by using RAII to reset events.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1316 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-24 18:47:24 +00:00
Don Ho
15542d7c8d [BUG_FIXED] Fix NPPM_LAUNCHFINDINFILESDLG API regression issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1315 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-24 02:03:52 +00:00
Don Ho
36a6f0931b [BUG_FIXED] Prevent auto-insert of {} [] () "" and '' from inserting in column mode.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1314 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-23 22:03:36 +00:00
Don Ho
bf76a3f5ee [RELEASE] Notepad++ 6.7.1 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1313 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-21 19:43:40 +00:00
Don Ho
21d9cfb476 [BUG_FIXED] Fix a regression due to a new feature of MRU (the feature is removed).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1312 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-21 17:43:21 +00:00
Don Ho
611736b95d [NEW_FEATURE] auto-insert skipping character feature works for "" and '' now.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1311 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-19 18:40:47 +00:00
Don Ho
6594f4801b [BUG_FIXED] Fix a crash issue while typing Page up / Page down.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1310 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-17 23:10:21 +00:00
Don Ho
88a8889c15 [BUG_FIXED] Fix the bug that ] and } don't be skipped if "auto-insert ()" is disabled.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1309 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-16 17:59:28 +00:00
Don Ho
1ebef477cc [BUG_FIXED] Fix reloaded file on dirty status issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1308 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-15 23:13:01 +00:00
Don Ho
9cd8716863 [BUG_FIXED] (Author: Yobo XIE) Fix crash issue on GotoLine.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1307 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-15 22:45:28 +00:00
Don Ho
5463e69c52 [RELEASE] Notepad++ 6.7 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1306 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-14 22:12:18 +00:00
Don Ho
83acdc5423 [BUG_FIXED] Fix a crash issue while the opened document is deleted/moved from outside.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1305 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-11 01:19:47 +00:00
Don Ho
d2651832ea [BUG_FIXED] Fix undo actions on unsaved snapshot file removing the dirty state bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1304 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-09 23:16:48 +00:00
Don Ho
428df19cbc [NEW] Document map follows the current text direction (RTL/LTR).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1303 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-07 16:43:31 +00:00
Don Ho
134920648d [BUG_FIXED] Make "Text Direction RTL" command and "Text Direction LTR" command work without reloading file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1302 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-07 01:23:05 +00:00
Don Ho
724586149a [BUG_FIXED] Fix a smart indent bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1301 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-04 18:56:49 +00:00
Don Ho
80da43da5c [NEW] Allow users to disable easter eggs in Notepad++ by adding noEasterEggs.xml in Notepad++ installed directory.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1300 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-01 22:39:08 +00:00
Don Ho
b1f84d2788 [NEW] Add some menu accelerator.
[UPDATE] Fix some typos and syntax issues.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1299 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-30 02:17:49 +00:00
Don Ho
019f5eea7d [UPDATE] fix some uninitialized variables issues.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1298 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-29 17:57:38 +00:00
Don Ho
e4499d7a22 [BUG_FIXED] Fix an infinite loop due to smart indent.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1297 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-26 22:16:53 +00:00
Don Ho
57940d83f3 [NEW_FEATURE] Enhance Auto-insert feature (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1296 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-24 19:20:57 +00:00
Don Ho
cb07a7715d [NEW_FEATURE] Enhance the auto-insert (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1295 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-24 01:40:52 +00:00
Don Ho
5a7b30789b [NEW_FEATURE] Enhance Auto-insert feature (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1294 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-23 16:46:44 +00:00
Don Ho
a509210cdc [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1293 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-18 00:17:33 +00:00
Don Ho
22c70653a0 [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1292 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-17 00:36:36 +00:00
Don Ho
83debc292e [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1291 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-15 17:45:47 +00:00
Don Ho
8ceabd7850 [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1290 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-14 22:14:43 +00:00
Don Ho
a0d9227977 [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1289 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-13 02:07:46 +00:00
Don Ho
1d92d189b3 [FIX] Fix typo.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1288 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-12 17:49:30 +00:00
Don Ho
d90541d0ef [NEW_FEATURE] Smart Indent (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1287 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-12 02:14:45 +00:00
Don Ho
ee67ab951f [BUG_FIXED] Fix crash issue on quit Notepad++ while session snapshot period backup feature is on.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1286 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-11 13:20:38 +00:00
Don Ho
f043be8d25 [ENHANCEMENT] Enhance php parser in functionList.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1285 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-07 08:21:30 +00:00
Don Ho
fb4a2dd27d [ENHANCEMENT] (Author: Pavel Nedev) Resize column Name correctly while hiding column Ext.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1284 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-02 15:08:18 +00:00
Don Ho
2c9ad7ac27 [BUG_FIXED] (Author: Etienne Boireau) Fix Global colors not applied to all text of the "Find result" pane.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1283 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-31 21:22:43 +00:00
Don Ho
9dd5e62802 [NEW_FEATURE] (Author: Etienne Boireau) While current file is closed the previous activated file will be activated (MRU).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1282 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-28 22:26:17 +00:00
Don Ho
57633249ab [NEW] Add C# in Function List.
[BUG_FIXED] Add "Block Uncomment" command in the Shortcut Mapper.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1281 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-28 22:09:55 +00:00
Don Ho
daf42f1d62 [BUG_FIXED] Fix document list panel has no selection while start up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1280 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-25 19:44:57 +00:00
Don Ho
d815ae4981 [BUG_FIXED] (Author: Pavel Nedev) Fix docSwitcher bug which shows new 0 after loading a session of files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1279 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-15 22:24:14 +00:00
Don Ho
b50d2a9a29 [NEW] Add VS 2013 support.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1278 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-14 22:29:23 +00:00
Don Ho
fa351a683e [RELEASE] Notepad++ 6.6.9 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1277 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-09-07 22:16:25 +00:00
Don Ho
d7779d7477 [UPDATE] Minor change.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1276 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-09-07 15:58:09 +00:00
Don Ho
f3303ce00a [BUG_FIXED] Fix comment command bug for Fortran: the comment symbols should be set on the first column.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1275 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-29 07:36:51 +00:00
Don Ho
770624c9c5 [BUG_FIXED] Make getFileName safer.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1274 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-25 22:05:45 +00:00
Don Ho
7d2e4a3593 [UPDATE] Add new language Gujarati.
[NEW] Add python parson for function List.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1273 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-15 23:05:45 +00:00
Don Ho
b139d878e0 [BUG_FIXED] Make icons' background color of functionList and projectManager transparent.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1272 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-10 23:22:04 +00:00
Don Ho
fefa864ff5 [FIXED] Make functionList.xml validated xml file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1271 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-05 06:42:48 +00:00
Don Ho
8b9baff196 [BUG_FIXED] (Author: versat) Fix Change Icon app memory leak and wrong usage of function memset.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1270 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-03 10:48:49 +00:00
Don Ho
c92f6cc91d [NEW] Apply new file default settings on created new file (opened via commandline).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1269 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-02 11:28:42 +00:00
Don Ho
5d0858d5c7 [BUG_FIXED] Fix color picker' chooser does not work well.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1268 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-07-29 13:08:32 +00:00
donho
6b0cfa6bb6 [NEW_FEATURE] Language Menu can be compacted (optional).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@456 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-24 15:20:58 +00:00
donho
7c5a7bb461 [ADD] Add drag out cursor.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@455 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-23 23:48:05 +00:00
donho
924efc4ed5 [NEW_FEATURE] Add chrome tab like feature : drag out tab to create a new instance.
[NEW_FEATURE] Add theme selector to switch styles.xml on the fly.
[NEW_FEATURE] Add new command parameters : -c (column) -x et -y (startup position).
[REMOVE] Remove change line marker which does not work correctly.
[ENHANCE] Improve main menu structure.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@454 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-23 23:10:06 +00:00
yniq
9deb93204d [UPDATE] "Switch to found results window" command now switches back to the current edit view if the focus is already on the found results.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@453 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-23 12:35:46 +00:00
yniq
c924a47560 [UPDATE] Added an (hidden) option to make the "Filters" and "Directory" fields follow the current opened document in "Find in files" dialog. The new parameters are located in config.xml and are called: "fifFilterFollowsDoc" and "fifFolderFollowsDoc" (set to "yes"/"no")
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@452 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-18 18:54:54 +00:00
yniq
8c21ac903b [UPDATE] Remove leftovers from old marking method (IDM_SEARCH_MARKALL, IDM_SEARCH_UNMARKALL)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@451 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-15 10:24:49 +00:00
yniq
1175b82052 [UPDATE] line numbers margin width is changed dynamically according to the needed space (but keeping at least 3 digits).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@450 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-13 08:35:56 +00:00
donho
6ed92acab2 [BUG_FIXED] Fix the search result inaccurate colorization bug.
[BUG_FIXED] Fix the Mark all in selection bug (while Find Replace Dialog loosing the focus).
[NEW_FEATURE] Mark all extension : user can mark any occurrence with 5 different colours.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@449 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-12 20:09:03 +00:00
yniq
741cd58e61 [UPDATE]
1. xmlUpdater now supports multiple models in one xml model file.
2. xmlUpdater now supports removing xml nodes (using action="remove" attribute).
3. combined stylesLexerModel.xml, and stylesGlobalModel.xml to stylesModel.xml.
4. added a new file "stylers_remove.xml" for removing old deprecated styles from stylers.xml when upgrading NPP.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@448 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-12 16:29:37 +00:00
donho
defd2ae4e0 [RESET] restore SetWindowsHookEx parameter values.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@447 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-07 00:33:00 +00:00
donho
91b9b03ff7 [NEW] Add NPPN_FILEBEFORELOAD and NPPN_FILELOADFAILED messages.
[BUG_FIXED] Fix New document not be switched while db clicking in Find in files result panel.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@446 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-05 23:52:01 +00:00
donho
4826c0b011 [BUG_FIXED] Fix vista hook failure.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@445 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-01 23:30:57 +00:00
donho
05e55ebf66 [BUG_FIXED] Fix conversion min to Maj and Maj to min (or vice et versa) in column selection bug.
[NEW] column selection allows to insertion a string by typing characters in sequence (w/o column mode editor).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@444 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-31 23:47:49 +00:00
donho
3ecb9a2217 [RELEASE] v5.3.1 OR.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@443 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-29 10:04:55 +00:00
donho
434c4d0d6e [RELEASE] v5.3.1 OR.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@442 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-29 08:42:26 +00:00
donho
fbd300f33a [BUG_FIXED] Fix replace inaccurate bug.
[NEW] Increase Find what and replace with fields to 2047 characters.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@441 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-28 15:41:02 +00:00
donho
2eda8ec256 [NEW] SConstruct and SConscript are recognized as python file.
[BUG_FIXED] stop the indicator highlighting while the line change marker margin is hidden.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@440 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-23 17:56:18 +00:00
donho
b987cd7055 [RELEASE] Notepad++ v5.3 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@439 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-20 18:38:01 +00:00
donho
8887ef1328 [BUG_FIXED] Fix the bug the Notepad++ is launched several instances but show nothing.
Fix Find in files regression : Panel doesn't take Unicode.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@438 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-18 00:10:43 +00:00
donho
c6a0498215 [BUG_FIXED] Fix the Find in files performance issue due to change line marker.
Make the default colours for the global styles.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@437 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-15 01:12:10 +00:00
donho
c81c6ab82a [CHANGE_BEHAVIOUR] Set current working directory in browser, if Find in files combo is empty.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@436 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-10 00:46:00 +00:00
donho
22cae478e8 [NEW_FEATURE] find/replace dialog settings are remembered. Add a hidden setting (dlgAlwaysVisible in config.xml) to not hide the dialog if any result found.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@435 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-08 02:06:30 +00:00
donho
849ebb417d [NEW_FEATURE] drop (or open in dos command line) a directory in Notepad++ to open all files in the directory recursively.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@434 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-06 00:53:28 +00:00
donho
b006afab7d [BUG_FIXED] Fix uncomment block bug.
[ENHANCED] Enlarge some strings displayed zone for the translation.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@433 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-03 23:09:47 +00:00
donho
06301c159f [NEW] Make line change state margin customizable (show/hide).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@432 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-03-01 17:03:42 +00:00
donho
a0c490719c [BUG_FIXED] fix esc key for column mode behaviour.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@431 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-25 00:14:39 +00:00
donho
342f226fa7 [BUG_FIXED] Fix modif marker margin bug : the previous document is marked while open a file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@430 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-21 14:13:52 +00:00
donho
d16e9beb15 [BUG_FIXED] Fix read only file SaveAs bug.
[NEW_FEATURE] Don't save empty untitled document.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@429 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-21 10:08:38 +00:00
donho
29a3bf1b12 [NEW_FEATURE] Modification state vertical bar (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@428 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-19 01:29:06 +00:00
yniq
4e74b2dff4 [BUG_FIXED] Changing global stylers now affects the Finder window.
[BUG_FIXED] Changing current line background color of the search result styler now affects the Finder window.
[UPDATE] Some other updates regarding the finder styles.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@427 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-11 16:09:44 +00:00
donho
e1c1a64b1f [NEW] Change the bookmarks' numbers.
Modify showMargin function.
[CLEAN_UP] remove constant.h.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@426 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-11 01:14:02 +00:00
donho
2948c18e3e [BUG_FIXED] Changing "Search result" stylers via Styler Configurator updates visual effect on the fly now.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@425 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-10 18:38:29 +00:00
donho
60f91b7b48 [BUG_FIXED] Fix for L_EXTERNAL in loadSession.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@424 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-09 23:48:18 +00:00
donho
66a072889b [NEW_FEATURE] Add "Find all in current file" feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@423 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-09 22:10:38 +00:00
donho
a7b0ebc94b [RELEASE] v5.2 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@422 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-08 16:54:03 +00:00
yniq
0e5fa03543 undo revert
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@421 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-07 16:26:32 +00:00
donho
36ee1015ff [BUG_FIXED] Fix function tip crash issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@420 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-07 15:15:58 +00:00
donho
9678cec404 [REVERT] Revert to 413.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@419 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-07 00:52:12 +00:00
yniq
e6fd7c8357 [UPDATE] Set focus on the main editor after double-clicking a search result (scintilla stole the focus on mouse up).
[UPDATE] Updated some MessageBoxes (for the Find dialog).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@418 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-06 14:19:51 +00:00
yniq
214dfbf381 [UPDATE] Added shortcut keys (underline) for the Find dialog. Fixed tab ordering, and moved/resized some controls.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@417 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-06 14:16:12 +00:00
yniq
d5b8efeef0 [UPDATE] Updated some MessageBoxes and minor code changes.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@416 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-06 13:55:04 +00:00
yniq
2ae8792fe8 [UPDATE] Added shortcut keys (underline) for the GoTo dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@415 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-06 13:43:55 +00:00
yniq
881d0ade24 minor change - whitespace
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@414 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-06 13:40:49 +00:00
yniq
44da1e1d44 [UPDATE] Removed NDEBUG compilation flag from the Npp Debug build target.
[UPDATE] Removed ..\src\WinControls\Preference\resource.h from the project.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@413 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-05 15:34:54 +00:00
yniq
dae69e8c3b [NEW_FEATURE] Added commands for the found results pane:
Goto next/previous found result (default keys: F4/Shift+F4)
Switch to found results window (default key: F7)

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@412 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-05 15:29:34 +00:00
yniq
c3d1056125 [FIX_BUG] Restore searchResult lexer in case the lexer was changed to SCLEX_NULL in GotoFoundLine(). (This affected the folding of the found results and also DeleteResult and gotoNextFoundResult, any may crash the program)
[NEW_FEATURE] Set current line background color for the finder (new style)

[MODIF] Hide caret for the finder


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@411 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-05 15:25:29 +00:00
donho
7705e0b571 [NEW_FEATURE] Enhance "Find in all opened files" and "Find in files" features.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@410 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-04 01:06:38 +00:00
harrybharry
7d2eb78375 [FIX_BUG] Finally removed insertion of tab characters when running Trim trailing and Save macro demo.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@409 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-02-02 22:37:46 +00:00
harrybharry
d8bfb122be Fix typo in code
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@408 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-29 15:46:31 +00:00
harrybharry
c889934a2d Add minidump helper class files
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@407 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-29 15:30:54 +00:00
harrybharry
8dcd31a77d [FEATURE] Add minidump feature. Make sure that at every release, PDB and exe binaries are saved.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@406 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-29 15:30:10 +00:00
harrybharry
6fe5d8ac78 Fix command line parsing to accept unquoted files as single argument once again.
Add DefaultIcon key to registry.
Close root key handle when modifying registry.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@405 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-27 00:48:17 +00:00
donho
6eda888b6e [NEW] The file filters and the directory are set while find/replace/findInFiles dialog is launched.
[BUG_FIXED] Texts in combo box of Find dialog are restored in order now on the launch time.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@404 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-26 23:21:19 +00:00
donho
ab4ae49c8a [NEW] Adding find in files filters supports user defined language.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@403 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-25 12:46:23 +00:00
donho
e64e4309ab [NEW_FEATURE] Add Replace in files feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@402 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-24 22:58:46 +00:00
harrybharry
c57f952ea5 [BUG_FIX] Correct SCEN_SETFOCUS handling: fixes Find in files stackoverflow due to inconsistent value of pEditView. Removes the previous workaround.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@401 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-23 15:51:09 +00:00
donho
048e3b9471 [BUG_FIXED] Fix the find in files crash bug while cloned views are side by side and focus is on main view. (walkaround).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@400 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-22 23:11:04 +00:00
donho
2e1806bd34 [MODIF] hide 5 inconsist plugins messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@399 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-20 21:34:59 +00:00
donho
1e27703297 [NEW_FEATURE] refine "open ANSI files as UTF8 w/o BOM" feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@398 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-17 16:46:49 +00:00
donho
2818386fb2 [BUG_FIXED] Fix a cosmetic bug.
Correct a label in installer.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@397 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-14 20:45:10 +00:00
donho
cbaf5fda29 [NEW] Add NPPM_DOOPEN plugin message.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@396 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-14 19:19:00 +00:00
harrybharry
00682573a1 Adjust PostIt/FullScreen behaviour to mix well together.
Fixes a few glitches, makes use of WM_POPUP style.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@395 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-13 19:56:22 +00:00
donho
28082233e3 [RELEASE] v5.1.4 release.
Add NppHelp entry.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@394 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-12 00:19:03 +00:00
donho
d7d78db3b7 [NEW_FEATURE] Add 2 plugin messages : NPPN_SHORTCUTREMAPPED notification and NPPM_GETSHORTCUTBYCMDID message.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@393 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-11 19:01:30 +00:00
donho
fbf0ab11fe [NEW_FEATURE] Add the ability to force opened ANSI document as UTF-8 w/o BOM.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@392 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-10 15:22:16 +00:00
donho
967ddc39e0 [BUG_FIXED] Fix verbose backup bug (while the backup dir is not set).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@391 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-08 15:37:36 +00:00
donho
7279b1c911 [UPDATE] Update localization list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@390 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-08 11:55:26 +00:00
donho
1759a31b2f [BUG_FIXED] Fix context menu broken due to localization feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@389 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-08 09:42:09 +00:00
donho
0d07533cec [BUG_FIXED] Fix localization feature bug while doLocalConf;xml is present.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@388 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-08 01:55:46 +00:00
donho
ab5c33a896 [UPDATE] Make language table complete for localization feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@387 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-08 00:49:16 +00:00
donho
7a137760e5 [NEW_FEATURE] Change language on the run time for Unicode version (Finished).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@386 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-07 00:11:56 +00:00
donho
43bf9f4c9e [NEW_FEATURE] Change language on the run time for Unicode version (in progress - reloading another language is ok).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@385 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-04 22:35:51 +00:00
donho
be3285aa2c [NEW_FEATURE] Change language on the run time for Unicode version (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@384 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-03 20:55:36 +00:00
donho
44219af45d [BUG_FIXED] Fix external lexer plugin loading problem for Unicode Notepad++.
Add new plugin notification message NPPN_WORDSTYLESUPDATED.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@383 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-03 18:57:51 +00:00
donho
f7a1301d04 [CLEAN] Remove redundant AddFontResource call.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@382 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-01-01 20:22:03 +00:00
donho
261d357e66 [BUG_FIXED] Fix bug that external lexer doesn't work with Unicode version.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@381 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-30 10:26:01 +00:00
donho
e12d8b8c99 [BUG_FIXED] Fix recent files list bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@380 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-29 21:59:53 +00:00
donho
b4e6f2723b [RELEASE] v5.1.3 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@379 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-29 15:02:35 +00:00
donho
17453dea5b [BUG_FIXED] Fix "Go to/Open in another instance" bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@378 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-29 13:19:48 +00:00
donho
6e0caa10c6 [ADD] Add a new Unicode compliant nppCM project.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@377 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-29 01:32:52 +00:00
donho
6e4a80da18 [BUG_FIXED] Fix nativeLang loading problem if Notepad++ location path contains Unicode characters.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@376 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-26 18:45:10 +00:00
donho
56e1ac8939 [MODIF] Modify the N++ recovery dir into to %temp%.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@375 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-24 14:43:11 +00:00
donho
0c6496f6b3 [NEW_FEATURE] Process WM_IME_REQUEST message to support Windows IME.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@374 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-23 18:06:09 +00:00
donho
aaccc02a2b [BUG_FIXED] Fix "Go to another view" translation coding error.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@373 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-21 23:30:22 +00:00
donho
90420137f6 [BUG_FIXED] Restore normal window while exiting if PostIt mode is active.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@372 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-21 16:46:03 +00:00
donho
bc95071907 [NEW_FEATURE] Add PostIt feature (F12 to toggle it).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@371 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-21 16:09:14 +00:00
donho
22bf2fe477 [BUG_FIXED] Adding search text on the top of combo box.
The selected text is not automatically added to the combo box, only when the search is processed.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@370 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-16 00:52:03 +00:00
donho
bb475168ba [BUG_FIXED] Fix Tidy installation problem for TextFX plugin.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@369 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-15 18:11:24 +00:00
donho
e11530f0c0 [BUG_FIXED]Fix the bug that Unicode path file opened in the previous session doesn't be restored.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@368 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-14 22:30:57 +00:00
donho
2b0cfc133f [RELEASE] v5.1.2 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@367 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-14 02:25:56 +00:00
donho
54695f819d [NEW] Update Log.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@366 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-11 22:42:07 +00:00
donho
abf2bffba8 [BUG_FIXED] Fix crash bug while loading File of User Defined Language.
Fusion 2 commands "activate main view" and "activate sub view" in "Focus the other view".

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@365 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-09 23:24:55 +00:00
donho
e6d799a644 [BUG FIXED] Fix close all files/app exit cancel bug.
Fix default button problem in Find in Files dialog.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@364 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-08 21:22:30 +00:00
donho
b8980eda58 [BUG_FIXED]Fix caret position moving problem after loading a session.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@363 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-07 18:21:58 +00:00
donho
53a52f557d [BUG_FIXED] Fix Find in Files search in both Unicode/Ainsi files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@362 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-06 23:43:09 +00:00
donho
9552d39b01 [BUG_FIXED] Replace DeleteObject(hIcon) by DestroyIcon(hIcon)to save the kitties.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@361 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-05 22:24:12 +00:00
donho
c62bfed96c [BUG_FIXED] Make Find in files threadless to improve the performance and to avoid the crash.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@360 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-12-04 23:58:39 +00:00
donho
4e51f83fea [BUG_FIXED] Prevent Notepad++ save files to "vitual store" under vista.
Remove unnecessary timer for find in files feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@359 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-30 23:23:04 +00:00
harrybharry
534ebfabea [FIX_BUG] Crash in FileDialog if too many languages or extensions were added.
[FIX_BUG] Crash after handling crash (or, stop pure virtual functioncall after crash).
[FIX_BUG] Notepad++ fully accessible in crash error messagepump (or, you can still go on if a crash occurs).
Show shortcut for restore zoom option.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@358 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-26 23:31:13 +00:00
donho
e7a0a07fa9 [BUG_FIXED] Fix writing a key in registry while preference dialog launches
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@357 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-25 12:52:01 +00:00
harrybharry
8f03512943 [BUG] Fix tabbar context menu.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@356 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-19 17:26:47 +00:00
harrybharry
1cc93da80e [BUG]Fix bug when pasting to bookmarked lines in Unicode version.
[BUG]Fix (temporary) memory leak when a file cannot be opened if it consumes too much memory.
Add string tokenizer routine in Common.
Update VS2003 project file for TinyXMLA.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@355 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-19 13:19:50 +00:00
donho
8bd91ca178 [BUG_FIXED]Fix Japanese/Polish/Russian language display bug under Notepad++ Unicode version.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@354 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-16 22:38:30 +00:00
donho
0147313a93 [RELEASE] v5.1.1 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@353 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-11 20:11:15 +00:00
donho
47a7fdbc25 [RELEASE] v5.1.1 release.
Add a auto-package script.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@352 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-11 11:50:56 +00:00
harrybharry
5d11a87060 [BUG_FIXED] Fix tab control draw bug again (With a slightly different approach this time).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@351 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-02 12:18:11 +00:00
donho
ea516df61a [BUG_FIXED] Fix Unicode version display Korean/Japanese language problem.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@350 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-11-01 22:20:15 +00:00
harrybharry
67499d839a Fixed bugs:
Open in new instance not allowing spaces in paths.
open in new instance uses filename of current running executable instead of 'notepad++.exe'.
Filters for open/save dialog not showing or incorrectly showing 'L'.
"Global Styles" string incorrectly displayed in Unicode version.
Removed redundant array for extensions in file dialogs.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@349 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-27 15:31:31 +00:00
donho
a7df3063dd [BUG_FIXED] Fix calltip argument with 'L' leader character bug.
Remove TextFX from installer.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@348 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-26 18:39:48 +00:00
donho
3b7184ffea [RELEASE] v5.1 OR (save the earth action) : Add question dialog for removing incompatible plugins to prevent annoying message from the next launch time - that will reduce million click times by users for each new release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@347 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-26 01:25:16 +00:00
donho
23bce30e0f [RELEASE] v5.1 OR.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@346 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-25 23:14:39 +00:00
harrybharry
9f3ecd76fc Add messages:
NPPM_[G/S]ET_BUFFERLANGTYPE,
NPPM_[G/S]ET_BUFFERENCODING,
NPPM_[G/S]ET_BUFFERFORMAT,
to access buffer properties. See Notepad_plus_msgs.h for details.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@345 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-22 21:44:58 +00:00
harrybharry
15afe60aea Fix bug with opening relative path files (delay initial SetCurrentDirectory call)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@344 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-21 16:16:24 +00:00
donho
f033f1a8e7 [BUG_FIXED] Fix "find in all opened files" and "find in files" unicode text search bug in ANSI version.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@343 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-19 14:52:08 +00:00
donho
c16b93830a [BUG_FIXED] Fix ANSI replace/replace all bug.
[NEW_FEATURE] Add find/replace dialog memorize capacity.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@342 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-16 21:57:08 +00:00
donho
d2c8c52c51 [BUG_FIXED] Fix cancel to save file in Notepad++ can not stop system shutdown problem.
Fix ANSI version copy file name bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@341 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-11 00:57:03 +00:00
harrybharry
8e3555f8e5 [FEATURE]Add option to only show the filename in the titlebar.
[BUG] Fix bug with clearing read-only flag.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@340 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-08 23:24:50 +00:00
harrybharry
02e92ab36b Fix wrap after save as bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@339 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-08 22:22:02 +00:00
harrybharry
9c736cdc88 Fix caret blinkrate issues (startup value wrong, not stopping on slowest)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@338 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-08 21:43:08 +00:00
donho
af23902b82 [BUG_FIXED] Fix file association Unicode bug.
[BUG_FIXED] Fix WindowDlg close file bug.
[BUG_FIXED] Add html.xml, sql.xml and rc.xml into installer.
[CHANGE] Change the reload from disk behaviour.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@337 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-05 20:20:17 +00:00
harrybharry
22f25219e2 Fix NPPM_GETBUFFERFILENAME bug
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@336 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-05 11:46:56 +00:00
donho
2fd07e9a2d [ENHANCE] Enhance Find in files thread feature - add stop searching ability.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@335 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-10-01 17:32:20 +00:00
donho
ddd055e5a2 [NEW_FEATURE] Find in Files in thread.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@334 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-30 23:02:47 +00:00
donho
3169124d8d [BUG_FIXED] Fix the User defined language Unicode bug.
Remove all the comic sans font (finally :) ). 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@333 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-30 18:42:46 +00:00
harrybharry
68a59eb3cb Fix bug with exception display
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@332 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-30 15:44:34 +00:00
donho
8d4289a18d [BUG_FIXED] Fix cpu high consummation bug while document is cloned with smart highlighting and xml matched highlighting features activating.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@331 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-29 20:50:12 +00:00
donho
fcc46e0477 [BUG_FIXED] Fix crash problem while typing Chinese character in ANSI CSS document under Chinese environment.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@330 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-28 21:57:01 +00:00
donho
f63a7529ad [NEW_FEATURE] Move document to another instance of Notepad++ via DnD doc tab.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@329 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-26 21:52:06 +00:00
harrybharry
ab5c0fab62 Fix smart hilight ranges.
Smart hilite relies on SCN_SCROLLED custom notification. Keep in mind to compile the Notepad++ SciLexer on SVN.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@328 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-22 22:16:48 +00:00
harrybharry
56563f000d Add NPPM_SETFILENAME.
Implement 3 TODO messages.
Fix bug if plugin doesnt clean up Scintilla handles.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@327 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-22 21:20:12 +00:00
donho
576ee8ea8c [NEW_FEATURE] Make tag match highlighting on non html zone optional.
Fix bug that ansi->utf8 w/o BOM and utf8 w/o BOM-> ansi make buffer dirty.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@326 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-18 23:05:37 +00:00
donho
7b643b860d [NEW_FEATURE] Make User defined default directory feature (for open/save directory) available in Preference dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@325 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-17 22:50:41 +00:00
donho
e85d8619ed [NEW] Make the last current directory as current directory when the path of current document doesn't exist.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@324 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-16 20:37:38 +00:00
harrybharry
e58b8c2a2c Replace DOCSWITCHOFF/DOCSWITCHIN with BUFFERACTIVATED notifications to cover more situations
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@323 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-16 20:33:20 +00:00
donho
836036890a [BUG_FIXED] Fix "Remember the last operation Dir" bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@322 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-16 18:08:42 +00:00
donho
5c6fb5e0f5 [NEW_FEATURE] Add new pluin notification NPPN_LANGCHANGED (Finished).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@321 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-15 17:04:52 +00:00
donho
cc263ceda3 [NEW_FEATURE] Add "Doc go to new instance" and "Doc open in new instance" feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@320 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-15 01:01:51 +00:00
donho
5ef6a4a5b4 [NEW_FEATURE] Add new pluin notification NPPN_LANGCHANGED.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@319 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-12 15:28:00 +00:00
donho
11b624062f [BUG_FIXED] Fix UDL name load bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@318 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-11 17:38:51 +00:00
donho
0f77948833 [BUG_FIXED] Fix context menu incorrect setting crash bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@317 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-10 17:29:20 +00:00
donho
2b93d0ab4e [MINOR] Change tag matched hiliter colour.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@316 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-10 08:29:13 +00:00
harrybharry
f8d3d3e5de Fix sizeof bug with font size list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@315 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-10 00:37:42 +00:00
harrybharry
adba68de00 Fix loads of sizeof() problems with TCHAR (possible buffer overfows by factor 2).
Fix a problem with Incremental search+UTF8 in win9x.

(UTF8 is still problematic in unicode mode.)

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@314 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-10 00:32:19 +00:00
donho
c2acd30423 clean up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@313 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-09 23:57:57 +00:00
harrybharry
6a73e62487 Add Common files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@312 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-09 22:37:06 +00:00
harrybharry
d385390709 Rename SysMsg->Common , force include in vc2003 and makefile.
Change default directory hidden option, tries to use newer API call.
Made compilable again with MinGW, exception handling disabled when compiled with makefile.
Change basic_string<TCHAR> to generic_string.
Fix bug with CPP lexer keyword list.
Add unicode Configurations to vc2003 project file.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@311 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-09 22:35:19 +00:00
donho
2b44819492 [NEW] Add 2 notification (NPPN_DOCSWITCHINGIN and NPPN_DOCSWITCHINGOFF)messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@310 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-09 00:25:02 +00:00
harrybharry
521c53918f Add hidden capability of setting default directory (with envvars).
No more directory locks (can freely delete all directories).


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@309 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-08 22:22:54 +00:00
donho
8c70585f27 [TUNE] vc2008 -> vc2005
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@308 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-07 18:56:59 +00:00
donho
147278ac61 [NEW_FEATURE] UNICODE/ANSI release.
Fix crash issue due to the incoherent modification/creation date.
Fix tag match highlighting mismatched bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@307 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-06 00:53:53 +00:00
harrybharry
90f5488b59 Fix folding not occuring over entire document
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@306 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-09-01 22:08:26 +00:00
donho
aa1f014acb [NEW_FEATURE] Unicode path is supported.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@305 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-08-15 10:02:25 +00:00
donho
85db072c3e [NEW] Make x64 compiling compatible.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@304 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-08-06 01:33:46 +00:00
donho
04f43d8563 [RELEASE] Notepad++ v5.0.3.
Fix the display problem in found results dialog while processing find in all opened files/find in files in a file contains a very long line.
Fix not remembering the history file setting "Don't check at launch time" option bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@303 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-08-03 01:14:41 +00:00
donho
e6247761d0 [BUG_FIXED] Fix a crash bug while searching in all opened documents if a document contains long line.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@302 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-24 22:24:35 +00:00
donho
1d9f93b2a0 [RELEASE] v5.0.2 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@301 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-21 22:33:22 +00:00
donho
ccef65d20d [REVERT] Revert to old clickable link implementation which is more accurate.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@300 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-21 20:49:03 +00:00
donho
d156d90a9e [ADD] Add UrlHighlighter class files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@299 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-21 18:05:05 +00:00
donho
42cfe90411 [NEW] URL highlighter highlights only the current view, it highlights : http, https, ftp and malto.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@298 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-21 01:39:28 +00:00
donho
f3ebd08bd3 [BUG_FIXED] Fix a bug that file detection options set are not saved.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@297 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-20 00:00:03 +00:00
donho
68673f8049 [UPDATE] update the project.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@296 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 17:16:51 +00:00
harrybharry
45c7e78024 Fix delay because of folding tests.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@295 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 15:47:26 +00:00
harrybharry
4ae42c5654 Fix bug when closing file using close button.
Add Scintilla vcproj file for VS 2003

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@294 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 14:40:52 +00:00
harrybharry
bccf1356a0 Set indicators to draw under the text
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@293 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 14:03:33 +00:00
harrybharry
fb94eb5ec5 Adjusted Smart Highlighter to only highlight the visible lines.
Highlighting code is now in a new class SmartHighlighter.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@292 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 13:18:24 +00:00
donho
ea80233f65 [BUG_FIXED] Fix crash bug for tags match highlighting.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@291 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 12:17:47 +00:00
donho
481b80909e [BUG_FIXED] Fix the huge file makes notepad++ crash issue.
Fix adding item in the history file list while deleting file from Notepad++  bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@290 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-17 07:35:39 +00:00
donho
2cb0038e08 [RELEASE] OR v5.0.1.
Fix bug : Syntax highlighting is not applied after "Save as".

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@289 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-14 23:37:37 +00:00
donho
8bfe2001eb [RELEASE] OR v5.0.1.
Revert to the old timestamp due to the annoying bug.
Rename Makefile.win to makefile.
Remove throwing exception temporarily in order to fix Notepad++ launch problem under WINE. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@288 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-14 02:18:38 +00:00
harrybharry
96299bc218 Change timestamp functions from _stat to GetFileAttributes,
should work with 2003 and 2005 compilers.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@287 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-11 16:59:07 +00:00
donho
096f030843 [BUG_FIXED] Fix tags match highlighter bug - the none-html zone won't be highlight.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@286 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-10 11:28:30 +00:00
donho
c9e76e0193 [CODE_REORGANISATION] reorganisation xmlMatchedTagsHighlighter class.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@285 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-09 23:30:47 +00:00
harrybharry
4748f3fa37 Re-enable gcc compiler environment
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@284 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-09 18:08:39 +00:00
donho
7523faff29 [IMPROVE] Reorganize the xml tag match hilite.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@283 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-09 18:01:47 +00:00
donho
d8973543ad [BUG_FIXED] Fix tags match highlighter bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@282 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-09 16:27:15 +00:00
donho
f35ddeb8dd [NEW_NAME] rename some dialog items.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@281 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-09 00:18:00 +00:00
donho
f0c3cfc77e [BUG_FIXED] Fix tag match highlight bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@280 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-08 23:41:12 +00:00
donho
722416bcc4 git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@279 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-07-08 17:49:30 +00:00
harrybharry
1338ac4fe5 Fix bug: hide lines not working right when closing.
Fix bug: Files not in recent list on exit and no session saved.
Fix bug: bad copy/pate code in getCurrentOpenedFiles.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@278 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-08 16:03:40 +00:00
donho
8fb47c3ba1 git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@277 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-07-08 10:11:04 +00:00
donho
a9ad2f7a22 [BUG_FIXED] Fix word completion not in alphabet order.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@276 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-07 22:21:20 +00:00
donho
ce45ebe455 [BUG_FIXED] fixed the tag attribute highlight memorizing bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@275 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-07 16:57:37 +00:00
donho
014af9eb40 [BUG_FIXED] Fix word completion doesn't display bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@274 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-06 23:27:50 +00:00
donho
e95acd8f5a [RELEASE] v5 official release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@273 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-06 00:08:20 +00:00
donho
d28414d7c4 [ENHANCE] Make Tag attributes highlight work correctly.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@272 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-03 10:48:00 +00:00
donho
bd1e9eb82c git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@271 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-07-03 00:05:43 +00:00
donho
29161802e2 [ENHANCE] Enhance tag match hilite.
Make Enhance tag match hilite optional.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@270 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-02 23:51:51 +00:00
harrybharry
d391d0740a Add spaces to templates for VS2003 compiler.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@269 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-02 00:20:27 +00:00
harrybharry
25a8dd0dd8 Fix saveAll bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@268 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-02 00:17:08 +00:00
donho
41be902ec8 [ENHANCE] Enhance Tag match highlighting.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@267 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-07-01 22:38:21 +00:00
donho
9a2cebbd6e [BUG_FIXED] Avoid delete/rename operation on New file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@266 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-30 21:32:22 +00:00
donho
608265a3ca [BUG_FIXED] Fix find/replace bug due to Tag matching feature.
Enhance the tag matching display.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@265 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-30 17:24:24 +00:00
donho
d82edbff5b [MODIFY] Minor change.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@264 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-29 23:39:15 +00:00
donho
ad776f17fe [NEW_FEATURE] Add rename and delete current document features.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@263 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-29 12:19:31 +00:00
harrybharry
84bd5081b0 Fix bug with no titlebar if no session is loaded.
Fix bug where not enough stylebits are set on a document.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@262 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-29 10:00:20 +00:00
donho
b2a99264f4 [BUG_FIXED] improve the recognition of tag name.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@261 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-28 00:41:46 +00:00
harrybharry
6ecf551326 Fix calltip regression.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@260 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-27 15:51:09 +00:00
harrybharry
c48b68c071 Fix bug where reloading a readonly file would not work.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@259 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-26 21:49:56 +00:00
donho
97ab1062d6 [NEW] Add 2 plugin message for v5 : NPPM_GETFULLPATHFROMBUFFERID and NPPM_GETPOSFROMBUFFERID.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@258 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-26 00:13:43 +00:00
harrybharry
6f740de0ad Fix view not closing of not active.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@257 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-25 21:52:43 +00:00
harrybharry
86e358a89a Fix selection issue after switching document.
Make getBufferByID inline.
Fix selection reset after reload or saving session.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@256 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-25 20:10:16 +00:00
donho
f53fa31a70 [BUG_FIXED] Fix NPPM_GETCURRENTIDEX bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@255 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-25 00:28:43 +00:00
harrybharry
70bfdcf84d Moved xmlUpdater and IExplorerShell to tools folder.
Add xmlApiSorter tool.
Update tool files to point to correct directories.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@254 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 23:33:01 +00:00
harrybharry
ec66a22890 Fix case sensitivity bug in Calltips
Single existing file on commandline will not be interpreted but opened directly

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@253 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 23:02:22 +00:00
donho
4c138a5518 [BUG_FIXED] Fix the single tag colourising bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@252 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 22:49:18 +00:00
donho
f154e6984d [NEW_FEATURE] Tag match highliting is finished.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@251 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 22:18:02 +00:00
harrybharry
f7f0c438b9 Remove duplicate code
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@250 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 18:43:33 +00:00
harrybharry
1335a73d63 Fix style not enabled if restyle requested on unstyled document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@249 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-23 16:04:35 +00:00
donho
5be9af9cc9 [NEW_FEATURE] Add Matched Tag Highlighting feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@248 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-22 23:32:56 +00:00
donho
8e9e2f30bc [BUG_FIXED] Fix crash issue while file's language is "User Defined" in the last session.
Fix the User Defined language and some languages' syntax highlighting problem while reload last session.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@247 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-22 19:09:40 +00:00
donho
d5f5e41fd5 [NEW_FEATURE] Add Caret block mode.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@246 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-20 22:58:19 +00:00
donho
4e3dd33f9c [NEW_FEATURE] Add Caret block mode.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@245 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-20 22:41:34 +00:00
donho
bae3eb5bda [BUG_FIXED] Fix the User Language Define Dialog don't update current document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@244 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-19 23:55:18 +00:00
harrybharry
15a335da5f Adjust reload after fileupdate, now deferred.
Fix bug where changing readonly attribute didnt always trigger change of status.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@243 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-18 21:09:41 +00:00
harrybharry
ed40c1f03b Adjust lexing handling, restored performance in some cases,
temp. disable cloneview on updates.
Update lexer table to also contain lexerID.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@242 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-18 13:12:54 +00:00
harrybharry
a06816432b Change find in files/replace etc to use invisible view.
Also fix bug where replace in files didnt trigger save point

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@241 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-17 11:04:03 +00:00
harrybharry
fe67fabc7c Fix bug with lexer.
Saving doesnt reset language if name not changed.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@240 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 19:54:03 +00:00
harrybharry
5998725315 Change shortcut for Word-completion to Ctrl-Enter
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@239 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 19:35:19 +00:00
harrybharry
ba6a9c260b Fix correct userdefined lang not selected when opening file.
Fix view not updating if userdefine is changed (only for active view)

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@238 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 13:16:36 +00:00
harrybharry
53f60b4a7a Fix styler configurator setting wrong lexer in sub-view.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@237 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 12:46:07 +00:00
harrybharry
1a2e2e0431 Fix reload not trigger restyle.
Fix find in files corrupting Buffer status.
Incremental search removing highlighting of closed.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@236 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 12:44:04 +00:00
harrybharry
5529852d67 Fix file case problem.
Fix incremental search not using selected text.
Fix Session not loaded using anything other than file->open menu.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@235 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-16 11:35:05 +00:00
donho
84b2a53819 [BUG_FIXED] Fix the crash issue under Chinese/Korean/Japanese Windoz in v5.0 alpha.
Fix go to line command line bug.
Enhance Find in files and Find in all opened files features' performance.
Fix dialog off screen problem under multi-monitor environment.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@234 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-15 17:52:08 +00:00
harrybharry
01285fbfbc attachDefaultDoc now in Scintilla::init().
(fix crash on startup because buffer == NULL)

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@233 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-14 17:36:57 +00:00
harrybharry
673c2f3097 Prevent unfolding from hiding goto line
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@232 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-14 15:56:49 +00:00
harrybharry
26287e2f08 Fix bugs with find in (open) files.
Ensure goto line is visible

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@231 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-14 15:55:42 +00:00
donho
73a6500e63 [ENHANCE] Make smart highlight work only with mouse double clicked in order to improve the its performance.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@230 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-13 16:17:04 +00:00
harrybharry
a979745f97 Fix statusbar not updating
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@229 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-12 22:42:28 +00:00
harrybharry
c87f33fbea Fix crash in recentfilelist
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@228 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-12 22:24:03 +00:00
donho
f7f1e9bf77 [BUG_FIXED] Fix all doc tab blink bug when Notepad++ is re-activated.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@227 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-12 22:07:19 +00:00
donho
f7397ed5ec [NEW] Protect SCNotification structure data from the modification of plugins.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@226 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-12 14:37:08 +00:00
donho
b07c4db28e [BUG_FIXED] Fix "replace with space" in GUI not be remembered bug.
Fix HTML syntax highlighting is not applied in php, asp file bug. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@225 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-11 16:12:11 +00:00
donho
536a07167d [NEW_FEATURE] Add the smart highlight file size limit - 1.5 MB in order to improve the performance.
Make setInfo() call before getFuncsArray() call for PluginsManager.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@224 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-08 19:55:59 +00:00
harrybharry
a7d7d28f98 Fix bug where linenumber margin of secondary view was shown on startup if primary was shown, even though settings said otherwise.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@223 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-08 16:13:56 +00:00
harrybharry
70ca7e3ff8 Fix crash if session contained only sub-view files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@222 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-08 16:09:09 +00:00
harrybharry
9448135225 Fix wordcompletion bug: API file had to be present to function.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@221 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-07 16:08:13 +00:00
harrybharry
3e551ff84b Fix bug where saving document would cause folding to be lost
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@220 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-07 15:59:25 +00:00
harrybharry
47194d114d fix markers and language on session load
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@219 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-07 13:08:52 +00:00
donho
b3d018373f [NEW_FEATURE] Finish the Caret setting.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@218 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-07 12:49:21 +00:00
harrybharry
95044318e7 Fix filesession position bug
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@217 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-07 10:39:42 +00:00
donho
fd7b3614d1 [NEW_FEATURE] Caret width and blink rate are customizable. (in progress)
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@216 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-06 23:26:18 +00:00
harrybharry
e4cab506f8 [Near 5.0]
Change filehandling: buffers.
This fixes many things like clonemode etc.. Faster shutdown. Open files with date pre-1970.
Hide lines now saved during switches.
Recent files has been redone: also numbers, more stable, no duplicates.
Display asterisk in titlebar if dirty file is active.
Some minor stuff that may have come along.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@215 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-06 12:09:54 +00:00
donho
b9256773b6 [BEHAVIOUR_FIXED] Fix a minor behaviour in shorcutmapper.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@214 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-01 15:22:11 +00:00
donho
a3b344bbc2 [NEW_FEATURE] All the menu commands can be added in context menu, including plugins' commands, macros and user defined commands.
The bookmarks' look & feel are improved.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@213 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-06-01 14:47:28 +00:00
donho
9c0023c575 [NEW_FEATURE] Add "Select all" and "copy" context menu items in Find in files results window.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@212 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-30 15:44:59 +00:00
harrybharry
169d0e69ca Fix goto line with command line bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@211 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-28 09:56:12 +00:00
donho
b62de8fd30 [NEW_FEATURE] bookmarked lines operations.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@210 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-27 01:54:52 +00:00
harrybharry
b6020b9083 Add indicator transparency option.
Set it to 100 (out of 255) for better visibility.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@209 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-27 00:47:40 +00:00
donho
fdc6f7d8b0 [NEW_FEATURE] Marked line operation (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@208 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-26 17:38:27 +00:00
donho
f6dafe8b08 [NEW_FEATURE] Tabbar's coulours is configurable (Active tab Text, Inactive tab text, Inactive tab background, Active tab focused indicator and Active tab unfocused indicator).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@207 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-25 19:00:15 +00:00
donho
8fed0b0937 [UPDATE] update vc2005 project file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@206 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-23 21:58:55 +00:00
harrybharry
e6cfeedc0d Finish Calltip.
Make AutoComplete class.
AutoComplete uses XML data.
Add exception handling (dumping filedata).
Sync Project file with added files.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@205 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-22 23:42:00 +00:00
donho
7085e69724 [NEW_FEATURE] Add tooltips in document tab to display the full file name path.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@204 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-21 00:34:17 +00:00
donho
6b5aa92d6e [NEW_FEATURE] Add Calltip capacity.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@203 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-18 14:06:50 +00:00
donho
cfdbd4b5ef [BUG_FIXED] Fix smart highlight bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@202 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-15 23:03:41 +00:00
donho
3208c99d98 [RELEASE] v4.9.2
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@201 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-11 13:53:50 +00:00
donho
7b7909ad80 [BUG_FIXED] Fix the regression bug that x position doesn't be restored while switching back a document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@200 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-10 18:49:33 +00:00
donho
fd437c9c7d [NEW_FEATURE] Add "Save Copy As" feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@199 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-08 23:17:43 +00:00
harrybharry
b177e060bc Fix octal search typo
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@198 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-06 21:23:21 +00:00
donho
929d1d43ba [RELEASE] v4.9.1
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@197 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-04 18:18:53 +00:00
donho
537e3ad70e [BUG_FIXED] Fix Find in files result display problem (unicode).
Fix smart hilite bug that it doesn't work with the word contain the accent(s).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@196 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-03 22:08:53 +00:00
donho
d8d5ce965f [] Add "CURRENT_LINE" and "CURRENT_COLUMN" environment variables for run dialog.
Add NPPM_GETCURRENTLINE and NPPM_GETCURRENTCOLUMN plugin messages.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@195 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-02 14:35:10 +00:00
donho
3e705b3e64 [RELEASE_4_9] Release 4.9.
Fix the replace bug while replacing nothing.
Fix the F3 searching direction bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@194 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-05-01 17:15:15 +00:00
donho
6b4b3c3f08 [BUG_FIXED] Fix the stylers configurator transparency bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@193 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-30 20:20:29 +00:00
donho
2951979ef5 [NEW] Make search in hidden folder optional in find in file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@192 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-29 22:05:32 +00:00
harrybharry
017784de5b Fix URL highlight lockup
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@191 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-28 09:33:11 +00:00
donho
36706f13a4 [NEW_FEATURE] Refine the "HighLight all" feature in incremental search dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@190 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-26 03:07:18 +00:00
donho
1eb46eaca3 [NEW_FEATURE] Add hilite all in Incremental search.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@189 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-25 18:34:25 +00:00
harrybharry
ef941865d7 Fix crash bug because of incorrect static initialisation error.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@188 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-24 22:21:49 +00:00
harrybharry
279355ee39 Cleanup vs2003 project file
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@187 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-24 18:50:54 +00:00
harrybharry
1667a3a843 Fix DnD 'deadzone'
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@186 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-24 18:38:33 +00:00
donho
e89bbe72d4 [NEW_FEATURE] Add 2 messages for doc monitor plugin.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@185 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-24 18:16:14 +00:00
harrybharry
d074522b7b [ENHANCEMENT] Change commandline handling, relative paths are now properly handled.
Fix a small bug when failed open of file would still change the language.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@184 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-24 14:48:57 +00:00
harrybharry
cd2cc80ede Add places bar in save as dialog
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@183 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-23 20:04:50 +00:00
donho
84fa914ea1 [CLEAN] Clean up.
Refine the smart hiliting feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@182 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-23 17:23:24 +00:00
harrybharry
a54e45dd48 Move tab-drag cursor hotspot to tip of the arrow
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@181 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-23 15:47:52 +00:00
harrybharry
92d4080546 Fix buffer error in find message. Add binary, octal, decimal escape sequences for extended search
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@180 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-23 10:54:56 +00:00
donho
a1b8647714 [TUNE] Tune isWordChar() function for smart highlighting feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@179 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-23 00:28:17 +00:00
harrybharry
4dd8870891 Add lt and gt chars to isWordChar check.
Fix small regression with hilite and purge.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@178 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-22 23:36:11 +00:00
donho
65bb6ceb7f [NEW_FEATURE] Mark All is change to indicator way from style way.
Fix the smart highlighting performance issue.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@177 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-22 23:04:13 +00:00
harrybharry
936d040e40 [NEW_FEATURE] Find dialog has 'Extended' option: search for tabs, newlines,
[ENHANCEMENT] Find dialog shows text that was searched when its not found,
some code cleanup (replace now only replaces given word on first hit, instead of selection, if it contained the token).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@176 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-22 22:47:49 +00:00
harrybharry
9a38619187 [ENHANCE] Find dialog always scrolls text into view,
The option where to display text is removed (poor behaviour), view doesnt scroll or scrolls (attempts to) to center,
Find dialog shows searched text in messagebox when not found.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@175 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-21 22:14:44 +00:00
donho
4a6ca982e1 [NEW_FEATURE] Smart HighLighting uses indicator instead of style.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@174 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-21 20:05:02 +00:00
donho
52ebeee049 [NEW_FEATURE] Add hilighting all token wile selecting a word (finished).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@173 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-20 02:17:21 +00:00
donho
544a4916d9 [NEW_FEATURE] Finish IE7 style menu (auto hide).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@172 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-20 00:31:10 +00:00
harrybharry
9e26b31e3a Incremental search integrated into ReBar,
Fix Find dialogs buffer overflow,
Added chevron into rebar to show hidden icons,
Added plugin message to add rebarbands (experimental),
simplify sizing logic a little,
Remove nonexistant file from vc2003 project file.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@171 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-19 18:32:38 +00:00
donho
12a2f16042 [NEW_FEATURE] Add style transparency feature, rightclick on color to enable.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@170 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-19 13:57:57 +00:00
donho
11333a7ec3 [NEW] Hide menu bar (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@169 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-18 17:40:56 +00:00
donho
a2aa87d8c3 [NEW_FEATURE] Add hilighting all token wile selecting a word (in progress).
Add auto hide menu feature (in progress).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@168 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-16 22:45:47 +00:00
donho
1a5e5c27bb git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@167 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-04-15 19:46:51 +00:00
donho
e55d1e1996 [RELEASE_4_85] OR v4.8.5
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@166 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-11 22:44:48 +00:00
donho
4effb92bc0 [BUG_FIXED] Bring back the old behaviour for HOME and END keys.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@165 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-07 23:57:55 +00:00
donho
6a3fdbd1fc [BUG_FIXED] Fix the file Auto-detection settings writing in config.xml bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@164 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-06 17:43:51 +00:00
donho
1023a17c5f git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@163 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-04-06 12:09:49 +00:00
donho
a4f36f3685 [BUG_FIXED] If plugin function pointer is null, then it'll be added in menu as separator, but it won't be added in shortcut mapper list.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@162 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-05 22:11:25 +00:00
donho
a80ee0d2fa [BUG_FIXED] Fix the crash problem while the separator shortcut (if assigned) is triggered.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@161 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-05 12:32:14 +00:00
donho
9c1b242370 [BUG_FIXED] Fix crash bug when 'Close All But Me' is selected.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@160 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-04-03 18:53:07 +00:00
donho
ef071a1fa9 [NEW] Add separator menu item for plugin menu (if _pFunc == NULL).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@159 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-31 23:18:53 +00:00
donho
7a07e38f4f [BUG_FIXED] Fix a crash bug by inserting a new feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@158 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-30 23:46:07 +00:00
donho
16f5cc9a3c [FIXED] Fix some typos.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@157 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-29 00:32:32 +00:00
donho
0d932b764b [ENHANCEMENT]Improve toolbar performance.
Internals prepped for later extensions.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@156 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-28 01:49:51 +00:00
donho
3701d40a8f [BUG_FIXED] Fix crash bug while a "New 2" is in session.xml.
Clean up the toolbar code.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@155 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-28 01:11:22 +00:00
donho
92c229a57a [BUG_FIXED] Fix the annoying acrobat reader dialog problem.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@154 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-27 00:53:06 +00:00
donho
99faa2bc0f [NEW_FEATURE] Add a new message for Document Monitor plugin.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@153 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-24 22:18:22 +00:00
donho
a03ca89d0b [BUG_FIXED] Fix the bug that the first new document is set as "New Document setting".
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@152 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-24 14:06:20 +00:00
donho
79db2731cc [BUG_FIXED] Fix the bug of scrolling to eof feature for the current document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@151 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-23 23:44:01 +00:00
donho
3453ff8ee8 [ENHANCEMENT] Enhance scroll to eof feature for the current document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@150 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-23 17:57:57 +00:00
donho
ba85977e6d [BUG_FIXED] Enhance checking modification from outside feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@149 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-22 12:18:56 +00:00
donho
e7e3be93b8 [NEW_FEATURE] Add scroll to end line after update feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@148 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-16 03:23:04 +00:00
donho
2c7231484c [NEW_ENTRY] Add new entry for document monitor plugin.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@147 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-15 22:50:05 +00:00
donho
ae9f90bd5f [NEW_FEATURE] Add DnD feature (WM_DROPFILES) for the plugins windows.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@146 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-15 16:03:57 +00:00
donho
6480c3099b [BUG_FIXED] Fix the DnD text bug between 2 views.
Notepad_plus.cpp clean up.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@145 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-10 01:57:53 +00:00
donho
b271777e83 [RELEASE_4_82] Notepad++ v4.8.2 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@144 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-09 18:10:47 +00:00
donho
88edc71a7d [NEW_FEATURE] Add the capacity (behaviour) of keeping line highlighting even when Notepad++ loss its focus.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@143 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-07 23:43:28 +00:00
donho
7d950fe5d8 [SCINTILLA_NEW_FEATURE] Add the capacity of keeping line highlighting even when it loss its focus.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@142 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-07 23:32:29 +00:00
donho
147d885a44 [BUG_FIXED] Fix unicode input problem for non ansi characters.
Fix missing fonts in font list problem (Styler configurator).
 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@141 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-05 23:37:13 +00:00
donho
d550ce44b2 [RELEASE_4_8_1] Notepad++ v4.8.1 release :
1. Enhance shortcut mapper; fix bug - get back Shift+Del, Shift+Ins and Ctrl+Ins shortcut.
2. Disable GUP on Notepad++ launch time under vista due to UAC issue.



git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@140 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-02 23:27:44 +00:00
donho
c7162f9555 [BUG_FIXED] Fix the bug of last session's doc position are not rescrolled on Notepad++ launch time if wrap mode is activated.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@139 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-03-01 19:02:56 +00:00
donho
2b1e41512f [RELEASE_4_8] Notepad++ v4.8 OR.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@138 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-27 00:07:53 +00:00
donho
4cce0e45f7 git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@137 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-02-23 17:59:41 +00:00
donho
dbd9afeaca [ENHANCEMENT] Enhance the auto-completion feature : user can define the number of characters to trigger auto-completion popup dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@136 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-22 22:55:56 +00:00
donho
a9172eee73 [BUG_FIXED] Fix a small display drawback while switch from simple line tab to multi line tab.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@135 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-20 23:31:03 +00:00
donho
608bc8187d [ENHANCE] Enhance the changed HSCRLL behaviour.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@134 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-20 01:25:51 +00:00
donho
0e32dd48f4 [CHANGE_BEHAVIOUR] Change the horizontal scroll behaviour from dynamic one to static one.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@133 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-19 22:42:31 +00:00
donho
62cfd070bf [BUG_FIXED] cannot save file(s) if application closed while minimized.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@132 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-18 22:07:13 +00:00
donho
93280d508e [ENHANCE] Enhance the conversion feature by emptying the undo buffer after the conversion.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@131 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-16 00:05:54 +00:00
donho
393ded102c [NEW_FEATURE] Add the utf8->ansi / ansi->utf8 conversion feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@130 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-13 23:38:24 +00:00
donho
ec338d909a git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@129 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-02-12 01:02:09 +00:00
donho
c0ae1fefc3 [MNEW_FEATURE] Add mouse wheel horizontal scroll feature (vista only).
Add mouse browsing (forward/back) feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@128 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-11 01:45:13 +00:00
donho
e0d391d73e [ADD] add property file for scintilla vc2005 project file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@127 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-10 23:30:39 +00:00
donho
fd383d3b55 [BUG_FIXED] Fix folding bugs while deleting the begin/end folding keywords.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@126 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-10 23:27:55 +00:00
donho
53f1dbfc19 git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@125 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-02-10 00:01:56 +00:00
donho
850b690237 [UPDATE] Upgrade Scintilla from v1.73 to v1.75
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@124 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-09 23:08:34 +00:00
donho
e240ac8c6d [NEW_FEATURE] Wrap position restore while switching back document.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@123 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-04 22:44:01 +00:00
donho
4b0926a0d2 [BUG_FIXED] Restore working directory with no open files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@122 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-03 01:54:33 +00:00
donho
83fb8c749d [NEW_FEATURE] Add Go to offset feature (in Go To Line dialog).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@121 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-02-03 01:15:19 +00:00
donho
3b54280024 [NEW_FEATURE] Add detection mouse wheel on the different view feature.
User can scroll edit view when mouse on it, it's not necessary to set edit view as current view to scroll it. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@120 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-30 20:29:31 +00:00
donho
8d0a0b8c30 git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@119 f5eea248-9336-0410-98b8-ebc06183d4e3 2008-01-30 18:08:39 +00:00
donho
eedb31193b [NEW_FEATURE] Enhance ShortcutMapper - all the commands can be assigned to a shortcut, including the unmapped ones.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@118 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-30 00:31:11 +00:00
donho
d88fa6236d [NEW_FEATURE] Make orange indicator on the top of tab lighter when the view loss the focus.
Fix the multi-line tab height display problem while adding/removing the document.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@117 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-25 22:55:14 +00:00
donho
4b4e1f9967 [NEW_FEATURE] VERTICAL/MULTILINE feature done.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@116 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-23 22:10:06 +00:00
donho
05ac5e63cb [IN_PROGRESS] Add multiline and vertical capacity for tab bar.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@115 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-23 19:27:41 +00:00
donho
dfb0f2dadb [IN_PROGRESS] Add multiline and vertical capacity for tab bar.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@114 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-23 00:26:07 +00:00
donho
84487e2f20 [IN_PROGRESS] VERTICAL/MULTILINE feature in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@113 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-22 00:25:59 +00:00
donho
63ec780bfb [IN_PROGRESS] VERTICAL/MULTILINE feature in progress.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@112 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-20 23:41:17 +00:00
donho
bf507dc5ee [NEW_FEATURE] Add launch "as notepad" style feature (detection of asNotepad.xml, then launch notepad++ with -multiInst -nosession -notabbar options).
vertical/multiline tab is in progression.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@111 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-20 02:41:42 +00:00
donho
4b34c681af [NEW_FEATURE] Add multiline and vertical capacity for tab bar.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@110 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-19 10:42:32 +00:00
donho
e8323985c0 [BUG_FIXED] Fix Preference crash bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@109 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-17 23:43:48 +00:00
donho
525960820e [BUG_FIXED] Fix word-completion crash bug while the word to complete exceeds 256 characters.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@108 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-17 22:58:09 +00:00
donho
5b79b33eb1 [BUG_FIXED] Fix full screen mode bug : can not switch applications by using Alt+TAB in full screen mode.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@107 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-17 01:20:23 +00:00
donho
df87cfe02d [NEW_FEATURE] Add 3 files for new docking manager.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@106 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-16 20:08:13 +00:00
donho
9768d7f0a5 [NEW_FEATURE] Add new look and feel of Docking container.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@105 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-16 19:54:53 +00:00
donho
3412c5ce5d [RELEASE_475] Fix invisible tabs bug while closing (Finally).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@104 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-14 19:40:10 +00:00
donho
c83d5801c9 [NEW_FEATURE] Support YAML language.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@103 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-14 00:46:40 +00:00
donho
2417d3af69 [BUG_FIXED]
1. Fix the bug regarding the scroll bar for folding issue.
2. Fix the full screen (F11) bug regarding multi-display issue
3. including nppcm64.dll in installer for ths x64 OS.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@102 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-12 23:19:47 +00:00
donho
95e2c6d529 [BUG_FIXED] Fix the horizon scroll bar bug.
Correct a typo.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@101 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-10 01:06:28 +00:00
donho
2ba1a1597f [BUG_FIXED] Fix the crash issue of window dialog while clicking Sort button without selected item.
Enhance Sort feature GUI part - Enable Sort button only after clicking on the column tab; Disable Sort button after sorting.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@100 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-08 17:36:34 +00:00
donho
72bb63c88d [RELEASE_473] Enhance installer.
Fix horizontal scroll bug regarding the folding issue.
Add a new behaviour that click on active tab activate the view as current view.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@99 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-07 00:46:43 +00:00
donho
8c0817a0ba [RELEASE_4_72] 4.7.2 final release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@98 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-03 18:38:05 +00:00
donho
9d134b4cd4 [RELEASE_4_72] Fix the regression that the native language doesn't show in the menu.
Enhance the full screen feature (F11).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@97 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-03 18:11:47 +00:00
donho
fae88016e9 [RELEASE_471] 4.7.1 release - Fix the crash bug due to subview session saving problem.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@96 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-02 22:22:03 +00:00
donho
8904821390 [NEW_FEATURE] Add a menu item "Clean Recent Files List".
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@95 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-01 23:56:26 +00:00
donho
7d53a41d40 [MODIF] Minor modification.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@94 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-01 23:11:16 +00:00
donho
8ae442cdc9 [[RELEASE_47] 4.7 release - modification of nppSetup.nsi to adapt the new xml model
protection system.
Swap back the main icon.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@93 f5eea248-9336-0410-98b8-ebc06183d4e3
2008-01-01 00:50:50 +00:00
donho
53a40b7ffe [RELEASE_47] 4.7 release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@92 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-31 03:37:19 +00:00
donho
6edeeff8d7 [BUG_FIXED] Pass the message with *W version for Scintilla.
change.log and todo.txt are updated

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@91 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-30 00:02:50 +00:00
donho
64fbc8a627 [BUG_FIXED] fix a bug where a file with 2 or more consecutive spaces gives problems with sessions and history.
fixes problem where opening a file when in save as dialog saves the wrong file.
Change the main Notepad++ icon.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@90 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-29 03:44:56 +00:00
donho
3fb08ce731 [MODIF] Minor change.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@89 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-26 00:54:24 +00:00
donho
576930dab3 [NEW_FEATURE] Add the Scintilla external lexer capacity under the Notepad++ plugin form.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@88 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-25 16:20:05 +00:00
donho
8daa6278fe [CHANGE] Change "UTF8 without BOM" menu item behaviour.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@87 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-16 18:24:24 +00:00
donho
8c1a5f5579 [NEW_FEATURE] Add build date - time in about box.
Fix the glitch of display of hidding tab bar.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@86 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-15 22:31:15 +00:00
donho
6d1521e995 [NEW_FEATURE] Add "-notabbar" flag to hide the tab bar (ie. Notepad style).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@85 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-15 13:18:26 +00:00
donho
c67df4644b [NEW_FEATURE] Add NPPM_HIDETABBAR and NPPM_ISTABBARHIDE plugins messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@84 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-14 00:58:06 +00:00
donho
6ab3326870 [NEW_FEATURE] Column selection is remembered now while switching among the files. As well this settings will be stored in the next session.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@83 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-11 23:16:36 +00:00
donho
c7188766c8 [ENHANCE] Enhance the horizontal scroll feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@82 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-10 21:21:17 +00:00
donho
50ad915434 [NEW_FEATURE] Comment (Ctrl+K) and Uncomment (Ctrl+Shift+K) is separated now.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@81 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-10 01:36:32 +00:00
donho
fd501da2b3 [CHANGE_BEHAVIOUR] Change Find in files behaviour : all the hidden directory won't be searched (for example : .svn).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@80 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-08 19:15:42 +00:00
donho
e4e465b092 [UPDATE] Integrate the newest GUP into Notepad++.
Add "Update Notepad++" menu item.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@79 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-06 00:03:41 +00:00
donho
4beac9434b [BUG_FIXED] Fix the hiding bug while launch time (change of environment from duel monitors to mono monitor).
Add NPPM_GETNPPVERSION message for plugin system.  

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@78 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-12-03 00:43:09 +00:00
donho
74d580d949 [BUG_FIXED] Make the "recovery system" for 3 mandatory xml files (config.xml, langs.xml and stylers.xml) to prevent the fail loading due to the corrupted files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@77 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-29 23:40:01 +00:00
donho
011f2fcbc6 [BUG_FIXED] Fix the bug of dynamic menu format.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@76 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-27 18:15:01 +00:00
donho
c5b2193400 [REALEASE_46] New release v4.6 - add the restriction to launch auto-updater under winnt/95/98/me.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@75 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-21 23:20:23 +00:00
donho
d64eb26372 [REALEASE_46] New release v4.6.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@74 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-21 00:13:51 +00:00
donho
ae7b901f9e [NEW_FEATURE] Updater is ready to go.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@73 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-14 02:09:36 +00:00
donho
07c17d7c44 [BUG_FIXED] Fix the crash issue while the length of config.xml is zero.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@72 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-13 17:29:59 +00:00
donho
a89f6010de [NEW_FEATURE] Enable/disable Notepad++ updater via preference dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@71 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-10 21:24:45 +00:00
donho
a501b3f659 [NEW_FEATURE] Preparing Updater.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@70 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-10 14:05:57 +00:00
donho
80df519dbc [BUG_FIXED] Fix the bug that the title doesn't be updated while file status changed and updated.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@69 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-06 18:52:45 +00:00
donho
0898192c6e [BUG_FIXED] Fix save file dialog crash issue.
Add writelog() function.
Preparing integrate auto-updater module. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@68 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-06 00:39:51 +00:00
donho
8e2d9c744a [BUGFIXED_NEWFEATURE] Change the behaviour : When file is deleted from outside and switch back to Notepad++, user will be asked if he want to keep this file. If he answer yes, he will not be asked in the next time.
Change Window title from Notepad++ - file path to file path - notepad++.exe


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@67 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-11-01 20:04:31 +00:00
donho
97dfcc5948 [BUG_FIXED] Fix a bug in Run dialog : the executable file won't be executed even it is between the double quot.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@66 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-29 19:38:43 +00:00
donho
f5b8eace0a [BUG_FIXED_AND_NEW_FEATURE] Add open relative file path from command line feature.
Fix the crash issue when open a file which does not exist anymore from RFL (if its path exceed certain length).
 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@65 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-27 23:47:05 +00:00
donho
7e195e3058 [RELEASE_45] update the version, add a readme file for makefile.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@64 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-25 23:21:20 +00:00
donho
249b9a79d8 [NEW_FEATURE] Add NPPM_ACTIVATEDOCMENU message.
Fix NPPN_SHUTDOWN notification bug.
Fix Russian display problem in the shortcut mapper.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@63 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-25 00:25:26 +00:00
donho
d24b0372ad [NEW_FEATURE] Session file load/save dialogs recognize the user defined session file extension.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@62 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-24 18:41:33 +00:00
donho
0dd83435c9 [NEW_FEATURE] Add the session file extension association feature (work copy).
Enhance the read/write config.xml to avoid crash.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@61 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-23 23:40:58 +00:00
donho
27d6d9b280 [NEW_FEATURE] Add the session file ext association feature (not yet finish).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@60 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-23 20:46:13 +00:00
donho
0ea22b1a1e [ADD] Add a edit control in Preference dlg for the session file extension.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@59 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-22 23:50:59 +00:00
donho
efb48516c5 [BUG_FIXED] Fix crash issue while the launch the session file which contains the same file in 2 views (clone mode).
The session code to memorize 2 views is completely rewritten.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@58 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-22 19:25:05 +00:00
donho
cce77550f2 [NEW_FEATURE] Add new -ro and -noSession command line parameters.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@57 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-21 00:23:07 +00:00
donho
681bb5943a [ENHANCEMENT] New auto-add extension behaviour :
the chosen filter is remembered on the next launch.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@56 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-20 14:10:42 +00:00
donho
798ffa148e [ENHANCEMENT] New auto-add extension behaviour :
1. The filter *.* don't change the extension at all, whatever users type. 
2. The file save dialog will be launched with the filter *.* set as default. So user can add any customized extension. 
3. Choose other filters will change extension of file automatically.  
For example, a file name "toto.php" will be changed to "toto.txt" if the filter Normal Text "*.txt" is choosen. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@55 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-19 18:57:18 +00:00
donho
ead33bc5d4 [ENHANCE] Enhance the auto-add extension feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@54 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-16 00:11:45 +00:00
donho
86855be790 [RELEASE_44] v4.4 OR.
Add NPPN_SHUTDOWN notification.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@53 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-14 22:29:56 +00:00
donho
a5ec85b4b6 [RELEASE_44] Update the build note content.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@52 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-13 00:28:32 +00:00
donho
681ef5ea41 [NEW_FEATURE] Enhance auto-added ext in file save dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@51 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-11 23:24:56 +00:00
donho
a088bf7f0f [NEW_FEATURE] Add NPPN_FILESAVED and NPPN_FILEBEFORESAVE notifications.
Enhance the File save Dialog (add ext).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@50 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-08 01:00:13 +00:00
donho
5b4eae3332 [BUG_FIXED] Fix crash issue while file is deleted outside (answer NO to popup dialog to not keep) and the silence update option is on.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@49 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-02 00:07:09 +00:00
donho
9b3b105ae8 [ADD] Add the font LINEDRAW.TTF in svn.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@48 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-10-01 21:38:26 +00:00
donho
16ebb8c3db [BUG_FIXED] Fix a regression bug for the lang saving in session file.
ADD NPPN_FILEBEFOREOPENED and NPPN_FILECLOSED plugins notification message.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@47 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-30 02:09:38 +00:00
donho
09464881cc [NEW_FEATURE] Add Session Restore with Sub-View Settings feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@46 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-29 01:17:38 +00:00
donho
140abd70f8 [BUG_FIXED] Fix the NOTEPAD++ getting focus problem while find dialog is activated.
Fix unwanted selection after popup dialog (keep file) when the file opend is deleted.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@45 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-25 21:27:06 +00:00
donho
32aac71481 [CLEAN_UP] clean up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@44 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-23 22:00:12 +00:00
donho
772874cbdc [RELEASE_4_3] v4.3 is entirely translatable.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@43 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-23 21:17:14 +00:00
donho
24bb9be975 [BUG_FIXED] Status Zone display pb.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@42 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-21 10:50:07 +00:00
donho
36b21e456c [BUG_FIXED] Fix the Styler Configurator display bug while the absence of global override entry in styles.xml.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@41 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-20 23:11:44 +00:00
donho
4398b312de [NEW_FEATURE] Star up without plugins.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@40 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-20 17:21:31 +00:00
donho
f146088344 [BUG_FIXED] Fix the display file type bug on the status bar while switching between the files (Finally!).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@39 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-19 23:14:11 +00:00
donho
492290b695 [BUG_FIXED] Fix the display file type bug on the status bar while switching between the files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@38 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-18 22:52:03 +00:00
donho
b9ff195fcb [BUG_FIXED] centralize updateStatusBar() and dynamicCheckMenuAndTB() under NPPM_INTERNAL_DOCSWITCHIN message.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@37 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-18 18:07:26 +00:00
donho
4e26d3b469 [ENHANCE] refine the hide lines feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@36 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-16 21:40:08 +00:00
donho
98fc4be762 [NEW_FEATURE] Add NPPM_INTERNAL_DOCSWITCHOFF and NPPM_INTERNAL_DOCSWITCHIN Messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@35 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-15 23:23:56 +00:00
donho
49c21209a1 [NEW_FEATURE] The set languages in session are remembered now.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@34 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-15 14:42:03 +00:00
donho
20f8196bec [BUG_FIX] Fix the crash problem while session.xml is corrupted.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@33 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-15 11:09:25 +00:00
donho
81e7b66ec5 [ENHANCE] Enhance the hide lines feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@32 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-14 00:10:30 +00:00
donho
e5d3d370b8 [ADD] Add 2 xpm icons for hide lines feature.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@31 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-13 09:28:43 +00:00
donho
30a7f93cb9 [NEW_FEATURE] AutoC finished.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@30 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-12 22:45:11 +00:00
donho
8d99c62d5f [NEW_FEATURE] Trigger Auto-Completion automatically (Not yet finished).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@29 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-10 21:48:56 +00:00
donho
1388b2282b [NEW_FEATURE] Add hide lines feature (not yet finished).
Fix the Scintilla Transpose function bug (Ctrl+Shift+Down in npp).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@28 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-10 01:27:44 +00:00
donho
07ac344588 [BUG_FIXED] Fix the crash bug while closing Notepad++ if Styles Configurator is never launched.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@27 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-06 21:41:20 +00:00
donho
750ff805fc [CLEAN] remove unnecessary files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@26 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-05 23:55:32 +00:00
donho
16d7ca3406 [NEW_FEATURE] refine the styles configurator : cancel all modifications if the style configurator dialog is not closed while quit Notepad++.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@25 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-05 23:51:57 +00:00
donho
315e38d7cd [BUG_FIXED] Fix the crash issue while the config.xml is corrupted.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@24 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-05 22:07:33 +00:00
donho
66efb809a3 [BUG_FIXED] Fix the inconsistence of UNDO/REDO block.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@23 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-04 22:13:34 +00:00
donho
7175d376d3 [BUG_FIXED] refine the "cancel" feature in styler configurator.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@22 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-04 18:37:45 +00:00
donho
93a47c6d70 [BUG_FIX] Fix win9x unicode search problem.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@21 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-03 23:28:29 +00:00
donho
7047f34cb0 [NEW_FEATURE] Change the behaviour of Styles Configurator :
1. Remove "Apply" button.
2. Cancel to restore the old setting.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@20 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-09-01 00:21:06 +00:00
donho
dee59a4ce7 [UPDATE] Remove apply button in Stylers configurator.
Now the visual effect is update immediately.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@19 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-30 00:06:19 +00:00
donho
9128785e17 [BUG_FIXED] Fix the bold/italic/underline refresh problem in Stylers Configurator for Scintilla component.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@18 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-29 17:48:03 +00:00
donho
f72f29ac58 [NEW_FEATURE] Global override feature is available.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@17 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-28 23:03:17 +00:00
donho
1d523a9125 [UPDATE] GlobalOverride feature...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@16 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-28 21:42:24 +00:00
donho
de9aa761f9 [NEW_FEATURE] Global override style : to be continued.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@15 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-27 18:59:34 +00:00
donho
e34c53d63a [NEW_FEATURE] Global Override style - incomplete.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@14 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-26 22:35:37 +00:00
donho
dd759bfa42 [NEW_FEATURE] Auto check "In selection" in Find Replace dialog while there's a selection in the text zone.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@13 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-23 23:23:02 +00:00
donho
894c4dcffd [NEW_FEATURE] Add new plugin notification message NPPN_FILEJUSTOPENED.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@12 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-22 23:10:45 +00:00
donho
d2aecf4d18 [BUG_FIXED]add a "case" in the "switch".
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@11 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-22 19:57:41 +00:00
donho
e062a94cc5 [BUG_FIXED] Fix the file status auto-detection bug : a unwanted selection after a popup dialog.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@10 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-22 16:53:19 +00:00
donho
1f83e269f4 [NEW_FEATURE] Add a new plugin message NPPM_MENUCOMMAND which allows plugins to execute all the npp available menu commands.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@9 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-20 00:58:01 +00:00
donho
5357c64049 [BUG_FIXED] Crash bug while the shortcut command is absent in shortcut.xml is fixed.
Add a new message NPPM_MSGTOPLUGIN for the communication between 2 plugins.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@8 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-19 00:38:09 +00:00
donho
61c0b2af50 [RELEASE] v4.2.2 :
1. Fix a regression bug regarding the filters in Find in files dialog.
2. Add a new transparency feature for Find dialog : Transparency on loss focus.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@7 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-15 20:23:37 +00:00
donho
a789174c0b [BUG_FIXED] v4.2.1 : Fix regression bug : replace in selection bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@6 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-14 00:53:49 +00:00
donho
2322694649 [RELEASE_V42]
1. Fix User Define Language extension recognition problem for sensitive case (now it's insensitive). 
2. Add a menu entry to access to notepad++ plugins project page. 
3. Enhance file open dialog (add all supported extensions in the filters list). 
4. Fix bug of Run macro until EOF. 

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@5 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-12 23:21:25 +00:00
donho
98e9f1f971 [NEW_FEATURE] Add a menu entry to access to notepad++ plugins project page.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@4 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-08 23:05:14 +00:00
donho
b4f7260e9b [BUG_FIXED]
1. Fix User Define Language extension recognition problem for sensitive case (now it's insensitive).
2. Fix keyboard shortcut bug in FindReplaceDlg.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@3 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-08 17:22:48 +00:00
donho
9365f6f308 [CLEAN_UP] remove unnecessary files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@2 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-07 12:33:21 +00:00
donho
ec7b0c2da9 v4.2 ready
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@1 f5eea248-9336-0410-98b8-ebc06183d4e3
2007-08-07 00:55:50 +00:00
2520 changed files with 610010 additions and 375206 deletions

26
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,26 @@
<!--- This is a generic template and may not be applicable in all cases. -->
<!--- Try to follow it where possible. -->
### Description of the Issue
<!--- Provide a more detailed description to the issue itself -->
### Steps to Reproduce the Issue
<!--- Set of steps to reproduce this issue -->
1.
2.
3.
### Expected Behavior
<!--- What did you expect to happen -->
### Actual Behavior
<!--- What actually happened -->
### Debug Information
<!--- In your Notepad++, click on the "?" menu (found to the right of "Window" in the menu bar) -->
<!--- In the menu that drops down, choose "Debug Info..." -->
<!--- A message box will open detailing specifics about your Notepad++ version, plugins, etc. -->
<!--- CLICK ON THE BUTTON with the text "Copy debug info into clipboard" -->
<!--- Do a PASTE HERE -->
<!--- Feel free to include any other info, such as screenshots, etc -->

79
.github/ISSUE_TEMPLATE/1-bug.yml vendored Normal file
View File

@ -0,0 +1,79 @@
name: Bug
description: File a bug/issue
title: "[BUG] <title>"
#labels: ["bug"]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: |
Please search to see if an issue already exists for the bug you encountered.
If the issue is for a plugin (except for mimeTools, NppConverter, and NppExport),
report it to the plugin author rather than here.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Description of the Issue
description: Provide a concise description to the issue itself.
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1.
2.
3.
...
value: |
1.
2.
3.
validations:
required: true
- type: textarea
attributes:
label: Current Behavior
description: What you're experiencing.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: What did you expect to happen.
validations:
required: true
- type: textarea
attributes:
label: Debug Information
description: |
In your Notepad++, click on the "?" menu (found to the right of "Window" in the menu bar).
In the menu that drops down, choose "Debug Info...".
A dialog will open detailing specifics about your Notepad++ version, plugins, etc.
CLICK ON THE BUTTON "Copy debug info into clipboard".
Do a PASTE HERE
render: shell
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
If feasible, try launching Notepad++ without any plugins.
Some updates to Notepad++ modify communication rules used by plugins,
and if plugin developers do not keep their plugins in sync with these changes, issues may arise.
Running without plugins can help diagnose specific problems.
Notepad++ relies on the Lexilla and Scintilla libraries.
For more details, visit https://github.com/ScintillaOrg/lexilla and https://sourceforge.net/p/scintilla.
Consider using the reference program SciTE to verify whether the issue is a genuine bug in Notepad++.
Download Scite from here https://www.scintilla.org/SciTEDownload.html.
Tip: You can attach images or relevant text files by clicking this area to highlight it and then dragging files in.
validations:
required: false

View File

@ -0,0 +1,52 @@
name: Feature request
description: Suggest an idea for Notepad++
title: "[Feature request] <title>"
#labels: ["feature"]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the feature you request.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Description of the Issue
description: A clear and concise description of what the problem is.
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like.
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Debug Information
description: |
In your Notepad++, click on the "?" menu (found to the right of "Window" in the menu bar).
In the menu that drops down, choose "Debug Info...".
A dialog will open detailing specifics about your Notepad++ version, plugins, etc.
CLICK ON THE BUTTON "Copy debug info into clipboard".
Do a PASTE HERE
render: shell
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the feature you want!
Notepad++ relies on the Lexilla and Scintilla libraries.
For more details, visit https://github.com/ScintillaOrg/lexilla and https://sourceforge.net/p/scintilla.
If you have specific language feature requests, consider using the reference program SciTE to verify whether the desired feature is supported.
You can download SciTE from here https://www.scintilla.org/SciTEDownload.html.
If you have any questions about Notepad++ usage, explore the community forum https://community.notepad-plus-plus.org/category/7/faq.
Tip: You can attach images by clicking this area to highlight it and then dragging files in.
validations:
required: false

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1 @@
blank_issues_enabled: true

13
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

387
.github/workflows/CI_build.yml vendored Normal file
View File

@ -0,0 +1,387 @@
name: CI_build
on: [push, pull_request]
env:
PYTHON_ALLOW_CACHE: true
PYTHON_DIR_CACHE: D:\.cache\python
jobs:
before_build:
runs-on: windows-latest
outputs:
result: ${{ steps.filter.outputs.result }}
matrix: ${{ steps.filter.outputs.matrix }}
title: ${{ steps.filter.outputs.title }}
python: ${{ steps.filter.outputs.python }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Commit filtering
id: filter
run: |
$allowMaster = $true
$folders_onejob = "PowerEditor/(Test|(installer/(filesForTesting|functionList)))/"
$folders_nowork = "\.github/ISSUE_TEMPLATE"
$files_nowork = "md|txt|log|ini"
$files_needwork = "CMakeLists\.txt"
$matrix_all = 'matrix={"build_configuration": ["Release", "Debug"], "build_platform": ["x64", "Win32", "ARM64"]}'
$matrix_onejob = 'matrix={"build_configuration": ["Debug"], "build_platform": ["Win32"]}'
Write-Output $matrix_all >> $env:GITHUB_OUTPUT
$isPush = "${{github.event_name }}" -eq "push" ? $true : $false
$isMaster = $isPush -and $${{ github.ref_name == github.event.repository.master_branch }}
$commit_message = $isPush ? (git show -s --format=%B) : (git log -1 --no-merges --pretty=%B)
$commit_title = ($commit_message -split "[\r\n]+")[0]
Write-Output "title=$commit_title" >> $env:GITHUB_OUTPUT
$files_modified = @(git diff --name-only HEAD~1)
$files_needwork_all = @($files_modified | Where-Object {$_ -notmatch "\.(xml|$files_nowork)$|$folders_nowork|$folders_onejob" -or $_ -match "($files_needwork)$"})
if ($allowMaster -or !$isMaster) {
if ($commit_title -match "\[force all\]") {
Write-Output "Run standard jobs"
}
elseif ($commit_title -match "\[force one\]") {
Write-Output "Run only one Win32/Debug job"
Write-Output "result=ONEJOB" >> $env:GITHUB_OUTPUT
Write-Output $matrix_onejob >> $env:GITHUB_OUTPUT
}
elseif (($files_modified.length -gt 0 -and $files_needwork_all.length -eq 0) -or $commit_title -match "\[force (xml|none)\]") {
if (@($files_modified | Where-Object {$_ -notmatch "\.($files_nowork)$|$folders_nowork"}).length -eq 0 -or $commit_title -match "\[force none\]") {
Write-Output "Changed files on this commit don't require any additional tasks.`n"
Write-Output "result=OK" >> $env:GITHUB_OUTPUT
Write-Output "PYTHON_ALLOW_CACHE=false" >> $env:GITHUB_ENV
Exit
}
else {
Write-Output "Run only XML validation step"
if (@($files_modified | Where-Object {$_ -match $folders_onejob}).length -eq 0) {
Write-Output "result=XML" >> $env:GITHUB_OUTPUT
}
else {
Write-Output "Run only one Win32/Debug job"
Write-Output "result=ONEJOB" >> $env:GITHUB_OUTPUT
Write-Output $matrix_onejob >> $env:GITHUB_OUTPUT
}
}
}
else {
Write-Output "Run standard jobs"
}
}
else {
Write-Output "Run standard jobs"
}
if ($commit_title -match "\[force nopythoncache\]") {
$env:PYTHON_ALLOW_CACHE = "false"
Write-Output "PYTHON_ALLOW_CACHE=false" >> $env:GITHUB_ENV
}
if ($Env:PYTHON_ALLOW_CACHE -eq "true") {
$python = ((python -V) -split " ")[1]
$requests = (Invoke-RestMethod https://pypi.org/pypi/requests/json).info.version
$rfc3987 = (Invoke-RestMethod https://pypi.org/pypi/rfc3987/json).info.version
$pywin32 = (Invoke-RestMethod https://pypi.org/pypi/pywin32/json).info.version
$lxml = (Invoke-RestMethod https://pypi.org/pypi/lxml/json).info.version
$key = "${{ runner.os }}-python_$python-requests_$requests-rfc3987_$rfc3987-pywin32_$pywin32-lxml_$lxml"
Write-Output "python=$key" >> $env:GITHUB_OUTPUT
}
- name: (cache) Lookup Python modules
if: env.PYTHON_ALLOW_CACHE == 'true'
uses: actions/cache/restore@v4
id: cache-lookup
with:
path: ${{ env.PYTHON_DIR_CACHE }}
key: ${{ steps.filter.outputs.python }}
lookup-only: true
- name: (cache) Restore Python modules
if: env.PYTHON_ALLOW_CACHE == 'true' && steps.filter.outputs.result == 'XML' && steps.cache-lookup.outputs.cache-hit == 'true'
uses: actions/cache/restore@v4
with:
path: ${{ env.PYTHON_DIR_CACHE }}
key: ${{ steps.filter.outputs.python }}
- name: (cache) Install Python modules
if: env.PYTHON_ALLOW_CACHE == 'true' && steps.cache-lookup.outputs.cache-hit != 'true'
run: |
python -m pip install --target ${{ env.PYTHON_DIR_CACHE }} requests rfc3987 pywin32 lxml
- name: (cache) Save Python modules
if: env.PYTHON_ALLOW_CACHE == 'true' && steps.cache-lookup.outputs.cache-hit != 'true' && github.event_name == 'push'
uses: actions/cache/save@v4
with:
path: ${{ env.PYTHON_DIR_CACHE }}
key: ${{ steps.filter.outputs.python }}
- name: XML validation
if: steps.filter.outputs.result == 'XML'
run: |
if ($Env:PYTHON_ALLOW_CACHE -eq "true" -and (Test-Path -Path ${{ env.PYTHON_DIR_CACHE }})) {
$Env:PYTHONPATH = "${{ env.PYTHON_DIR_CACHE }}"
}
else {
python -m pip install requests rfc3987 pywin32 lxml
}
python PowerEditor\Test\xmlValidator\validator_xml.py
if ($LastExitCode -eq 0) {
Write-Output "`nAll XML files are valid.`n"
}
else {
Write-Output "`nSome XML files are invalid.`n"
$host.SetShouldExit($LastExitCode)
}
build_windows:
runs-on: windows-latest
needs: before_build
if: needs.before_build.outputs.result == '' || needs.before_build.outputs.result == 'ONEJOB'
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.before_build.outputs.matrix) }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Modify resource.h N++ version to avoid confusion
working-directory: PowerEditor\src\
run: |
$content = Get-Content -Path 'resource.h'
$newContent = $content -replace 'TEXT\(\"Notepad\+\+ v.*\"\)', 'TEXT("Notepad++ GH_BUILD")'
$newContent | Set-Content -Path 'resource.h'
- name: MSBuild of n++ exe
working-directory: PowerEditor\visual.net\
run: msbuild notepadPlus.sln /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v143"
- name: Archive artifacts for x64 / Release
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: Notepad++.MSVC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: PowerEditor\bin64\Notepad++.exe
- name: Archive artifacts for Win32 / Release
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: Notepad++.MSVC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: PowerEditor\bin\Notepad++.exe
- name: Archive artifacts for ARM64 / Release
if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: Notepad++.MSVC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: PowerEditor\binarm64\Notepad++.exe
- name: Archive artifacts for ARM64|x64 / Debug
if: (matrix.build_platform == 'ARM64' || matrix.build_platform == 'x64') && matrix.build_configuration == 'Debug'
uses: actions/upload-artifact@v4
with:
name: Notepad++.MSVC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: PowerEditor\visual.net\${{ matrix.build_platform}}\${{ matrix.build_configuration}}\Notepad++.exe
- name: Archive artifacts for Win32 / Debug
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Debug'
uses: actions/upload-artifact@v4
with:
name: Notepad++.MSVC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: PowerEditor\visual.net\${{ matrix.build_configuration}}\Notepad++.exe
- name: (cache) Restore Python modules for Win32 / Debug
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Debug' && env.PYTHON_ALLOW_CACHE == 'true' && contains(needs.before_build.outputs.title, '[force nopythoncache]') != true
uses: actions/cache/restore@v4
with:
path: ${{ env.PYTHON_DIR_CACHE }}
key: ${{ needs.before_build.outputs.python }}
- name: Run xml validation test for Win32 / Debug only
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Debug'
working-directory: .\
run: |
if ($Env:PYTHON_ALLOW_CACHE -eq "true" -and $${{ !contains(needs.before_build.outputs.title, '[force nopythoncache]') }} -and (Test-Path -Path ${{ env.PYTHON_DIR_CACHE }})) {
$Env:PYTHONPATH = "${{ env.PYTHON_DIR_CACHE }}"
}
else {
python -m pip install requests rfc3987 pywin32 lxml
}
python PowerEditor\Test\xmlValidator\validator_xml.py
- name: Run FunctionList and UrlDetection Tests for Win32 / Debug only
if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Debug'
working-directory: .\
run: |
Copy-Item "PowerEditor\visual.net\Debug\Notepad++.exe" -Destination "PowerEditor\bin"
Copy-Item "PowerEditor\src\langs.model.xml" -Destination "PowerEditor\bin"
Copy-Item "PowerEditor\src\stylers.model.xml" -Destination "PowerEditor\bin"
Copy-Item "PowerEditor\src\shortcuts.xml" -Destination "PowerEditor\bin"
Copy-Item "PowerEditor\src\contextMenu.xml" -Destination "PowerEditor\bin"
Copy-Item "PowerEditor\installer\functionList" -Destination "PowerEditor\bin" -Recurse
Copy-Item "PowerEditor\installer\filesForTesting\regexGlobalTest.xml" -Destination "PowerEditor\bin\functionList"
Copy-Item "PowerEditor\installer\filesForTesting\overrideMap.xml" -Destination "PowerEditor\bin\functionList"
cd .\PowerEditor\Test\FunctionList\
.\unitTestLauncher.ps1
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
cd ..\UrlDetection
.\verifyUrlDetection.ps1
# build_windows_clang:
# runs-on: windows-latest
#needs: before_build
#if: needs.before_build.outputs.result == ''
# strategy:
# matrix:
# build_configuration: [Release]
# build_platform: [x64]
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v2
# - name: Modify resource.h N++ version to avoid confusion
# working-directory: PowerEditor\src\
# run: |
# $content = Get-Content -Path 'resource.h'
# $newContent = $content -replace 'TEXT\(\"Notepad\+\+ v.*\"\)', 'TEXT("Notepad++ GH_BUILD")'
# $newContent | Set-Content -Path 'resource.h'
# - name: MSBuild of n++ exe
# working-directory: PowerEditor\visual.net\
# run: msbuild notepadPlus.sln /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="ClangCL"
build_windows_cmake:
runs-on: windows-latest
needs: before_build
if: needs.before_build.outputs.result == ''
strategy:
matrix:
include:
- build_configuration: Release
build_platform: x64
arch: amd64
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Modify resource.h N++ version to avoid confusion
working-directory: PowerEditor\src\
run: |
$content = Get-Content -Path 'resource.h'
$newContent = $content -replace 'TEXT\(\"Notepad\+\+ v.*\"\)', 'TEXT("Notepad++ GH_BUILD")'
$newContent | Set-Content -Path 'resource.h'
- name: Add nmake to PATH
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: build scintilla
working-directory: scintilla/win32/
run: |
nmake -f scintilla.mak
- name: build lexilla
working-directory: lexilla/src/
run: |
nmake -f lexilla.mak
- name: generate cmake
working-directory: PowerEditor/src
run: |
mkdir _build
cd _build
cmake -G "Visual Studio 17 2022" -A ${{ matrix.build_platform }} -T "v143" ..
- name: build cmake
working-directory: PowerEditor/src
run: |
cd _build
cmake --build . --config ${{ matrix.build_configuration }}
build_windows_msys2:
runs-on: windows-latest
needs: before_build
if: needs.before_build.outputs.result == ''
strategy:
fail-fast: false
matrix:
build_configuration: [Release, Debug]
build_platform: [x86_64, i686]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Modify resource.h N++ version to avoid confusion
working-directory: PowerEditor\src\
shell: pwsh
run: |
$content = Get-Content -Path 'resource.h'
$newContent = $content -replace 'TEXT\(\"Notepad\+\+ v.*\"\)', 'TEXT("Notepad++ GH_BUILD")'
$newContent | Set-Content -Path 'resource.h'
- name: Make n++ exe
working-directory: .\
run: |
Write-host "${{ matrix.build_platform }}"
Write-host "${{ matrix.build_configuration }}"
$Env:Path = 'C:\msys64\usr\bin' + [IO.Path]::PathSeparator + $Env:Path
if ( $${{ matrix.build_platform == 'i686'}} ) {$Env:MSYSTEM = 'MINGW32'}
if ( $${{ matrix.build_platform == 'i686'}} ) {$Env:Path = 'C:\msys64\mingw32\bin' + [IO.Path]::PathSeparator + $Env:Path}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {$Env:MSYSTEM = 'MINGW64'}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {$Env:Path = 'C:\msys64\mingw64\bin' + [IO.Path]::PathSeparator + $Env:Path}
if ( $${{ matrix.build_configuration == 'Debug'}} ) {$Env:DEBUG = '1'}
bash -lc "pacman --noconfirm -Syuu"
bash -lc "pacman --noconfirm -Syuu"
if ( $${{ matrix.build_platform == 'i686'}} ) {bash -lc "pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-make"}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {bash -lc "pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make"}
Write-Output "Tools version:"
Write-Output (((gcc --version) | select-object -first 1) + " " + (gcc -dumpmachine))
Write-Output (mingw32-make --version) | select-object -first 1
Write-Output (sh --version) | select-object -first 1
mingw32-make -f PowerEditor\gcc\makefile
- name: Archive artifacts for ${{ matrix.build_platform}} / Release
if: matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: Notepad++.GCC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: bin.${{ matrix.build_platform}}\notepad++.exe
- name: Archive artifacts for ${{ matrix.build_platform}} / Debug
if: matrix.build_configuration == 'Debug'
uses: actions/upload-artifact@v4
with:
name: Notepad++.GCC.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: bin.${{ matrix.build_platform}}-debug\notepad++.exe

69
.github/workflows/release-notifier.yml vendored Normal file
View File

@ -0,0 +1,69 @@
name: Plugin Files Release Notifier
on:
push:
branches: 'master'
workflow_dispatch:
jobs:
release-notifier:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changes
run: |
$any_changed = $false
$watch_files = @(
"scintilla/include/Scintilla.h",
"scintilla/include/Sci_Position.h",
"PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h",
"PowerEditor/src/MISC/PluginsManager/PluginInterface.h",
"PowerEditor/src/menuCmdID.h",
"PowerEditor/src/WinControls/DockingWnd/Docking.h",
"PowerEditor/src/WinControls/DockingWnd/dockingResource.h"
)
if("${{ github.event_name }}" -eq "workflow_dispatch") {
#Write-Output "non-push: use HEAD~1..HEAD, which isn't as specific, but better than nothing"
$changed_files = @( git diff --name-only HEAD~1..HEAD )
} else {
#Write-Output "for-push: use before/after"
$changed_files = @( git diff --name-only ${{ github.event.before }} ${{ github.event.after }} )
}
foreach ($this_file in $changed_files) {
#Write-Output "the following is different: $this_file"
if( $this_file -in $watch_files ) {
Write-Output "+ Saw changes in: $this_file"
$any_changed = $true
}
}
if($any_changed) {
$map = @(
@( "${{ secrets.PAT_NOTIFY_NPPPLUGINS }}", "npp-plugins/plugintemplate", "CI_update_remote.yml" ),
@( "${{ secrets.PAT_NOTIFY_NPPPLUGINS }}", "npp-plugins/plugindemo", "CI_update_remote.yml" )
)
foreach ($target in $map) {
$pat = $target[0]
$ref = $target[1]
$yml = $target[2]
# Write-Output "DEBUG: len(pat)='$($pat.Length)' ref='$ref' len(ref)=$($ref.Length) yml='$yml' len(yml)=$($yml.Length): 'https://api.github.com/repos/$ref/actions/workflows/$yml/dispatches'"
Write-Output "Notifying '$ref' workflow '$yml' using curl 'https://api.github.com/repos/$ref/actions/workflows/$yml/dispatches'."
curl -s -L `
-X POST `
-H "Accept: application/vnd.github+json" `
-H "Authorization: Bearer $pat" `
-H "X-GitHub-Api-Version: 2022-11-28" `
https://api.github.com/repos/$ref/actions/workflows/$yml/dispatches `
-d "{`"ref`": `"${{ github.ref_name }}`", `"inputs`": {}}"
# NOTE: if there is a problem with the curl call, there will be a message in the workflow output,
# but the workflow will not fail, so that the Notepad++ build will not fail; we do our best to notify,
# but we don't want a problem with another repo holding up a N++ fix.
}
} else {
Write-Output "No watched-files changed, so not sending notification to plugin templates this time."
}

167
.gitignore vendored Normal file
View File

@ -0,0 +1,167 @@
#-------------------------------------------------------------------------------
# VisualStudio
#-- User-specific files
*.suo
*.user
*.sln.docstates
#-- Build results
[Dd]ebug/
[Rr]elease/
x64/
x86/
#[Bb]in/
[Oo]bj/
*.pdb
#-- Visual C++ cache files
.vs/
.vscode/
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
#-- Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
#-- Others
*_i.c
*_p.c
*.ilk
*.meta
*.exe
*.obj
*.pch
#*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
.builds
*.pidb
*.vcxproj.filters
*.bak
PowerEditor/bin/notepad++.exe
PowerEditor/bin/Notepad++.exp
PowerEditor/bin/Notepad++.lib
PowerEditor/bin/NppShell.x86.dll
PowerEditor/bin/config.xml
PowerEditor/bin/stylers.xml
PowerEditor/bin/langs.xml
PowerEditor/bin/config.model.xml
PowerEditor/bin/stylers.model.xml
PowerEditor/bin/langs.model.xml
PowerEditor/bin/contextMenu.xml
PowerEditor/bin/nativeLang.xml
PowerEditor/bin/session.xml
PowerEditor/bin/functionList.xml
PowerEditor/bin/shortcuts.xml
PowerEditor/bin/backup/
PowerEditor/bin/localization/
PowerEditor/bin/plugins/
PowerEditor/bin/updater/
PowerEditor/bin/functionList/
PowerEditor/bin64/
PowerEditor/binarm64/
PowerEditor/bin/themes/
PowerEditor/installer/bin/wingup/
PowerEditor/installer/build/
PowerEditor/installer/minimalist/
PowerEditor/installer/minimalist64/
PowerEditor/installer/minimalistArm64/
PowerEditor/installer/zipped.package.release/
PowerEditor/installer/zipped.package.release64/
PowerEditor/installer/zipped.package.releaseArm64/
PowerEditor/visual.net/Unicode Debug/
PowerEditor/visual.net/Unicode Release/
PowerEditor/visual.net/Debug/
PowerEditor/visual.net/Release/
PowerEditor/visual.net/notepadPlus.sln
PowerEditor/visual.net/notepadPlus.vcxproj.filters
PowerEditor/visual.net/x64/Unicode Debug/
PowerEditor/visual.net/x64/Unicode Release/
PowerEditor/visual.net/x64/Debug/
PowerEditor/visual.net/x64/Release/
PowerEditor/visual.net/ARM64
PowerEditor/src/tools/NppShell/build_ARM64
PowerEditor/src/tools/NppShell/build_Win32
PowerEditor/src/tools/NppShell/build_x64
PowerEditor/src/NppLibsVersion.h
# scintilla - generated files
scintilla/bin/SciLexer.*
scintilla/bin/Scintilla.*
scintilla/bin/libscintilla.lib
scintilla/win32/*.lib
scintilla/win32/ScintRes.res
scintilla/win32/ARM64
scintilla/win32/Unicode Release/
scintilla/win32/Unicode Debug/
scintilla/win32/Release/
scintilla/win32/Debug/
scintilla/boostregex/bin
scintilla/boostregex/boostpath.mak
#-------------------------------------------------------------------------------
# Windows
#-- image file cache
Thumbs.db
#-- Folder config file
Desktop.ini
folder-*.ico
#-- Recycle Bin used on file shares
$RECYCLE.BIN/
#-------------------------------------------------------------------------------
# Mac
*~
*.lock
*.DS_Store
*.swp
*.out
scintilla/.hgeol
scintilla/.hgtags
scintilla/cppcheck.suppress
scintilla/.hg_archival.txt
scintilla/.hgignore
scintilla/bin/__init__.py
PowerEditor/bin/NppShell64_06.dll
PowerEditor/bin/NppShell_06.dll
PowerEditor/bin/SourceCodePro-Bold.ttf
PowerEditor/bin/SourceCodePro-BoldIt.ttf
PowerEditor/bin/SourceCodePro-It.ttf
PowerEditor/bin/SourceCodePro-Regular.ttf
*.zip
#-------------------------------------------------------------------------------
# MinGW-w64 GCC
bin.*
scintilla/win32/*.o
PowerEditor/src/MISC/md5/RCa06792
*.db
*.sln
*.opendb

74
BUILD.md Normal file
View File

@ -0,0 +1,74 @@
# Building Notepad++
## Microsoft Visual Studio
**Pre-requisites:**
- Microsoft Visual Studio 2022 version 17.5 (C/C++ Compiler, v143 toolset for win32, x64, arm64)
There are three components which are built from one visual studio solution:
- `notepad++.exe`: (contains `libSciLexer.lib`)
- `libScintilla.lib` : static library based on [Scintilla](https://www.scintilla.org/)
- `libLexilla.lib` : static library based on [Lexilla](https://www.scintilla.org/Lexilla.html)
Notepad++ is always built **with** Boost regex PCRE support instead of default c++11 regex ECMAScript used by plain Scintilla.
### Build `notepad++.exe`
1. Open [`PowerEditor\visual.net\notepadPlus.sln`](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/visual.net/notepadPlus.sln)
2. Select a solution configuration (Debug or Release) and a solution platform (x64 or Win32 or ARM64)
3. Build Notepad++ solution like a normal Visual Studio project. This will also build the dependent Scintilla and Lexilla projects.
### Build `libScintilla.lib` and `libLexilla.lib`
As mentioned above, you'll need `libScintilla.lib` and `libLexilla.lib` for the Notepad++ build. This is done automatically on building the whole solution. So normally you don't need to care about this.
#### Build `libScintilla.lib` with boost and `libLexilla.lib` via nmake
This is not necessary any more and just here for completeness as this option is still available.
Boost is taken from [boost 1.85.0](https://www.boost.org/users/history/version_1_85_0.html) and stripped down to the project needs available at [boost](https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/boostregex/boost) in this repo.
1. Open the Developer Command Prompt for Visual Studio
2. Go into the [`scintilla\win32\`](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/win32/)
3. Build the same configuration as notepad++:
- Release: `nmake -f scintilla.mak`
- Debug: `nmake DEBUG=1 -f scintilla.mak`
- Example:
`nmake -f scintilla.mak`
4. Go into the [`lexilla\src\`](https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/lexilla/src/)
5. Build the same configuration as notepad++:
- Release: `nmake -f lexilla.mak`
- Debug: `nmake DEBUG=1 -f lexilla.mak`
### History
More about the previous build process: <https://community.notepad-plus-plus.org/topic/13959/building-notepad-with-visual-studio-2015-2017>
Since `Notepad++` version 6.0 - 7.9.5, the build of dynamic linked `SciLexer.dll` that is distributed
uses features from Boost's `Boost.Regex` library.
## GCC
If you have [MinGW-w64](https://www.mingw-w64.org/) installed, you can compile Notepad++ with GCC. Otherwise MinGW-w64 can be downloaded [here](https://sourceforge.net/projects/mingw-w64/files/). You can also download some collection of tools which supports MinGW-w64, like [MSYS2](https://www.msys2.org/) or [WinLibs](https://winlibs.com/).
Building Notepad++ is regularly tested on a Windows system by using [MSYS2](https://www.msys2.org/) project. Current versions of tools used to building (such as GCC, Clang, Make or Bash) can be checked by looking at some logs from the finished building (for example in the [current-build page](https://github.com/notepad-plus-plus/notepad-plus-plus/actions/workflows/CI_build.yml). Other versions may also work but are untested.
**Note:** Before building make sure that the system `PATH` environment variable contains `$MinGW-root$\bin` directory. Otherwise you have to set this directory yourself in Windows settings. You can also use a command like `set PATH=$MinGW-root$\bin;%PATH%` each time `cmd` is launched. But beware that if `PATH` contains several versions of MinGW-w64 GCC, only the first one will be usable.
### Compiling Notepad++ binary
1. Launch `cmd` and add `$MinGW-root$\bin` to `PATH` if necessary.
2. `cd` into `notepad-plus-plus\PowerEditor\gcc`.
3. Run `mingw32-make`.
4. The 32-bit or 64-bit `notepad++.exe` will be generated either in `bin.i686` or in `bin.x86_64` directory respectively, depending on the target CPU of the compiler — look for the full path to the resulting binary at the end of the build process.
#### Some additional information
- The directory containing `notepad++.exe` will also contain everything needed for Notepad++ to start.
- To have a debug build just add `DEBUG=1` to the `mingw32-make` invocation above. The output directory then will be suffixed with `-debug`.
- To see commands being executed add `VERBOSE=1` to the same command.
- When a project is built outside of the `PowerEditor/gcc` directory, for example when using `-f` option, then the entire project path must not contain any spaces. Additionally, the path to `makefile` of this project should be listed as first.
- When a project is built through MinGW-w64 with multilib support, a specific target can be forced by passing `TARGET_CPU` variable with `x86_64` or `i686` as value.
- To use Clang instead of GCC for compilation provide `CXX` variable with `clang++` as value.
- To use [Clang analyzer](https://clang-analyzer.llvm.org/) together with Clang provide `CLANGANALYZE=1` to the `mingw32-make` invocation.

454
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,454 @@
# Contributing
***Ask not what Notepad++ can do for you - ask what you can do for Notepad++***
## Reporting Issues
Bug reports are appreciated. Following a few guidelines listed below will help speed up the process of getting them fixed.
1. Search the issue tracker to see if it has already been reported.
2. Disable your plugins to see if one of them is the problem. You can do this by renaming your `plugins` folder to something else.
3. Only report an issue with a plugin if it is one of the standard plugins included in the Notepad++ installation. Any other plugin issue should be reported to its respective issue tracker (see e.g. [plugin_list_x86.md](https://github.com/notepad-plus-plus/nppPluginList/blob/master/doc/plugin_list_x86.md) or [plugin_list_x64.md](https://github.com/notepad-plus-plus/nppPluginList/blob/master/doc/plugin_list_x64.md) to find the homepage with further information on that for a plugins). The standard plugins include (for v7.9.5):
* NppExport
* Converter
* mimeTools
4. Fill the complete information: a template will be shown when you create an issue. Please fill the complete information in the template. To fill the field **Debug Information** you can get it from your Notepad++ via menu `?>Debug Info...`. Please take your time to fill these information. If you don't bother to complete the information we need to help you, we won't bother to solve your problem either.
## Pull Requests
*The first rule of Notepad++ is: you do not ask for permission to contribute.*<br/>
*The second rule of Notepad++ is: you DO NOT ask for permission to contribute.*
Just do your contribution if you have something to offer, and your pull requests are welcome.<br/>
However, they may not be accepted for various reasons. If you want to make some GUI enhancement like renaming some graphic items or fixing typos, please create the issue instead of the pull requests. All Pull Requests, except for translations and user documentation, need to be attached to a issue on GitHub. For Pull Requests regarding enhancements and questions, the issue must first be approved by one of project's administrators before being merged into the project. An approved issue will have the label `Accepted`. For issues that have not been accepted, you may request to be assigned to that issue.
Opening an issue beforehand allows the administrators and the community to discuss bugs and enhancements before work begins, preventing wasted effort.
### Guidelines for pull requests
1. Respect existing Notepad++ coding style. Observe the code near your intended change, and attempt to preserve the style of that code with the changes you make.
2. Create a new branch for each PR. **Make sure your branch name wasn't used before** - you can add date (for example `patch3_20200528`) to ensure its uniqueness.
3. Single feature or bug-fix per PR.
4. Create a PR with a single commit to make the review process easier.
5. For the PR of translation, don't guess or use the next version number. Use the current version number instead.
6. Make your modification compact - don't reformat source code in your request. It makes code review more difficult.
7. PR of reformatting (changing of ws/TAB, line endings or coding style) of source code won't be accepted. Use issue trackers for your request instead.
8. Typo fixing and code refactoring won't be accepted - please create issues with title started with `TYPO` to request the changing.
9. The PR for the enhancement of Function List parser should also include unit test. Please refer [here](https://npp-user-manual.org/docs/function-list/#contribute-your-new-or-enhanced-parser-rule-to-the-notepad-codebase) for more information.
10. Address the review change requests by pushing new commits to the same PR. Avoid amending a commit and then force pushing it. All the PR commits are squashed before merging to the main branch.
11. When creating new PR, try to base it on latest master.
12. Normally you don't need to merge `upstream/master` (using git or via github sync), if your PR is based on older `upstream/master`. If you need to base it on latest `master` (e.g. to check and fix merge conflict), use commands `git fetch upstream` to get latest `master` and then `git rebase upstream/master` to rebase it onto this latest `upstream/master`.
13. Finally, please test your pull requests, at least once.
In short: The easier the code review is, the better the chance your pull request will get accepted.
### Coding style
![stay clean](https://notepad-plus-plus.org/assets/images/good-bad-practice.jpg)
#### GENERAL
1. Do not use Java-like braces
* Good:
```cpp
void MyClass::method1()
{
if (aCondition)
{
// Do something
}
}
```
* Bad:
```cpp
void MyClass::method1() {
if (aCondition) {
// Do something
}
}
```
However, the method definition could be defined in a header file (.h), if there's one line code only. In this case, Java-like braces should be used.
* Good:
```cpp
class MyClass
{
public:
void method1();
int method2() {
return _x; // only one line code can be placed in .h as method definition
};
private:
int _x;
}
```
2. Use tabs instead of white-spaces (we usually set our editors to 4 white-spaces for 1 tab, but the choice is up to you)
3. Always leave one space before and after binary and ternary operators
* Good:
```cpp
if (a == 10 && b == 42)
```
* Bad:
```cpp
if (a==10&&b==42)
```
4. Only leave one space after semi-colons in "for" statements
* Good:
```cpp
for (int i = 0; i != 10; ++i)
```
* Bad:
```cpp
for(int i=0;i<10;++i)
```
5. Function names are not separated from the first parenthesis
* Good:
```cpp
foo();
myObject.foo(24);
```
* Bad:
```cpp
foo ();
```
6. Keywords are separated from the first parenthesis by one space
* Good:
```cpp
if (true)
while (true)
```
* Bad:
```cpp
if(myCondition)
```
7. Switch
* Use the following indenting for "switch" statements:
```cpp
switch (test)
{
case 1:
{
// Do something
break;
}
default:
// Do something else
} // No semi-colon here
```
* If possible use `default` statement, and prefer using it as last case.
* When using switch with enum or known range, try to cover all values if not using `default`.
```cpp
enum class Test {val1, val2, val3}
switch (Test)
{
case Test::val1:
{
// Do something
break;
}
//case Test::val2:
//case Test::val3:
default:
// Do something else
} // No semi-colon here
```
When using `default` adding uncovered values as comments can help to convey intention.
* Use `[[fallthrough]]` if fall through is intended.
```cpp
switch (test)
{
case 1:
{
// Do something
}
// I want fall through // adding comment can help to convey intention
[[fallthrough]];
case 2:
{
// Do something
break;
}
default:
// Do something else
} // No semi-colon here
```
8. Avoid magic numbers
* Good:
```cpp
if (foo == I_CAN_PUSH_ON_THE_RED_BUTTON)
startTheNuclearWar();
```
* Bad:
```cpp
while (lifeTheUniverseAndEverything != 42)
lifeTheUniverseAndEverything = buildMorePowerfulComputerForTheAnswer();
```
9. Prefer enums for integer constants
10. Use initialization with curly braces
* Good:
```cpp
MyClass instance{10.4};
```
* Bad:
```cpp
MyClass instance(10.4);
```
11. Always use `empty()` for testing if a string is empty or not
* Good:
```cpp
if (!string.empty())
...
```
* Bad:
```cpp
if (string != "")
...
```
12. Always use `C++ conversion` instead of `C-Style cast`
* Generally, all the conversion among types should be avoided. If you have no choice, use C++ conversion.
* Good:
```cpp
char aChar = static_cast<char>(_pEditView->execute(SCI_GETCHARAT, j));
```
* Bad:
```cpp
char aChar = (char)_pEditView->execute(SCI_GETCHARAT, j);
```
13. Use `!` instead of `not`, `&&` instead of `and`, `||` instead of `or`
* Good:
```cpp
if (!::PathFileExists(dir2Search))
```
* Bad:
```cpp
if (not ::PathFileExists(dir2Search))
```
14. Always initialize local and global variables
* For primitive types and enum prefer initialization with `=`.
* For other prefer `{}`-initializer syntax.
* For "numerical" variables using literal suffix can help to convey intention.
```cpp
constexpr float g_globalVariable = 0.0F;
void test()
{
constexpr UINT strLen = 1024U;
wchar_t myString[strLen]{};
}
```
#### NAMING CONVENTIONS
1. Classes uses Pascal Case
* Good:
```cpp
class IAmAClass
{};
```
* Bad:
```cpp
class iAmAClass
{};
class I_am_a_class
{};
```
2. Methods & method parameters
* Use camel Case
```cpp
void myMethod(uint myVeryLongParameter);
```
3. Member variables
* Any member variable name of class/struct should be preceded by an underscore.
```cpp
public:
int _publicAttribute;
private:
int _pPrivateAttribute;
float _pAccount;
```
4. Always prefer a variable name that describes what the variable is used for
* Good:
```cpp
if (hours < 24 && minutes < 60 && seconds < 60)
```
* Bad:
```cpp
if (a < 24 && b < 60 && c < 60)
```
#### COMMENTS
1. Use C++ comment line style rather than C comment style
* Good:
```cpp
// Two lines comment
// Use still C++ comment line style
```
* Bad:
```cpp
/*
Please don't piss me off with that
*/
```
#### BEST PRACTICES
1. Use C++11/14/17/20 whenever it is possible.
2. Use C++11 member initialization feature whenever it is possible.
```cpp
class Foo
{
int value = 0;
};
```
3. Incrementing
* Prefer Pre-increment
```cpp
++i
```
* Over Post-increment
```cpp
i++
```
(It does not change anything for built-in types but it would bring consistency)
4. Avoid using pointers. References are preferred instead. You might need the variable to be assigned a `NULL` value: in this case the `NULL` value has semantics and must be checked. Wherever possible, use a SmartPtr instead of old-school pointers.
5. Avoid using new if you can use automatic variable. However, avoid `shared_ptr` as much as possible. Prefer `unique_ptr` instead.
6. Don't place any "using namespace" directives in headers.
7. Compile time is without incidence. Increasing compile time to reduce execution time is encouraged.
8. Code legibility and length is less important than easy and fast end-user experience.
9. Prefer `constexpr` over `const` if value can be evaluated at compile time.
10. Check if there are helper functions in headers or lambda functions to reuse them instead of writing new code.
* Example
```cpp
// in StaticDialog.h
isCheckedOrNot();
setChecked();
// in Parameters.cpp
parseYesNoBoolAttribute();
```
11. Check if there are already defined global variables, and reuse them instead of defining new ones.
12. Avoid "Yoda conditions".
* Good:
```cpp
if (iAmYourFather == true)
...
```
* Bad:
```cpp
if (true == iAmYourFather)
...
```
13. Check [C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md) for additional guidelines.

231
LICENSE Normal file
View File

@ -0,0 +1,231 @@
COPYING -- Describes the terms under which Notepad++ is distributed.
A copy of the GNU GPL is appended to this file.
IMPORTANT NOTEPAD++ LICENSE TERMS
Copyright (C)2021 Don HO <don.h@free.fr>. This program is free software; you may redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 3 with the clarifications and exceptions described below. This guarantees your right to use, modify, and redistribute this software under certain conditions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
******************************************************************
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/licenses/why-not-lgpl.html>.

View File

@ -0,0 +1 @@
{"leaves":["BiSeqOut","Get_Idle","Get_State","Update","Int32_To_Byte_Array","Int8_To_U8","Int32toInt8TwosComplement (value : Vt.Int32)","AproxU8 (n : Vt.U8; x : Vt.U8)","Read_I32 (Register : Vt.Address_Range)"],"root":"unitTest"}

View File

@ -0,0 +1,77 @@
-- Chapter 24 - Program 1 from https://perso.telecom-paristech.fr/pautet/Ada95/e_c24_p1.ada
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Sequential_IO;
procedure BiSeqOut is
type MY_REC is
record
Age : INTEGER;
Sex : CHARACTER;
Initial : CHARACTER;
end record;
package Seq_IO is new Ada.Sequential_IO(MY_REC);
use Seq_IO;
Myself : MY_REC;
My_Out_File : Seq_IO.FILE_TYPE;
begin
Create(My_Out_File, Out_File, "NAMEFILE.TXT");
Myself.Sex := 'M';
Myself.Initial := 'X';
for Index in 1..100 loop
Myself.Age := Index;
Write(My_Out_File, Myself);
end loop;
Close(My_Out_File);
end BiSeqOut;
-- Result of Execution
-- (The only output is a binary file named NAMEFILE.TXT)
function Get_Idle
return Boolean;
function Get_State
return Vt.State;
procedure Update;
function Int32_To_Byte_Array is
new Unchecked_Conversion (Source => Vt.Int32, Target => Vt.Byte_Array);
function Int8_To_U8 is new Unchecked_Conversion
(Source => Vt.Int8, Target => Vt.U8);
function Int32toInt8TwosComplement (value : Vt.Int32) return Vt.Int8 is
begin
-- body
end Int32toInt8TwosComplement;
function AproxU8 (n : Vt.U8; x : Vt.U8) return Boolean is
eq : Boolean := False;
begin
-- code
return eq;
end AproxU8;
function Read_I32 (Register : Vt.Address_Range) return Vt.Int_32 is
Data : Vt.Int_32;
begin
-- code
return Data;
end Read_ I32;

View File

@ -0,0 +1,231 @@
page ,132
title strcat - concatenate (append) one string to another
;***
;strcat.asm - contains strcat() and strcpy() routines
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; STRCAT concatenates (appends) a copy of the source string to the
; end of the destination string, returning the destination string.
;
;*******************************************************************************
.xlist
include cruntime.inc
.list
page
;***
;char *strcat(dst, src) - concatenate (append) one string to another
;
;Purpose:
; Concatenates src onto the end of dest. Assumes enough
; space in dest.
;
; Algorithm:
; char * strcat (char * dst, char * src)
; {
; char * cp = dst;
;
; while( *cp )
; ++cp; /* Find end of dst */
; while( *cp++ = *src++ )
; ; /* Copy src to end of dst */
; return( dst );
; }
;
;Entry:
; char *dst - string to which "src" is to be appended
; const char *src - string to be appended to the end of "dst"
;
;Exit:
; The address of "dst" in EAX
;
;Uses:
; EAX, ECX
;
;Exceptions:
;
;*******************************************************************************
page
;***
;char *strcpy(dst, src) - copy one string over another
;
;Purpose:
; Copies the string src into the spot specified by
; dest; assumes enough room.
;
; Algorithm:
; char * strcpy (char * dst, char * src)
; {
; char * cp = dst;
;
; while( *cp++ = *src++ )
; ; /* Copy src over dst */
; return( dst );
; }
;
;Entry:
; char * dst - string over which "src" is to be copied
; const char * src - string to be copied over "dst"
;
;Exit:
; The address of "dst" in EAX
;
;Uses:
; EAX, ECX
;
;Exceptions:
;*******************************************************************************
CODESEG
% public strcat, strcpy ; make both functions available
strcpy proc \
dst:ptr byte, \
src:ptr byte
OPTION PROLOGUE:NONE, EPILOGUE:NONE
push edi ; preserve edi
mov edi,[esp+8] ; edi points to dest string
jmp short copy_start
strcpy endp
align 16
strcat proc \
dst:ptr byte, \
src:ptr byte
OPTION PROLOGUE:NONE, EPILOGUE:NONE
.FPO ( 0, 2, 0, 0, 0, 0 )
mov ecx,[esp+4] ; ecx -> dest string
push edi ; preserve edi
test ecx,3 ; test if string is aligned on 32 bits
je short find_end_of_dest_string_loop
dest_misaligned: ; simple byte loop until string is aligned
mov al,byte ptr [ecx]
add ecx,1
test al,al
je short start_byte_3
test ecx,3
jne short dest_misaligned
align 4
find_end_of_dest_string_loop:
mov eax,dword ptr [ecx] ; read 4 bytes
mov edx,7efefeffh
add edx,eax
xor eax,-1
xor eax,edx
add ecx,4
test eax,81010100h
je short find_end_of_dest_string_loop
; found zero byte in the loop
mov eax,[ecx - 4]
test al,al ; is it byte 0
je short start_byte_0
test ah,ah ; is it byte 1
je short start_byte_1
test eax,00ff0000h ; is it byte 2
je short start_byte_2
test eax,0ff000000h ; is it byte 3
je short start_byte_3
jmp short find_end_of_dest_string_loop
; taken if bits 24-30 are clear and bit
; 31 is set
start_byte_3:
lea edi,[ecx - 1]
jmp short copy_start
start_byte_2:
lea edi,[ecx - 2]
jmp short copy_start
start_byte_1:
lea edi,[ecx - 3]
jmp short copy_start
start_byte_0:
lea edi,[ecx - 4]
; jmp short copy_start
; edi points to the end of dest string.
copy_start::
mov ecx,[esp+0ch] ; ecx -> sorc string
test ecx,3 ; test if string is aligned on 32 bits
je short main_loop_entrance
src_misaligned: ; simple byte loop until string is aligned
mov dl,byte ptr [ecx]
add ecx,1
test dl,dl
je short byte_0
mov [edi],dl
add edi,1
test ecx,3
jne short src_misaligned
jmp short main_loop_entrance
main_loop: ; edx contains first dword of sorc string
mov [edi],edx ; store one more dword
add edi,4 ; kick dest pointer
main_loop_entrance:
mov edx,7efefeffh
mov eax,dword ptr [ecx] ; read 4 bytes
add edx,eax
xor eax,-1
xor eax,edx
mov edx,[ecx] ; it's in cache now
add ecx,4 ; kick dest pointer
test eax,81010100h
je short main_loop
; found zero byte in the loop
; main_loop_end:
test dl,dl ; is it byte 0
je short byte_0
test dh,dh ; is it byte 1
je short byte_1
test edx,00ff0000h ; is it byte 2
je short byte_2
test edx,0ff000000h ; is it byte 3
je short byte_3
jmp short main_loop ; taken if bits 24-30 are clear and bit
; 31 is set
byte_3:
mov [edi],edx
mov eax,[esp+8] ; return in eax pointer to dest string
pop edi
ret
byte_2:
mov [edi],dx
mov eax,[esp+8] ; return in eax pointer to dest string
mov byte ptr [edi+2],0
pop edi
ret
byte_1:
mov [edi],dx
mov eax,[esp+8] ; return in eax pointer to dest string
pop edi
ret
byte_0:
mov [edi],dl
mov eax,[esp+8] ; return in eax pointer to dest string
pop edi
ret
strcat endp
end

View File

@ -0,0 +1 @@
{"leaves":["dst","src","dst","src","dest_misaligned","find_end_of_dest_string_loop","start_byte_3","start_byte_2","start_byte_1","start_byte_0","copy_start","src_misaligned","main_loop","main_loop_entrance","byte_3","byte_2","byte_1","byte_0"],"root":"unitTest"}

View File

@ -0,0 +1,53 @@
; Script Name : logoff.au3
; Author : Craig Richards
; Created : 6th February 2012
; Last Modified :
; Version : 1.0
; Modifications :
; Description : This is a simple splash screen to wrap around my logoff.bat incase someone presses my logoff button by mistake (New Microsoft Keyboard)
#Include <GuiConstants.au3> ; Include the GuiConstants Header File
#Include <StaticConstants.au3> ; Include the StaticConstants Header File
Opt('GuiOnEventMode', 1) ; Set the Option, and enable GuiOnEventMode
GUICreate ("Logoff Warning", 750, 750) ; Create a simple window
;GUISetIcon("icon.ico") ; Give it an icon
GUISetOnEvent($GUI_EVENT_CLOSE, 'GUIExit') ; Close the Window if the program is quit
GUICtrlCreatePic("1280.jpg",0,0,750,680) ; Put a picture in the background of the splash screen
GUICtrlCreateLabel("Please Choose an Option Below:", 220, 680, 300, 15, $SS_CENTER) ; A simple label on the screen
GUICtrlSetColor(-1,0xFF0000); ; Text of the label will be Red
GUICtrlCreateButton("Logoff", 170, 700, 200, 30) ; Create a simple button to run the logoff script
GUICTrlSetOnEvent(-1, 'logoff') ; If pressed run the logoff function
GUICtrlCreateButton("Cancel", 375, 700, 200, 30) ; Create a simple button to quit the program
GUICTrlSetOnEvent(-1, 'cancel') ; If pressed run the cancel function
Func logoff() ; Start of the logoff function
GUISetState(@SW_HIDE) ; Hide the Window
Run("u:\logoff.bat") ; Run the logoff batch file
Exit ; Quit the program
EndFunc ; End of the logoff Function
#CS
Func logoff()
GUISetState(@SW_HIDE)
Run("u:\logoff.bat")
Exit
EndFunc
#CE
Func cancel() ; Start of the cancel function
GUISetState(@SW_HIDE) ; Hide the Window
Exit ; Quit the program
EndFunc ; End of the cancel Function
GUISetState(@SW_SHOW) ; Show the application Windows
While 1 ; A simple while loop
Sleep(500) ; Sleep to keep the window running
WEnd ; End of the While loop
Func GUIExit() ; Start of the GUIExit function
Exit ; Quit the program
EndFunc

View File

@ -0,0 +1 @@
{"leaves":["logoff","cancel","GUIExit"],"root":"unitTest"}

View File

@ -0,0 +1,259 @@
#!/bin/sh
# bash parser should be fixed so we can use the content of "unitTest.expected.result.correct".
# Check the bug here:
# https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9019
setenv()
{
# Define and export.
eval ${1}="${2}"
export ${1}
}
case "${SCRIPTDIR}" in
/*) ;;
*) SCRIPTDIR="`pwd`/${SCRIPTDIR}"
esac
while true
do case "${SCRIPTDIR}" in
*/.) SCRIPTDIR="${SCRIPTDIR%/.}";;
*) break;;
esac
done
# The script directory is supposed to be in $TOPDIR/packages/os400.
TOPDIR=`dirname "${SCRIPTDIR}"`
TOPDIR=`dirname "${TOPDIR}"`
export SCRIPTDIR TOPDIR
# Extract the SONAME from the library makefile.
SONAME=`sed -e '/^VERSIONINFO=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' -e 'q' \
< "${TOPDIR}/lib/Makefile.am"`
export SONAME
################################################################################
#
# Tunable configuration parameters.
#
################################################################################
setenv TARGETLIB 'CURL' # Target OS/400 program library.
setenv STATBNDDIR 'CURL_A' # Static binding directory.
setenv DYNBNDDIR 'CURL' # Dynamic binding directory.
setenv SRVPGM "CURL.${SONAME}" # Service program.
setenv TGTCCSID '500' # Target CCSID of objects.
setenv DEBUG '*ALL' # Debug level.
setenv OPTIMIZE '10' # Optimisation level
setenv OUTPUT '*NONE' # Compilation output option.
setenv TGTRLS 'V6R1M0' # Target OS release.
setenv IFSDIR '/curl' # Installation IFS directory.
# Define ZLIB availability and locations.
setenv WITH_ZLIB 0 # Define to 1 to enable.
setenv ZLIB_INCLUDE '/zlib/include' # ZLIB include IFS directory.
setenv ZLIB_LIB 'ZLIB' # ZLIB library.
setenv ZLIB_BNDDIR 'ZLIB_A' # ZLIB binding directory.
# Define LIBSSH2 availability and locations.
setenv WITH_LIBSSH2 0 # Define to 1 to enable.
setenv LIBSSH2_INCLUDE '/libssh2/include' # LIBSSH2 include IFS directory.
setenv LIBSSH2_LIB 'LIBSSH2' # LIBSSH2 library.
setenv LIBSSH2_BNDDIR 'LIBSSH2_A' # LIBSSH2 binding directory.
################################################################################
# Need to get the version definitions.
LIBCURL_VERSION=`grep '^#define *LIBCURL_VERSION ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/.*"\(.*\)".*/\1/'`
LIBCURL_VERSION_MAJOR=`grep '^#define *LIBCURL_VERSION_MAJOR ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/^#define *LIBCURL_VERSION_MAJOR *\([^ ]*\).*/\1/'`
LIBCURL_VERSION_MINOR=`grep '^#define *LIBCURL_VERSION_MINOR ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/^#define *LIBCURL_VERSION_MINOR *\([^ ]*\).*/\1/'`
LIBCURL_VERSION_PATCH=`grep '^#define *LIBCURL_VERSION_PATCH ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/^#define *LIBCURL_VERSION_PATCH *\([^ ]*\).*/\1/'`
LIBCURL_VERSION_NUM=`grep '^#define *LIBCURL_VERSION_NUM ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/^#define *LIBCURL_VERSION_NUM *0x\([^ ]*\).*/\1/'`
LIBCURL_TIMESTAMP=`grep '^#define *LIBCURL_TIMESTAMP ' \
"${TOPDIR}/include/curl/curlver.h" |
sed 's/.*"\(.*\)".*/\1/'`
export LIBCURL_VERSION
export LIBCURL_VERSION_MAJOR LIBCURL_VERSION_MINOR LIBCURL_VERSION_PATCH
export LIBCURL_VERSION_NUM LIBCURL_TIMESTAMP
################################################################################
#
# OS/400 specific definitions.
#
################################################################################
LIBIFSNAME="/QSYS.LIB/${TARGETLIB}.LIB"
################################################################################
#
# Procedures.
#
################################################################################
# action_needed dest [src]
#
# dest is an object to build
# if specified, src is an object on which dest depends.
#
# exit 0 (succeeds) if some action has to be taken, else 1.
action_needed()
{
[ ! -e "${1}" ] && return 0
[ "${2}" ] || return 1
[ "${1}" -ot "${2}" ] && return 0
return 1
}
# canonicalize_path path
#
# Return canonicalized path as:
# - Absolute
# - No . or .. component.
canonicalize_path(){
if expr "${1}" : '^/' > /dev/null
then P="${1}"
else P="`pwd`/${1}"
fi
R=
IFSSAVE="${IFS}"
IFS="/"
for C in ${P}
do IFS="${IFSSAVE}"
case "${C}" in
.) ;;
..) R=`expr "${R}" : '^\(.*/\)..*'`
;;
?*) R="${R}${C}/"
;;
*) ;;
esac
done
IFS="${IFSSAVE}"
echo "/`expr "${R}" : '^\(.*\)/'`"
}
# make_module module_name source_name [additional_definitions]
#
# Compile source name into ASCII module if needed.
# As side effect, append the module name to variable MODULES.
# Set LINK to "YES" if the module has been compiled.
make_module() {
MODULES="${MODULES} ${1}"
MODIFSNAME="${LIBIFSNAME}/${1}.MODULE"
action_needed "${MODIFSNAME}" "${2}" || return 0;
SRCDIR=`dirname \`canonicalize_path "${2}"\``
# #pragma convert has to be in the source file itself, i.e.
# putting it in an include file makes it only active
# for that include file.
# Thus we build a temporary file with the pragma prepended to
# the source file and we compile that themporary file.
echo "#line 1 \"${2}\"" > __tmpsrcf.c
echo "#pragma convert(819)" >> __tmpsrcf.c
echo "#line 1" >> __tmpsrcf.c
cat "${2}" >> __tmpsrcf.c
CMD="CRTCMOD MODULE(${TARGETLIB}/${1}) SRCSTMF('__tmpsrcf.c')"
# CMD="${CMD} SYSIFCOPT(*IFS64IO) OPTION(*INCDIRFIRST *SHOWINC *SHOWSYS)"
CMD="${CMD} SYSIFCOPT(*IFS64IO) OPTION(*INCDIRFIRST)"
CMD="${CMD} LOCALETYPE(*LOCALE) FLAG(10)"
CMD="${CMD} INCDIR('/qibm/proddata/qadrt/include'"
CMD="${CMD} '${TOPDIR}/include/curl' '${TOPDIR}/include' '${SRCDIR}'"
CMD="${CMD} '${TOPDIR}/packages/OS400'"
if [ "${WITH_ZLIB}" != "0" ]
then CMD="${CMD} '${ZLIB_INCLUDE}'"
fi
if [ "${WITH_LIBSSH2}" != "0" ]
then CMD="${CMD} '${LIBSSH2_INCLUDE}'"
fi
CMD="${CMD} ${INCLUDES})"
CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})"
CMD="${CMD} OUTPUT(${OUTPUT})"
CMD="${CMD} OPTIMIZE(${OPTIMIZE})"
CMD="${CMD} DBGVIEW(${DEBUG})"
DEFINES="${3} BUILDING_LIBCURL"
if [ "${WITH_ZLIB}" != "0" ]
then DEFINES="${DEFINES} HAVE_LIBZ HAVE_ZLIB_H"
fi
if [ "${WITH_LIBSSH2}" != "0" ]
then DEFINES="${DEFINES} USE_LIBSSH2 HAVE_LIBSSH2_H"
fi
if [ "${DEFINES}" ]
then CMD="${CMD} DEFINE(${DEFINES})"
fi
system "${CMD}"
rm -f __tmpsrcf.c
LINK=YES
}
# Determine DB2 object name from IFS name.
db2_name()
{
if [ "${2}" = 'nomangle' ]
then basename "${1}" |
tr 'a-z-' 'A-Z_' |
sed -e 's/\..*//' \
-e 's/^\(.\).*\(.........\)$/\1\2/'
else basename "${1}" |
tr 'a-z-' 'A-Z_' |
sed -e 's/\..*//' \
-e 's/^CURL_*/C/' \
-e 's/^\(.\).*\(.........\)$/\1\2/'
fi
}
# Copy IFS file replacing version info.
versioned_copy()
{
sed -e "s/@LIBCURL_VERSION@/${LIBCURL_VERSION}/g" \
-e "s/@LIBCURL_VERSION_MAJOR@/${LIBCURL_VERSION_MAJOR}/g" \
-e "s/@LIBCURL_VERSION_MINOR@/${LIBCURL_VERSION_MINOR}/g" \
-e "s/@LIBCURL_VERSION_PATCH@/${LIBCURL_VERSION_PATCH}/g" \
-e "s/@LIBCURL_VERSION_NUM@/${LIBCURL_VERSION_NUM}/g" \
-e "s/@LIBCURL_TIMESTAMP@/${LIBCURL_TIMESTAMP}/g" \
< "${1}" > "${2}"
}

View File

@ -0,0 +1 @@
{"leaves":["setenv","action_needed","canonicalize_path","make_module","db2_name","versioned_copy"],"root":"unitTest"}

View File

@ -0,0 +1,115 @@
@echo off
rem Inno Setup
rem Copyright (C) 1997-2012 Jordan Russell
rem Portions by Martijn Laan
rem For conditions of distribution and use, see LICENSE.TXT.
rem
rem Batch file to compile all projects with Unicode support
setlocal
if exist compilesettings.bat goto compilesettingsfound
:compilesettingserror
echo compilesettings.bat is missing or incomplete. It needs to be created
echo with either of the following lines, adjusted for your system:
echo.
echo set DELPHI2009ROOT=C:\Program Files\CodeGear\RAD Studio\6.0 [Path to Delphi 2009 (or 2010)]
echo or
echo set DELPHIXEROOT=C:\Program Files\Embarcadero\RAD Studio\8.0 [Path to Delphi XE (or later)]
goto failed2
:compilesettingsfound
set DELPHI2009ROOT=
set DELPHIXEROOT=
call .\compilesettings.bat
if "%DELPHI2009ROOT%"=="" if "%DELPHIXEROOT%"=="" goto compilesettingserror
if not "%DELPHI2009ROOT%"=="" if not "%DELPHIXEROOT%"=="" goto compilesettingserror
rem -------------------------------------------------------------------------
rem Compile each project separately because it seems Delphi
rem carries some settings (e.g. $APPTYPE) between projects
rem if multiple projects are specified on the command line.
rem Note:
rem Command line parameter "--peflags:1" below equals the
rem {$SetPEFlags IMAGE_FILE_RELOCS_STRIPPED} directive.
rem This causes the Delphi compiler to not just set the flag
rem but also it actually strips relocations. Used instead of
rem calling StripReloc like compile.bat does.
cd Projects
if errorlevel 1 goto exit
cd ISPP
if errorlevel 1 goto failed
echo - ISPP.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib" -E..\..\Files ISPP.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSsystem;system.win;winapi -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release" -E..\..\Files ISPP.dpr
)
if errorlevel 1 goto failed
cd ..
echo - Compil32.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --peflags:1 --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Compil32.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config --peflags:1 -NSsystem;system.win;winapi;vcl -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Compil32.dpr
)
if errorlevel 1 goto failed
echo - ISCC.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --peflags:1 --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCC.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config --peflags:1 -NSsystem;system.win;winapi -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCC.dpr
)
if errorlevel 1 goto failed
echo - ISCmplr.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCmplr.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSsystem;system.win;winapi -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCmplr.dpr
)
if errorlevel 1 goto failed
echo - SetupLdr.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --peflags:1 --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib;..\Components" -E..\Files SetupLdr.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config --peflags:1 -NSsystem;system.win;winapi -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components" -E..\Files SetupLdr.dpr
)
if errorlevel 1 goto failed
echo - Setup.dpr
if "%DELPHIXEROOT%"=="" (
"%DELPHI2009ROOT%\bin\dcc32.exe" --no-config --peflags:1 --string-checks:off -Q -B -H -W %1 -U"%DELPHI2009ROOT%\lib;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Setup.dpr
) else (
"%DELPHIXEROOT%\bin\dcc32.exe" --no-config --peflags:1 -NSsystem;system.win;winapi;vcl -Q -B -H -W %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components;..\Components\UniPs\Source" -E..\Files -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Setup.dpr
)
if errorlevel 1 goto failed
echo - Renaming files
cd ..\Files
if errorlevel 1 goto failed
move SetupLdr.exe SetupLdr.e32
if errorlevel 1 goto failed
move Setup.exe Setup.e32
if errorlevel 1 goto failed
echo Success!
cd ..
goto exit
:failed
echo *** FAILED ***
cd ..
:failed2
exit /b 1
:exit

View File

@ -0,0 +1 @@
{"leaves":["compilesettingserror","compilesettingsfound","failed","failed2"],"root":"unitTest"}

View File

@ -0,0 +1,138 @@
/**
* @file
* @brief Functions related to 3D quaternions and Euler angles.
* @author Krishna Vedala
*/
#include <stdio.h>
#ifdef __arm__ // if compiling for ARM-Cortex processors
#define LIBQUAT_ARM
#include <arm_math.h>
#else
#include <math.h>
#endif
#include <assert.h>
#include "geometry_datatypes.h"
/**
* @addtogroup quats 3D Quaternion operations
* @{
*/
/**
* Function to convert given Euler angles to a quaternion.
* \f{eqnarray*}{
* q_{0} & =
* &\cos\left(\frac{\phi}{2}\right)\cos\left(\frac{\theta}{2}\right)\cos\left(\frac{\psi}{2}\right)
* +
* \sin\left(\frac{\phi}{2}\right)\sin\left(\frac{\theta}{2}\right)\sin\left(\frac{\psi}{2}\right)\\
* q_{1} & =
* &\sin\left(\frac{\phi}{2}\right)\cos\left(\frac{\theta}{2}\right)\cos\left(\frac{\psi}{2}\right)
* -
* \cos\left(\frac{\phi}{2}\right)\sin\left(\frac{\theta}{2}\right)\sin\left(\frac{\psi}{2}\right)\\
* q_{2} & =
* &\cos\left(\frac{\phi}{2}\right)\sin\left(\frac{\theta}{2}\right)\cos\left(\frac{\psi}{2}\right)
* +
* \sin\left(\frac{\phi}{2}\right)\cos\left(\frac{\theta}{2}\right)\sin\left(\frac{\psi}{2}\right)\\
* q_{3} & =
* &\cos\left(\frac{\phi}{2}\right)\cos\left(\frac{\theta}{2}\right)\sin\left(\frac{\psi}{2}\right)
* -
* \sin\left(\frac{\phi}{2}\right)\sin\left(\frac{\theta}{2}\right)\cos\left(\frac{\psi}{2}\right)\\
* \f}
*
* @param [in] in_euler input Euler angles instance
* @returns converted quaternion
*/
quaternion quat_from_euler(const euler *in_euler)
{
quaternion out_quat;
if (!in_euler) // if null
{
fprintf(stderr, "%s: Invalid input.", __func__);
return out_quat;
}
quaternion temp;
float cy = cosf(in_euler->yaw * 0.5f);
float sy = sinf(in_euler->yaw * 0.5f);
float cp = cosf(in_euler->pitch * 0.5f);
float sp = sinf(in_euler->pitch * 0.5f);
float cr = cosf(in_euler->roll * 0.5f);
float sr = sinf(in_euler->roll * 0.5f);
temp.w = cr * cp * cy + sr * sp * sy;
temp.q1 = sr * cp * cy - cr * sp * sy;
temp.q2 = cr * sp * cy + sr * cp * sy;
temp.q3 = cr * cp * sy - sr * sp * cy;
return temp;
}
/**
* Function to convert given quaternion to Euler angles.
* \f{eqnarray*}{
* \phi & = &
* \tan^{-1}\left[\frac{2\left(q_0q_1+q_2q_3\right)}{1-2\left(q_1^2+q_2^2\right)}\right]\\
* \theta & =
* &-\sin^{-1}\left[2\left(q_0q_2-q_3q_1\right)\right]\\
* \psi & = &
* \tan^{-1}\left[\frac{2\left(q_0q_3+q_1q_2\right)}{1-2\left(q_2^2+q_3^2\right)}\right]\\
* \f}
*
* @param [in] in_quat input quaternion instance
* @returns converted euler angles
*/
euler euler_from_quat(const quaternion *in_quat)
{
euler out_euler;
if (!in_quat) // if null
{
fprintf(stderr, "%s: Invalid input.", __func__);
return out_euler;
}
out_euler.roll = atan2f(
2.f * (in_quat->w * in_quat->q1 + in_quat->q2 * in_quat->q3),
1.f - 2.f * (in_quat->q1 * in_quat->q1 + in_quat->q2 * in_quat->q2));
out_euler.pitch =
asinf(2.f * (in_quat->w * in_quat->q2 + in_quat->q1 * in_quat->q3));
out_euler.yaw = atan2f(
2.f * (in_quat->w * in_quat->q3 + in_quat->q1 * in_quat->q2),
1.f - 2.f * (in_quat->q2 * in_quat->q2 + in_quat->q3 * in_quat->q3));
return out_euler;
}
/** @} */
static void test()
{
quaternion quat = {0.7071f, 0.7071f, 0.f, 0.f};
euler eul = euler_from_quat(&quat);
printf("Euler: %.4g, %.4g, %.4g\n", eul.pitch, eul.roll, eul.yaw);
quaternion test_quat = quat_from_euler(&eul);
printf("Quaternion: %.4g %+.4g %+.4g %+.4g\n", test_quat.w,
test_quat.dual.x, test_quat.dual.y, test_quat.dual.z);
assert(fabsf(test_quat.w - quat.w) < .01);
assert(fabsf(test_quat.q1 - quat.q1) < .01);
assert(fabsf(test_quat.q2 - quat.q2) < .01);
assert(fabsf(test_quat.q3 - quat.q3) < .01);
}
/*
void commented_func()
{
return;
}
*/
int main()
{
test();
return 0;
}

View File

@ -0,0 +1 @@
{"leaves":["quat_from_euler(const euler *in_euler)","euler_from_quat(const quaternion *in_quat)","test()","main()"],"root":"unitTest"}

View File

@ -0,0 +1,840 @@
#include <iostream>
using namespace std;
/* -------------------- Namespaces -------------------- */
namespace test {
typedef const int type;
static constexpr type n = 0;
//Template functions
template <typename LType, typename RType> constexpr LType coalesce(const LType &left, const RType &right);
#if __cplusplus >= 201103L
template <typename LType, typename RType, typename ...Args>
constexpr LType coalesce(const LType &left, const RType &right, const Args &...args);
#endif
template <typename LType, typename RType> constexpr test::type compare(const LType &left, const RType &right);
template <typename Type> constexpr Type divide(const Type &left, const Type &right);
template <typename LType, typename RType> constexpr bool equals(const LType &left, const RType &right);
template <typename Return, typename Type> constexpr Return cast(const Type &val);
template <typename Type> constexpr Type minus(const Type &left, const Type &right);
template <typename Type> constexpr Type modulus(const Type &left, const Type &right);
template <typename Type> constexpr Type multiply(const Type &left, const Type &right);
template <typename Type> constexpr Type negate(const Type &val);
template <typename Type> constexpr bool isnot(const Type &val);
template <typename Type> constexpr bool isnull(const Type &val);
template <typename Type> constexpr Type plus(const Type &left, const Type &right);
template <typename Type> void print(const Type &val);
//Classes
class TestA2;
class TestA12;
template <class Type> struct TestB3;
struct TestD3;
class TestH3;
}
using test::coalesce;
/* -------------------- Template functions -------------------- */
template <typename LType, typename RType> constexpr LType test::coalesce(const LType &left, const RType &right){
return (left)? left : right;
}
#if __cplusplus >= 201103L
template <typename LType, typename RType, typename ...Args> constexpr LType test::coalesce(const LType &left, const RType &right, const Args &...args){
return (left)? left : coalesce<LType>(right,args...);
}
#endif
template <typename LType, typename RType> constexpr test::type test::compare(const LType &left, const RType &right){
return (left<right)? -1 : (right<left)? 1 : 0;
}
template <typename Type> constexpr Type test::divide(const Type &left, const Type &right){ return left/right; }
template <typename LType, typename RType> constexpr bool test::equals(const LType &left, const RType &right){ return (left==right); }
template <typename Return, typename Type> constexpr Return test::cast(const Type &val){ return (Return)val; }
template <typename Type> constexpr Type test::minus(const Type &left, const Type &right){ return left-right; }
template <typename Type> constexpr Type test::modulus(const Type &left, const Type &right){ return left%right; }
template <typename Type> constexpr Type test::multiply(const Type &left, const Type &right){ return left*right; }
template <typename Type> constexpr Type test::negate(const Type &val){ return -val; }
template <typename Type> constexpr bool test::isnot(const Type &val){ return !val; }
template <typename Type> constexpr bool test::isnull(const Type &val){ return (val==NULL); }
template <typename Type> constexpr Type test::plus(const Type &left, const Type &right){ return left+right; }
template <typename Type> void test::print(const Type &val){ std::cout << val << std::endl; }
template <typename Type = test::type, Type N = 42> constexpr Type test42() noexcept { return coalesce(N,42); }
/* -------------------- Classes -------------------- */
struct TestA1 {
int test(){ return 42; }
};
class test::TestA2 {
int test(){ return 42; }
};
struct TestA3 : TestA1 {
int test(){ return 42; }
};
class TestA4 : private TestA1 {
int test(){ return 42; }
};
struct TestA5 : protected TestA1 {
int test(){ return 42; }
};
class TestA6 : public TestA1 {
int test(){ return 42; }
};
struct TestA7 final : virtual TestA1 {
int test(){ return 42; }
};
class TestA8 : public virtual TestA1 {
int test(){ return 42; }
};
struct TestA9 final : virtual public TestA1 {
int test(){ return 42; }
};
class TestA10 : TestA1, test::TestA2, TestA3 {
int test(){ return 42; }
};
struct TestA11 : private TestA1, protected test::TestA2, public TestA3 {
int test(){ return 42; }
};
class test::TestA12 : TestA1, protected test::TestA2, public virtual TestA3 {
int test(){ return 42; }
};
struct TestA13 final : public virtual TestA1, protected test::TestA2, TestA3 {
int test(){ return 42; }
};
/* -------------------- Template classes -------------------- */
template <typename Type> struct TestB1 {
int test(){ return 42; }
};
template <typename Type> class TestB2 {
int test(){ return 42; }
};
template <class Type> struct test::TestB3 {
int test(){ return 42; }
};
template <class Type> class TestB4 {
int test(){ return 42; }
};
template <typename Type = int> struct TestB5 {
int test(){ return 42; }
};
template <int N = coalesce(test::n,42)> struct TestB6 {
int test(){ return 42; }
};
template <class Type = std::pair<int,double> > struct TestB7 {
int test(){ return 42; }
};
template <class Type1, typename Type2, int N> class TestB8 {
int test(){ return 42; }
};
template <typename Type1 = int, class Type2 = double, int N = 42> struct TestB9 {
int test(){ return 42; }
};
template <template <typename> typename Type> class TestB10 {
int test(){ return 42; }
};
template <template <typename,typename> class Type> struct TestB11 {
int test(){ return 42; }
};
template <template <class,class> typename Type = std::pair> class TestB12 {
int test(){ return 42; }
};
template <template <typename> class Type1, template <class,class> typename Type2 = std::pair> struct TestB13 {
int test(){ return 42; }
};
/* -------------------- Template class specialization -------------------- */
template <typename Type> struct TestC1 {
int test1(){ return 42; }
};
template <> struct TestC1<int> {
int test2(){ return 42; }
};
template <> struct TestC1< std::pair<int,double> > {
int test3(){ return 42; }
};
template <class Type1, typename Type2, int N> class TestC2 {
int test1(){ return 42; }
};
template <> class TestC2<int,double,42> {
int test2(){ return 42; }
};
template <typename Type> class TestC2<Type,double,42> {
int test3(){ return 42; }
};
template <typename Type1, class Type2> class TestC2<Type1,Type2,42> {
int test4(){ return 42; }
};
template <template <typename,typename> class Type, int N = 42> struct TestC3 {
int test1(){ return 42; }
};
template <> struct TestC3<std::pair,coalesce(test::n,42)> {
int test2(){ return 42; }
};
/* -------------------- Template class inheritance -------------------- */
template <typename Type> struct TestD1 {
int test(){ return 42; }
};
template <typename Type> class TestD2 : public TestD1<Type> {
int test(){ return 42; }
};
struct test::TestD3 : public TestD1<int>, private TestD2< std::pair<int,double> > {
int test(){ return 42; }
};
template <template <typename> class Type, int N = 42> class TestD4 final : public virtual TestD1<int>, private TestD2< Type<int> > {
int test(){ return 42; }
};
/* -------------------- Class method inline definitions -------------------- */
struct TestE1 {
int n;
//Constructors
constexpr TestE1() noexcept : n(0) {}
constexpr TestE1(int n) noexcept : n(n) {}
explicit constexpr TestE1(double n) noexcept : n((int)n) {}
explicit constexpr TestE1(int a, int b) noexcept : n(a+b) {}
//Conversion operators
explicit constexpr operator bool() const noexcept { return !!n; }
explicit constexpr operator double() const noexcept { return n; }
explicit constexpr operator unsigned int() const noexcept { return (n<0)? -n : n; }
//Assignment operators
friend void swap(TestE1 &left, TestE1 &right) noexcept {
using std::swap;
swap(left.n,right.n);
}
TestE1& operator=(TestE1 test) noexcept {
swap(*this,test);
return *this;
}
TestE1& operator+=(TestE1 test) noexcept {
n += test.n;
return *this;
}
TestE1& operator-=(TestE1 test) noexcept {
n -= test.n;
return *this;
}
TestE1& operator*=(TestE1 test) noexcept {
n *= test.n;
return *this;
}
TestE1& operator/=(TestE1 test) noexcept {
n /= test.n;
return *this;
}
TestE1& operator%=(TestE1 test) noexcept {
n %= test.n;
return *this;
}
TestE1& operator^=(TestE1 test) noexcept {
n ^= test.n;
return *this;
}
TestE1& operator&=(TestE1 test) noexcept {
n &= test.n;
return *this;
}
TestE1& operator|=(TestE1 test) noexcept {
n |= test.n;
return *this;
}
TestE1& operator<<=(TestE1 test) noexcept {
n <<= test.n;
return *this;
}
TestE1& operator>>=(TestE1 test) noexcept {
n >>= test.n;
return *this;
}
//Increment & decrement operators
TestE1& operator++() noexcept {
n++;
return *this;
}
TestE1 operator++(int) noexcept {
TestE1 temp = *this;
n++;
return temp;
}
TestE1& operator--() noexcept {
n--;
return *this;
}
TestE1 operator--(int) noexcept {
TestE1 temp = *this;
n--;
return temp;
}
//Arithmetic operators
friend constexpr TestE1 operator+(const TestE1 &test) noexcept { return +(test.n); }
friend constexpr TestE1 operator-(const TestE1 &test) noexcept { return -(test.n); }
friend constexpr TestE1 operator!(const TestE1 &test) noexcept { return !(test.n); }
friend constexpr TestE1 operator~(const TestE1 &test) noexcept { return ~(test.n); }
friend constexpr TestE1 operator+(const TestE1 &left, const TestE1 &right) noexcept { return (left.n + right.n); }
friend constexpr TestE1 operator-(const TestE1 &left, const TestE1 &right) noexcept { return (left.n - right.n); }
friend constexpr TestE1 operator*(const TestE1 &left, const TestE1 &right) noexcept { return (left.n * right.n); }
friend constexpr TestE1 operator/(const TestE1 &left, const TestE1 &right) noexcept { return (left.n / right.n); }
friend constexpr TestE1 operator%(const TestE1 &left, const TestE1 &right) noexcept { return (left.n % right.n); }
friend constexpr TestE1 operator^(const TestE1 &left, const TestE1 &right) noexcept { return (left.n ^ right.n); }
friend constexpr TestE1 operator&(const TestE1 &left, const TestE1 &right) noexcept { return (left.n & right.n); }
friend constexpr TestE1 operator|(const TestE1 &left, const TestE1 &right) noexcept { return (left.n | right.n); }
friend constexpr TestE1 operator<<(const TestE1 &left, const TestE1 &right) noexcept { return (left.n << right.n); }
friend constexpr TestE1 operator>>(const TestE1 &left, const TestE1 &right) noexcept { return (left.n >> right.n); }
friend constexpr TestE1 operator&&(const TestE1 &left, const TestE1 &right) noexcept { return (left.n && right.n); }
friend constexpr TestE1 operator||(const TestE1 &left, const TestE1 &right) noexcept { return (left.n || right.n); }
//Comparison operators
#if __cplusplus >= 202003L
friend constexpr bool operator<=>(const TestE1 &left, const TestE1 &right) noexcept {
return (left.n<right.n)? -1 : (right.n<left.n)? 1 : 0);
}
#else
friend constexpr bool operator==(const TestE1 &left, const TestE1 &right) noexcept { return (left.n == right.n); }
friend constexpr bool operator!=(const TestE1 &left, const TestE1 &right) noexcept { return (left.n != right.n); }
friend constexpr bool operator<(const TestE1 &left, const TestE1 &right) noexcept { return (left.n < right.n); }
friend constexpr bool operator<=(const TestE1 &left, const TestE1 &right) noexcept { return (left.n <= right.n); }
friend constexpr bool operator>(const TestE1 &left, const TestE1 &right) noexcept { return (left.n > right.n); }
friend constexpr bool operator>=(const TestE1 &left, const TestE1 &right) noexcept { return (left.n >= right.n); }
#endif
//Access operators
friend std::ostream& operator<<(std::ostream &out, const TestE1 &test){ return out << test.n; }
friend std::istream& operator>>(std::istream &in, TestE1 &test){ return in >> test.n; }
int& operator[](int) noexcept { return n; }
const int& operator[](int) const noexcept { return n; }
constexpr int operator()() const noexcept { return n; }
int& operator*() noexcept { return n; }
int* operator->() noexcept { return &n; }
//Methods
inline constexpr const volatile long int test1() const volatile noexcept { return 42; }
static inline constexpr const volatile long int test2() noexcept { return 42; }
virtual int test3() const volatile noexcept { return coalesce(n,42); }
virtual int test4() const volatile noexcept final { return coalesce(n,42); }
};
class TestE2 : public TestE1 {
virtual int test3() const volatile noexcept override final { return coalesce(n,42); }
};
/* -------------------- Class method outside definitions -------------------- */
struct TestF1 {
int n;
//Constructors
constexpr TestF1() noexcept;
constexpr TestF1(int n) noexcept;
explicit constexpr TestF1(double n) noexcept;
explicit constexpr TestF1(int a, int b) noexcept;
//Conversion operators
explicit constexpr operator bool() const noexcept;
explicit constexpr operator double() const noexcept;
explicit constexpr operator unsigned int() const noexcept;
//Assignment operators
friend void swap(TestF1 &left, TestF1 &right) noexcept;
TestF1& operator=(TestF1 test) noexcept;
TestF1& operator+=(TestF1 test) noexcept;
TestF1& operator-=(TestF1 test) noexcept;
TestF1& operator*=(TestF1 test) noexcept;
TestF1& operator/=(TestF1 test) noexcept;
TestF1& operator%=(TestF1 test) noexcept;
TestF1& operator^=(TestF1 test) noexcept;
TestF1& operator&=(TestF1 test) noexcept;
TestF1& operator|=(TestF1 test) noexcept;
TestF1& operator<<=(TestF1 test) noexcept;
TestF1& operator>>=(TestF1 test) noexcept;
//Increment & decrement operators
TestF1& operator++() noexcept;
TestF1 operator++(int) noexcept;
TestF1& operator--() noexcept;
TestF1 operator--(int) noexcept;
//Arithmetic operators
friend constexpr TestF1 operator+(const TestF1 &test) noexcept;
friend constexpr TestF1 operator-(const TestF1 &test) noexcept;
friend constexpr TestF1 operator!(const TestF1 &test) noexcept;
friend constexpr TestF1 operator~(const TestF1 &test) noexcept;
friend constexpr TestF1 operator+(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator-(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator*(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator/(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator%(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator^(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator&(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator|(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator<<(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator>>(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator&&(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr TestF1 operator||(const TestF1 &left, const TestF1 &right) noexcept;
//Comparison operators
#if __cplusplus >= 202003L
friend constexpr bool operator<=>(const TestF1 &left, const TestF1 &right) noexcept;
#else
friend constexpr bool operator==(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr bool operator!=(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr bool operator<(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr bool operator<=(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr bool operator>(const TestF1 &left, const TestF1 &right) noexcept;
friend constexpr bool operator>=(const TestF1 &left, const TestF1 &right) noexcept;
#endif
//Access operators
friend std::ostream& operator<<(std::ostream &out, const TestF1 &test);
friend std::istream& operator>>(std::istream &in, TestF1 &test);
int& operator[](int) noexcept;
const int& operator[](int) const noexcept;
constexpr int operator()() const noexcept;
int& operator*() noexcept;
int* operator->() noexcept;
//Methods
inline constexpr const volatile long int test1() const volatile noexcept;
static inline constexpr const volatile long int test2() noexcept;
virtual int test3() const volatile noexcept;
virtual int test4() const volatile noexcept final;
};
//Constructors
constexpr TestF1::TestF1() noexcept : n(0) {}
constexpr TestF1::TestF1(int n) noexcept : n(n) {}
constexpr TestF1::TestF1(double n) noexcept : n((int)n) {}
constexpr TestF1::TestF1(int a, int b) noexcept : n(a+b) {}
//Conversion operators
constexpr TestF1::operator bool() const noexcept { return !!n; }
constexpr TestF1::operator double() const noexcept { return n; }
constexpr TestF1::operator unsigned int() const noexcept { return (n<0)? -n : n; }
//Assignment operators
void swap(TestF1 &left, TestF1 &right) noexcept {
using std::swap;
swap(left.n,right.n);
}
TestF1& TestF1::operator=(TestF1 test) noexcept {
swap(*this,test);
return *this;
}
TestF1& TestF1::operator+=(TestF1 test) noexcept {
n += test.n;
return *this;
}
TestF1& TestF1::operator-=(TestF1 test) noexcept {
n -= test.n;
return *this;
}
TestF1& TestF1::operator*=(TestF1 test) noexcept {
n *= test.n;
return *this;
}
TestF1& TestF1::operator/=(TestF1 test) noexcept {
n /= test.n;
return *this;
}
TestF1& TestF1::operator%=(TestF1 test) noexcept {
n %= test.n;
return *this;
}
TestF1& TestF1::operator^=(TestF1 test) noexcept {
n ^= test.n;
return *this;
}
TestF1& TestF1::operator&=(TestF1 test) noexcept {
n &= test.n;
return *this;
}
TestF1& TestF1::operator|=(TestF1 test) noexcept {
n |= test.n;
return *this;
}
TestF1& TestF1::operator<<=(TestF1 test) noexcept {
n <<= test.n;
return *this;
}
TestF1& TestF1::operator>>=(TestF1 test) noexcept {
n >>= test.n;
return *this;
}
//Increment & decrement operators
TestF1& TestF1::operator++() noexcept {
n++;
return *this;
}
TestF1 TestF1::operator++(int) noexcept {
TestF1 temp = *this;
n++;
return temp;
}
TestF1& TestF1::operator--() noexcept {
n--;
return *this;
}
TestF1 TestF1::operator--(int) noexcept {
TestF1 temp = *this;
n--;
return temp;
}
//Arithmetic operators
constexpr TestF1 operator+(const TestF1 &test) noexcept { return +(test.n); }
constexpr TestF1 operator-(const TestF1 &test) noexcept { return -(test.n); }
constexpr TestF1 operator!(const TestF1 &test) noexcept { return !(test.n); }
constexpr TestF1 operator~(const TestF1 &test) noexcept { return ~(test.n); }
constexpr TestF1 operator+(const TestF1 &left, const TestF1 &right) noexcept { return (left.n + right.n); }
constexpr TestF1 operator-(const TestF1 &left, const TestF1 &right) noexcept { return (left.n - right.n); }
constexpr TestF1 operator*(const TestF1 &left, const TestF1 &right) noexcept { return (left.n * right.n); }
constexpr TestF1 operator/(const TestF1 &left, const TestF1 &right) noexcept { return (left.n / right.n); }
constexpr TestF1 operator%(const TestF1 &left, const TestF1 &right) noexcept { return (left.n % right.n); }
constexpr TestF1 operator^(const TestF1 &left, const TestF1 &right) noexcept { return (left.n ^ right.n); }
constexpr TestF1 operator&(const TestF1 &left, const TestF1 &right) noexcept { return (left.n & right.n); }
constexpr TestF1 operator|(const TestF1 &left, const TestF1 &right) noexcept { return (left.n | right.n); }
constexpr TestF1 operator<<(const TestF1 &left, const TestF1 &right) noexcept { return (left.n << right.n); }
constexpr TestF1 operator>>(const TestF1 &left, const TestF1 &right) noexcept { return (left.n >> right.n); }
constexpr TestF1 operator&&(const TestF1 &left, const TestF1 &right) noexcept { return (left.n && right.n); }
constexpr TestF1 operator||(const TestF1 &left, const TestF1 &right) noexcept { return (left.n || right.n); }
//Comparison operators
#if __cplusplus >= 202003L
constexpr bool operator<=>(const TestF1 &left, const TestF1 &right) noexcept {
return (left.n<right.n)? -1 : (right.n<left.n)? 1 : 0);
}
#else
constexpr bool operator==(const TestF1 &left, const TestF1 &right) noexcept { return (left.n == right.n); }
constexpr bool operator!=(const TestF1 &left, const TestF1 &right) noexcept { return (left.n != right.n); }
constexpr bool operator<(const TestF1 &left, const TestF1 &right) noexcept { return (left.n < right.n); }
constexpr bool operator<=(const TestF1 &left, const TestF1 &right) noexcept { return (left.n <= right.n); }
constexpr bool operator>(const TestF1 &left, const TestF1 &right) noexcept { return (left.n > right.n); }
constexpr bool operator>=(const TestF1 &left, const TestF1 &right) noexcept { return (left.n >= right.n); }
#endif
//Access operators
std::ostream& operator<<(std::ostream &out, const TestF1 &test){ return out << test.n; }
std::istream& operator>>(std::istream &in, TestF1 &test){ return in >> test.n; }
int& TestF1::operator[](int) noexcept { return n; }
const int& TestF1::operator[](int) const noexcept { return n; }
constexpr int TestF1::operator()() const noexcept { return n; }
int& TestF1::operator*() noexcept { return n; }
int* TestF1::operator->() noexcept { return &n; }
//Methods
inline constexpr const volatile long int TestF1::test1() const volatile noexcept { return 42; }
inline constexpr const volatile long int TestF1::test2() noexcept { return 42; }
int TestF1::test3() const volatile noexcept { return coalesce(n,42); }
int TestF1::test4() const volatile noexcept { return coalesce(n,42); }
/* -------------------- Template class method outside definitions -------------------- */
template <typename Type> class TestG1 {
Type n;
//Constructors
constexpr TestG1() noexcept;
constexpr TestG1(Type n) noexcept;
explicit constexpr TestG1(Type a, Type b) noexcept;
//Conversion operators
explicit constexpr operator bool() const noexcept;
explicit constexpr operator unsigned int() const noexcept;
explicit constexpr operator Type() const noexcept;
//Assignment operators
friend void swap<Type>(TestG1 &left, TestG1 &right) noexcept;
TestG1& operator=(TestG1 test) noexcept;
//Methods
inline constexpr const volatile Type test1() const volatile noexcept;
static inline constexpr const volatile Type test2() noexcept;
virtual Type test3() const volatile noexcept;
virtual Type test4() const volatile noexcept final;
};
//Constructors
template <typename Type> constexpr TestG1<Type>::TestG1() noexcept : n(0) {}
template <typename Type> constexpr TestG1<Type>::TestG1(Type n) noexcept : n(n) {}
template <typename Type> constexpr TestG1<Type>::TestG1(Type a, Type b) noexcept : n(a+b) {}
//Conversion operators
template <typename Type> constexpr TestG1<Type>::operator bool() const noexcept { return !!n; }
template <typename Type> constexpr TestG1<Type>::operator unsigned int() const noexcept { return (n<0)? -n : n; }
template <typename Type> constexpr TestG1<Type>::operator Type() const noexcept { return n; }
//Assignment operators
template <typename Type> void swap(TestG1<Type> &left, TestG1<Type> &right) noexcept {
using std::swap;
swap(left.n,right.n);
}
template <typename Type> TestG1<Type>& TestG1<Type>::operator=(TestG1<Type> test) noexcept {
swap(*this,test);
return *this;
}
//Methods
template <typename Type> inline constexpr const volatile Type TestG1<Type>::test1() const volatile noexcept { return 42; }
template <typename Type> inline constexpr const volatile Type TestG1<Type>::test2() noexcept { return 42; }
template <typename Type> Type TestG1<Type>::test3() const volatile noexcept { return coalesce(n,42); }
template <typename Type> Type TestG1<Type>::test4() const volatile noexcept { return coalesce(n,42); }
/* -------------------- Type attributes -------------------- */
#define DEPRECATED __attribute__((deprecated))
class DEPRECATED TestH1 {
int test(){ return 42; }
};
#if __cplusplus >= 201402L
struct [[deprecated]] TestH2 {
int test(){ return 42; }
};
class [[gnu::warn_unused]] test::TestH3 : TestH2 {
int test(){ return 42; }
};
struct [[deprecated("[DEPRECATED]")]] [[gnu::warn_unused]] TestH4 {
int test(){ return 42; }
};
class [[deprecated("[DEPRECATED]"), gnu::warn_unused]] TestH5 : TestH4 {
int test(){ return 42; }
};
#endif
/* -------------------- Functors as parameter -------------------- */
static inline constexpr const unsigned int test_with_functor(void (*functor)(unsigned int&, double)) noexcept {
unsigned int n = 42;
functor(n,3.14);
return n;
}
/* -------------------- Main -------------------- */
int main(){
cout << "Hello World !" << endl;
cout << test42() << endl;
}

View File

@ -0,0 +1 @@
{"leaves":["test42","swap","operator+","operator-","operator!","operator~","operator+","operator-","operator*","operator%","operator^","operator&","operator|","operator<<","operator>>","operator&&","operator||","operator<=>","operator==","operator!=","operator<","operator<=","operator>","operator>=","operator<<","operator>>","swap","test_with_functor","main"],"nodes":[{"leaves":["test"],"name":"TestA1"},{"leaves":["test"],"name":"test::TestA2"},{"leaves":["test"],"name":"TestA3"},{"leaves":["test"],"name":"TestA4"},{"leaves":["test"],"name":"TestA5"},{"leaves":["test"],"name":"TestA6"},{"leaves":["test"],"name":"TestA7"},{"leaves":["test"],"name":"TestA8"},{"leaves":["test"],"name":"TestA9"},{"leaves":["test"],"name":"TestA10"},{"leaves":["test"],"name":"TestA11"},{"leaves":["test"],"name":"test::TestA12"},{"leaves":["test"],"name":"TestA13"},{"leaves":["test"],"name":"TestB1"},{"leaves":["test"],"name":"TestB2"},{"leaves":["test"],"name":"test::TestB3"},{"leaves":["test"],"name":"TestB4"},{"leaves":["test"],"name":"TestB5"},{"leaves":["test"],"name":"TestB6"},{"leaves":["test"],"name":"TestB7"},{"leaves":["test"],"name":"TestB8"},{"leaves":["test"],"name":"TestB9"},{"leaves":["test"],"name":"TestB10"},{"leaves":["test"],"name":"TestB11"},{"leaves":["test"],"name":"TestB12"},{"leaves":["test"],"name":"TestB13"},{"leaves":["test1","test2","test3"],"name":"TestC1"},{"leaves":["test1","test2","test3","test4"],"name":"TestC2"},{"leaves":["test1","test2"],"name":"TestC3"},{"leaves":["test"],"name":"TestD1"},{"leaves":["test"],"name":"TestD2"},{"leaves":["test"],"name":"test::TestD3"},{"leaves":["test"],"name":"TestD4"},{"leaves":["operator bool","operator double","operator unsigned int","swap","operator=","operator+=","operator-=","operator*=","operator%=","operator^=","operator&=","operator|=","operator<<=","operator>>=","operator++","operator++","operator--","operator--","operator+","operator-","operator!","operator~","operator+","operator-","operator*","operator%","operator^","operator&","operator|","operator<<","operator>>","operator&&","operator||","operator<=>","operator==","operator!=","operator<","operator<=","operator>","operator>=","operator<<","operator>>","operator[]","operator[]","operator()","operator*","operator->","test1","test2","test3","test4"],"name":"TestE1"},{"leaves":["test3"],"name":"TestE2"},{"leaves":["test"],"name":"TestH1"},{"leaves":["test"],"name":"TestH2"},{"leaves":["test"],"name":"test::TestH3"},{"leaves":["test"],"name":"TestH4"},{"leaves":["test"],"name":"TestH5"},{"leaves":["coalesce","coalesce","compare","divide","equals","cast","minus","modulus","multiply","negate","isnot","isnull","plus","print"],"name":"test"},{"leaves":["operator bool","operator double","operator unsigned int","operator=","operator+=","operator-=","operator*=","operator%=","operator^=","operator&=","operator|=","operator<<=","operator>>=","operator++","operator++","operator--","operator--","operator[]","operator[]","operator()","operator*","operator->","test1","test2","test3","test4"],"name":"TestF1"},{"leaves":["operator bool","operator unsigned int","operator Type","operator=","test1","test2","test3","test4"],"name":"TestG1"}],"root":"unitTest"}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
{"leaves":["strVal","decStrVal","hexStrVal","getKwClassFromName","getAsciiLenFromBase64Len","base64ToAscii","cutString","RGB2int","convertIntToFormatType"],"nodes":[{"leaves":["getLangFromXmlFileName","getXmlFilePathFromLangName","addLanguageFromXml","switchToLang"],"name":"LocalizationSwitcher"},{"leaves":["getThemeFromXmlFileName"],"name":"ThemeSwitcher"},{"leaves":["getWindowsVersion","reloadStylers","reloadLang","getSpecialFolderLocation","getSettingsFolder","load","destroyInstance","saveConfig_xml","setWorkSpaceFilePath","removeTransparent","SetTransparent","isExistingExternalLangName","getUserDefinedLangNameFromExt","getExternalLangIndexFromName","getULCFromName","getCurLineHilitingColour","setCurLineHilitingColour","setFontList","isInFontList","getLangKeywordsFromXmlTree","getExternalLexerFromXmlTree","addExternalLangToEnd","getUserStylersFromXmlTree","getUserParametersFromXmlTree","getUserDefineLangsFromXmlTree","getShortcutsFromXmlTree","getMacrosFromXmlTree","getUserCmdsFromXmlTree","getPluginCmdsFromXmlTree","getScintKeysFromXmlTree","getBlackListFromXmlTree","initMenuKeys","initScintillaKeys","reloadContextMenuFromXmlTree","getCmdIdFromMenuEntryItemName","getPluginCmdIdFromMenuEntryItemName","getContextMenuFromXmlTree","setWorkingDir","loadSession","getSessionFromXmlTree","feedFileListParameters","feedProjectPanelsParameters","feedFileBrowserParameters","feedFindHistoryParameters","feedShortcut","feedMacros","getActions","feedUserCmds","feedPluginCustomizedCmds","feedScintKeys","feedBlacklist","getShortcuts","feedUserLang","importUDLFromFile","exportUDLToFile","getLangFromExt","setCloudChoice","removeCloudChoice","isCloudPathChanged","writeSettingsFilesOnCloudForThe1stTime","writeUserDefinedLang","insertCmd","insertMacro","insertUserCmd","insertPluginCmd","insertScintKey","writeSession","writeShortcuts","addUserLangToEnd","removeUserLang","feedUserSettings","feedUserKeywordList","feedUserStyles","feedStylerArray","writeRecentFileHistorySettings","writeProjectPanelsSettings","writeFileBrowserSettings","writeHistory","getChildElementByAttribut","getLangIDFromStr","getLocPathFromStr","feedKeyWordsParameters","feedGUIParameters","feedScintillaParam","feedDockingManager","writeScintillaParams","createXmlTreeFromGUIParams","writeFindHistory","insertDockingParamNode","writePrintSetting","writeExcludedLangList","insertGUIConfigBoolNode","langTypeToCommandID","getWinVersionStr","getWinVerBitStr","writeStyles","insertTabInfo","writeStyle2Element","insertUserLang2Tree","stylerStrOp","addUserModifiedIndex","addPluginModifiedIndex","addScintillaModifiedIndex","safeWow64EnableWow64FsRedirection"],"name":"NppParameters"},{"leaves":["addLexerStyler","eraseAll"],"name":"LexerStylerArray"},{"leaves":["addStyler"],"name":"StyleArray"},{"leaves":["now"],"name":"Date"}],"root":"unitTest"}

View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Web;
using Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OpenIdConnect;
namespace $OwinNamespace$
{
public partial class $OwinClass$
{
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"];
private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"];
private static string tenantId = ConfigurationManager.AppSettings["ida:TenantId"];
private static string postLogoutRedirectUri = ConfigurationManager.AppSettings["ida:PostLogoutRedirectUri"];
private static string authority = aadInstance + tenantId;
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions());
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
ClientId = clientId,
Authority = authority,
PostLogoutRedirectUri = postLogoutRedirectUri
});
}
}
}

View File

@ -0,0 +1 @@
{"leaves":["ConfigureAuth"],"root":"unitTest"}

View File

@ -0,0 +1 @@
{"leaves":["setTime","getTime","printTime","PredictTime","PrintTimeSecondsHoursDays"],"root":"unitTest"}

View File

@ -0,0 +1,152 @@
! Fortran Time Module
!
! To Use:
! 1) declare a ClockTime variable: type (ClockTime) :: Timer
! 2) Set a beginning Time: call set(Timer)
! 3a) Print Elapsed Time: printTime(Timer)
! 3b) Print Remaining Time: printRemainingTime(Timer,ratio)
! 3c) Predict Completion Time: predict(Timer,ratio)
!
! Copyright (c) 2008 Charles O'Neill
!
! Permission is hereby granted, free of charge, to any person
! obtaining a copy of this software and associated documentation
! files (the "Software"), to deal in the Software without
! restriction, including without limitation the rights to use,
! copy, modify, merge, publish, distribute, sublicense, and/or sell
! copies of the Software, and to permit persons to whom the
! Software is furnished to do so, subject to the following
! conditions:
!
! The above copyright notice and this permission notice shall be
! included in all copies or substantial portions of the Software.
!
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
! EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
! OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
! NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
! HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
! WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
! FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
! OTHER DEALINGS IN THE SOFTWARE.
module ClockTiming
implicit none
! Integer Precision
integer, parameter :: IS = 2
! Real Single Precision
integer, parameter :: SP = 4 ! 4 gives 32 bits
! Real Double Precision
integer, parameter :: DP = 8 ! 4 gives 32 bits, 8 gives 64 bits (double)
type ClockTime
private
real(SP) :: time_begin
end type
! Time Constants
real(SP),parameter :: SecondsPerMinutes = 60.0
real(SP),parameter :: MinutesPerHour = 60.0
real(SP),parameter :: HoursPerDay = 24.0
real(SP),parameter :: PrintMaxSeconds = 90.0d0
real(SP),parameter :: PrintMaxMinutes = SecondsPerMinutes*MinutesPerHour
real(SP),parameter :: PrintMaxHours = SecondsPerMinutes*MinutesPerHour*HoursPerDay
!.................................
! Public Interfaces to ClockTime Data
! Resets timer to zero
interface set
module procedure setTime
end interface
! Returns elapsed time
interface get
module procedure getTime
end interface
! Prints total elapsed time
interface printTime
module procedure printTime
end interface
! Prints total remaining time
interface printRemainingTime
module procedure PrintTimeSecondsHoursDays
end interface
! Predicts total elapsed time
interface predict
module procedure PredictTime
end interface
private :: setTime, getTime, PredictTime, PrintTimeSecondsHoursDays
contains
! Resets timer to zero
subroutine setTime(this)
implicit none
type (ClockTime) :: this
! CPU_TIME is the system's clock time function
CALL CPU_TIME ( this%time_begin )
end subroutine setTime
! Returns elapsed time
function getTime(this)
implicit none
real(SP) :: getTime, time_end
type (ClockTime) :: this
CALL CPU_TIME ( time_end )
getTime=time_end - this%time_begin
end function getTime
! Prints total elapsed time
subroutine printTime(this)
implicit none
type (ClockTime) :: this
write(*,'(/ '' Operation time '', f8.3, '' seconds.'')') getTime(this)
end subroutine printTime
! Predicts remaining time before completion
function PredictTime(this,CompletionRatio)
implicit none
real(SP) :: PredictTime
type (ClockTime) :: this
real(SP) :: CompletionRatio
! Definitions:
! CompletionRatio = Ratio of Completed Tasks to Total Tasks
! Time_Remaining = Time_TotalPredicted - Time_elapsed
! = Time_elapsed/CompletionRatio*(1-CompletionRatio)
PredictTime = getTime(this)*(1-CompletionRatio)/CompletionRatio
end function PredictTime
! Pretty Prints remaining time
subroutine PrintTimeSecondsHoursDays(this, PredictionRatio)
! Choose to output either seconds, hours or days depending on magnitude
implicit none
type (ClockTime) :: this
real(SP) :: PredictionRatio
real(SP) :: Seconds
Seconds = PredictTime(this,PredictionRatio)
if(Seconds<PrintMaxSeconds)then
! Seconds
write(*,'( f5.1 , '' seconds'')',advance='no') Seconds
elseif(Seconds<PrintMaxMinutes)then
! Minutes
write(*,'( f5.1 , '' minutes'')',advance='no') Seconds/SecondsPerMinutes
elseif(Seconds<PrintMaxHours)then
! Hours
write(*,'( f5.1 , '' hours'')',advance='no') Seconds/SecondsPerMinutes/MinutesPerHour
else
! Days
write(*,'( f5.1 , '' days'')',advance='no') Seconds/SecondsPerMinutes/MinutesPerHour/HoursPerDay
endif
end subroutine
end module

View File

@ -0,0 +1 @@
{"leaves":["printtext"],"root":"unitTest"}

View File

@ -0,0 +1,17 @@
program hello_world3
implicit none
character*32 text
c
text = 'Hello World'
c
call printtext(text)
end
subroutine printtext(tekst)
implicit none
character*32 tekst
c
write (*,*) tekst
c
end

View File

@ -0,0 +1,108 @@
# Everything after "#" is a comment.
# A file is a class!
# (optional) class definition:
class_name MyClass
# Inheritance:
extends BaseClass
# Member variables.
var a = 5
var s = "Hello"
var arr = [1, 2, 3]
var dict = {"key": "value", 2: 3}
var other_dict = {key = "value", other_key = 2}
var typed_var: int
var inferred_type := "String"
var ss = '''
func invalid_single_quote():
pass
'''
var sd = """
func invalid_func_double_quote():
pass
"""
# Constants.
const ANSWER = 42
const THE_NAME = "Charly"
# Enums.
enum {UNIT_NEUTRAL, UNIT_ENEMY, UNIT_ALLY}
enum Named {THING_1, THING_2, ANOTHER_THING = -1}
# Built-in vector types.
var v2 = Vector2(1, 2)
var v3 = Vector3(1, 2, 3)
# Functions.
func my_func(arg1 : int = sin(1), arg2 : String = "") -> void:
return
func some_function(param1, param2, param3):
if param1 < local_const:
print(param1)
elif param2 > 5:
print(param2)
else:
print("Fail!")
for i in range(20):
print(i)
while param2 != 0:
param2 -= 1
match param3:
3:
print("param3 is 3!")
_:
print("param3 is not 3!")
var local_var = param1 + 3
return local_var
# Functions override functions with the same name on the base/super class.
# If you still want to call them, use "super":
func something(p1, p2):
super(p1, p2)
# It's also possible to call another function in the super class:
func other_something(p1, p2):
super.something(p1, p2)
# Inner class
class Something:
var a = 10
func inner_function():
return
func my_func(arg1 : int = sin(1), arg2 : String = "") -> void:
return
# Inner class with inheritance
class fish extends Node2D:
func _init():
_randomize()
func _randomize():
randomize()
_size = rand_range(0.75,2.0)
# Constructor
func _init():
print("Constructed!")
var lv = Something.new()
print(lv.a)

View File

@ -0,0 +1 @@
{"leaves":["my_func(arg1 : int = sin(1), arg2 : String = \"\") -> void","some_function(param1, param2, param3)","something(p1, p2)","other_something(p1, p2)","_init()"],"nodes":[{"leaves":["inner_function()","my_func(arg1 : int = sin(1), arg2 : String = \"\") -> void"],"name":"Something"},{"leaves":["_init()","_randomize()"],"name":"fish"}],"root":"unitTest"}

View File

@ -0,0 +1 @@
{"leaves":["main","getAllUsernames","getAllUserIds","getUsernameById","sql"],"root":"unitTest"}

View File

@ -0,0 +1,116 @@
-- Necessary:
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
-- Incidental:
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Main where
import Control.Monad
import Data.Hashable
import Data.List
import Data.Text (Text)
import Data.Traversable (for)
import Data.Typeable
import Haxl.Core
import System.Random
import qualified Data.Text as Text
main :: IO ()
main = do
let stateStore = stateSet UserState{} stateEmpty
env0 <- initEnv stateStore ()
names <- runHaxl env0 getAllUsernames
print names
-- Data source API.
getAllUsernames :: Haxl [Name]
getAllUsernames = do
userIds <- getAllUserIds
for userIds $ \userId -> do
getUsernameById userId
getAllUserIds :: Haxl [Id]
getAllUserIds = dataFetch GetAllIds
getUsernameById :: Id -> Haxl Name
getUsernameById userId = dataFetch (GetNameById userId)
-- Aliases.
type Haxl = GenHaxl () ()
type Id = Int
type Name = Text
-- Data source implementation.
data UserReq a where
GetAllIds :: UserReq [Id]
GetNameById :: Id -> UserReq Name
deriving (Typeable)
deriving instance Eq (UserReq a)
instance Hashable (UserReq a) where
hashWithSalt s GetAllIds = hashWithSalt s (0::Int)
hashWithSalt s (GetNameById a) = hashWithSalt s (1::Int, a)
deriving instance Show (UserReq a)
instance ShowP UserReq where showp = show
instance StateKey UserReq where
data State UserReq = UserState {}
instance DataSourceName UserReq where
dataSourceName _ = "UserDataSource"
instance DataSource u UserReq where
fetch _state _flags _userEnv = SyncFetch $ \blockedFetches -> do
let
allIdVars :: [ResultVar [Id]]
allIdVars = [r | BlockedFetch GetAllIds r <- blockedFetches]
idStrings :: [String]
idStrings = map show ids
ids :: [Id]
vars :: [ResultVar Name]
(ids, vars) = unzip
[(userId, r) | BlockedFetch (GetNameById userId) r <- blockedFetches]
unless (null allIdVars) $ do
allIds <- sql "select id from ids"
mapM_ (\r -> putSuccess r allIds) allIdVars
unless (null ids) $ do
names <- sql $ unwords
[ "select name from names where"
, intercalate " or " $ map ("id = " ++) idStrings
, "order by find_in_set(id, '" ++ intercalate "," idStrings ++ "')"
]
mapM_ (uncurry putSuccess) (zip vars names)
-- Mock SQL API.
class SQLResult a where
mockResult :: IO a
instance SQLResult a => SQLResult [a] where
mockResult = replicateM 10 mockResult
instance SQLResult Name where
-- An infinite number of employees, all named Jim.
mockResult = ("Jim" `Text.append`) . Text.pack . show <$> randomRIO (1::Int, 100)
instance SQLResult Id where
mockResult = randomRIO (1, 100)
sql :: SQLResult a => String -> IO a
sql query = print query >> mockResult

View File

@ -0,0 +1,258 @@
/****************************************************************
** **
** Name: AsyncFX **
** Author: Andreas Falkenhahn **
** Version: 1.2 **
** Date: 17.01.19 **
** Interpreter: Hollywood 8.0 **
** Licence: Sample program for Hollywood **
** Function: Demonstrates asynchronous transition effects **
** **
** History: **
** **
** 1.2: (07.01.19) **
** **
** - uses the new @DIRECTORY preprocessor command now which **
** will automatically link all pics when compiling **
** **
** 1.1: (29.03.13) **
** **
** - added BeginRefresh()/EndRefresh() section for optimized **
** drawing on supported systems **
** **
** 1.0: (17.09.08) **
** **
** - initial release **
** **
****************************************************************/
/*
** Important! Check if the used Hollywood version is at least
** version 8.0!
*/
@VERSION 8,0
@DIRECTORY 1, "pics"
@SPRITE 1, "buttons.png", {Frames = 2, Width = 137, Height = 24, Transparency = $ff0000}
/*
** Initial display dimensions
*/
@DISPLAY {Width = 800, Height = 600}
/* check if a picture is already on screen */
Function p_CheckPic(x)
For Local k = 0 To 15
If p[k].brush = x Then Return(True)
Next
Return(False)
EndFunction
/* select a random effect */
Function p_ChooseFX(use_globfx)
Local found = False
Local type
; do we want a global effect or a new effect for every object?
If (use_globfx = True) And (bstate = 2) Then Return(globfx)
While found = False
type = GetRandomFX(True)
; no #SCROLL effects please! They'd corrupt the display because we aren't using layers!
Switch type
Case #SCROLLWEST
Case #SCROLLEAST
Case #SCROLLNORTH
Case #SCROLLSOUTH
Case #SCROLLNORTHEAST
Case #SCROLLSOUTHEAST
Case #SCROLLSOUTHWEST
Case #SCROLLNORTHWEST
Default
found = True
EndSwitch
Wend
Return(type)
EndFunction
/* start new transition effect */
Function p_TOFunc(msg)
Local t
Local k = msg.userdata
; choose a new global effect if we're in static mode!
If (k = 0) And (bstate = 2) Then globfx = p_ChooseFX(False)
; randomly choose a new picture but it must not be on screen!
Repeat
t = Rnd(num)
Until p_CheckPic(t) = False
; remember picture
p[k].brush = t
; go!
p[k].drawfunc = DisplayBrushFX(p[k].brush + 1, p[k].x * 200, p[k].y * 150, {Async = True, Type = p_ChooseFX(True), Parameter = #WHITE})
p[k].active = True
EndFunction
Function p_SyncedRestart()
For Local k = 0 To 15 Do p_TOFunc({userdata = k})
EndFunction
/* our main loop */
Function p_MainLoop()
BeginRefresh
For Local k = 0 To 15
If p[k].active = True
If AsyncDrawFrame(p[k].drawfunc) = True
p[k].active = False
If bstate = 2
; We're in static mode --> make sure our FX are absolutely sync'ed
If k = 15 Then SetTimeout(Nil, p_SyncedRestart, 1000)
p[k].cleartimeout = False
Else
; FX has finished!
; --> wait 1 second and then display next pic
; note that we have to use SetTimeout() because we are in a callback and must
; not call functions that block the system (e.g. do not use Wait() in a callback!)
p[k].timeout = SetTimeout(Nil, p_TOFunc, 1000, k)
p[k].cleartimeout = True
EndIf
EndIf
EndIf
Next
EndRefresh
EndFunction
/* start all effects */
Function p_Start16FX()
; start from new!
For Local k = 0 To 15
p[k].drawfunc = DisplayBrushFX(p[k].brush + 1, p[k].x * 200, p[k].y * 150, {Async = True, Type = p_ChooseFX(True), Parameter = #WHITE})
p[k].active = True
Next
EndFunction
/* scan files and start the transition effects */
Function p_Init()
Local t
; count files
num = CountDirectoryEntries(1)
; load brushes
For Local k = 1 to num Do LoadBrush(k, GetDirectoryEntry(1, PadNum(k, 2) .. ".jpg"))
p = {}
For Local k = 0 To 15 Do p[k] = {brush = -1}
; generate initial picture layout
For Local k = 0 To 15
Repeat
t = Rnd(num)
Until p_CheckPic(t) = False
p[k].brush = t
Next
Local k = 0
; generate x & y coordinates for our FX
For Local y = 0 To 3
For Local x = 0 To 3
p[k].x = x
p[k].y = y
k = k + 1
Next
Next
; start all FX at once
p_Start16FX()
EndFunction
/* this function gets called when the user presses a button */
Function p_EventFunc(msg)
If msg.id = bstate Then Return
bstate = msg.id
; update button state
DisplaySprite(1, 654, 570, bstate)
; cancel all async drawings or clear timeouts
For Local k = 0 To 15
If p[k].active = True
CancelAsyncDraw(p[k].drawfunc)
p[k].active = False
Else
If p[k].cleartimeout = True Then ClearTimeout(p[k].timeout)
EndIf
Next
; clear screen
Box(0, 0, 800, 600, #BLACK)
; choose a new global effect if we're in static mode
If bstate = 2 Then globfx = p_ChooseFX(False)
p_Start16FX()
EndFunction
p_Init()
SetFillStyle(#FILLCOLOR)
SetInterval(Nil, p_MainLoop, 1000 \ 50) ; 50 fps
bstate = 1
MakeButton(1, #SIMPLEBUTTON, 654, 570, 64, 24, {OnMouseUp = p_EventFunc})
MakeButton(2, #SIMPLEBUTTON, 727, 570, 64, 24, {OnMouseUp = p_EventFunc})
DisplaySprite(1, 654, 570)
EscapeQuit(True)
Repeat
WaitEvent
Forever

View File

@ -0,0 +1 @@
{"leaves":["p_CheckPic","p_ChooseFX","p_TOFunc","p_SyncedRestart","p_MainLoop","p_Start16FX","p_Init","p_EventFunc"],"root":"unitTest"}

View File

@ -0,0 +1,28 @@
[Flow]
CurrentPhase=OOBEBoot,Start
CurrentOperation=132,end
OperationResult=0
[BootEntries]
DownlevelCurrent={B92EB69E-B2DB-11E7-934D-C49DED11D19D}
DownlevelDefault={B92EB69E-B2DB-11E7-934D-C49DED11D19D}
NewOS={541947F5-B2DC-11E7-BA3E-C49DED11D19E}
Rollback={7254A080-1510-4E85-AC0F-E7FB3D444736}
RollbackExternal=No
[BootManager]
Timeout=0
[OldOS]
ConnectedStandby=Yes
[RecoveryPartition]
Backup=Yes
[Quarantine.WinOld]
0=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Windows.old
[Quarantine.NewPaths]
0=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,PerfLogs
1=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Program Files
2=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Program Files (x86)
3=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,ProgramData
4=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Users
5=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Windows
[Profiles]
S-1-5-21-1753568369-220679467-1382890926-1001.Profile.Old=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Users\Don Ho
S-1-5-21-1753568369-220679467-1382890926-1001.Profile.New=GlobalPath,{826A734A-88FA-4773-AF09-B90072E096D3},0,407896064,2727568020,Users\Don Ho

View File

@ -0,0 +1 @@
{"leaves":["Flow","BootEntries","BootManager","OldOS","RecoveryPartition","Quarantine.WinOld","Quarantine.NewPaths","Profiles"],"root":"unitTest"}

View File

@ -0,0 +1,394 @@
;contribute: http://github.com/stfx/innodependencyinstaller
;original article: http://codeproject.com/Articles/20868/NET-Framework-1-1-2-0-3-5-Installer-for-InnoSetup
;comment out product defines to disable installing them
;#define use_iis
#define use_kb835732
#define use_msi20
#define use_msi31
#define use_msi45
#define use_ie6
#define use_dotnetfx11
#define use_dotnetfx11lp
#define use_dotnetfx20
#define use_dotnetfx20lp
#define use_dotnetfx35
#define use_dotnetfx35lp
#define use_dotnetfx40
#define use_wic
#define use_dotnetfx45
#define use_dotnetfx46
#define use_dotnetfx47
#define use_msiproduct
#define use_vc2005
#define use_vc2008
#define use_vc2010
#define use_vc2012
#define use_vc2013
#define use_vc2015
#define use_vc2017
;requires dxwebsetup.exe in src dir
;#define use_directxruntime
#define use_mdac28
#define use_jet4sp8
#define use_sqlcompact35sp2
#define use_sql2005express
#define use_sql2008express
#define MyAppSetupName 'MyProgram'
#define MyAppVersion '6.0'
[Setup]
AppName={#MyAppSetupName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppSetupName} {#MyAppVersion}
AppCopyright=Copyright © 2007-2017 stfx
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany=stfx
AppPublisher=stfx
;AppPublisherURL=http://...
;AppSupportURL=http://...
;AppUpdatesURL=http://...
OutputBaseFilename={#MyAppSetupName}-{#MyAppVersion}
DefaultGroupName={#MyAppSetupName}
DefaultDirName={pf}\{#MyAppSetupName}
UninstallDisplayIcon={app}\MyProgram.exe
OutputDir=bin
SourceDir=.
AllowNoIcons=yes
;SetupIconFile=MyProgramIcon
SolidCompression=yes
;MinVersion default value: "0,5.0 (Windows 2000+) if Unicode Inno Setup, else 4.0,4.0 (Windows 95+)"
;MinVersion=0,5.0
PrivilegesRequired=admin
ArchitecturesAllowed=x86 x64 ia64
ArchitecturesInstallIn64BitMode=x64 ia64
; downloading and installing dependencies will only work if the memo/ready page is enabled (default and current behaviour)
DisableReadyPage=no
DisableReadyMemo=no
; supported languages
#include "scripts\lang\english.iss"
#include "scripts\lang\german.iss"
#include "scripts\lang\french.iss"
#include "scripts\lang\italian.iss"
#include "scripts\lang\dutch.iss"
#ifdef UNICODE
#include "scripts\lang\chinese.iss"
#include "scripts\lang\polish.iss"
#include "scripts\lang\russian.iss"
#include "scripts\lang\japanese.iss"
#endif
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "src\MyProgram-x64.exe"; DestDir: "{app}"; DestName: "MyProgram.exe"; Check: IsX64
Source: "src\MyProgram-IA64.exe"; DestDir: "{app}"; DestName: "MyProgram.exe"; Check: IsIA64
Source: "src\MyProgram.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode
[Icons]
Name: "{group}\{#MyAppSetupName}"; Filename: "{app}\MyProgram.exe"
Name: "{group}\{cm:UninstallProgram,{#MyAppSetupName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppSetupName}"; Filename: "{app}\MyProgram.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppSetupName}"; Filename: "{app}\MyProgram.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\MyProgram.exe"; Description: "{cm:LaunchProgram,{#MyAppSetupName}}"; Flags: nowait postinstall skipifsilent
[CustomMessages]
DependenciesDir=MyProgramDependencies
WindowsServicePack=Windows %1 Service Pack %2
; shared code for installing the products
#include "scripts\products.iss"
; helper functions
#include "scripts\products\stringversion.iss"
#include "scripts\products\winversion.iss"
#include "scripts\products\fileversion.iss"
#include "scripts\products\dotnetfxversion.iss"
; actual products
#ifdef use_iis
#include "scripts\products\iis.iss"
#endif
#ifdef use_kb835732
#include "scripts\products\kb835732.iss"
#endif
#ifdef use_msi20
#include "scripts\products\msi20.iss"
#endif
#ifdef use_msi31
#include "scripts\products\msi31.iss"
#endif
#ifdef use_msi45
#include "scripts\products\msi45.iss"
#endif
#ifdef use_ie6
#include "scripts\products\ie6.iss"
#endif
#ifdef use_dotnetfx11
#include "scripts\products\dotnetfx11.iss"
#include "scripts\products\dotnetfx11sp1.iss"
#ifdef use_dotnetfx11lp
#include "scripts\products\dotnetfx11lp.iss"
#endif
#endif
#ifdef use_dotnetfx20
#include "scripts\products\dotnetfx20.iss"
#include "scripts\products\dotnetfx20sp1.iss"
#include "scripts\products\dotnetfx20sp2.iss"
#ifdef use_dotnetfx20lp
#include "scripts\products\dotnetfx20lp.iss"
#include "scripts\products\dotnetfx20sp1lp.iss"
#include "scripts\products\dotnetfx20sp2lp.iss"
#endif
#endif
#ifdef use_dotnetfx35
;#include "scripts\products\dotnetfx35.iss"
#include "scripts\products\dotnetfx35sp1.iss"
#ifdef use_dotnetfx35lp
;#include "scripts\products\dotnetfx35lp.iss"
#include "scripts\products\dotnetfx35sp1lp.iss"
#endif
#endif
#ifdef use_dotnetfx40
#include "scripts\products\dotnetfx40client.iss"
#include "scripts\products\dotnetfx40full.iss"
#endif
#ifdef use_dotnetfx45
#include "scripts\products\dotnetfx45.iss"
#endif
#ifdef use_dotnetfx46
#include "scripts\products\dotnetfx46.iss"
#endif
#ifdef use_dotnetfx47
#include "scripts\products\dotnetfx47.iss"
#endif
#ifdef use_wic
#include "scripts\products\wic.iss"
#endif
#ifdef use_msiproduct
#include "scripts\products\msiproduct.iss"
#endif
#ifdef use_vc2005
#include "scripts\products\vcredist2005.iss"
#endif
#ifdef use_vc2008
#include "scripts\products\vcredist2008.iss"
#endif
#ifdef use_vc2010
#include "scripts\products\vcredist2010.iss"
#endif
#ifdef use_vc2012
#include "scripts\products\vcredist2012.iss"
#endif
#ifdef use_vc2013
#include "scripts\products\vcredist2013.iss"
#endif
#ifdef use_vc2015
#include "scripts\products\vcredist2015.iss"
#endif
#ifdef use_vc2017
#include "scripts\products\vcredist2017.iss"
#endif
#ifdef use_directxruntime
#include "scripts\products\directxruntime.iss"
#endif
#ifdef use_mdac28
#include "scripts\products\mdac28.iss"
#endif
#ifdef use_jet4sp8
#include "scripts\products\jet4sp8.iss"
#endif
#ifdef use_sqlcompact35sp2
#include "scripts\products\sqlcompact35sp2.iss"
#endif
#ifdef use_sql2005express
#include "scripts\products\sql2005express.iss"
#endif
#ifdef use_sql2008express
#include "scripts\products\sql2008express.iss"
#endif
[Code]
function InitializeSetup(): boolean;
begin
// initialize windows version
initwinversion();
#ifdef use_iis
if (not iis()) then exit;
#endif
#ifdef use_msi20
msi20('2.0'); // min allowed version is 2.0
#endif
#ifdef use_msi31
msi31('3.1'); // min allowed version is 3.1
#endif
#ifdef use_msi45
msi45('4.5'); // min allowed version is 4.5
#endif
#ifdef use_ie6
ie6('5.0.2919'); // min allowed version is 5.0.2919
#endif
#ifdef use_dotnetfx11
dotnetfx11();
#ifdef use_dotnetfx11lp
dotnetfx11lp();
#endif
dotnetfx11sp1();
#endif
// install .netfx 2.0 sp2 if possible; if not sp1 if possible; if not .netfx 2.0
#ifdef use_dotnetfx20
// check if .netfx 2.0 can be installed on this OS
if not minwinspversion(5, 0, 3) then begin
MsgBox(FmtMessage(CustomMessage('depinstall_missing'), [FmtMessage(CustomMessage('WindowsServicePack'), ['2000', '3'])]), mbError, MB_OK);
exit;
end;
if not minwinspversion(5, 1, 2) then begin
MsgBox(FmtMessage(CustomMessage('depinstall_missing'), [FmtMessage(CustomMessage('WindowsServicePack'), ['XP', '2'])]), mbError, MB_OK);
exit;
end;
if minwinversion(5, 1) then begin
dotnetfx20sp2();
#ifdef use_dotnetfx20lp
dotnetfx20sp2lp();
#endif
end else begin
if minwinversion(5, 0) and minwinspversion(5, 0, 4) then begin
#ifdef use_kb835732
kb835732();
#endif
dotnetfx20sp1();
#ifdef use_dotnetfx20lp
dotnetfx20sp1lp();
#endif
end else begin
dotnetfx20();
#ifdef use_dotnetfx20lp
dotnetfx20lp();
#endif
end;
end;
#endif
#ifdef use_dotnetfx35
//dotnetfx35();
dotnetfx35sp1();
#ifdef use_dotnetfx35lp
//dotnetfx35lp();
dotnetfx35sp1lp();
#endif
#endif
#ifdef use_wic
wic();
#endif
// if no .netfx 4.0 is found, install the client (smallest)
#ifdef use_dotnetfx40
if (not netfxinstalled(NetFx40Client, '') and not netfxinstalled(NetFx40Full, '')) then
dotnetfx40client();
#endif
#ifdef use_dotnetfx45
dotnetfx45(50); // min allowed version is 4.5.0
#endif
#ifdef use_dotnetfx46
dotnetfx46(50); // min allowed version is 4.5.0
#endif
#ifdef use_dotnetfx47
dotnetfx47(50); // min allowed version is 4.5.0
#endif
#ifdef use_vc2005
vcredist2005('6'); // min allowed version is 6.0
#endif
#ifdef use_vc2008
vcredist2008('9'); // min allowed version is 9.0
#endif
#ifdef use_vc2010
vcredist2010('10'); // min allowed version is 10.0
#endif
#ifdef use_vc2012
vcredist2012('11'); // min allowed version is 11.0
#endif
#ifdef use_vc2013
//SetForceX86(true); // force 32-bit install of next products
vcredist2013('12'); // min allowed version is 12.0
//SetForceX86(false); // disable forced 32-bit install again
#endif
#ifdef use_vc2015
vcredist2015('14'); // min allowed version is 14.0
#endif
#ifdef use_vc2017
vcredist2017('14'); // min allowed version is 14.0
#endif
#ifdef use_directxruntime
// extracts included setup file to temp folder so that we don't need to download it
// and always runs directxruntime installer as we don't know how to check if it is required
directxruntime();
#endif
#ifdef use_mdac28
mdac28('2.7'); // min allowed version is 2.7
#endif
#ifdef use_jet4sp8
jet4sp8('4.0.8015'); // min allowed version is 4.0.8015
#endif
#ifdef use_sqlcompact35sp2
sqlcompact35sp2();
#endif
#ifdef use_sql2005express
sql2005express();
#endif
#ifdef use_sql2008express
sql2008express();
#endif
Result := true;
end;

View File

@ -0,0 +1 @@
{"leaves":["Setup","Tasks","Files","Icons","Run","CustomMessages"],"root":"unitTest"}

View File

@ -0,0 +1,77 @@
// This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// at your option any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import org.apache.commons.codec.binary.Base64;
import java.util.zip.*;
import java.util.*;
import java.text.*;
import java.io.*;
class zipB64 {
protected static String encodeMessage(String messageStr) {
try {
ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
Deflater deflater = new Deflater(Deflater.DEFLATED);
DeflaterOutputStream deflaterStream = new DeflaterOutputStream(bytesOut, deflater);
deflaterStream.write(messageStr.getBytes("UTF-8"));
deflaterStream.finish();
Base64 b = new Base64(-1);
return new String(b.encode(bytesOut.toByteArray()));
} catch (Exception e) {
return "crotte";
}
}
protected static String decodeMessage(String encodedMessage) {
try {
Base64 b = new Base64();
byte[] decodedBase64 = b.decode(encodedMessage.getBytes());
// Decompress the bytes
ByteArrayInputStream bytesIn = new ByteArrayInputStream(decodedBase64);
InflaterInputStream inflater = new InflaterInputStream(bytesIn);
int nbRead = 0;
StringBuilder sb = new StringBuilder();
while (nbRead >= 0) {
byte[] result = new byte[500];
nbRead = inflater.read(result,0,result.length);
if (nbRead > 0) {
sb.append(new String(result, 0, nbRead, "UTF-8"));
}
}
return sb.toString();
} catch (Exception e) {
return "zut";
}
}
public static void main (String args[]) {
if (args.length != 2 || (args[0].compareTo("-zip") != 0 && args[0].compareTo("-unzip") != 0))
{
System.out.println("java zipB64 <-zip|-unzip> \"message\"");
return;
}
boolean doZip = args[0].compareTo("-zip") == 0;
if (doZip)
System.out.println(encodeMessage(args[1]));
else
System.out.println(decodeMessage(args[1]));
}
}

View File

@ -0,0 +1 @@
{"nodes":[{"leaves":["encodeMessage","decodeMessage"],"name":"zipB64"}],"root":"unitTest"}

View File

@ -0,0 +1,391 @@
var crypto = require('crypto'),
Friends,
User,
Post,
WallPost,
Comment,
LoginToken;
function extractKeywords(text) {
if (!text) return [];
return text.
split(/\s+/).
filter(function(v) { return v.length > 2; }).
filter(function(v, i, a) { return a.lastIndexOf(v) === i; });
}
/*
function commentedFunc() {
return 0;
}
*/
function convertBasicMarkup(input, allowHtml) {
var strongRe = /[*]{2}([^*]+)[*]{2}/gm;
var emRe = /[*]{1}([^*]+)[*]{1}/gm;
var linkRe = /\[([^\]]*)\]\(([^\)]*?)\)/gm;
var nlRe = /\r\n/gm;
var crRe = /\r/gm;
// special re's to revert linebreaks from <br />
var codeRe = /(<code\b[^>]*>(.*?)<\/code>)/gm;
// cleanup newlines
input = input.replace(nlRe, "\n");
input = input.replace(crRe, "\n");
// strip existing html before inserting breaks/markup
if (!allowHtml) {
// strip html
input = input
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}
// convert newlines to breaks
input = input.replace(/\n/gm, '<br />');
// replace basic markup
input = input.replace(strongRe, function(whole, m1, m2, m3) {
return '<strong>' + m1 + '</strong>';
});
input = input.replace(emRe, function(whole, m1, m2, m3) {
return '<em>' + m1 + '</em>';
});
input = input.replace(linkRe, function(whole, m1, m2) {
// fix up protocol
if (!m2.match(/(http(s?)|ftp(s?)):\/\//gm))
// prepend http as default
m2 = 'http://' + m2;
return '<a href=\"' + m2 + '\" target=\"_blank\">' + m1 + '</a>';
});
// revert code blocks
input = input.replace(codeRe, function(whole, m1) {
return m1.replace(/<br \/>/gm, '\n');
});
return input;
}
function defineModels(mongoose, fn) {
var Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
/**
* Comment model
*
* Used for persisting user comments
*/
var Comment = new Schema({
user_id: ObjectId,
//photo:String,
date: Date,
body: String,
post_id:ObjectId,
});
// register virtual members
Comment.virtual('readableday')
.get(function() {
var day = this.date.getDate();
return (day < 10 ? '0' + day : day);
});
Comment.virtual('readablemonth')
.get(function() {
return monthNamesShort[this.date.getMonth()];
});
Comment.virtual('readabletime')
.get(function() {
var hour = this.date.getHours();
var minute = this.date.getMinutes();
return (hour < 10 ? '0' + hour : hour) + ':' + (minute < 10 ? '0' + minute : minute);
});
Comment.virtual('bodyParsed')
.get(function() {
return convertBasicMarkup(this.body, false);
});
// register validators
/*Comment.path('author').validate(function(val) {
return val.length > 0;
}, 'AUTHOR_MISSING');*/
Comment.path('body').validate(function(val) {
return val.length > 0;
}, 'BODY_MISSING');
/**
* Model: WallPost
*/
var WallPost = new Schema({
friend_id: String,
preview: String,
body: String,
//rsstext: String,
slug: String,
created: Date,
modified: Date,
//tags: [String],
user_id:ObjectId,
posted_on_user_id : ObjectId,
//comments: [Comment]
});
var monthNames = [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli',
'August', 'September', 'Oktober', 'November', 'Dezember' ];
var monthNamesShort = [ 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul',
'Aug', 'Sep', 'Okt', 'Nov', 'Dez' ];
// define virtual getter method for id (readable string)
WallPost.virtual('id')
.get(function() {
return this._id.toHexString();
});
WallPost.virtual('url')
.get(function() {
// build url for current post
var year = this.created.getFullYear();
var month = this.created.getMonth() + 1;
var day = this.created.getDate();
return '/' + year + '/' + (month < 10 ? '0' + month : month) + '/' + (day < 10 ? '0' + day : day) + '/' + this.slug + '/';
});
WallPost.virtual('rfc822created')
.get(function() {
return this.created.toGMTString();
});
WallPost.virtual('readabledate')
.get(function() {
var year = this.created.getFullYear();
var month = monthNames[this.created.getMonth()];
var day = this.created.getDate();
return (day < 10 ? '0' + day : day) + '. ' + month + ' ' + year;
});
WallPost.virtual('readableday')
.get(function() {
var day = this.created.getDate();
return (day < 10 ? '0' + day : day);
});
WallPost.virtual('readablemonth')
.get(function() {
return monthNamesShort[this.created.getMonth()];
});
WallPost.virtual('previewParsed')
.get(function() {
return convertBasicMarkup(this.preview, true);
});
WallPost.virtual('bodyParsed')
.get(function() {
return convertBasicMarkup(this.body, true);
});
// register validators
/*WallPost.path('title').validate(function(val) {
return val.length > 0;
}, 'TITLE_MISSING');
WallPost.path('preview').validate(function(val) {
return val.length > 0;
}, 'PREVIEW_MISSING');
WallPost.path('rsstext').validate(function(val) {
return val.length > 0;
}, 'RSSTEXT_MISSING');*/
WallPost.path('body').validate(function(val) {
return val.length > 0;
}, 'BODY_MISSING');
// generate a proper slug value for Wallpost
function slugGenerator (options){
options = options || {};
var key = options.key || 'body';
return function slugGenerator(schema){
schema.path(key).set(function(v){
this.slug = v.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/\++/g, '');
return v;
});
};
};
// attach slugGenerator plugin to Wallpost schema
WallPost.plugin(slugGenerator());
/**
* Model: User
*/
function validatePresenceOf(value) {
return value && value.length;
}
var User = new Schema({
'first_name': { type: String, validate: /[a-z]/ },
'last_name':{ type: String, validate: /[a-z]/ },
'age':Number,
'sex':{ type: String},
'photo':String,
'location':{ type: String, validate: /[a-z]/ },
'latitude' : String,
'longitude' : String,
'keywords': [String],
'username':String,
'email': { type: String, validate: [validatePresenceOf, 'an email is required'], index: { unique: true }, required:true },
'hashed_password': { type: String},
'salt': String,
});
User.virtual('id')
.get(function() {
return this._id.toHexString();
});
User.virtual('password')
.set(function(password) {
this._password = password;
this.salt = this.makeSalt();
this.hashed_password = this.encryptPassword(password);
})
.get(function() { return this._password; });
User.method('authenticate', function(plainText) {
return this.encryptPassword(plainText) === this.hashed_password;
});
User.method('makeSalt', function() {
return Math.round((new Date().valueOf() * Math.random())) + '';
});
User.method('encryptPassword', function(password) {
return crypto.createHmac('sha1', this.salt).update(password).digest('hex');
});
User.pre('save', function(next) {
this.keywords = extractKeywords(this.first_name);
next();
if (!validatePresenceOf(this.password)) {
next(new Error('Invalid password'));
} else {
next();
}
});
var Friends = new Schema({
requestor : String
, acceptor : String
, date_requested : Date
, status:Number
});
Friends.virtual('id')
.get(function() {
return this._id.toHexString();
});
var Post = new Schema({
filename : { type: String, index: true }
, file : String
, created_at : Date
, user_id: ObjectId
});
Post.virtual('id')
.get(function() {
return this._id.toHexString();
});
/**
* Model: LoginToken
*
* Used for session persistence.
*/
var LoginToken = new Schema({
email: { type: String, index: true },
series: { type: String, index: true },
token: { type: String, index: true }
});
LoginToken.method('randomToken', function() {
return Math.round((new Date().valueOf() * Math.random())) + '';
});
LoginToken.pre('save', function(next) {
// Automatically create the tokens
this.token = this.randomToken();
if (this.isNew)
this.series = this.randomToken();
next();
});
LoginToken.virtual('id')
.get(function() {
return this._id.toHexString();
});
LoginToken.virtual('cookieValue')
.get(function() {
return JSON.stringify({ email: this.email, token: this.token, series: this.series });
});
mongoose.model('User', User);
mongoose.model('Post', Post);
mongoose.model('Friends', Friends);
mongoose.model('LoginToken', LoginToken);
mongoose.model('WallPost', WallPost);
mongoose.model('Comment', Comment);
fn();
}
exports.defineModels = defineModels;
class Car {
constructor(name, year) {
this.name = name;
this.year = year;
}
age(x) {
return x - this.year;
}
}
const date = new Date();
let year = date.getFullYear();
const myCar = new Car("Ford", 2014);
document.getElementById("demo").innerHTML=
"My car is " + myCar.age(year) + " years old.";

View File

@ -0,0 +1 @@
{"leaves":["extractKeywords","convertBasicMarkup","function","function","function","function","defineModels","slugGenerator","slugGenerator","validatePresenceOf","function","function","function","function","function","function"],"nodes":[{"leaves":["constructor","age"],"name":"Car"}],"root":"unitTest"}

View File

@ -0,0 +1,46 @@
\documentclass[12pt]{article}
\usepackage{lingmacros}
\usepackage{tree-dvips}
\begin{document}
\section*{Notes for My Paper}
Don't forget to include examples of topicalization.
They look like this:
{\small
\enumsentence{Topicalization from sentential subject:\\
\shortex{7}{a John$_i$ [a & kltukl & [el &
{\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
{ & {\bf R-}clear & {\sc comp} &
{\bf IR}.{\sc 3s}-love & P & him & }
{John, (it's) clear that Mary loves (him).}}
}
\subsection*{How to handle topicalization}
I'll just assume a tree structure like (\ex{1}).
{\small
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
\begin{tabular}[t]{cccc}
& \node{i}{CP}\\ [2ex]
\node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex]
&\node{iv}{C} & & \node{v}{SAgrP}
\end{tabular}
\nodeconnect{i}{ii}
\nodeconnect{i}{iii}
\nodeconnect{iii}{iv}
\nodeconnect{iii}{v}
}
}
\subsection*{Mood}
Mood changes when there is a topic, as well as when
there is WH-movement. \emph{Irrealis} is the mood when
there is a non-subject topic or WH-phrase in Comp.
\emph{Realis} is the mood when there is a subject topic
or WH-phrase.
\end{document}

View File

@ -0,0 +1 @@
{"leaves":["\\begin{document}","\\section*{Notes for My Paper}","\\subsection*{How to handle topicalization}","\\begin{tabular}[t]{cccc}","\\subsection*{Mood}"],"root":"unitTest"}

View File

@ -0,0 +1,8 @@
$testRoot = ".\"
$PowerEditor = "$testRoot\..\..\"
Copy-Item "$PowerEditor\installer\functionList" -Destination "$PowerEditor\bin" -Recurse -Force
Copy-Item "$PowerEditor\installer\filesForTesting\regexGlobalTest.xml" -Destination "$PowerEditor\bin\functionList" -Force
Copy-Item "$PowerEditor\installer\filesForTesting\overrideMap.xml" -Destination "$PowerEditor\bin\functionList" -Force
& ".\unitTestLauncher.ps1"

View File

@ -0,0 +1,27 @@
-- Create a file named by_ip/''ip_addess''.cap with all ip traffic of each ip host. (tshark only?)
-- Dump files are created for both source and destination hosts
function createDir (dirname)
-- this will print out an error if the directory already exists, but that's fine
os.execute("mkdir " .. dirname)
end
local dir = "by_ip"
createDir(dir)
-- create a table to hold the dumper objects/file handles
local dumpers = {}
local tap = Listener.new("ip")
-- we will be called once for every IP Header.
-- If there's more than one IP header in a given packet we'll dump the packet once per every header
function tap.packet(pinfo,tvb,ip)
local ip_src, ip_dst = tostring(ip.ip_src), tostring(ip.ip_dst)
local src_dmp, dst_dmp
end
function tap.draw()
for ip_addr,dumper in pairs(dumpers) do
dumper:flush()
end
end

View File

@ -0,0 +1 @@
{"leaves":["createDir"],"nodes":[{"leaves":["packet","draw"],"name":"tap"}],"root":"unitTest"}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
{"leaves":["GetWindowsVersion","GetWindowsVersion OUTPUT_VALUE","LaunchNpp","ExtraOptions","OnChange_NoUserDataCheckBox","OnChange_PluginLoadFromUserDataCheckBox","OnChange_ShortcutCheckBox","OnChange_OldIconCheckBox",".onInit",".onInstSuccess","-\"Notepad++\" mainSection","\"Context Menu Entry\" explorerContextMenu","\"Auto-Updater\" AutoUpdater","-FinishSection","un.htmlViewer","un.AutoUpdater","un.explorerContextMenu","un.UnregisterFileExt","un.UserManual","Uninstall","un.onInit"],"nodes":[{"leaves":["\"C\" C","\"C++\" C++","\"Java\" Java","\"C","\"HTML\" HTML","\"RC\" RC","\"SQL\" SQL","\"PHP\" PHP","\"CSS\" CSS","\"VB\" VB","\"Perl\" Perl","\"JavaScript\" JavaScript","\"Python\" Python","\"ActionScript\" ActionScript","\"LISP\" LISP","\"VHDL\" VHDL","\"TeX\" TeX","\"DocBook\" DocBook","\"NSIS\" NSIS","\"CMAKE\" CMAKE"],"name":"Auto-completion Files"},{"leaves":["\"NppExport\" NppExport","\"Plugin Manager\" PluginManager","\"Mime Tools\" MimeTools","\"Converter\" Converter"],"name":"Plugins"},{"leaves":["\"Black Board\" BlackBoard","\"Choco\" Choco","\"Hello Kitty\" HelloKitty","\"Mono Industrial\" MonoIndustrial","\"Monokai\" Monokai","\"Obsidian\" Obsidian","\"Plastic Code Wrap\" PlasticCodeWrap","\"Ruby Blue\" RubyBlue","\"Twilight\" Twilight","\"Vibrant Ink\" VibrantInk","\"Deep Black\" DeepBlack","\"vim Dark Blue\" vimDarkBlue","\"Bespin\" Bespin","\"Zenburn\" Zenburn","\"Solarized\" Solarized","\"Solarized Light\" Solarized-light","\"Hot Fudge Sundae\" HotFudgeSundae","\"khaki\" khaki","\"Mossy Lawn\" MossyLawn","\"Navajo\" Navajo"],"name":"Themes"},{"leaves":["un.PHP","un.CSS","un.HTML","un.SQL","un.RC","un.VB","un.Perl","un.C","un.C++","un.Java","un.C","un.JavaScript","un.Python","un.ActionScript","un.LISP","un.VHDL","un.TeX","un.DocBook","un.NSIS","un.AWK","un.CMAKE"],"name":"un.autoCompletionComponent"},{"leaves":["un.NPPTextFX","un.NppAutoIndent","un.MIMETools","un.FTP_synchronize","un.NppFTP","un.NppExport","un.SelectNLaunch","un.DocMonitor","un.LightExplorer","un.HexEditor","un.ConvertExt","un.SpellChecker","un.DSpellCheck","un.NppExec","un.QuickText","un.ComparePlugin","un.Converter","un.MimeTools","un.PluginManager","un.ChangeMarkers"],"name":"un.Plugins"},{"leaves":["un.BlackBoard","un.Choco","un.HelloKitty","un.MonoIndustrial","un.Monokai","un.Obsidian","un.PlasticCodeWrap","un.RubyBlue","un.Twilight","un.VibrantInk","un.DeepBlack","un.vimDarkBlue","un.Bespin","un.Zenburn","un.Solarized","un.Solarized-light","un.HotFudgeSundae","un.khaki","un.MossyLawn","un.Navajo"],"name":"un.Themes"},{"leaves":["un.afrikaans","un.albanian","un.arabic","un.aragonese","un.aranese","un.azerbaijani","un.basque","un.belarusian","un.bengali","un.bosnian","un.brazilian_portuguese","un.bulgarian","un.catalan","un.chineseTraditional","un.chineseSimplified","un.croatian","un.czech","un.danish","un.dutch","un.english_customizable","un.esperanto","un.estonian","un.extremaduran","un.farsi","un.finnish","un.friulian","un.french","un.galician","un.georgian","un.german","un.greek","un.gujarati","un.hebrew","un.hungarian","un.hungarianA","un.indonesian","un.italian","un.japanese","un.kazakh","un.korean","un.kyrgyz","un.latvian","un.ligurian","un.lithuanian","un.luxembourgish","un.macedonian","un.malay","un.marathi","un.mongolian","un.norwegian","un.nynorsk","un.occitan","un.polish","un.kannada","un.portuguese","un.punjabi","un.romanian","un.russian","un.samogitian","un.sardinian","un.serbian","un.serbianCyrillic","un.sinhala","un.slovak","un.slovakA","un.slovenian","un.spanish","un.spanish_ar","un.swedish","un.tagalog","un.tajik","un.tamil","un.tatar","un.telugu","un.thai","un.turkish","un.ukrainian","un.urdu","un.uyghur","un.uzbek","un.uzbekCyrillic","un.vietnamese","un.welsh"],"name":"un.localization"}],"root":"unitTest"}

View File

@ -0,0 +1,562 @@
unit unitTest;
interface
uses
System.SysUtils, System.Types, System.Classes;
{ Free function 1, declaration }
function FreeFunc1(const Param: integer): integer;
type
// -----------------------------------------------------------------------------
// TStdClass
// -----------------------------------------------------------------------------
TStdClass = class(TObject)
private type
TStdInternalClass = class(TObject)
private
FName: string;
FId: integer;
public
constructor Create;
destructor Destroy; override;
procedure CopyTo(Dest: TStdInternalClass);
property Name: string read FName write FName;
property Id: integer read FId write FId;
end;
private
FId: integer;
FValue: string;
class var FInstCnt: integer;
class function Init(Cnt: integer): boolean;
class function DeInit(Cnt: integer): boolean;
class function ToType<X: class, constructor>(const Value: string): X;
procedure SetValue(const Value: string);
public
constructor Create;
destructor Destroy; override;
function Convert<X: class, constructor>(const Value: string): X;
class property InstCnt: integer read FInstCnt;
property PropId: integer read FId write FId;
property PropValue: string read FValue write SetValue;
end;
// -----------------------------------------------------------------------------
// TGenericClass<T>
// -----------------------------------------------------------------------------
TGenericClass<T> = class(TObject)
private type
TGenericInternalClass<I, K> = class(TObject)
strict private
FName: string;
FId: I;
FValue: K;
public
constructor Create;
destructor Destroy; override;
procedure CopyTo<J>(Dest: TGenericInternalClass<I, K>);
property Name: string read FName write FName;
property Id: I read FId write FId;
property Value: K read FValue write FValue;
end;
strict private
FId: integer;
FValue: T;
class var FInstCnt: integer;
class function Init<I>(Cnt: integer): boolean;
class function DeInit(Cnt: integer): boolean;
procedure SetValue(const Value: T);
public
constructor Create;
destructor Destroy; override;
class property InstCnt: integer read FInstCnt;
property PropId: integer read FId write FId;
property PropValue: T read FValue write SetValue;
end;
type
// -----------------------------------------------------------------------------
// TEnum
// -----------------------------------------------------------------------------
TEnum = (enMember1, enMember2, enMember3);
TEnumHelper = record helper for TEnum
public
function ToString: string;
class function FromString(const AString: string): TEnum; static;
end;
// -----------------------------------------------------------------------------
// TStdClassHelper
// -----------------------------------------------------------------------------
TStdClassHelper = class helper for TStdClass
public
function AsString: string;
class function FromString(const AString: string): TStdClass; static;
end;
// -----------------------------------------------------------------------------
// Free routines declarations
// -----------------------------------------------------------------------------
procedure FreeProc1(AParam: integer);
function FreeFunc2(const AParam: string): integer; inline;
procedure FreeProc2(AParam: integer);
{function UnusedFreeFunc1(ANum: double): cardinal;}
procedure FreeProc3(AParam: integer); overload; inline;
procedure FreeProc3(AParam: string); overload; inline;
(*
function UnusedFreeFunc2(ANum: double): cardinal;
function UnusedFreeFunc3(ANum: double): cardinal;
*)
implementation
{R *.dfm}
type
// -----------------------------------------------------------------------------
// Internal classes
// -----------------------------------------------------------------------------
TInternalClass = class(TObject)
public
function Init(Cnt: integer): boolean;
procedure SetValue(Cnt: integer);
end;
// -----------------------------------------------------------------------------
// Free routines
// -----------------------------------------------------------------------------
{ Free function 3, forward declaration}
function FreeFunc3(const Param: integer): integer; forward;
{ Free function 1, definition }
function FreeFunc1(const Param: integer): integer;
begin
//
Result := 0;
end;
{ Free procedure 1, definition }
procedure FreeProc1(AParam: integer);
begin
// Do something
end;
{ Free function 2, definition }
function FreeFunc2(const AParam: string): integer;
begin
// Do something
Result := 0;
end;
{
// Unused free function 1, definition
function UnusedFreeFunc1(ANum: double): cardinal;
begin
// Do something
Result := 0;
end;
}
{ Free procedure 2, definition }
procedure FreeProc2(AParam: integer);
begin
// Do something
end;
(*
// Unused free function 2, definition
function UnusedFreeFunc2(ANum: double): cardinal;
begin
// Do something
Result := 0;
end;
{ Unused free function 3, definition }
function UnusedFreeFunc3(ANum: double): cardinal;
begin
// Do something
Result := 0;
end;
*)
{ Free procedure 3 (overloaded), definition }
procedure FreeProc3(AParam: integer);
begin
//
end;
procedure FreeProc3(AParam: string);
begin
//
end;
{ Free procedure 4, forward declaration}
procedure FreeProc4(const Param: integer); forward;
// -----------------------------------------------------------------------------
// TStdClass
// -----------------------------------------------------------------------------
constructor TStdClass.Create;
begin
inherited;
Init(Succ(InstCnt));
end;
destructor TStdClass.Destroy;
begin
DeInit(Pred(InstCnt));
inherited;
end;
class function TStdClass.Init(Cnt: integer): boolean;
begin
FInstCnt := Cnt;
Result := true;
end;
class function TStdClass.DeInit(Cnt: integer): boolean;
begin
FInstCnt := Cnt;
Result := true;
end;
class function TStdClass.ToType<X>(const Value: string): X;
begin
Result := X.Create;
end;
procedure TStdClass.SetValue(const Value: string);
begin
FValue := Value;
end;
function TStdClass.Convert<X>(const Value: string): X;
begin
Result := ToType<X>(Value);
end;
// -----------------------------------------------------------------------------
// TStdClass.TStdInternalClass
// -----------------------------------------------------------------------------
constructor TStdClass.TStdInternalClass.Create;
begin
inherited;
//
end;
destructor TStdClass.TStdInternalClass.Destroy;
begin
//
inherited;
end;
procedure TStdClass.TStdInternalClass.CopyTo(Dest: TStdInternalClass);
begin
Dest.Name := Name;
Dest.Id := Id;
end;
// -----------------------------------------------------------------------------
// Free routines
// -----------------------------------------------------------------------------
{ Free function 3 with internal procedure, definition }
function FreeFunc3(const Param: integer): integer;
procedure InternalProc1(const Param: integer);
begin
//
end;
begin
//
Result := 0;
end;
{ Free procedure 4 with internal function, definition }
procedure FreeProc4(const Param: integer);
function InternalFunc1(const Param: integer): string;
begin
//
Result := '';
end;
begin
//
end;
{ Free procedure 5 with internal procedure preceeded by a comment, declaration & definition }
procedure FreeProc5;
// Internal routine
procedure InternalProc2;
begin
//
end;
begin
//
end;
{ Free procedure 6 (inline), declaration & definition }
procedure FreeProc6; inline;
begin
//
end;
// -----------------------------------------------------------------------------
// TGenericClass<T>
// -----------------------------------------------------------------------------
constructor TGenericClass<T>.Create;
begin
inherited;
Init<string>(Succ(InstCnt));
end;
destructor TGenericClass<T>.Destroy;
begin
DeInit(Pred(InstCnt));
inherited;
end;
// This is a class function
class function TGenericClass<T>.Init<I>(Cnt: integer): boolean;
begin
FInstCnt := Cnt;
Result := true;
end;
// This is a class function
class function TGenericClass<T>.DeInit(Cnt: integer): boolean;
begin
FInstCnt := Cnt;
Result := true;
end;
procedure TGenericClass<T>.SetValue(const Value: T);
begin
FValue := Value;
end;
// -----------------------------------------------------------------------------
// TGenericClass<T>.TGenericInternalClass<I, K>
// -----------------------------------------------------------------------------
constructor TGenericClass<T>.TGenericInternalClass<I, K>.Create;
begin
inherited;
FName := '';
FId := Default(I);
FValue := Default(K);
end;
destructor TGenericClass<T>.TGenericInternalClass<I, K>.Destroy;
begin
//
inherited;
end;
procedure TGenericClass<T>.TGenericInternalClass<I, K>.CopyTo<J>(Dest: TGenericInternalClass<I, K>);
begin
Dest.Name := Name;
Dest.Id := Id;
Dest.Value := Value;
end;
// -----------------------------------------------------------------------------
// TInternalClass
// -----------------------------------------------------------------------------
function TInternalClass.Init(Cnt: integer): boolean;
begin
Result := true;
end;
procedure TInternalClass.SetValue(Cnt: integer);
begin
//
end;
// -----------------------------------------------------------------------------
// TEnumHelper
// -----------------------------------------------------------------------------
function TEnumHelper.ToString: string;
begin
case Self of
enMember2: Result := 'Member 2';
enMember3: Result := 'Member 3';
else Result := 'Unknown';
end;
end;
class function TEnumHelper.FromString(const AString: string): TEnum;
begin
if SameText(AString, 'Member 2') then
Result := enMember2
else if SameText(AString, 'Member 3') then
Result := enMember3
else
Result := enMember1;
end;
// -----------------------------------------------------------------------------
// TStdClassHelper
// -----------------------------------------------------------------------------
function TStdClassHelper.AsString: string;
begin
Result := 'TStdClass instance';
end;
class function TStdClassHelper.FromString(const AString: string): TStdClass;
begin
Result := TStdClass.Create.Convert<TStdClass>(AString);
end;
end.

View File

@ -0,0 +1 @@
{"leaves":["FreeFunc1","FreeProc1","FreeFunc2","FreeProc2","FreeProc3","FreeProc3","FreeFunc3","InternalProc1","FreeProc4","InternalFunc1","FreeProc5","InternalProc2","FreeProc6"],"nodes":[{"leaves":["Create","Destroy","Init","DeInit","ToType<X>","SetValue","Convert<X>"],"name":"TStdClass"},{"leaves":["Create","Destroy","CopyTo"],"name":"TStdClass.TStdInternalClass"},{"leaves":["Create","Destroy","Init<I>","DeInit","SetValue"],"name":"TGenericClass<T>"},{"leaves":["Create","Destroy","CopyTo<J>"],"name":"TGenericClass<T>.TGenericInternalClass<I, K>"},{"leaves":["Init","SetValue"],"name":"TInternalClass"},{"leaves":["ToString","FromString"],"name":"TEnumHelper"},{"leaves":["AsString","FromString"],"name":"TStdClassHelper"}],"root":"unitTest"}

View File

@ -0,0 +1,304 @@
#!/usr/bin/env perl
# pltags - create a tags file for Perl code, for use by vi(m)
#
# Distributed with Vim <http://www.vim.org/>, latest version always available
# at <http://www.mscha.com/mscha.html?pltags#tools>
#
# Version 2.3, 28 February 2002
#
# Written by Michael Schaap <pltags@mscha.com>. Suggestions for improvement
# are very welcome!
#
# This script will not work with Perl 4 or below!
#
# Revision history:
# 1.0 1997? Original version, quickly hacked together
# 2.0 1999? Completely rewritten, better structured and documented,
# support for variables, packages, Exuberant Ctags extensions
# 2.1 Jun 2000 Fixed critical bug (typo in comment) ;-)
# Support multiple level packages (e.g. Archive::Zip::Member)
# 2.2 Jul 2001 'Glob' wildcards - especially useful under Windows
# (thanks to Serge Sivkov and Jason King)
# Bug fix: reset package name for each file
# 2.21 Jul 2001 Oops... bug in variable detection (/local../ -> /^local.../)
# 2.3 Feb 2002 Support variables declared with "our"
# (thanks to Lutz Mende)
# Complain about undeclared variables
use strict;
# Used modules
use Getopt::Long;
# Options with their defaults
my $do_subs = 1; # --subs, --nosubs include subs in tags file?
my $do_vars = 1; # --vars, --novars include variables in tags file?
my $do_pkgs = 1; # --pkgs, --nopkgs include packages in tags file?
my $do_exts = 1; # --extensions, --noextensions
# include Exuberant Ctags extensions
# Global variables
my $VERSION = "2.21"; # pltags version
my $status = 0; # GetOptions return value
my $file = ""; # File being processed
my @tags = (); # List of produced tags
my $is_pkg = 0; # Are we tagging a package?
my $has_subs = 0; # Has this file any subs yet?
my $package_name = ""; # Name of current package
my $var_continues = 0; # Variable declaration continues on last line
my $line = ""; # Current line in file
my $stmt = ""; # Current Perl statement
my @vars = (); # List of variables in declaration
my $var = ""; # Variable in declaration
my $tagline = ""; # Tag file line
# Create a tag file line and push it on the list of found tags
sub MakeTag($$$$$)
{
my ($tag, # Tag name
$type, # Type of tag
$is_static, # Is this a static tag?
$file, # File in which tag appears
$line) = @_; # Line in which tag appears
my $tagline = ""; # Created tag line
# Only process tag if not empty
if ($tag)
{
# Get rid of \n, and escape / and \ in line
chomp $line;
$line =~ s/\\/\\\\/g;
$line =~ s/\//\\\//g;
# Create a tag line
$tagline = "$tag\t$file\t/^$line\$/";
# If we're told to do so, add extensions
if ($do_exts)
{
$tagline .= ";\"\t$type"
. ($is_static ? "\tfile:" : "")
. ($package_name ? "\tclass:$package_name" : "");
}
# Push it on the stack
push (@tags, $tagline);
}
}
# Parse package name from statement
sub PackageName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "package". Return it if found, else return ""
if ($stmt =~ /^package\s+([\w:]+)/)
{
my $pkgname = $1;
# Remove any parent package name(s)
$pkgname =~ s/.*://;
return $pkgname;
}
else
{
return "";
}
}
# Parse sub name from statement
sub SubName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "sub". Return it if found, else return ""
if ($stmt =~ /^sub\s+([\w:]+)/)
{
my $subname = $1;
# Remove any parent package name(s)
$subname =~ s/.*://;
return $subname;
}
else
{
return "";
}
}
# Parse all variable names from statement
sub VarNames($)
{
my ($stmt) = @_;
# Remove my or local from statement, if present
$stmt =~ s/^(my|our|local)\s+//;
# Remove any assignment piece
$stmt =~ s/\s*=.*//;
# Now find all variable names, i.e. "words" preceded by $, @ or %
@vars = ($stmt =~ /[\$\@\%]([\w:]+)\b/g);
# Remove any parent package name(s)
map(s/.*://, @vars);
return (@vars);
}
sub functionNoParentheses {
return 1
}
############### Start ###############
print "\npltags $VERSION by Michael Schaap <mscha\@mscha.com>\n\n";
# Get options
$status = GetOptions("subs!" => \$do_subs,
"vars!" => \$do_vars,
"pkgs!" => \$do_pkgs,
"extensions!" => \$do_exts);
# Usage if error in options or no arguments given
unless ($status && @ARGV)
{
print "\n" unless ($status);
print " Usage: $0 [options] filename ...\n\n";
print " Where options can be:\n";
print " --subs (--nosubs) (don't) include sub declarations in tag file\n";
print " --vars (--novars) (don't) include variable declarations in tag file\n";
print " --pkgs (--nopkgs) (don't) include package declarations in tag file\n";
print " --extensions (--noextensions)\n";
print " (don't) include Exuberant Ctags / Vim style\n";
print " extensions in tag file\n\n";
print " Default options: ";
print ($do_subs ? "--subs " : "--nosubs ");
print ($do_vars ? "--vars " : "--novars ");
print ($do_pkgs ? "--pkgs " : "--nopkgs ");
print ($do_exts ? "--extensions\n\n" : "--noextensions\n\n");
print " Example: $0 *.pl *.pm ../shared/*.pm\n\n";
exit;
}
# Loop through files on command line - 'glob' any wildcards, since Windows
# doesn't do this for us
foreach $file (map { glob } @ARGV)
{
# Skip if this is not a file we can open. Also skip tags files and backup
# files
next unless ((-f $file) && (-r $file) && ($file !~ /tags$/)
&& ($file !~ /~$/));
print "Tagging file $file...\n";
$is_pkg = 0;
$package_name = "";
$has_subs = 0;
$var_continues = 0;
open (IN, $file) or die "Can't open file '$file': $!";
# Loop through file
foreach $line (<IN>)
{
# Statement is line with comments and whitespace trimmed
($stmt = $line) =~ s/#.*//;
$stmt =~ s/^\s*//;
$stmt =~ s/\s*$//;
# Nothing left? Never mind.
next unless ($stmt);
# This is a variable declaration if one was started on the previous
# line, or if this line starts with my or local
if ($var_continues or ($stmt =~/^my\b/)
or ($stmt =~/^our\b/) or ($stmt =~/^local\b/))
{
# The declaration continues if the line does not end with ;
$var_continues = ($stmt !~ /;$/);
# Loop through all variable names in the declaration
foreach $var (VarNames($stmt))
{
# Make a tag for this variable unless we're told not to. We
# assume that a variable is always static, unless it appears
# in a package before any sub. (Not necessarily true, but
# it's ok for most purposes and Vim works fine even if it is
# incorrect)
if ($do_vars)
{
MakeTag($var, "v", (!$is_pkg or $has_subs), $file, $line);
}
}
}
# This is a package declaration if the line starts with package
elsif ($stmt =~/^package\b/)
{
# Get name of the package
$package_name = PackageName($stmt);
if ($package_name)
{
# Remember that we're doing a package
$is_pkg = 1;
# Make a tag for this package unless we're told not to. A
# package is never static.
if ($do_pkgs)
{
MakeTag($package_name, "p", 0, $file, $line);
}
}
}
# This is a sub declaration if the line starts with sub
elsif ($stmt =~/^sub\b/)
{
# Remember that this file has subs
$has_subs = 1;
# Make a tag for this sub unless we're told not to. We assume
# that a sub is static, unless it appears in a package. (Not
# necessarily true, but it's ok for most purposes and Vim works
# fine even if it is incorrect)
if ($do_subs)
{
MakeTag(SubName($stmt), "s", (!$is_pkg), $file, $line);
}
}
}
close (IN);
}
# Do we have any tags? If so, write them to the tags file
if (@tags)
{
# Add some tag file extensions if we're told to
if ($do_exts)
{
push (@tags, "!_TAG_FILE_FORMAT\t2\t/extended format/");
push (@tags, "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted/");
push (@tags, "!_TAG_PROGRAM_AUTHOR\tMichael Schaap\t/mscha\@mscha.com/");
push (@tags, "!_TAG_PROGRAM_NAME\tpltags\t//");
push (@tags, "!_TAG_PROGRAM_VERSION\t$VERSION\t/supports multiple tags and extended format/");
}
print "\nWriting tags file.\n";
open (OUT, ">tags") or die "Can't open tags file: $!";
foreach $tagline (sort @tags)
{
print OUT "$tagline\n";
}
close (OUT);
}
else
{
print "\nNo tags found.\n";
}

View File

@ -0,0 +1 @@
{"leaves":["MakeTag","PackageName","SubName","VarNames","functionNoParentheses"],"root":"unitTest"}

View File

@ -0,0 +1,125 @@
<?php
/*
************************************************************************
Copyright [2014] [PagSeguro Internet Ltda.]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
************************************************************************
*/
require_once "../PagSeguroLibrary/PagSeguroLibrary.php";
function for123(){
alert 'nothing';
}
abstract class PageGrille extends PageMotsBleus{
abstract function GetTypeGrille() ; // blabla blabla
abstract function GetGrilleJSON($p_grilleId); // Retourn JSON
function CleanStr($pStr){
return str_replace ( "\\" , "" , $pStr);
}
function GetJavascriptMajax() { /* a block comment */
return "ABC";
}
/*
function commentedFunc1() {
return "commented 1";
}
*/
}
function stringContainAsterisk_test1(){
$target = '/path/to/files/*';
}
/*function commentedFunc2(){
return "commented 2";
}*/
function stringContainAsterisk_test2(){
$target = '/path/to/files/*.jpg';
}
class NotificationListener
{
public static function main()
{
$code = (isset($_POST['notificationCode']) && trim($_POST['notificationCode']) !== "" ?
trim($_POST['notificationCode']) : null);
$type = (isset($_POST['notificationType']) && trim($_POST['notificationType']) !== "" ?
trim($_POST['notificationType']) : null);
if ($code && $type) {
$notificationType = new PagSeguroNotificationType($type);
$strType = $notificationType->getTypeFromValue();
switch ($strType) {
case 'TRANSACTION':
self::transactionNotification($code);
break;
case 'APPLICATION_AUTHORIZATION':
self::authorizationNotification($code);
break;
case 'PRE_APPROVAL':
self::preApprovalNotification($code);
break;
default:
LogPagSeguro::error("Unknown notification type [" . $notificationType->getValue() . "]");
}
self::printLog($strType);
} else {
LogPagSeguro::error("Invalid notification parameters.");
self::printLog();
}
}
private static function transactionNotification($notificationCode)
{
$credentials = PagSeguroConfig::getAccountCredentials();
try {
$transaction = PagSeguroNotificationService::checkTransaction($credentials, $notificationCode);
// Do something with $transaction
} catch (PagSeguroServiceException $e) {
die($e->getMessage());
}
}
private static function authorizationNotification($notificationCode)
{
$credentials = PagSeguroConfig::getApplicationCredentials();
try {
$authorization = PagSeguroNotificationService::checkAuthorization($credentials, $notificationCode);
// Do something with $authorization
} catch (PagSeguroServiceException $e) {
die($e->getMessage());
}
}
private static function preApprovalNotification($preApprovalCode)
{
$credentials = PagSeguroConfig::getAccountCredentials();
try {
$preApproval = PagSeguroNotificationService::checkPreApproval($credentials, $preApprovalCode);
// Do something with $preApproval
} catch (PagSeguroServiceException $e) {
die($e->getMessage());
}
}
private static function printLog($strType = null)
{
$count = 4;
echo "<h2>Receive notifications</h2>";
if ($strType) {
echo "<h4>notifcationType: $strType</h4>";
}
echo "<p>Last <strong>$count</strong> items in <strong>log file:</strong></p><hr>";
echo LogPagSeguro::getHtml($count);
}
}
NotificationListener::main();

View File

@ -0,0 +1 @@
{"leaves":["for123()","stringContainAsterisk_test1()","stringContainAsterisk_test2()"],"nodes":[{"leaves":["GetTypeGrille","GetGrilleJSON","CleanStr","GetJavascriptMajax"],"name":"PageGrille"},{"leaves":["main","transactionNotification","authorizationNotification","preApprovalNotification","printLog"],"name":"NotificationListener"}],"root":"unitTest"}

View File

@ -0,0 +1,328 @@
#
# PowerConsole profile
#
<#
.SYNOPSIS
Clear the host content.
.DESCRIPTION
This function replaces the standard Clear-Host and is aliased by "cls".
#>
function Clear-Host
{
$host.PrivateData.ClearHost()
}
<#
function Commented-Func
{
return $s
}
#>
<#
.SYNOPSIS
Simple path completion function for PowerConsole.
#>
function _TabExpansionPath($line)
{
function UnquoteString($s) {
if ($s.StartsWith('"') -or $s.StartsWith("'")) {
$s = $s.Substring(1)
}
if ($s.EndsWith('"') -or $s.EndsWith("'")) {
$s = $s.Substring(0, $s.Length - 1)
}
return $s
}
$e = $null
$tokens = @([System.Management.Automation.PSParser]::Tokenize($line, [ref]$e))
$lastToken = $tokens | Select-Object -Last 1
$replaceStart = -1
$lastWord = $null
if ($lastToken -and ($lastToken.EndColumn -gt $line.Length)) {
#Last token is terminated
if ($tokens.Length -gt 1) {
$prevToken = $tokens[$tokens.Length - 2]
if ($prevToken.EndColumn -eq $lastToken.StartColumn) {
$replaceStart = $prevToken.StartColumn - 1
$lastWord = (UnquoteString $prevToken.Content) + (UnquoteString $lastToken.Content)
}
}
if ($replaceStart -lt 0) {
$replaceStart = $lastToken.StartColumn - 1
$lastWord = UnquoteString $lastToken.Content
}
} else {
#There is unrecognized/unterminated words
if(!$lastToken) {
$lastWord = $line
} else {
$lastWord = $line.Substring($lastToken.EndColumn - 1).TrimStart()
}
$replaceStart = $line.Length - $lastWord.Length
$lastWord = UnquoteString $lastWord
}
# If previously unquoted, put back quote in results
$unquoted = ($replaceStart -lt ($line.Length - $lastWord.Length))
$relative = !(($lastWord.IndexOf(':') -ge 0) -or $lastWord.StartsWith('/') -or $lastWord.StartsWith('\'))
$result = "" | select ReplaceStart, Paths
$result.ReplaceStart = $replaceStart
$result.Paths = @(Resolve-Path ${lastWord}* -ErrorAction SilentlyContinue -Relative:$relative | %{
# Resolve-Path may return PathInfo or String (e.g. when passing different -Relative)
$path = $_.ToString()
if ($unquoted -or ($path.IndexOf(' ') -ge 0)) {
"'$path'"
} else {
$path
}
})
$result
}
<#
.SYNOPSIS
Get an explict interface on an object so that you can invoke the interface members.
.DESCRIPTION
PowerShell object adapter does not provide explict interface members. For COM objects
it only makes IDispatch members available.
This function helps access interface members on an object through reflection. A new
object is returned with the interface members as ScriptProperties and ScriptMethods.
.EXAMPLE
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
#>
function Get-Interface
{
Param(
$Object,
[type]$InterfaceType
)
[NuGetConsole.Host.PowerShell.Implementation.PSTypeWrapper]::GetInterface($Object, $InterfaceType)
}
<#
.SYNOPSIS
Get a VS service.
.EXAMPLE
Get-VSService ([Microsoft.VisualStudio.Shell.Interop.SVsShell]) ([Microsoft.VisualStudio.Shell.Interop.IVsShell])
#>
function Get-VSService
{
Param(
[type]$ServiceType,
[type]$InterfaceType
)
$service = [Microsoft.VisualStudio.Shell.Package]::GetGlobalService($ServiceType)
if ($service -and $InterfaceType) {
$service = Get-Interface $service $InterfaceType
}
$service
}
<#
.SYNOPSIS
Get VS IComponentModel service to access VS MEF hosting.
#>
function Get-VSComponentModel
{
Get-VSService ([Microsoft.VisualStudio.ComponentModelHost.SComponentModel]) ([Microsoft.VisualStudio.ComponentModelHost.IComponentModel])
}
# Set initial directory
Set-Location "$env:USERPROFILE"
# For PowerShell v2, we need to create a reference to the default TabExpansion function
# so we can delegate back to it in our custom function. This isn't needed in PowerShell v3,
# as omitting output in a custom TabExpansion function signals to TabExpansion2 that it
# should use its own completion list.
if ((Test-Path Function:\DefaultTabExpansion) -eq $false -and (Test-Path Function:\TabExpansion)) {
Rename-Item Function:\TabExpansion DefaultTabExpansion
}
function TabExpansion([string]$line, [string]$lastWord) {
$nugetSuggestions = & (Get-Module NuGet) NuGetTabExpansion $line $lastWord
if ($nugetSuggestions.NoResult) {
# We only want to delegate back to the default tab completion in PowerShell v2.
# PowerShell v3's TabExpansion2 will use its own command completion list if the
# custom TabExpansion doesn't return anything.
if (Test-Path Function:\DefaultTabExpansion) {
$line = $line.ToUpperInvariant()
$lastWord = $lastWord.ToUpperInvariant()
return DefaultTabExpansion $line $lastWord
}
}
else {
return $nugetSuggestions
}
}
# default prompt
function prompt {
"PM>"
}
# SIG # Begin signature block
# MIIavQYJKoZIhvcNAQcCoIIarjCCGqoCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUzrybryeGjFQ1ndAZPspjCdvf
# ahSgghWCMIIEwzCCA6ugAwIBAgITMwAAAG9lLVhtBxFGKAAAAAAAbzANBgkqhkiG
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTUwMzIwMTczMjAy
# WhcNMTYwNjIwMTczMjAyWjCBszELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp
# bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw
# b3JhdGlvbjENMAsGA1UECxMETU9QUjEnMCUGA1UECxMebkNpcGhlciBEU0UgRVNO
# OkMwRjQtMzA4Ni1ERUY4MSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBT
# ZXJ2aWNlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+ZtzcEqza6o
# XtiVTy0DQ0dzO7hC0tBXmt32UzZ31YhFJGrIq9Bm6YvFqg+e8oNGtirJ2DbG9KD/
# EW9m8F4UGbKxZ/jxXpSGqo4lr/g1E/2CL8c4XlPAdhzF03k7sGPrT5OaBfCiF3Hc
# xgyW0wAFLkxtWLN/tCwkcHuWaSxsingJbUmZjjo+ZpWPT394G2B7V8lR9EttUcM0
# t/g6CtYR38M6pR6gONzrrar4Q8SDmo2XNAM0BBrvrVQ2pNQaLP3DbvB45ynxuUTA
# cbQvxBCLDPc2Ynn9B1d96gV8TJ9OMD8nUDhmBrtdqD7FkNvfPHZWrZUgNFNy7WlZ
# bvBUH0DVOQIDAQABo4IBCTCCAQUwHQYDVR0OBBYEFPKmSSl4fFdwUmLP7ay3eyA0
# R9z9MB8GA1UdIwQYMBaAFCM0+NlSRnAK7UD7dvuzK7DDNbMPMFQGA1UdHwRNMEsw
# SaBHoEWGQ2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3Rz
# L01pY3Jvc29mdFRpbWVTdGFtcFBDQS5jcmwwWAYIKwYBBQUHAQEETDBKMEgGCCsG
# AQUFBzAChjxodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY3Jv
# c29mdFRpbWVTdGFtcFBDQS5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwgwDQYJKoZI
# hvcNAQEFBQADggEBAI2zTLbY7A2Hhhle5ADnl7jVz0wKPL33VdP08KCvVXKcI5e5
# girHFgrFJxNZ0NowK4hCulID5l7JJWgnJ41kp235t5pqqz6sQtAeJCbMVK/2kIFr
# Hq1Dnxt7EFdqMjYxokRoAZhaKxK0iTH2TAyuFTy3JCRdu/98U0yExA3NRnd+Kcqf
# skZigrQ0x/USaVytec0x7ulHjvj8U/PkApBRa876neOFv1mAWRDVZ6NMpvLkoLTY
# wTqhakimiM5w9qmc3vNTkz1wcQD/vut8/P8IYw9LUVmrFRmQdB7/u72qNZs9nvMQ
# FNV69h/W4nXzknQNrRbZEs+hm63SEuoAOyMVDM8wggTsMIID1KADAgECAhMzAAAB
# Cix5rtd5e6asAAEAAAEKMA0GCSqGSIb3DQEBBQUAMHkxCzAJBgNVBAYTAlVTMRMw
# EQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVN
# aWNyb3NvZnQgQ29ycG9yYXRpb24xIzAhBgNVBAMTGk1pY3Jvc29mdCBDb2RlIFNp
# Z25pbmcgUENBMB4XDTE1MDYwNDE3NDI0NVoXDTE2MDkwNDE3NDI0NVowgYMxCzAJ
# BgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25k
# MR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xDTALBgNVBAsTBE1PUFIx
# HjAcBgNVBAMTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjCCASIwDQYJKoZIhvcNAQEB
# BQADggEPADCCAQoCggEBAJL8bza74QO5KNZG0aJhuqVG+2MWPi75R9LH7O3HmbEm
# UXW92swPBhQRpGwZnsBfTVSJ5E1Q2I3NoWGldxOaHKftDXT3p1Z56Cj3U9KxemPg
# 9ZSXt+zZR/hsPfMliLO8CsUEp458hUh2HGFGqhnEemKLwcI1qvtYb8VjC5NJMIEb
# e99/fE+0R21feByvtveWE1LvudFNOeVz3khOPBSqlw05zItR4VzRO/COZ+owYKlN
# Wp1DvdsjusAP10sQnZxN8FGihKrknKc91qPvChhIqPqxTqWYDku/8BTzAMiwSNZb
# /jjXiREtBbpDAk8iAJYlrX01boRoqyAYOCj+HKIQsaUCAwEAAaOCAWAwggFcMBMG
# A1UdJQQMMAoGCCsGAQUFBwMDMB0GA1UdDgQWBBSJ/gox6ibN5m3HkZG5lIyiGGE3
# NDBRBgNVHREESjBIpEYwRDENMAsGA1UECxMETU9QUjEzMDEGA1UEBRMqMzE1OTUr
# MDQwNzkzNTAtMTZmYS00YzYwLWI2YmYtOWQyYjFjZDA1OTg0MB8GA1UdIwQYMBaA
# FMsR6MrStBZYAck3LjMWFrlMmgofMFYGA1UdHwRPME0wS6BJoEeGRWh0dHA6Ly9j
# cmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY0NvZFNpZ1BDQV8w
# OC0zMS0yMDEwLmNybDBaBggrBgEFBQcBAQROMEwwSgYIKwYBBQUHMAKGPmh0dHA6
# Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljQ29kU2lnUENBXzA4LTMx
# LTIwMTAuY3J0MA0GCSqGSIb3DQEBBQUAA4IBAQCmqFOR3zsB/mFdBlrrZvAM2PfZ
# hNMAUQ4Q0aTRFyjnjDM4K9hDxgOLdeszkvSp4mf9AtulHU5DRV0bSePgTxbwfo/w
# iBHKgq2k+6apX/WXYMh7xL98m2ntH4LB8c2OeEti9dcNHNdTEtaWUu81vRmOoECT
# oQqlLRacwkZ0COvb9NilSTZUEhFVA7N7FvtH/vto/MBFXOI/Enkzou+Cxd5AGQfu
# FcUKm1kFQanQl56BngNb/ErjGi4FrFBHL4z6edgeIPgF+ylrGBT6cgS3C6eaZOwR
# XU9FSY0pGi370LYJU180lOAWxLnqczXoV+/h6xbDGMcGszvPYYTitkSJlKOGMIIF
# vDCCA6SgAwIBAgIKYTMmGgAAAAAAMTANBgkqhkiG9w0BAQUFADBfMRMwEQYKCZIm
# iZPyLGQBGRYDY29tMRkwFwYKCZImiZPyLGQBGRYJbWljcm9zb2Z0MS0wKwYDVQQD
# EyRNaWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMTAwODMx
# MjIxOTMyWhcNMjAwODMxMjIyOTMyWjB5MQswCQYDVQQGEwJVUzETMBEGA1UECBMK
# V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0
# IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBD
# QTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJyWVwZMGS/HZpgICBC
# mXZTbD4b1m/My/Hqa/6XFhDg3zp0gxq3L6Ay7P/ewkJOI9VyANs1VwqJyq4gSfTw
# aKxNS42lvXlLcZtHB9r9Jd+ddYjPqnNEf9eB2/O98jakyVxF3K+tPeAoaJcap6Vy
# c1bxF5Tk/TWUcqDWdl8ed0WDhTgW0HNbBbpnUo2lsmkv2hkL/pJ0KeJ2L1TdFDBZ
# +NKNYv3LyV9GMVC5JxPkQDDPcikQKCLHN049oDI9kM2hOAaFXE5WgigqBTK3S9dP
# Y+fSLWLxRT3nrAgA9kahntFbjCZT6HqqSvJGzzc8OJ60d1ylF56NyxGPVjzBrAlf
# A9MCAwEAAaOCAV4wggFaMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMsR6MrS
# tBZYAck3LjMWFrlMmgofMAsGA1UdDwQEAwIBhjASBgkrBgEEAYI3FQEEBQIDAQAB
# MCMGCSsGAQQBgjcVAgQWBBT90TFO0yaKleGYYDuoMW+mPLzYLTAZBgkrBgEEAYI3
# FAIEDB4KAFMAdQBiAEMAQTAfBgNVHSMEGDAWgBQOrIJgQFYnl+UlE/wq4QpTlVnk
# pDBQBgNVHR8ESTBHMEWgQ6BBhj9odHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtp
# L2NybC9wcm9kdWN0cy9taWNyb3NvZnRyb290Y2VydC5jcmwwVAYIKwYBBQUHAQEE
# SDBGMEQGCCsGAQUFBzAChjhodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2Nl
# cnRzL01pY3Jvc29mdFJvb3RDZXJ0LmNydDANBgkqhkiG9w0BAQUFAAOCAgEAWTk+
# fyZGr+tvQLEytWrrDi9uqEn361917Uw7LddDrQv+y+ktMaMjzHxQmIAhXaw9L0y6
# oqhWnONwu7i0+Hm1SXL3PupBf8rhDBdpy6WcIC36C1DEVs0t40rSvHDnqA2iA6VW
# 4LiKS1fylUKc8fPv7uOGHzQ8uFaa8FMjhSqkghyT4pQHHfLiTviMocroE6WRTsgb
# 0o9ylSpxbZsa+BzwU9ZnzCL/XB3Nooy9J7J5Y1ZEolHN+emjWFbdmwJFRC9f9Nqu
# 1IIybvyklRPk62nnqaIsvsgrEA5ljpnb9aL6EiYJZTiU8XofSrvR4Vbo0HiWGFzJ
# NRZf3ZMdSY4tvq00RBzuEBUaAF3dNVshzpjHCe6FDoxPbQ4TTj18KUicctHzbMrB
# 7HCjV5JXfZSNoBtIA1r3z6NnCnSlNu0tLxfI5nI3EvRvsTxngvlSso0zFmUeDord
# EN5k9G/ORtTTF+l5xAS00/ss3x+KnqwK+xMnQK3k+eGpf0a7B2BHZWBATrBC7E7t
# s3Z52Ao0CW0cgDEf4g5U3eWh++VHEK1kmP9QFi58vwUheuKVQSdpw5OPlcmN2Jsh
# rg1cnPCiroZogwxqLbt2awAdlq3yFnv2FoMkuYjPaqhHMS+a3ONxPdcAfmJH0c6I
# ybgY+g5yjcGjPa8CQGr/aZuW4hCoELQ3UAjWwz0wggYHMIID76ADAgECAgphFmg0
# AAAAAAAcMA0GCSqGSIb3DQEBBQUAMF8xEzARBgoJkiaJk/IsZAEZFgNjb20xGTAX
# BgoJkiaJk/IsZAEZFgltaWNyb3NvZnQxLTArBgNVBAMTJE1pY3Jvc29mdCBSb290
# IENlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0wNzA0MDMxMjUzMDlaFw0yMTA0MDMx
# MzAzMDlaMHcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYD
# VQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xITAf
# BgNVBAMTGE1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQTCCASIwDQYJKoZIhvcNAQEB
# BQADggEPADCCAQoCggEBAJ+hbLHf20iSKnxrLhnhveLjxZlRI1Ctzt0YTiQP7tGn
# 0UytdDAgEesH1VSVFUmUG0KSrphcMCbaAGvoe73siQcP9w4EmPCJzB/LMySHnfL0
# Zxws/HvniB3q506jocEjU8qN+kXPCdBer9CwQgSi+aZsk2fXKNxGU7CG0OUoRi4n
# rIZPVVIM5AMs+2qQkDBuh/NZMJ36ftaXs+ghl3740hPzCLdTbVK0RZCfSABKR2YR
# JylmqJfk0waBSqL5hKcRRxQJgp+E7VV4/gGaHVAIhQAQMEbtt94jRrvELVSfrx54
# QTF3zJvfO4OToWECtR0Nsfz3m7IBziJLVP/5BcPCIAsCAwEAAaOCAaswggGnMA8G
# A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFCM0+NlSRnAK7UD7dvuzK7DDNbMPMAsG
# A1UdDwQEAwIBhjAQBgkrBgEEAYI3FQEEAwIBADCBmAYDVR0jBIGQMIGNgBQOrIJg
# QFYnl+UlE/wq4QpTlVnkpKFjpGEwXzETMBEGCgmSJomT8ixkARkWA2NvbTEZMBcG
# CgmSJomT8ixkARkWCW1pY3Jvc29mdDEtMCsGA1UEAxMkTWljcm9zb2Z0IFJvb3Qg
# Q2VydGlmaWNhdGUgQXV0aG9yaXR5ghB5rRahSqClrUxzWPQHEy5lMFAGA1UdHwRJ
# MEcwRaBDoEGGP2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1
# Y3RzL21pY3Jvc29mdHJvb3RjZXJ0LmNybDBUBggrBgEFBQcBAQRIMEYwRAYIKwYB
# BQUHMAKGOGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljcm9z
# b2Z0Um9vdENlcnQuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMIMA0GCSqGSIb3DQEB
# BQUAA4ICAQAQl4rDXANENt3ptK132855UU0BsS50cVttDBOrzr57j7gu1BKijG1i
# uFcCy04gE1CZ3XpA4le7r1iaHOEdAYasu3jyi9DsOwHu4r6PCgXIjUji8FMV3U+r
# kuTnjWrVgMHmlPIGL4UD6ZEqJCJw+/b85HiZLg33B+JwvBhOnY5rCnKVuKE5nGct
# xVEO6mJcPxaYiyA/4gcaMvnMMUp2MT0rcgvI6nA9/4UKE9/CCmGO8Ne4F+tOi3/F
# NSteo7/rvH0LQnvUU3Ih7jDKu3hlXFsBFwoUDtLaFJj1PLlmWLMtL+f5hYbMUVbo
# nXCUbKw5TNT2eb+qGHpiKe+imyk0BncaYsk9Hm0fgvALxyy7z0Oz5fnsfbXjpKh0
# NbhOxXEjEiZ2CzxSjHFaRkMUvLOzsE1nyJ9C/4B5IYCeFTBm6EISXhrIniIh0EPp
# K+m79EjMLNTYMoBMJipIJF9a6lbvpt6Znco6b72BJ3QGEe52Ib+bgsEnVLaxaj2J
# oXZhtG6hE6a/qkfwEm/9ijJssv7fUciMI8lmvZ0dhxJkAj0tr1mPuOQh5bWwymO0
# eFQF1EEuUKyUsKV4q7OglnUa2ZKHE3UiLzKoCG6gW4wlv6DvhMoh1useT8ma7kng
# 9wFlb4kLfchpyOZu6qeXzjEp/w7FW1zYTRuh2Povnj8uVRZryROj/TGCBKUwggSh
# AgEBMIGQMHkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYD
# VQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xIzAh
# BgNVBAMTGk1pY3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBAhMzAAABCix5rtd5e6as
# AAEAAAEKMAkGBSsOAwIaBQCggb4wGQYJKoZIhvcNAQkDMQwGCisGAQQBgjcCAQQw
# HAYKKwYBBAGCNwIBCzEOMAwGCisGAQQBgjcCARUwIwYJKoZIhvcNAQkEMRYEFMuf
# sd32QCBuLAAV0rkqW6bKVWYSMF4GCisGAQQBgjcCAQwxUDBOoDSAMgBNAGkAYwBy
# AG8AcwBvAGYAdAAgAFAAYQBjAGsAYQBnAGUAIABNAGEAbgBhAGcAZQByoRaAFGh0
# dHA6Ly93d3cuYXNwLm5ldC8gMA0GCSqGSIb3DQEBAQUABIIBAHRB+qXSplgnW2vY
# I0FrM1HeCaNpmZW0Y8ogeq+udpcfvuY5ma2j7aCZEd7ZX8CrEsSWnfFMSBMg6ThO
# oUxRbEDV46WIbWC3sm9IKFQyHZ+JOyTPlYPDHyCl8xldPE2Vm50ZWMFifP9lo3Cd
# 05gM21MP5jsNnWlU0SpHMgEup+2y7kf/7vyqVQD/hJzAt0M8R3eeFbANCbnGtShK
# xgXt5oZaL37x1QqBcrYGlUKZ/T3fVhMSq0Azsjz4MKgpsDyNt6dKHwuBHqrpeG5Q
# 2zMlAU1KT4ychtzPoIEyg7mDZBXFSebYD3FRGNr40QQP5ssZNp4aYkPc+OBbhZVN
# qECrNN6hggIoMIICJAYJKoZIhvcNAQkGMYICFTCCAhECAQEwgY4wdzELMAkGA1UE
# BhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc
# BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0
# IFRpbWUtU3RhbXAgUENBAhMzAAAAb2UtWG0HEUYoAAAAAABvMAkGBSsOAwIaBQCg
# XTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTA2
# MjQyMjUwNThaMCMGCSqGSIb3DQEJBDEWBBS3xuq3t+Yhu0yNOu+21zKtvYUE7DAN
# BgkqhkiG9w0BAQUFAASCAQCMFelTEi4zOXfdU6BBbGdP9O3MhBsgOrzG7cTJuZnG
# EYy9vvEafoyPg7hI07CXBRxkqOzo6YAYw3OiX7NuGYXb6wpfK38c6ub9UB2+MNay
# 6BbOyNIkFCqdGycIpyfWZgGNGjLVtZ/uAx0pCis6dSVFor+e+rVemjkeDyS4r9Jd
# XThMKXiuAljaQwWJGSRpwxHaBfa9bS4RV5PU0GvR6WGi+fEGZ9w8ujW2kW7/kH0e
# i2Gxzsgjd9yxw04IDt6swr2/iXw7TTU1RU1Wwb/BPlVMfW4oxvzJtDQUAVI2KsBL
# +dMO7jCcLk5rnY66+3WrxXsLmudCDm54BbOPn/mmZO1P
# SIG # End signature block

View File

@ -0,0 +1 @@
{"leaves":["Clear-Host","_TabExpansionPath","UnquoteString","Get-Interface","Get-VSService","Get-VSComponentModel","TabExpansion","prompt"],"root":"unitTest"}

View File

@ -0,0 +1,25 @@
def invisible_function1(): # invisible because at file start
pass
class VisibleClass1:
def __init__(self):
pass
def invisible_function2(): # invisible because nothing but linebreaks between VisibleClass1 and invisible_function2
pass
class VisibleClass2:
def __init__(self):
pass
# visible because there is something between VisibleClass2 and visible_function
def visible_function():
pass

View File

@ -0,0 +1 @@
{"leaves":["invisible_function1()","invisible_function2()","visible_function()"],"nodes":[{"leaves":["__init__(self)"],"name":"VisibleClass1"},{"leaves":["__init__(self)"],"name":"VisibleClass2"}],"root":"unitTest"}

View File

@ -0,0 +1,11 @@
def func1(a,b):
pass
def func2(a,b):
pass
def func3(a,b):
pass
def func4(a,b):
pass

View File

@ -0,0 +1 @@
{"leaves":["func1(a,b)","func2(a,b)","func3(a,b)","func4(a,b)"],"root":"unitTest"}

View File

@ -0,0 +1 @@
{"leaves":["func1(a,b)","func2(a,b)","func3(a,b)","func4(a,b)"],"root":"unitTest"}

View File

@ -0,0 +1,314 @@
from __future__ import print_function
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
# Accept No. of Nodes and edges
n, m = map(int, raw_input().split(" "))
# Initialising Dictionary of edges
g = {}
for i in xrange(n):
g[i + 1] = []
"""
--------------------------------------------------------------------------------
Accepting edges of Unweighted Directed Graphs
--------------------------------------------------------------------------------
"""
for _ in xrange(m):
x, y = map(int, raw_input().split(" "))
g[x].append(y)
"""
--------------------------------------------------------------------------------
Accepting edges of Unweighted Undirected Graphs
--------------------------------------------------------------------------------
"""
for _ in xrange(m):
x, y = map(int, raw_input().split(" "))
g[x].append(y)
g[y].append(x)
"""
--------------------------------------------------------------------------------
Accepting edges of Weighted Undirected Graphs
--------------------------------------------------------------------------------
"""
for _ in xrange(m):
x, y, r = map(int, raw_input().split(" "))
g[x].append([y, r])
g[y].append([x, r])
"""
--------------------------------------------------------------------------------
Depth First Search.
Args : G - Dictionary of edges
s - Starting Node
Vars : vis - Set of visited nodes
S - Traversal Stack
--------------------------------------------------------------------------------
"""
ssdef = 20
USER_DEF = 1000
def dfs(G, s):
vis, S = set([s]), [s]
print(s)
while S:
flag = 0
for i in G[S[-1]]:
if i not in vis:
S.append(i)
vis.add(i)
flag = 1
print(i)
break
if not flag:
S.pop()
"""
--------------------------------------------------------------------------------
Breadth First Search.
Args : G - Dictionary of edges
s - Starting Node
Vars : vis - Set of visited nodes
Q - Traveral Stack
--------------------------------------------------------------------------------
"""
from collections import deque
def bfs(G, s):
vis, Q = set([s]), deque([s])
print(s)
while Q:
u = Q.popleft()
for v in G[u]:
if v not in vis:
vis.add(v)
Q.append(v)
print(v)
"""
--------------------------------------------------------------------------------
Dijkstra's shortest path Algorithm
Args : G - Dictionary of edges
s - Starting Node
Vars : dist - Dictionary storing shortest distance from s to every other node
known - Set of knows nodes
path - Preceding node in path
--------------------------------------------------------------------------------
"""
def dijk(G, s):
dist, known, path = {s: 0}, set(), {s: 0}
while True:
if len(known) == len(G) - 1:
break
mini = 100000
for i in dist:
if i not in known and dist[i] < mini:
mini = dist[i]
u = i
known.add(u)
for v in G[u]:
if v[0] not in known:
if dist[u] + v[1] < dist.get(v[0], 100000):
dist[v[0]] = dist[u] + v[1]
path[v[0]] = u
for i in dist:
if i != s:
print(dist[i])
"""
--------------------------------------------------------------------------------
Topological Sort
--------------------------------------------------------------------------------
"""
from collections import deque
def topo(G, ind=None, Q=[1]):
if ind == None:
ind = [0] * (len(G) + 1) # SInce oth Index is ignored
for u in G:
for v in G[u]:
ind[v] += 1
Q = deque()
for i in G:
if ind[i] == 0:
Q.append(i)
if len(Q) == 0:
return
v = Q.popleft()
print(v)
for w in G[v]:
ind[w] -= 1
if ind[w] == 0:
Q.append(w)
topo(G, ind, Q)
"""
--------------------------------------------------------------------------------
Reading an Adjacency matrix
--------------------------------------------------------------------------------
"""
def adjm():
n, a = input(), []
for i in xrange(n):
a.append(map(int, raw_input().split()))
return a, n
"""
--------------------------------------------------------------------------------
Floyd Warshall's algorithm
Args : G - Dictionary of edges
s - Starting Node
Vars : dist - Dictionary storing shortest distance from s to every other node
known - Set of knows nodes
path - Preceding node in path
--------------------------------------------------------------------------------
"""
def floy(A_and_n):
(A, n) = A_and_n
dist = list(A)
path = [[0] * n for i in xrange(n)]
for k in xrange(n):
for i in xrange(n):
for j in xrange(n):
if dist[i][j] > dist[i][k] + dist[k][j]:
dist[i][j] = dist[i][k] + dist[k][j]
path[i][k] = k
print(dist)
"""
--------------------------------------------------------------------------------
Prim's MST Algorithm
Args : G - Dictionary of edges
s - Starting Node
Vars : dist - Dictionary storing shortest distance from s to nearest node
known - Set of knows nodes
path - Preceding node in path
--------------------------------------------------------------------------------
"""
def prim(G, s):
dist, known, path = {s: 0}, set(), {s: 0}
while True:
if len(known) == len(G) - 1:
break
mini = 100000
for i in dist:
if i not in known and dist[i] < mini:
mini = dist[i]
u = i
known.add(u)
for v in G[u]:
if v[0] not in known:
if v[1] < dist.get(v[0], 100000):
dist[v[0]] = v[1]
path[v[0]] = u
"""
--------------------------------------------------------------------------------
Accepting Edge list
Vars : n - Number of nodes
m - Number of edges
Returns : l - Edge list
n - Number of Nodes
--------------------------------------------------------------------------------
"""
def edglist():
n, m = map(int, raw_input().split(" "))
l = []
for i in xrange(m):
l.append(map(int, raw_input().split(' ')))
return l, n
"""
--------------------------------------------------------------------------------
Kruskal's MST Algorithm
Args : E - Edge list
n - Number of Nodes
Vars : s - Set of all nodes as unique disjoint sets (initially)
--------------------------------------------------------------------------------
"""
def krusk(E_and_n):
# Sort edges on the basis of distance
(E, n) = E_and_n
E.sort(reverse=True, key=lambda x: x[2])
s = [set([i]) for i in range(1, n + 1)]
while True:
if len(s) == 1:
break
print(s)
x = E.pop()
for i in xrange(len(s)):
if x[0] in s[i]:
break
for j in xrange(len(s)):
if x[1] in s[j]:
if i == j:
break
s[j].update(s[i])
s.pop(i)
break
INPUT_FILE_NAME = "example.txt"
class SampleClassBad (object):
# WrongClassName: this will appear in the function list
def __init__ (self, fileName):
self.fileName = fileName
class SampleClassGood(object):
# this works as expected: notice the missing space between
# the class name and the left parenthesis.
def __init__ (self, fileName):
self.fileName = fileName
def calculate_area(radius: float, pi: float = 3.14) -> float:
return pi * radius ** 2
async def greet(name: str) -> str:
return f"Hello, {name}!"
def add_numbers(a: int, b: int, c: int) -> int:
return a + b + c

View File

@ -0,0 +1 @@
{"leaves":["dfs(G, s)","bfs(G, s)","dijk(G, s)","topo(G, ind=None, Q=[1])","adjm()","floy(A_and_n)","prim(G, s)","edglist()","krusk(E_and_n)","greet(name: str) -> str","add_numbers(a: int, b: int, c: int) -> int"],"nodes":[{"leaves":["__init__ (self, fileName)"],"name":"SampleClassBad"},{"leaves":["__init__ (self, fileName)","calculate_area(radius: float, pi: float = 3.14) -> float"],"name":"SampleClassGood"}],"root":"unitTest"}

View File

@ -0,0 +1,304 @@
#!/usr/bin/env perl
# pltags - create a tags file for Perl code, for use by vi(m)
#
# Distributed with Vim <http://www.vim.org/>, latest version always available
# at <http://www.mscha.com/mscha.html?pltags#tools>
#
# Version 2.3, 28 February 2002
#
# Written by Michael Schaap <pltags@mscha.com>. Suggestions for improvement
# are very welcome!
#
# This script will not work with Perl 4 or below!
#
# Revision history:
# 1.0 1997? Original version, quickly hacked together
# 2.0 1999? Completely rewritten, better structured and documented,
# support for variables, packages, Exuberant Ctags extensions
# 2.1 Jun 2000 Fixed critical bug (typo in comment) ;-)
# Support multiple level packages (e.g. Archive::Zip::Member)
# 2.2 Jul 2001 'Glob' wildcards - especially useful under Windows
# (thanks to Serge Sivkov and Jason King)
# Bug fix: reset package name for each file
# 2.21 Jul 2001 Oops... bug in variable detection (/local../ -> /^local.../)
# 2.3 Feb 2002 Support variables declared with "our"
# (thanks to Lutz Mende)
# Complain about undeclared variables
use strict;
# Used modules
use Getopt::Long;
# Options with their defaults
my $do_subs = 1; # --subs, --nosubs include subs in tags file?
my $do_vars = 1; # --vars, --novars include variables in tags file?
my $do_pkgs = 1; # --pkgs, --nopkgs include packages in tags file?
my $do_exts = 1; # --extensions, --noextensions
# include Exuberant Ctags extensions
# Global variables
my $VERSION = "2.21"; # pltags version
my $status = 0; # GetOptions return value
my $file = ""; # File being processed
my @tags = (); # List of produced tags
my $is_pkg = 0; # Are we tagging a package?
my $has_subs = 0; # Has this file any subs yet?
my $package_name = ""; # Name of current package
my $var_continues = 0; # Variable declaration continues on last line
my $line = ""; # Current line in file
my $stmt = ""; # Current Perl statement
my @vars = (); # List of variables in declaration
my $var = ""; # Variable in declaration
my $tagline = ""; # Tag file line
# Create a tag file line and push it on the list of found tags
sub MakeTag($$$$$)
{
my ($tag, # Tag name
$type, # Type of tag
$is_static, # Is this a static tag?
$file, # File in which tag appears
$line) = @_; # Line in which tag appears
my $tagline = ""; # Created tag line
# Only process tag if not empty
if ($tag)
{
# Get rid of \n, and escape / and \ in line
chomp $line;
$line =~ s/\\/\\\\/g;
$line =~ s/\//\\\//g;
# Create a tag line
$tagline = "$tag\t$file\t/^$line\$/";
# If we're told to do so, add extensions
if ($do_exts)
{
$tagline .= ";\"\t$type"
. ($is_static ? "\tfile:" : "")
. ($package_name ? "\tclass:$package_name" : "");
}
# Push it on the stack
push (@tags, $tagline);
}
}
# Parse package name from statement
sub PackageName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "package". Return it if found, else return ""
if ($stmt =~ /^package\s+([\w:]+)/)
{
my $pkgname = $1;
# Remove any parent package name(s)
$pkgname =~ s/.*://;
return $pkgname;
}
else
{
return "";
}
}
# Parse sub name from statement
sub SubName($)
{
my ($stmt) = @_; # Statement
# Look for the argument to "sub". Return it if found, else return ""
if ($stmt =~ /^sub\s+([\w:]+)/)
{
my $subname = $1;
# Remove any parent package name(s)
$subname =~ s/.*://;
return $subname;
}
else
{
return "";
}
}
# Parse all variable names from statement
sub VarNames($)
{
my ($stmt) = @_;
# Remove my or local from statement, if present
$stmt =~ s/^(my|our|local)\s+//;
# Remove any assignment piece
$stmt =~ s/\s*=.*//;
# Now find all variable names, i.e. "words" preceded by $, @ or %
@vars = ($stmt =~ /[\$\@\%]([\w:]+)\b/g);
# Remove any parent package name(s)
map(s/.*://, @vars);
return (@vars);
}
sub functionNoParentheses {
return 1
}
############### Start ###############
print "\npltags $VERSION by Michael Schaap <mscha\@mscha.com>\n\n";
# Get options
$status = GetOptions("subs!" => \$do_subs,
"vars!" => \$do_vars,
"pkgs!" => \$do_pkgs,
"extensions!" => \$do_exts);
# Usage if error in options or no arguments given
unless ($status && @ARGV)
{
print "\n" unless ($status);
print " Usage: $0 [options] filename ...\n\n";
print " Where options can be:\n";
print " --subs (--nosubs) (don't) include sub declarations in tag file\n";
print " --vars (--novars) (don't) include variable declarations in tag file\n";
print " --pkgs (--nopkgs) (don't) include package declarations in tag file\n";
print " --extensions (--noextensions)\n";
print " (don't) include Exuberant Ctags / Vim style\n";
print " extensions in tag file\n\n";
print " Default options: ";
print ($do_subs ? "--subs " : "--nosubs ");
print ($do_vars ? "--vars " : "--novars ");
print ($do_pkgs ? "--pkgs " : "--nopkgs ");
print ($do_exts ? "--extensions\n\n" : "--noextensions\n\n");
print " Example: $0 *.pl *.pm ../shared/*.pm\n\n";
exit;
}
# Loop through files on command line - 'glob' any wildcards, since Windows
# doesn't do this for us
foreach $file (map { glob } @ARGV)
{
# Skip if this is not a file we can open. Also skip tags files and backup
# files
next unless ((-f $file) && (-r $file) && ($file !~ /tags$/)
&& ($file !~ /~$/));
print "Tagging file $file...\n";
$is_pkg = 0;
$package_name = "";
$has_subs = 0;
$var_continues = 0;
open (IN, $file) or die "Can't open file '$file': $!";
# Loop through file
foreach $line (<IN>)
{
# Statement is line with comments and whitespace trimmed
($stmt = $line) =~ s/#.*//;
$stmt =~ s/^\s*//;
$stmt =~ s/\s*$//;
# Nothing left? Never mind.
next unless ($stmt);
# This is a variable declaration if one was started on the previous
# line, or if this line starts with my or local
if ($var_continues or ($stmt =~/^my\b/)
or ($stmt =~/^our\b/) or ($stmt =~/^local\b/))
{
# The declaration continues if the line does not end with ;
$var_continues = ($stmt !~ /;$/);
# Loop through all variable names in the declaration
foreach $var (VarNames($stmt))
{
# Make a tag for this variable unless we're told not to. We
# assume that a variable is always static, unless it appears
# in a package before any sub. (Not necessarily true, but
# it's ok for most purposes and Vim works fine even if it is
# incorrect)
if ($do_vars)
{
MakeTag($var, "v", (!$is_pkg or $has_subs), $file, $line);
}
}
}
# This is a package declaration if the line starts with package
elsif ($stmt =~/^package\b/)
{
# Get name of the package
$package_name = PackageName($stmt);
if ($package_name)
{
# Remember that we're doing a package
$is_pkg = 1;
# Make a tag for this package unless we're told not to. A
# package is never static.
if ($do_pkgs)
{
MakeTag($package_name, "p", 0, $file, $line);
}
}
}
# This is a sub declaration if the line starts with sub
elsif ($stmt =~/^sub\b/)
{
# Remember that this file has subs
$has_subs = 1;
# Make a tag for this sub unless we're told not to. We assume
# that a sub is static, unless it appears in a package. (Not
# necessarily true, but it's ok for most purposes and Vim works
# fine even if it is incorrect)
if ($do_subs)
{
MakeTag(SubName($stmt), "s", (!$is_pkg), $file, $line);
}
}
}
close (IN);
}
# Do we have any tags? If so, write them to the tags file
if (@tags)
{
# Add some tag file extensions if we're told to
if ($do_exts)
{
push (@tags, "!_TAG_FILE_FORMAT\t2\t/extended format/");
push (@tags, "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted/");
push (@tags, "!_TAG_PROGRAM_AUTHOR\tMichael Schaap\t/mscha\@mscha.com/");
push (@tags, "!_TAG_PROGRAM_NAME\tpltags\t//");
push (@tags, "!_TAG_PROGRAM_VERSION\t$VERSION\t/supports multiple tags and extended format/");
}
print "\nWriting tags file.\n";
open (OUT, ">tags") or die "Can't open tags file: $!";
foreach $tagline (sort @tags)
{
print OUT "$tagline\n";
}
close (OUT);
}
else
{
print "\nNo tags found.\n";
}

View File

@ -0,0 +1 @@
{"leaves":["MakeTag","PackageName","SubName","VarNames","functionNoParentheses"],"root":"unitTest"}

View File

@ -0,0 +1,124 @@
#!/usr/local/bin/ruby
#
# biorhythm.rb -
# $Release Version: $
# $Revision$
# by Yasuo OHBA(STAFS Development Room)
#
# --
#
#
#
# probably based on:
#
# Newsgroups: comp.sources.misc,de.comp.sources.os9
# From: fkk@stasys.sta.sub.org (Frank Kaefer)
# Subject: v41i126: br - Biorhythm v3.0, Part01/01
# Message-ID: <1994Feb1.070616.15982@sparky.sterling.com>
# Sender: kent@sparky.sterling.com (Kent Landfield)
# Organization: Sterling Software
# Date: Tue, 1 Feb 1994 07:06:16 GMT
#
# Posting-number: Volume 41, Issue 126
# Archive-name: br/part01
# Environment: basic, dos, os9
include Math
require "date.rb"
require "optparse"
require "optparse/date"
def print_header(y, m, d, p, w)
print "\n>>> Biorhythm <<<\n"
printf "The birthday %04d.%02d.%02d is a %s\n", y, m, d, w
printf "Age in days: [%d]\n\n", p
end
def get_position(z)
pi = Math::PI
z = Integer(z)
phys = (50.0 * (1.0 + sin((z / 23.0 - (z / 23)) * 360.0 * pi / 180.0))).to_i
emot = (50.0 * (1.0 + sin((z / 28.0 - (z / 28)) * 360.0 * pi / 180.0))).to_i
geist =(50.0 * (1.0 + sin((z / 33.0 - (z / 33)) * 360.0 * pi / 180.0))).to_i
return phys, emot, geist
end
def prompt(msg)
$stderr.print msg
return gets.chomp
end
#
# main program
#
options = {
:graph => true,
:date => Date.today,
:days => 9,
}
ARGV.options do |opts|
opts.on("-b", "--birthday=DATE", Date, "specify your birthday"){|v|
options[:birthday] = v
}
opts.on("--date=DATE", Date, "specify date to show"){|v|
options[:date] = v
}
opts.on("-g", "--show-graph", TrueClass, "show graph (default)"){|v|
options[:graph] = v
}
opts.on("-v", "--show-values", TrueClass, "show values"){|v|
options[:graph] = !v
}
opts.on("--days=DAYS", Integer, "graph range (only in effect for graph)"){|v|
options[:days] = v - 1
}
opts.on_tail("-h", "--help", "show this message"){puts opts; exit}
begin
opts.parse!
rescue => ex
puts "Error: #{ex.message}"
puts opts
exit
end
end
bd = options[:birthday] || Date.parse(prompt("Your birthday (YYYYMMDD): "))
dd = options[:date] || Date.today
ausgabeart = options[:graph] ? "g" : "v"
display_period = options[:days]
if ausgabeart == "v"
print_header(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
print "\n"
phys, emot, geist = get_position(dd - bd)
printf "Biorhythm: %04d.%02d.%02d\n", dd.year, dd.month, dd.day
printf "Physical: %d%%\n", phys
printf "Emotional: %d%%\n", emot
printf "Mental: %d%%\n", geist
print "\n"
else
print_header(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
print " P=physical, E=emotional, M=mental\n"
print " -------------------------+-------------------------\n"
print " Bad Condition | Good Condition\n"
print " -------------------------+-------------------------\n"
(dd - bd).step(dd - bd + display_period) do |z|
phys, emot, geist = get_position(z)
printf "%04d.%02d.%02d : ", dd.year, dd.month, dd.day
p = (phys / 2.0 + 0.5).to_i
e = (emot / 2.0 + 0.5).to_i
g = (geist / 2.0 + 0.5).to_i
graph = "." * 51
graph[25] = ?|
graph[p] = ?P
graph[e] = ?E
graph[g] = ?M
print graph, "\n"
dd = dd + 1
end
print " -------------------------+-------------------------\n\n"
end

View File

@ -0,0 +1 @@
{"leaves":["print_header","get_position","prompt"],"root":"unitTest"}

View File

@ -0,0 +1,85 @@
// Unlike C/C++, there's no restriction on the order of function definitions
fn main() {
// We can use this function here, and define it somewhere later
fizzbuzz_to(100);
}
// Function that returns a boolean value
fn is_divisible_by(lhs: u32, rhs: u32) -> bool {
// Corner case, early return
if rhs == 0 {
return false;
}
// This is an expression, the `return` keyword is not necessary here
lhs % rhs == 0
}
// Functions that "don't" return a value, actually return the unit type `()`
fn fizzbuzz(n: u32) -> () {
if is_divisible_by(n, 15) {
println!("fizzbuzz");
} else if is_divisible_by(n, 3) {
println!("fizz");
} else if is_divisible_by(n, 5) {
println!("buzz");
} else {
println!("{}", n);
}
}
// When a function returns `()`, the return type can be omitted from the
// signature
fn fizzbuzz_to(n: u32) {
for n in 1..n + 1 {
fizzbuzz(n);
}
}
async fn async_example(n: u32) {
for n in 1..n + 1 {
fizzbuzz(n);
}
}
const fn const_example(n: u32) {
for n in 1..n + 1 {
fizzbuzz(n);
}
}
extern "Rust" fn foo() {}
unsafe fn unsafe_example(n: u32) {
for n in 1..n + 1 {
fizzbuzz(n);
}
}
/*
unsafe fn commented_func(n: u32) {
for n in 1..n + 1 {
fizzbuzz(n);
}
}
*/
// Declares a function with the "C" ABI
extern "C" fn new_i32() -> i32 { 0 }
// Declares a function with the "stdcall" ABI
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 }
async fn regular_example() { }
async unsafe fn unsafe_example() { }
const fn generic_example<'a>(x: &'a str) -> impl Future<Output = usize> + 'a {
async move { x.len() }
}
fn generic_example2<const N: usize>(arr: [i32; N]) {
// Used as a type within a function body.
let x: [i32; N];
// Used as an expression.
println!("{}", N * 2);
}

View File

@ -0,0 +1 @@
{"leaves":["main","is_divisible_by","fizzbuzz","fizzbuzz_to","async_example","const_example","foo","unsafe_example","new_i32","new_i32_stdcall","regular_example","unsafe_example","generic_example","generic_example2"],"root":"unitTest"}

View File

@ -0,0 +1,25 @@
%macro printz/parmbuff;
%put Syspbuff contains: &syspbuff;
%let num=1;
%let dsname=%scan(&syspbuff,&num);
%do %while(&dsname ne);
proc print data=&dsname;
run;
%let num=%eval(&num+1);
%let dsname=%scan(&syspbuff,&num);
%end;
%mend printz;
%printz(purple,red,blue,teal)
proc cas;
function SharedBday(days, number);
p = exp( lgamma(days+1) - lgamma(days-number+1) - number*log(days));
return (1-p);
end func;
do n over {3 10 22 23 50 75};
p = SharedBday(365,n);
print "Chance at least 2 out of " put(n,best3.) "
share the same birthday = " put(p,best6.2);
end;
run;

View File

@ -0,0 +1 @@
{"leaves":["%macro printz","function SharedBday"],"root":"unitTest"}

View File

@ -0,0 +1,154 @@
create package CheckFunctionList_pck
as
function ctrlData(
po_severity in out nocopy varchar2,
po_err_code in out nocopy varchar2,
po_err_message in out nocopy varchar2,
p_Data in ind_work_data_r
) return boolean;
procedure INIT_DECODE_RULES1 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
);
procedure INIT_DECODE_RULES2 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules);
function GetEsecId
return tab1.esec_id%type;
procedure pippo;
procedure INIT_DECODE_RULES3 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_guid in guid_list_t := guid_list_t()
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules);
procedure INIT_DECODE_RULES4 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_guid in guid_list_t := guid_list_t()
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
);
procedure INIT_DECODE_RULES5 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2 -- this is a comment with (brackets)
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules);
procedure INIT_DECODE_RULES6 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2 -- this is a comment with (brackets)
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
);
end CheckFunctionList_pck;
/
create package body CheckFunctionList_pck
as
function ctrlData(
po_severity in out nocopy varchar2,
po_err_code in out nocopy varchar2,
po_err_message in out nocopy varchar2,
p_Data in ind_work_data_r
) return boolean
is
begin
return null;
end ctrlData;
procedure INIT_DECODE_RULES1 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
)
as
begin
null;
end INIT_DECODE_RULES1;
procedure INIT_DECODE_RULES2 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules)
as
begin
null;
end INIT_DECODE_RULES2;
function GetEsecId
return tab1.esec_id%type
is
begin
return null;
end GetEsecId;
procedure pippo
is
begin
null;
end pippo;
procedure INIT_DECODE_RULES3 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_guid in guid_list_t := guid_list_t()
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules)
as
begin
null;
end INIT_DECODE_RULES3;
procedure INIT_DECODE_RULES4 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2
,po_guid in guid_list_t := guid_list_t()
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
)
as
begin
null;
end INIT_DECODE_RULES4;
procedure INIT_DECODE_RULES5 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2 -- this is a comment with (brackets)
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules)
as
begin
null;
end INIT_DECODE_RULES5;
procedure INIT_DECODE_RULES6 (po_severity in out varchar2
,po_err_code in out varchar2
,po_err_message in out varchar2 -- this is a comment with (brackets)
,po_tabDecRules out nocopy report_utl_pck.tTabDecRules
)
as
begin
null;
end INIT_DECODE_RULES6;
end CheckFunctionList_pck;
/

View File

@ -0,0 +1 @@
{"leaves":["ctrlData(\r\n po_severity in out nocopy varchar2,\r\n po_err_code in out nocopy varchar2,\r\n po_err_message in out nocopy varchar2,\r\n p_Data in ind_work_data_r\r\n) return boolean","INIT_DECODE_RULES1 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_tabDecRules out nocopy report_utl_pck.tTabDecRules\r\n )","INIT_DECODE_RULES2 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_tabDecRules out nocopy report_utl_pck.tTabDecRules)","GetEsecId\r\nreturn tab1.esec_id%type","pippo","INIT_DECODE_RULES3 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_guid in guid_list_t := guid_list_t()","INIT_DECODE_RULES4 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_guid in guid_list_t := guid_list_t()","INIT_DECODE_RULES5 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2 -- this is a comment with (brackets)","INIT_DECODE_RULES6 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2 -- this is a comment with (brackets)","ctrlData(\r\n po_severity in out nocopy varchar2,\r\n po_err_code in out nocopy varchar2,\r\n po_err_message in out nocopy varchar2,\r\n p_Data in ind_work_data_r\r\n) return boolean\r\nis\r\nbegin\r\n return null","INIT_DECODE_RULES1 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_tabDecRules out nocopy report_utl_pck.tTabDecRules\r\n )","INIT_DECODE_RULES2 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_tabDecRules out nocopy report_utl_pck.tTabDecRules)","GetEsecId\r\nreturn tab1.esec_id%type\r\nis\r\nbegin\r\n return null","pippo","INIT_DECODE_RULES3 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_guid in guid_list_t := guid_list_t()","INIT_DECODE_RULES4 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2\r\n ,po_guid in guid_list_t := guid_list_t()","INIT_DECODE_RULES5 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2 -- this is a comment with (brackets)","INIT_DECODE_RULES6 (po_severity in out varchar2\r\n ,po_err_code in out varchar2\r\n ,po_err_message in out varchar2 -- this is a comment with (brackets)"],"root":"unitTest"}

View File

@ -0,0 +1,90 @@
CREATE OR REPLACE PACKAGE BODY emp_mgmt AS
tot_emps NUMBER;
tot_depts NUMBER;
FUNCTION hire
(last_name VARCHAR2, job_id VARCHAR2,
manager_id NUMBER, salary NUMBER,
commission_pct NUMBER, department_id NUMBER)
RETURN NUMBER IS new_empno NUMBER;
BEGIN
SELECT employees_seq.NEXTVAL
INTO new_empno
FROM DUAL;
INSERT INTO employees
VALUES (new_empno, 'First', 'Last','first.last@oracle.com',
'(123)123-1234','18-JUN-02','IT_PROG',90000000,00,
100,110);
tot_emps := tot_emps + 1;
RETURN(new_empno);
END;
FUNCTION create_dept(department_id NUMBER, location_id NUMBER)
RETURN NUMBER IS
new_deptno NUMBER;
BEGIN
SELECT departments_seq.NEXTVAL
INTO new_deptno
FROM dual;
INSERT INTO departments
VALUES (new_deptno, 'department name', 100, 1700);
tot_depts := tot_depts + 1;
RETURN(new_deptno);
END;
PROCEDURE remove_emp (employee_id NUMBER) IS
BEGIN
DELETE FROM employees
WHERE employees.employee_id = remove_emp.employee_id;
tot_emps := tot_emps - 1;
END;
PROCEDURE remove_dept(department_id NUMBER) IS
BEGIN
DELETE FROM departments
WHERE departments.department_id = remove_dept.department_id;
tot_depts := tot_depts - 1;
SELECT COUNT(*) INTO tot_emps FROM employees;
END;
PROCEDURE increase_sal(employee_id NUMBER, salary_incr NUMBER) IS
curr_sal NUMBER;
BEGIN
SELECT salary INTO curr_sal FROM employees
WHERE employees.employee_id = increase_sal.employee_id;
IF curr_sal IS NULL
THEN RAISE no_sal;
ELSE
UPDATE employees
SET salary = salary + salary_incr
WHERE employee_id = employee_id;
END IF;
END;
PROCEDURE increase_comm(employee_id NUMBER, comm_incr NUMBER) IS
curr_comm NUMBER;
BEGIN
SELECT commission_pct
INTO curr_comm
FROM employees
WHERE employees.employee_id = increase_comm.employee_id;
IF curr_comm IS NULL
THEN RAISE no_comm;
ELSE
UPDATE employees
SET commission_pct = commission_pct + comm_incr;
END IF;
END;
END emp_mgmt;
/*
PROCEDURE commented_func(employee_id NUMBER, comm_incr NUMBER) IS
curr_comm NUMBER;
BEGIN
SELECT commission_pct
INTO curr_comm
FROM employees
WHERE employees.employee_id = increase_comm.employee_id;
IF curr_comm IS NULL
THEN RAISE no_comm;
ELSE
UPDATE employees
SET commission_pct = commission_pct + comm_incr;
END IF;
END;
END emp_mgmt;
*/
/

View File

@ -0,0 +1 @@
{"leaves":["hire \r\n (last_name VARCHAR2, job_id VARCHAR2, \r\n manager_id NUMBER, salary NUMBER, \r\n commission_pct NUMBER, department_id NUMBER) \r\n RETURN NUMBER IS new_empno NUMBER","create_dept(department_id NUMBER, location_id NUMBER) \r\n RETURN NUMBER IS \r\n new_deptno NUMBER","remove_emp (employee_id NUMBER)","remove_dept(department_id NUMBER)","increase_sal(employee_id NUMBER, salary_incr NUMBER)","increase_comm(employee_id NUMBER, comm_incr NUMBER)"],"root":"unitTest"}

View File

@ -0,0 +1,46 @@
\documentclass[12pt]{article}
\usepackage{lingmacros}
\usepackage{tree-dvips}
\begin{document}
\section*{Notes for My Paper}
Don't forget to include examples of topicalization.
They look like this:
{\small
\enumsentence{Topicalization from sentential subject:\\
\shortex{7}{a John$_i$ [a & kltukl & [el &
{\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
{ & {\bf R-}clear & {\sc comp} &
{\bf IR}.{\sc 3s}-love & P & him & }
{John, (it's) clear that Mary loves (him).}}
}
\subsection*{How to handle topicalization}
I'll just assume a tree structure like (\ex{1}).
{\small
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
\begin{tabular}[t]{cccc}
& \node{i}{CP}\\ [2ex]
\node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex]
&\node{iv}{C} & & \node{v}{SAgrP}
\end{tabular}
\nodeconnect{i}{ii}
\nodeconnect{i}{iii}
\nodeconnect{iii}{iv}
\nodeconnect{iii}{v}
}
}
\subsection*{Mood}
Mood changes when there is a topic, as well as when
there is WH-movement. \emph{Irrealis} is the mood when
there is a non-subject topic or WH-phrase in Comp.
\emph{Realis} is the mood when there is a subject topic
or WH-phrase.
\end{document}

View File

@ -0,0 +1 @@
{"leaves":["\\begin{document}","\\section*{Notes for My Paper}","\\subsection*{How to handle topicalization}","\\begin{tabular}[t]{cccc}","\\subsection*{Mood}"],"root":"unitTest"}

View File

@ -0,0 +1,58 @@
# This is a TOML document.
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates
[database]
server = "192.168.1.1"
ports = [ 8000, 8001, 8002 ]
connection_max = 5000
enabled = true
[servers]
toto = "titi"
# Indentation (spaces) is allowed but not required
[servers.alpha]
ip = "10.0.0.1"
dc = "eqdc10"
# Indentation (tabs) is allowed but not required
[servers.beta]
ip = "10.0.0.2"
dc = "eqdc10"
# No indentation is correct too
[servers.gamma]
ip = "10.0.0.3"
dc = "eqdc10"
[servers_underscore]
ip = "10.0.0.4"
dc = "eqdc10"
[servers."double-quot"]
ip = "10.0.0.4"
dc = "eqdc10"
[servers.'single-quot']
ip = "10.0.0.4"
dc = "eqdc10"
[clients]
data = [ ["gamma", "delta"], [1, 2] ]
[clients-2nd-group]
data2 = "Another data"
# Line breaks are OK when inside arrays
hosts = [
"alpha",
"omega"
]

View File

@ -0,0 +1 @@
{"leaves":["owner","database","servers","servers.alpha","servers.beta","servers.gamma","servers_underscore","servers.\"double-quot\"","servers.'single-quot'","clients","clients-2nd-group"],"root":"unitTest"}

View File

@ -0,0 +1,374 @@
var crypto = require('crypto'),
Friends,
User,
Post,
WallPost,
Comment,
LoginToken;
function extractKeywords(text) {
if (!text) return [];
return text.
split(/\s+/).
filter(function(v) { return v.length > 2; }).
filter(function(v, i, a) { return a.lastIndexOf(v) === i; });
}
/*
function commentedFunc(text) {
if (!text) return [];
return text.
split(/\s+/).
filter(function(v) { return v.length > 2; }).
filter(function(v, i, a) { return a.lastIndexOf(v) === i; });
}
*/
function convertBasicMarkup(input, allowHtml) {
var strongRe = /[*]{2}([^*]+)[*]{2}/gm;
var emRe = /[*]{1}([^*]+)[*]{1}/gm;
var linkRe = /\[([^\]]*)\]\(([^\)]*?)\)/gm;
var nlRe = /\r\n/gm;
var crRe = /\r/gm;
// special re's to revert linebreaks from <br />
var codeRe = /(<code\b[^>]*>(.*?)<\/code>)/gm;
// cleanup newlines
input = input.replace(nlRe, "\n");
input = input.replace(crRe, "\n");
// strip existing html before inserting breaks/markup
if (!allowHtml) {
// strip html
input = input
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}
// convert newlines to breaks
input = input.replace(/\n/gm, '<br />');
// replace basic markup
input = input.replace(strongRe, function(whole, m1, m2, m3) {
return '<strong>' + m1 + '</strong>';
});
input = input.replace(emRe, function(whole, m1, m2, m3) {
return '<em>' + m1 + '</em>';
});
input = input.replace(linkRe, function(whole, m1, m2) {
// fix up protocol
if (!m2.match(/(http(s?)|ftp(s?)):\/\//gm))
// prepend http as default
m2 = 'http://' + m2;
return '<a href=\"' + m2 + '\" target=\"_blank\">' + m1 + '</a>';
});
// revert code blocks
input = input.replace(codeRe, function(whole, m1) {
return m1.replace(/<br \/>/gm, '\n');
});
return input;
}
function defineModels(mongoose, fn) {
var Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
/**
* Comment model
*
* Used for persisting user comments
*/
var Comment = new Schema({
user_id: ObjectId,
//photo:String,
date: Date,
body: String,
post_id:ObjectId,
});
// register virtual members
Comment.virtual('readableday')
.get(function() {
var day = this.date.getDate();
return (day < 10 ? '0' + day : day);
});
Comment.virtual('readablemonth')
.get(function() {
return monthNamesShort[this.date.getMonth()];
});
Comment.virtual('readabletime')
.get(function() {
var hour = this.date.getHours();
var minute = this.date.getMinutes();
return (hour < 10 ? '0' + hour : hour) + ':' + (minute < 10 ? '0' + minute : minute);
});
Comment.virtual('bodyParsed')
.get(function() {
return convertBasicMarkup(this.body, false);
});
// register validators
/*Comment.path('author').validate(function(val) {
return val.length > 0;
}, 'AUTHOR_MISSING');*/
Comment.path('body').validate(function(val) {
return val.length > 0;
}, 'BODY_MISSING');
/**
* Model: WallPost
*/
var WallPost = new Schema({
friend_id: String,
preview: String,
body: String,
//rsstext: String,
slug: String,
created: Date,
modified: Date,
//tags: [String],
user_id:ObjectId,
posted_on_user_id : ObjectId,
//comments: [Comment]
});
var monthNames = [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli',
'August', 'September', 'Oktober', 'November', 'Dezember' ];
var monthNamesShort = [ 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul',
'Aug', 'Sep', 'Okt', 'Nov', 'Dez' ];
// define virtual getter method for id (readable string)
WallPost.virtual('id')
.get(function() {
return this._id.toHexString();
});
WallPost.virtual('url')
.get(function() {
// build url for current post
var year = this.created.getFullYear();
var month = this.created.getMonth() + 1;
var day = this.created.getDate();
return '/' + year + '/' + (month < 10 ? '0' + month : month) + '/' + (day < 10 ? '0' + day : day) + '/' + this.slug + '/';
});
WallPost.virtual('rfc822created')
.get(function() {
return this.created.toGMTString();
});
WallPost.virtual('readabledate')
.get(function() {
var year = this.created.getFullYear();
var month = monthNames[this.created.getMonth()];
var day = this.created.getDate();
return (day < 10 ? '0' + day : day) + '. ' + month + ' ' + year;
});
WallPost.virtual('readableday')
.get(function() {
var day = this.created.getDate();
return (day < 10 ? '0' + day : day);
});
WallPost.virtual('readablemonth')
.get(function() {
return monthNamesShort[this.created.getMonth()];
});
WallPost.virtual('previewParsed')
.get(function() {
return convertBasicMarkup(this.preview, true);
});
WallPost.virtual('bodyParsed')
.get(function() {
return convertBasicMarkup(this.body, true);
});
// register validators
/*WallPost.path('title').validate(function(val) {
return val.length > 0;
}, 'TITLE_MISSING');
WallPost.path('preview').validate(function(val) {
return val.length > 0;
}, 'PREVIEW_MISSING');
WallPost.path('rsstext').validate(function(val) {
return val.length > 0;
}, 'RSSTEXT_MISSING');*/
WallPost.path('body').validate(function(val) {
return val.length > 0;
}, 'BODY_MISSING');
// generate a proper slug value for Wallpost
function slugGenerator (options){
options = options || {};
var key = options.key || 'body';
return function slugGenerator(schema){
schema.path(key).set(function(v){
this.slug = v.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/\++/g, '');
return v;
});
};
};
// attach slugGenerator plugin to Wallpost schema
WallPost.plugin(slugGenerator());
/**
* Model: User
*/
function validatePresenceOf(value) {
return value && value.length;
}
var User = new Schema({
'first_name': { type: String, validate: /[a-z]/ },
'last_name':{ type: String, validate: /[a-z]/ },
'age':Number,
'sex':{ type: String},
'photo':String,
'location':{ type: String, validate: /[a-z]/ },
'latitude' : String,
'longitude' : String,
'keywords': [String],
'username':String,
'email': { type: String, validate: [validatePresenceOf, 'an email is required'], index: { unique: true }, required:true },
'hashed_password': { type: String},
'salt': String,
});
User.virtual('id')
.get(function() {
return this._id.toHexString();
});
User.virtual('password')
.set(function(password) {
this._password = password;
this.salt = this.makeSalt();
this.hashed_password = this.encryptPassword(password);
})
.get(function() { return this._password; });
User.method('authenticate', function(plainText) {
return this.encryptPassword(plainText) === this.hashed_password;
});
User.method('makeSalt', function() {
return Math.round((new Date().valueOf() * Math.random())) + '';
});
User.method('encryptPassword', function(password) {
return crypto.createHmac('sha1', this.salt).update(password).digest('hex');
});
User.pre('save', function(next) {
this.keywords = extractKeywords(this.first_name);
next();
if (!validatePresenceOf(this.password)) {
next(new Error('Invalid password'));
} else {
next();
}
});
var Friends = new Schema({
requestor : String
, acceptor : String
, date_requested : Date
, status:Number
});
Friends.virtual('id')
.get(function() {
return this._id.toHexString();
});
var Post = new Schema({
filename : { type: String, index: true }
, file : String
, created_at : Date
, user_id: ObjectId
});
Post.virtual('id')
.get(function() {
return this._id.toHexString();
});
/**
* Model: LoginToken
*
* Used for session persistence.
*/
var LoginToken = new Schema({
email: { type: String, index: true },
series: { type: String, index: true },
token: { type: String, index: true }
});
LoginToken.method('randomToken', function() {
return Math.round((new Date().valueOf() * Math.random())) + '';
});
LoginToken.pre('save', function(next) {
// Automatically create the tokens
this.token = this.randomToken();
if (this.isNew)
this.series = this.randomToken();
next();
});
LoginToken.virtual('id')
.get(function() {
return this._id.toHexString();
});
LoginToken.virtual('cookieValue')
.get(function() {
return JSON.stringify({ email: this.email, token: this.token, series: this.series });
});
mongoose.model('User', User);
mongoose.model('Post', Post);
mongoose.model('Friends', Friends);
mongoose.model('LoginToken', LoginToken);
mongoose.model('WallPost', WallPost);
mongoose.model('Comment', Comment);
fn();
}
exports.defineModels = defineModels;

View File

@ -0,0 +1 @@
{"leaves":["extractKeywords","convertBasicMarkup","function","function","function","function","defineModels","slugGenerator","slugGenerator","validatePresenceOf","function","function","function","function","function","function"],"root":"unitTest"}

View File

@ -0,0 +1,194 @@
::StartupScript
npp_console keep
npp_exec "SetSingleEdgeLine"
::MultipleSelectAddNext
npp_console keep
sci_sendmsg SCI_SETSEARCHFLAGS SCFIND_WHOLEWORD
sci_sendmsg SCI_TARGETWHOLEDOCUMENT
sci_sendmsg SCI_MULTIPLESELECTADDNEXT
::MultipleSelectAddEach
npp_console keep
sci_sendmsg SCI_SETSEARCHFLAGS SCFIND_WHOLEWORD
sci_sendmsg SCI_TARGETWHOLEDOCUMENT
sci_sendmsg SCI_GETSELECTIONEMPTY
if $(MSG_RESULT) == 1 then
sci_sendmsg SCI_MULTIPLESELECTADDNEXT
endif
sci_sendmsg SCI_MULTIPLESELECTADDEACH
::SetSingleEdgeLine
npp_console keep
sci_sendmsg SCI_SETEDGECOLUMN 80
sci_sendmsg SCI_SETEDGEMODE EDGE_LINE
::ConfigSingleEdgeLine
npp_console keep
sci_sendmsg SCI_GETEDGECOLUMN
inputbox "Input edge column" : "Edge column" : $(MSG_RESULT)
sci_sendmsg SCI_SETEDGECOLUMN $(INPUT)
sci_sendmsg SCI_SETEDGEMODE EDGE_LINE
::SingleEdgeLineOn
npp_console keep
sci_sendmsg SCI_SETEDGEMODE EDGE_LINE
::MultipleEdgeLinesOn
npp_console keep
sci_sendmsg SCI_SETEDGEMODE EDGE_MULTILINE
::BackgroundEdgeOn
npp_console keep
sci_sendmsg SCI_SETEDGEMODE EDGE_BACKGROUND
::EdgesOff
npp_console keep
sci_sendmsg SCI_SETEDGEMODE EDGE_NONE
::WrapSelectedLinesAtEdge
npp_console keep
sci_sendmsg SCI_GETEDGEMODE
if~ $(MSG_RESULT) != EDGE_LINE then
set local $(LinePixelWidth) = 0
goto :DoWrap
endif
sci_sendmsg SCI_GETEDGECOLUMN
set local $(LineCharWidth) ~ $(MSG_RESULT) + 1
set local $(TemplateStr) = W
set local $(Cnt) = 2
:ForLoopStart
if $(Cnt) > $(LineCharWidth) goto :ForLoopEnd
set local $(TemplateStr) = $(TemplateStr)W
set local $(Cnt) ~ $(Cnt) + 1
goto :ForLoopStart
:ForLoopEnd
sci_sendmsg SCI_TEXTWIDTH STYLE_DEFAULT "$(TemplateStr)"
set local $(LinePixelWidth) = $(MSG_RESULT)
:DoWrap
sci_sendmsg SCI_TARGETFROMSELECTION
sci_sendmsg SCI_LINESSPLIT $(LinePixelWidth)
::DeleteLinesFrom2ndView
npp_console keep
npp_console disable
npe_console -- m-
sci_sendmsg SCI_DOCUMENTSTART
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
sci_sendmsg SCI_DOCUMENTSTART
npp_sendmsg NPPM_GETCURRENTVIEW
if $(MSG_RESULT) == 0 then
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
endif
sci_sendmsg SCI_GETLINECOUNT
set local $(LineCount) = $(MSG_RESULT)
set local $(LineIdx) = 0
:ProcessSearchTerms
if $(LineIdx) >= $(LineCount) goto :End
sci_sendmsg SCI_GETLINE $(LineIdx) @""
set local $(CurLine) = $(MSG_LPARAM)
if "$(CurLine)" == "" goto :AdvanceToNextLine
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
sci_sendmsg SCI_GETCURRENTPOS
sci_sendmsg SCI_LINEFROMPOSITION $(MSG_RESULT)
set local $(StartLineIdx) = $(MSG_RESULT)
set local $(Flags) ~ NPE_SF_SETPOS
:ReplaceLoop
sci_find $(Flags) "$(CurLine)"
if $(MSG_RESULT) == -1 goto :ReplaceLoopEnd
sci_sendmsg SCI_LINEFROMPOSITION $(MSG_RESULT)
set local $(FoundLineIdx) = $(MSG_RESULT)
sci_sendmsg SCI_GETLINE $(FoundLineIdx) @""
set local $(FoundLine) = $(MSG_LPARAM)
set local $(FoundLineLC) ~ strlower "$(FoundLine)"
set local $(CurLineLC) ~ strlower "$(CurLine)"
if "$(FoundLineLC)" == "$(CurLineLC)" then
sci_sendmsg SCI_GOTOLINE $(FoundLineIdx)
sci_sendmsg SCI_LINEDELETE
endif
set local $(Flags) ~ $(Flags) | NPE_SF_NEXT
goto :ReplaceLoop
:ReplaceLoopEnd
sci_sendmsg SCI_GOTOLINE $(StartLineIdx)
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
:AdvanceToNextLine
set local $(LineIdx) ~ $(LineIdx) + 1
goto :ProcessSearchTerms
:End
sci_sendmsg SCI_DOCUMENTSTART
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
sci_sendmsg SCI_DOCUMENTSTART
npp_sendmsg NPPM_GETCURRENTVIEW
if $(MSG_RESULT) == 1 then
npp_sendmsg NPPM_MENUCOMMAND 0 IDM_VIEW_SWITCHTO_OTHER_VIEW
endif
npp_console enable
::ReadLongText
npp_console keep
npp_sendmsg WM_COMMAND IDM_VIEW_CLONE_TO_ANOTHER_VIEW
sci_sendmsg SCI_PAGEDOWN
npp_sendmsg WM_COMMAND IDM_VIEW_SYNSCROLLV
::TrimTrailingSpace
npp_console keep
npp_sendmsg WM_COMMAND IDM_EDIT_TRIMTRAILING

View File

@ -0,0 +1 @@
{"nodes":[{"leaves":["::StartupScript"],"name":"StartupScript"},{"leaves":["::MultipleSelectAddNext"],"name":"MultipleSelectAddNext"},{"leaves":["::MultipleSelectAddEach"],"name":"MultipleSelectAddEach"},{"leaves":["::SetSingleEdgeLine"],"name":"SetSingleEdgeLine"},{"leaves":["::ConfigSingleEdgeLine"],"name":"ConfigSingleEdgeLine"},{"leaves":["::SingleEdgeLineOn"],"name":"SingleEdgeLineOn"},{"leaves":["::MultipleEdgeLinesOn"],"name":"MultipleEdgeLinesOn"},{"leaves":["::BackgroundEdgeOn"],"name":"BackgroundEdgeOn"},{"leaves":["::EdgesOff"],"name":"EdgesOff"},{"leaves":["::WrapSelectedLinesAtEdge","ForLoopStart","ForLoopEnd","DoWrap"],"name":"WrapSelectedLinesAtEdge"},{"leaves":["::DeleteLinesFrom2ndView","ProcessSearchTerms","ReplaceLoop","ReplaceLoopEnd","AdvanceToNextLine","End"],"name":"DeleteLinesFrom2ndView"},{"leaves":["::ReadLongText"],"name":"ReadLongText"},{"leaves":["::TrimTrailingSpace"],"name":"TrimTrailingSpace"}],"root":"unitTest"}

View File

@ -0,0 +1,28 @@
+++
title = "Make Your Business Card with Notepad++"
description = ""
date = "2011-12-25"
menu = "main"
+++
2011-12-25
Notepad++ is not just a text/code editor, you can use it to make your business card:
![Business Card](/news/images/npp.businessCard.jpg)
Here are some tips/instructions to help you make your original business card with Notepad++:
1. Hide menu, tab bar and status bar (you probably want to hide tool bar if you have more content to show) via the General tab of Preferences dialog.
2. Hide folder margin, bookmark margin, line number margin and current line highlighting via the Editing tab of Preference dialog.
3. Check "Show only filename in title bar" via "MISC." tab of Preference Dialog, this removes the full path and keep only the file name on the caption bar.
4. Resize Notepad++ to fit the size of your empty business card to print. (I made the Notepad++ size on screen just fit my card)
5.Type the content of your business card with your favorite programming language (html, xml, php, c, c++, etc...) then set the language's syntax highlighting via menu Language (type "Alt" to show menu).
6. Launch "Style Configurator" Dialog (via menu "Settings") to tune up the syntax highlighting of your language of choice (for the bg/fg colour, font style and font size). You can choose the theme (on the top) as well to have the different look & feel. Save & close it.
7. Print your card - Do the screen capture by "Alt + Print Screen", Then paste it into Word to print.
8. That's it. Enjoy making your geek business card!
The original idea came from [Albert Hwang's Notepad Business Card](https://www.albert-hwang.com/blog/2011/12/re-my-business-card).
Happy Isaac Newton's Birthday!

View File

@ -0,0 +1 @@
{"leaves":["(/news/images/npp.businessCard.jpg)","(you probably want to hide tool bar if you have more content to show)","(I made the Notepad++ size on screen just fit my card)","(html, xml, php, c, c++, etc...)","(type \"Alt\" to show menu)","(via menu \"Settings\")","(for the bg/fg colour, font style and font size)","(on the top)","(https://www.albert-hwang.com/blog/2011/12/re-my-business-card)"],"root":"unitTest"}

View File

@ -0,0 +1,57 @@
# This script does 1 unit-test on given relative dir path and on given language.
# Here's its syntax:
# .\unit-test.ps1 RELATIVE_PATH LANG
# It return 0 if result is OK
# -1 if result is KO
# -2 if exception
# 1 if unitTest file not found
$testRoot = ".\"
$dirName=$args[0]
$langName=$args[1]
Try {
if ((Get-Item $testRoot$dirName) -is [System.IO.DirectoryInfo])
{
if (-Not (Test-Path $testRoot$dirName\unitTest))
{
return 1
}
if ($langName.StartsWith("udl-"))
{
$langName = $langName.Replace("udl-", "")
..\..\bin\notepad++.exe -export=functionList -udl="$langName" $testRoot$dirName\unitTest | Out-Null
}
else
{
..\..\bin\notepad++.exe -export=functionList -l"$langName" $testRoot$dirName\unitTest | Out-Null
}
$expectedRes = Get-Content $testRoot$dirName\unitTest.expected.result
$generatedRes = Get-Content $testRoot$dirName\unitTest.result.json
# Some parser results contain CRLF or LF (\r\n or \n) dependent of file EOL format
# In order to make tests pass in any environment, all the CRLF turning into LF (if any) in both strings
$expectedRes = $expectedRes.replace('\r\n','\n')
$generatedRes = $generatedRes.replace('\r\n','\n')
if ($generatedRes -eq $expectedRes)
{
Remove-Item $testRoot$dirName\unitTest.result.json
return 0
}
else
{
$expectedRes
"`nvs`n"
$generatedRes
return -1
}
}
}
Catch
{
return -2
}

View File

@ -0,0 +1,68 @@
$testRoot = ".\"
Get-ChildItem -Path $testRoot -Attribute Directory -Name |
Foreach-Object {
$dirName = (Get-Item $testRoot$_).Name
$langName = $dirName
$sw = [Diagnostics.Stopwatch]::StartNew()
$result = & ".\unitTest.ps1" $dirName $langName
$sw.Stop()
"Test: " + $sw.Elapsed.TotalMilliseconds + " ms"
if ($result -eq 0)
{
"$dirName ... OK"
}
elseif ($result -eq 1)
{
"$dirName ... unitTest file not found. Test skipped."
}
elseif ($result -eq -1)
{
"$dirName ... KO"
"result = $result"
"There are some problems in your $dirName.xml"
exit -1
}
elseif ($result -eq -2)
{
"Exception!"
exit -1
}
else
{
"It should not happen - check your script."
exit -1
}
# Check all Sub-directories for other unit-tests
Get-ChildItem -Path $testRoot\$dirName -Attribute Directory -Name |
Foreach-Object {
$subDirName = (Get-Item $testRoot$dirName\$_).Name
$sw = [Diagnostics.Stopwatch]::StartNew()
$subResult = &.\unitTest.ps1 $langName\$subDirName $langName
$sw.Stop()
"Test:" + $sw.Elapsed.TotalMilliseconds + " ms"
if ($subResult -eq 0)
{
"$dirName-$subDirName ... OK"
}
elseif ($subResult -eq 1)
{
"$dirName-$subDirName ... unitTest file not found. Test skipped."
}
else
{
"$dirName-$subDirName ... KO"
""
"There are some problems in your $dirName.xml"
exit -1
}
}
}
""
"All tests are passed."
exit 0

View File

@ -0,0 +1,15 @@
Module Program
Public num1 As Integer
Public num2 As Integer
Public answer As Integer
Sub Main(args As String())
Console.Write("Type a number and press Enter")
num1 = Console.ReadLine()
Console.Write("Type another number to add to it and press Enter")
num2 = Console.ReadLine()
answer = num1 + num2
Console.WriteLine("The answer is " & answer)
Console.Write("Press any key to continue...")
Console.ReadKey(True)
End Sub
End Module

View File

@ -0,0 +1 @@
{"leaves":["Main"],"root":"unitTest"}

View File

@ -0,0 +1,35 @@
entity ent1 is
end entity ent1;
architecture rtl of ent1 is
component compo1 is
PORT ( Reset_s : out std_logic);
end component compo1;
component reset_controller is -- comment
PORT -- comment
( Reset_s : out std_logic);
end component reset_controller; -- comment
begin
compo1_inst : compo1
PORT MAP ( Reset_s =>open);
rst_controller_inst : component reset_controller
PORT MAP ( Reset_s => open); -- comment
proc1: process (reset_reset_n, clk_clk)
begin
end process;
block1: block is
begin
end block;
comp_per_entity : entity work.doing_so port map ( Reset_s => open
);
end architecture rtl; -- of ent1

View File

@ -0,0 +1 @@
{"leaves":["entity ent1 is","architecture rtl of ent1 is","\tcomponent compo1 is"," component reset_controller is ","proc1: process (reset_reset_n, clk_clk)"," block1: block is","comp_per_entity : entity work.doing_so port map ( Reset_s "],"root":"unitTest"}

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<GUIConfigs>
<!--
<GUIConfig name="comment">comment</GUIConfig>
-->
<GUIConfig name="ToolBar" visible="yes">standard</GUIConfig>
<GUIConfig name="StatusBar">show</GUIConfig>
<GUIConfig name="TabBar" dragAndDrop="yes" drawTopBar="yes" drawInactiveTab="yes" reduce="yes" closeButton="yes" doubleClick2Close="no" vertical="no" multiLine="no" hide="no" quitOnEmpty="no" />
<GUIConfig name="ScintillaViewsSplitter">vertical</GUIConfig>
<GUIConfig name="UserDefineDlg" position="undocked">hide</GUIConfig>
<GUIConfig name="TabSetting" replaceBySpace="no" size="4" />
<GUIConfig name="AppPosition" x="0" y="0" width="1100" height="700" isMaximized="no" />
<GUIConfig name="noUpdate" intervalDays="15" nextUpdateDate="20180427">no</GUIConfig>
<GUIConfig name="Auto-detection">yes</GUIConfig>
<GUIConfig name="CheckHistoryFiles">no</GUIConfig>
<GUIConfig name="TrayIcon">no</GUIConfig>
<GUIConfig name="MaitainIndent">yes</GUIConfig>
<GUIConfig name="TagsMatchHighLight" TagAttrHighLight="yes" HighLightNonHtmlZone="no">yes</GUIConfig>
<GUIConfig name="RememberLastSession">yes</GUIConfig>
<GUIConfig name="DetectEncoding">yes</GUIConfig>
<GUIConfig name="NewDocDefaultSettings" format="0" encoding="4" lang="0" codepage="-1" openAnsiAsUTF8="yes" />
<GUIConfig name="langsExcluded" gr0="0" gr1="0" gr2="0" gr3="0" gr4="0" gr5="0" gr6="0" gr7="0" gr8="0" gr9="0" gr10="0" gr11="0" gr12="0" langMenuCompact="yes" />
<GUIConfig name="Print" lineNumber="yes" printOption="3" headerLeft="" headerMiddle="" headerRight="" footerLeft="" footerMiddle="" footerRight="" headerFontName="" headerFontStyle="0" headerFontSize="0" footerFontName="" footerFontStyle="0" footerFontSize="0" margeLeft="0" margeRight="0" margeTop="0" margeBottom="0" />
<GUIConfig name="Backup" action="0" useCustumDir="no" dir="" isSnapshotMode="yes" snapshotBackupTiming="7000" />
<GUIConfig name="TaskList">yes</GUIConfig>
<GUIConfig name="MRU">yes</GUIConfig>
<GUIConfig name="URL">2</GUIConfig>
<GUIConfig name="globalOverride" fg="no" bg="no" font="no" fontSize="no" bold="no" italic="no" underline="no" />
<GUIConfig name="auto-completion" autoCAction="3" triggerFromNbChar="1" autoCIgnoreNumbers="yes" funcParams="yes" />
<GUIConfig name="auto-insert" parentheses="no" brackets="no" curlyBrackets="no" quotes="no" doubleQuotes="no" htmlXmlTag="no" />
<GUIConfig name="sessionExt"></GUIConfig>
<GUIConfig name="workspaceExt"></GUIConfig>
<GUIConfig name="MenuBar">show</GUIConfig>
<GUIConfig name="Caret" width="1" blinkRate="600" />
<GUIConfig name="ScintillaGlobalSettings" enableMultiSelection="no" />
<GUIConfig name="openSaveDir" value="0" defaultDirPath="" />
<GUIConfig name="titleBar" short="no" />
<GUIConfig name="stylerTheme" path="C:\sources\notepad-plus-plus\PowerEditor\bin\stylers.xml" />
<GUIConfig name="wordCharList" useDefault="yes" charsAdded="" />
<GUIConfig name="delimiterSelection" leftmostDelimiter="40" rightmostDelimiter="41" delimiterSelectionOnEntireDocument="no" />
<GUIConfig name="multiInst" setting="0" />
<GUIConfig name="MISC" fileSwitcherWithoutExtColumn="no" backSlashIsEscapeCharacterForSql="yes" newStyleSaveDlg="no" isFolderDroppedOpenFiles="no" docPeekOnTab="no" docPeekOnMap="no" />
<GUIConfig name="searchEngine" searchEngineChoice="2" searchEngineCustom="" />
<GUIConfig name="SmartHighLight" matchCase="no" wholeWordOnly="yes" useFindSettings="no" onAnotherView="no">yes</GUIConfig>
<GUIConfig name="ScintillaPrimaryView" lineNumberMargin="show" bookMarkMargin="show" indentGuideLine="show" folderMarkStyle="box" lineWrapMethod="aligned" currentLineHilitingShow="show" scrollBeyondLastLine="no" disableAdvancedScrolling="no" wrapSymbolShow="hide" Wrap="no" borderEdge="yes" edge="no" edgeNbColumn="80" zoom="0" zoom2="0" whiteSpaceShow="hide" eolShow="hide" borderWidth="2" smoothFont="no" />
<GUIConfig name="DockingManager" leftWidth="200" rightWidth="200" topHeight="200" bottomHeight="200">
<ActiveTabs cont="0" activeTab="-1" />
<ActiveTabs cont="1" activeTab="-1" />
<ActiveTabs cont="2" activeTab="-1" />
<ActiveTabs cont="3" activeTab="-1" />
</GUIConfig>
</GUIConfigs>
<FindHistory nbMaxFindHistoryPath="10" nbMaxFindHistoryFilter="10" nbMaxFindHistoryFind="10" nbMaxFindHistoryReplace="10" matchWord="no" matchCase="no" wrap="yes" directionDown="yes" fifRecuisive="yes" fifInHiddenFolder="no" dlgAlwaysVisible="no" fifFilterFollowsDoc="no" fifFolderFollowsDoc="no" searchMode="0" transparencyMode="1" transparency="150" dotMatchesNewline="no" isSearch2ButtonsMode="no" />
<History nbMaxFile="10" inSubMenu="no" customLength="-1" />
<ProjectPanels>
<ProjectPanel id="0" workSpaceFile="" />
<ProjectPanel id="1" workSpaceFile="" />
<ProjectPanel id="2" workSpaceFile="" />
</ProjectPanels>
</NotepadPlus>

View File

@ -0,0 +1 @@
{"leaves":["GUIConfig name=\"ToolBar\" visible=\"yes\"","GUIConfig name=\"StatusBar\"","GUIConfig name=\"TabBar\" dragAndDrop=\"yes\" drawTopBar=\"yes\" drawInactiveTab=\"yes\" reduce=\"yes\" closeButton=\"yes\" doubleClick2Close=\"no\" vertical=\"no\" multiLine=\"no\" hide=\"no\" quitOnEmpty=\"no\"","GUIConfig name=\"ScintillaViewsSplitter\"","GUIConfig name=\"UserDefineDlg\" position=\"undocked\"","GUIConfig name=\"TabSetting\" replaceBySpace=\"no\" size=\"4\"","GUIConfig name=\"AppPosition\" x=\"0\" y=\"0\" width=\"1100\" height=\"700\" isMaximized=\"no\"","GUIConfig name=\"noUpdate\" intervalDays=\"15\" nextUpdateDate=\"20180427\"","GUIConfig name=\"Auto-detection\"","GUIConfig name=\"CheckHistoryFiles\"","GUIConfig name=\"TrayIcon\"","GUIConfig name=\"MaitainIndent\"","GUIConfig name=\"TagsMatchHighLight\" TagAttrHighLight=\"yes\" HighLightNonHtmlZone=\"no\"","GUIConfig name=\"RememberLastSession\"","GUIConfig name=\"DetectEncoding\"","GUIConfig name=\"NewDocDefaultSettings\" format=\"0\" encoding=\"4\" lang=\"0\" codepage=\"-1\" openAnsiAsUTF8=\"yes\"","GUIConfig name=\"langsExcluded\" gr0=\"0\" gr1=\"0\" gr2=\"0\" gr3=\"0\" gr4=\"0\" gr5=\"0\" gr6=\"0\" gr7=\"0\" gr8=\"0\" gr9=\"0\" gr10=\"0\" gr11=\"0\" gr12=\"0\" langMenuCompact=\"yes\"","GUIConfig name=\"Print\" lineNumber=\"yes\" printOption=\"3\" headerLeft=\"\" headerMiddle=\"\" headerRight=\"\" footerLeft=\"\" footerMiddle=\"\" footerRight=\"\" headerFontName=\"\" headerFontStyle=\"0\" headerFontSize=\"0\" footerFontName=\"\" footerFontStyle=\"0\" footerFontSize=\"0\" margeLeft=\"0\" margeRight=\"0\" margeTop=\"0\" margeBottom=\"0\"","GUIConfig name=\"Backup\" action=\"0\" useCustumDir=\"no\" dir=\"\" isSnapshotMode=\"yes\" snapshotBackupTiming=\"7000\"","GUIConfig name=\"TaskList\"","GUIConfig name=\"MRU\"","GUIConfig name=\"URL\"","GUIConfig name=\"globalOverride\" fg=\"no\" bg=\"no\" font=\"no\" fontSize=\"no\" bold=\"no\" italic=\"no\" underline=\"no\"","GUIConfig name=\"auto-completion\" autoCAction=\"3\" triggerFromNbChar=\"1\" autoCIgnoreNumbers=\"yes\" funcParams=\"yes\"","GUIConfig name=\"auto-insert\" parentheses=\"no\" brackets=\"no\" curlyBrackets=\"no\" quotes=\"no\" doubleQuotes=\"no\" htmlXmlTag=\"no\"","GUIConfig name=\"sessionExt\"","GUIConfig name=\"workspaceExt\"","GUIConfig name=\"MenuBar\"","GUIConfig name=\"Caret\" width=\"1\" blinkRate=\"600\"","GUIConfig name=\"ScintillaGlobalSettings\" enableMultiSelection=\"no\"","GUIConfig name=\"openSaveDir\" value=\"0\" defaultDirPath=\"\"","GUIConfig name=\"titleBar\" short=\"no\"","GUIConfig name=\"stylerTheme\" path=\"C:\\sources\\notepad-plus-plus\\PowerEditor\\bin\\stylers.xml\"","GUIConfig name=\"wordCharList\" useDefault=\"yes\" charsAdded=\"\"","GUIConfig name=\"delimiterSelection\" leftmostDelimiter=\"40\" rightmostDelimiter=\"41\" delimiterSelectionOnEntireDocument=\"no\"","GUIConfig name=\"multiInst\" setting=\"0\"","GUIConfig name=\"MISC\" fileSwitcherWithoutExtColumn=\"no\" backSlashIsEscapeCharacterForSql=\"yes\" newStyleSaveDlg=\"no\" isFolderDroppedOpenFiles=\"no\" docPeekOnTab=\"no\" docPeekOnMap=\"no\"","GUIConfig name=\"searchEngine\" searchEngineChoice=\"2\" searchEngineCustom=\"\"","GUIConfig name=\"SmartHighLight\" matchCase=\"no\" wholeWordOnly=\"yes\" useFindSettings=\"no\" onAnotherView=\"no\"","GUIConfig name=\"ScintillaPrimaryView\" lineNumberMargin=\"show\" bookMarkMargin=\"show\" indentGuideLine=\"show\" folderMarkStyle=\"box\" lineWrapMethod=\"aligned\" currentLineHilitingShow=\"show\" scrollBeyondLastLine=\"no\" disableAdvancedScrolling=\"no\" wrapSymbolShow=\"hide\" Wrap=\"no\" borderEdge=\"yes\" edge=\"no\" edgeNbColumn=\"80\" zoom=\"0\" zoom2=\"0\" whiteSpaceShow=\"hide\" eolShow=\"hide\" borderWidth=\"2\" smoothFont=\"no\"","GUIConfig name=\"DockingManager\" leftWidth=\"200\" rightWidth=\"200\" topHeight=\"200\" bottomHeight=\"200\"","ActiveTabs cont=\"0\" activeTab=\"-1\"","ActiveTabs cont=\"1\" activeTab=\"-1\"","ActiveTabs cont=\"2\" activeTab=\"-1\"","ActiveTabs cont=\"3\" activeTab=\"-1\"","FindHistory nbMaxFindHistoryPath=\"10\" nbMaxFindHistoryFilter=\"10\" nbMaxFindHistoryFind=\"10\" nbMaxFindHistoryReplace=\"10\" matchWord=\"no\" matchCase=\"no\" wrap=\"yes\" directionDown=\"yes\" fifRecuisive=\"yes\" fifInHiddenFolder=\"no\" dlgAlwaysVisible=\"no\" fifFilterFollowsDoc=\"no\" fifFolderFollowsDoc=\"no\" searchMode=\"0\" transparencyMode=\"1\" transparency=\"150\" dotMatchesNewline=\"no\" isSearch2ButtonsMode=\"no\"","History nbMaxFile=\"10\" inSubMenu=\"no\" customLength=\"-1\"","ProjectPanel id=\"0\" workSpaceFile=\"\"","ProjectPanel id=\"1\" workSpaceFile=\"\"","ProjectPanel id=\"2\" workSpaceFile=\"\""],"root":"unitTest"}

View File

@ -0,0 +1,6 @@
-- Startup script for URL detection verification test
endNppAfterUrlTest = 1
local nppDir = npp:GetNppDirectory()
local verifyUrlDetection = loadfile(nppDir .."\\" .. "..\\Test\\UrlDetection\\verifyUrlDetection.lua")
pcall(verifyUrlDetection)

Some files were not shown because too many files have changed in this diff Show More