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
Don HO
be6f797e65
Improve Json syntax highlighting
2019-12-21 11:47:04 +05: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
Don HO
29919bea22
Fix indent guideline bug regarding Python-like languages and non-Python-likes ones
2019-10-07 00:45:16 +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
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
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
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
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
dail8859
e5de0c6d44
Set embedded ASP default language to VB
...
Closes #5702 , Closes #5677
2019-05-30 07:47:30 -04:00
Don HO
1a438ddc61
Fix some coding styles
2019-05-16 20:56:41 +02:00
Don HO
d22d1609ab
Upgrade Scintilla - Adaptation of PowerEditor part
2019-05-08 11:13:21 +02: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
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
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
52a4e21af5
Remove ugly coding style
2019-03-16 05:33:50 +01:00
Don HO
5356f648c2
Remove some ugly coding styles
2019-03-13 02:02:35 +01:00
Jon Bockhorst
dd8ae05429
Add shift + scroll for horizontal scrolling
...
Close #2682 , close #5184
2019-03-03 18:36:17 +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
7fe3cda1d0
[EU-FOSSA] Use wcscpy_s instead of lstrcpy to prevent from buffer overflow
2019-02-11 02:07:04 +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
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
e75cf910bd
Add new brhaviour of checking Plugin List's certificate
2018-07-31 09:12:57 +02:00
Don HO
593cf451fb
Clean up
2018-06-24 01:16:01 +02:00
Silent
1482420fcb
Fixed pointer truncations reported after removing /Wv:18
...
Close #4544
2018-06-21 02:36:28 +02:00
Don HO
c05f24a3f6
Fix a typo
2018-01-28 21:07:48 +01:00
dail8859
c97b35c815
Fix highlighting of <script> tags in XML files
2018-01-03 13:29:26 -05: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
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
Thomas Linder Puls
854acae4a1
Add Visual Prolog language support
...
Closes #1439
2017-08-25 09:43:36 +02:00
Don HO
385746de01
Rename variables & clean up
2017-07-27 10:30:53 +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
SinghRajenM
a9adc4835d
Remove some useless codes
...
Closes #3472
2017-07-17 10:39:46 +02:00
Don HO
c8969b773f
Add SWIFT language support
2017-06-17 20:03:28 +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
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
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
SinghRajenM
b45b10385f
Make folding style visible using proper color
...
Fixes #2948 , closes #2949
2017-05-10 18:35:02 +02:00
Don HO
e2329fd15c
Improve certificate verifying method
2017-05-10 02:12:10 +02:00
Don HO
6b0a3c8e6b
Enhance certificate check
2017-05-08 00:19:56 +02:00
dail8859
c63673a1d8
Fix buffer overrun for wordchar list
2017-04-07 16:30:12 -04: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
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
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