Commit Graph

73 Commits

Author SHA1 Message Date
Rainer Kottenhoff
da073686dc reverting, and fixing encoding / code-page issues:
- consistent encoding <> code-page handling (including Scintilla's code-page settings)
- Scintilla issue regarding notepad2-mod issie #173 (see https://github.com/XhmikosR/notepad2-mod/pull/193)
- allow arbitrary conversion between encodings (even it it does not make sense in any case)
  (instead of doing silently nothing but changing encoding info on status bar)
2017-08-05 20:20:22 +02:00
Rainer Kottenhoff
7647e03801 refactoring encoding and code-page handling:
- using Scintilla UTF8 code-page internally for most encodings,
  solves some encoding/code-page problems, the behaviour slightly changes:

  + if DefaultEncoding is not set (or set to DefaultEncoding = -1),
    initial encoding is set to current system's code-page, e.g. Windows-1252
    Scintilla's internal UTF8 code-page is used for edit box,
    that means copy/paste from clipboard may show characters which are
    not valid in this char-set of the selected code-page.
    Trying to save a file with this invalid UTF8 chars will result in conversion dialog:
    ("...  encoding from ANSI to non-ANSI (and vice versa) may replace unsupported text with default characters ...")

 + if DeaultEncoding = 0 (ANSI):
   a) if LoadASCIIasUTF8 = 0 (FALSE), Scintilla's internal ANSI code-page is used for edit box
      that means copy/paste from clipboard may convert chars to ANSI ()
   b) if LoadASCIIasUTF8 = 1 (TRUE), Scintilla's internal UTF8 code-page is used for edit box
    that means the universal UTF8 encoding is used

 + if DeaultEncoding = nnn (corresponding to some ANSI code-page encoding):
   same as if DefaultEncoding is set to corresponding code-page (see section "DefaultEncoding is not set")
2017-08-04 22:49:21 +02:00
Rainer Kottenhoff
bc7c7f98bd Issue #32: add VisualStudio's editor behaviour for Ctrl-C and Ctrl-X if nothing is selected (copy / cut current line) 2017-08-03 17:30:03 +02:00
Rainer Kottenhoff
67ff6f274e Refactoring/Fixes:
- standard encoding is ANSI, (resp. UTF8 - if no(-1) encoding default is given in .ini-file: DefaultEncoding=n)
- copy/paste non ANSI characters to ANSI encoded NP3 windo will recode them to ANSI (same as manually recode)
2017-08-03 15:34:28 +02:00
Rainer Kottenhoff
854f0a7cec reverting: don't use current system codepage for encoding default (this will lead to problems on changing encoding) 2017-08-03 12:36:39 +02:00
Rainer Kottenhoff
c299225d6c to fix locale code page / encoding issue: using systems default CodePage for default encoding (and default code page), if default encodig is not persisted in .ini-file
to preserve old standard behaviour, DefaultEncoding "ANSI" may be set in .ini-File
2017-08-02 20:48:14 +02:00
Rainer Kottenhoff
8a94087563 - fixed: broken Ctrl-Q (toggle line comments)
- remember more settings/checksboxes for “Find text” dialog between sessions (.ini-file persistence of (open) dialog)
- DeelX RegexSearch:  remove EXTENDED mode - that disables white space ignore and '#' as line comment (expexted/convenient behaviour)
- fixing ".LOG-feature" of Notepad : ".LOG" recognition must be case sensitive
2017-08-02 15:48:40 +02:00
Derick Payne
55281e57be Removed some Junk 2017-06-13 23:01:34 +02:00
Derick Payne
8d59e54eaf Updated Changes.txt File 2017-06-13 22:55:29 +02:00
Derick Payne
5653da2984 Minor Updates 2017-06-13 22:40:30 +02:00
Derick Payne
7cadeaa7ed Merge pull request #29 from RaPeHoff/Scintilla_375
Update Scintilla Lib to v3.7.5
2017-05-30 16:27:50 +02:00
Rainer Kottenhoff
9f56e00787 - add VS2013 (vc120) std::unique_ptr handling (Scintilla's "UniqueString.h") 2017-05-30 13:41:55 +02:00
Rainer Kottenhoff
056303b6de - Update Scintilla Lib to v3.7.5
- Add CSS variable and media highlighting.
2017-05-30 10:24:10 +02:00
Derick Payne
cb6990cba6 Bigger toolbar buttons
- Bigger toolbar buttons (24px)
- Visual Studio 2017 solution file
2017-03-31 01:52:39 +02:00
Derick Payne
3cf3ea107b Merge pull request #26 from RaPeHoff/master
Minor changes
2017-03-30 23:21:55 +02:00
Rainer Kottenhoff
db8b9361c8 - set UTF-8 as character encoding, if no valid character encoding is chosen for default (.ini) - see notepad2-mod merge #69
- change "Notepad3.ini": don't use 2nd default syntax scheme by default (Notepad3 issue #21)
- Add Microsoft Visual C++ 2017 (vc141)
2017-03-30 14:02:35 +02:00
Derick Payne
c6e109c011 Merge pull request #25 from RaPeHoff/Scintilla_374
update to Scintilla library v.374
2017-03-29 19:10:14 +02:00
Rainer Kottenhoff
de1f3b55b9 update to Scintilla library v.374 2017-03-28 09:37:26 +02:00
Derick Payne
edddf9c521 Merge pull request #22 from RaPeHoff/Scintilla_373
Update to Scintilla v.3.7.3
2017-03-02 21:45:51 +02:00
Rainer Kottenhoff
60d356a17f update to Scintilla v.3.7.3 2017-02-21 11:31:09 +01:00
Derick Payne
a11f240947 Updated Changes.txt 2017-01-06 17:30:23 +02:00
Derick Payne
c8efc7a3b8 Merge pull request #16 from RaPeHoff/Scintilla_372
update Scintilla to version 3.7.2
2017-01-06 17:26:38 +02:00
Derick Payne
ac5d73375b MiniPath now working on Windows XP 2017-01-06 17:12:24 +02:00
Rainer Kottenhoff
334a68bbcb use changed scintilla/lexers/LexPython.cxx from current Notepad2-mod 2017-01-03 10:07:11 +01:00
Rainer Kottenhoff
51693dc7c7 update component Scintilla to version 372 2017-01-03 08:44:50 +01:00
Derick Payne
eca0846640 New release 2016-12-07 15:36:26 +02:00
Derick Payne
4f01887c72 Merge pull request #14 from RaPeHoff/Scintilla_371
+ update to Scintilla 371  (NP2 adaption due to deprecated data types)
2016-12-07 11:08:52 +02:00
Rainer Kottenhoff
1f5354b194 + update to Scintilla 371 (NP2 adaption due to deprecated data types) 2016-12-06 11:49:54 +01:00
Derick Payne
562182159d Merge pull request #10 from RaPeHoff/fix_64bit_37
clean-code solution (instead of "magic numbers")
2016-11-28 08:25:53 +02:00
Derick Payne
8a0723a133 Merge pull request #11 from RaPeHoff/crypto_update
+ crypto module: code cleanup
2016-11-28 08:25:38 +02:00
Derick Payne
db0db4b749 Merge pull request #12 from RaPeHoff/deelx_regex
+ Integration of DeelX RegExpr engine (http://www.regexlab.com/en/deelx/)
2016-11-28 08:25:16 +02:00
Rainer Kottenhoff
af672d7e49 extend RegExpr (DeelX) based "Wildcard Search" (?*) character escaping method 2016-11-27 16:55:42 +01:00
Rainer Kottenhoff
ad277d6008 clean up some more places calculating space for selection text sizes 2016-11-27 16:08:13 +01:00
Rainer Kottenhoff
1d526576c9 + Integration of DeelX RegExpr engine ( see http://www.regexlab.com/en/deelx/ )
Notepad2 and also the maintaining fork notepad2-mod are using Scintilla's internal regexpr engine, which has its limitations ( see  XhmikosR/notepad2-mod#148 ).
   In wise forsight, the developer of Scintilla creates an interface (activated by preprocessor define SCI_OWNREGEX), to embed your own RegExpr search (and replace) engine.
2016-11-27 13:25:39 +01:00
Rainer Kottenhoff
87cf965f9a clean-code solution (instead of "magic numbers") for XhmikosR/notepad2-mod#37 2016-11-27 12:59:46 +01:00
Rainer Kottenhoff
8598137ecc + crypto module: code cleanup according to static code analysis (CppCheck and VS2015 Analyze)
+ crypto module: replace LocalAlloc/GlobalAlloc by HeapAlloc methods
+ Scintilla 370 last merge missed some files
2016-11-27 11:23:16 +01:00
Derick Payne
3dcab849aa Merge pull request #8 from RaPeHoff/master
Scintilla 3.7.0 integration
2016-11-15 13:39:52 +02:00
Rainer Kottenhoff
d15dfdbccb Merge tag 'Scintilla_370' 2016-11-15 10:46:36 +01:00
Rainer Kottenhoff
86c8fcaea0 + update Scintilla to Version 3.7.0
- add _SCL_SECURE_NO_WARNINGS preprocessor define (Scintilla uses "unsafe" std::copy now)
+ integrate additional Lexers: lexJSON, lexMATLAB, lexRegistry (see also McNeight/notepad2-mod)
+ Insert GUID insertion option (XhmikosR/notepad2-mod#171)
+ fixing sporadic initial crash (XhmikosR/notepad2-mod#172)
2016-11-15 10:37:30 +01:00
Derick Payne
13196d1117 Merge pull request #7 from RaPeHoff/master
fixing 64bit issue XhmikosR/notepad2-mod#37
2016-11-07 02:18:18 +02:00
Rainer Kottenhoff
0c4c5a5da5 fixing 64bit issue XhmikosR/notepad2-mod#37
fixing crypto issue "passphrase longer than plaintext"
2016-11-06 16:15:36 +01:00
Derick Payne
40cff43135 Included upx.exe 2016-09-08 15:09:36 +02:00
Derick Payne
2b8edb9358 Signed Version.exe 2016-09-08 14:22:01 +02:00
Derick Payne
20192bdfe6 Changed various solution properties 2016-09-08 14:19:39 +02:00
Derick Payne
2267251a35 Updated Scintilla to version 3.6.7
Updated Scintilla to version 3.6.7, Updated HTML Keywords and Added
Microsoft Visual C++ Update 3 version number.
2016-09-06 11:11:37 +02:00
Derick Payne
6de3aeda1f Implemented a new versioning scheme 2016-06-24 08:48:48 +02:00
Derick Payne
07d22db18d Fixed Favorites Function
Fixed Favorites Function
2016-06-22 13:53:54 +02:00
Derick Payne
69c4414644 Added Support for Inno Setup 5.5.9 2016-06-11 17:49:36 +02:00
Derick Payne
2429e56f3f Removed Visual Studio 2010 to 2013 Support
Removed Visual Studio 2010 to 2013 Support and Cleaned Source Code.
2016-06-11 17:24:14 +02:00
Derick Payne
2ff761c6b6 Removed Visual Studio 2010 to 2013 Support
Removed Visual Studio 2010 to 2013 Support
2016-06-11 16:03:21 +02:00