Commit Graph

55 Commits

Author SHA1 Message Date
Derick Payne
92a23f0bf3 Merge pull request #43 from RaiKoHoff/Bugfixes_and_More
some fixes and features, that missed the latest notepad2-mod
2017-08-07 09:31:40 +02:00
Rainer Kottenhoff
d5e480f1eb - minor cleanups reported by CppCheck v.1.79
- fix exception - reported in notepad2-mod pull request (Crash fixing. #172), which has been rejected there,
  but I was able to reproduce it in VS2017 debug mode (initial defaults for exception handling).
  (https://github.com/XhmikosR/notepad2-mod/pull/172)

- incorporate changes from  notepad2-mod from v.4.2.25.995  to  v.4.2.25.998
  (one fix,  the other changes we have done before already)

- Change shortcuts for the following actions:
  (-) Toggle Transparent Mode:  moved from Ctrl+0  to  Ctrl+Numpad_*
  (x) Reset Zoom: Ctrl+/ change to Ctrl+0      ($v_5.0.26)
  Additional Accelerator Keys, as suggested by (https://github.com/XhmikosR/notepad2-mod/pull/197)
  (+) Toggle Line Comment : in addition to Ctrl+Q add Ctrl+/  with same functionality
  (+) Do Stream Comment : in addition to Ctrl+Shift+Q add Ctrl+Shift+/ with same functionality
  believing new shortcuts are more convenient and more widely used, aren't they?
2017-08-06 23:35:37 +02:00
Derick Payne
050c2436be Small updates 2017-08-06 19:10:50 +02:00
Derick Payne
489db38dc4 Back to smaller toolbar buttons. 2017-08-06 18:38:45 +02:00
Rainer Kottenhoff
74ec34dad3 integrate Scintillas DirectWrite technology:
- Settings:  SciDirectWriteTech, SciFontQuality
  + values according to Scintilla documentation
  + values = -1 (or not set) - don't call SCI API anyway - should be the same as DEFAULT technology settings (values = 0)
      SC_TECHNOLOGY_DEFAULT = 0,  SC_TECHNOLOGY_DIRECTWRITE = 1,  SC_TECHNOLOGY_DIRECTWRITERETAIN = 2,  SC_TECHNOLOGY_DIRECTWRITEDC = 3
      SC_EFF_QUALITY_DEFAULT = 0, SC_EFF_QUALITY_NON_ANTIALIASED = 1, SC_EFF_QUALITY_ANTIALIASED = 2, SC_EFF_QUALITY_LCD_OPTIMIZED = 3
2017-08-05 22:01:46 +02:00
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
5653da2984 Minor Updates 2017-06-13 22:40:30 +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
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
Rainer Kottenhoff
de1f3b55b9 update to Scintilla library v.374 2017-03-28 09:37:26 +02:00
Derick Payne
ac5d73375b MiniPath now working on Windows XP 2017-01-06 17:12:24 +02:00
Derick Payne
eca0846640 New release 2016-12-07 15:36:26 +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
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
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
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
Derick Payne
31d225905a Update Apache Keywords for version 2.4
Update Apache Keywords for version 2.4
2016-06-11 16:01:38 +02:00
Derick Payne
ad74a36002 Updated to Scintilla 3.6.6
Updated to Scintilla 3.6.6
2016-06-11 09:32:20 +02:00
Derick Payne
124ab91e84 Build Environment Cleanup
Build Environment Cleanup
2016-06-03 13:13:46 +02:00
Derick Payne
5f108132ae Bug in handling wrong passphrase on decryption 2016-04-18 16:36:58 +02:00
Derick Payne
b843870b5a Updated Scintilla to version 3.6.4
Updated Scintilla to version 3.6.4
2016-04-17 20:44:10 +02:00
Derick Payne
229fb8ac22 New Encryption Feature 2016-01-29 22:24:29 +02:00
Derick Payne
0ada3c6d5e Updated Build Output Directories 2016-01-29 19:57:20 +02:00
Derick Payne
ddf6a172bb Fixed Missing Wildcard Search
Fixed Missing questions marks on search and replace windows.
2016-01-29 19:33:38 +02:00
Derick Payne
865d2af7a5 Updated Scintilla to version 3.6.3 2016-01-29 18:45:29 +02:00
Derick Payne
20adcaea23 Updated Versions Program to Build 68 2015-11-20 14:06:38 +02:00
Derick Payne
b147e7c276 MiniPath now included in Setup
MiniPath now included in Setup. Change the main license file to include
MiniPath (metpath)
2015-11-17 16:17:35 +02:00
Derick Payne
3202a2346c MiniPath added to solution.
MiniPath Explorer plugin added to solution. MiniPath is based on code
from metapath.
2015-11-17 14:29:11 +02:00
Derick Payne
0bb999bd8f Setup file completed. 2015-11-14 20:14:21 +02:00
Derick Payne
10a8bd5233 Update missing keywords 2015-11-14 11:31:22 +02:00