TSynMultiSyn issues
Original Reporter info from Mantis: Giulio
-
Reporter name: Giulio Bernardi
Original Reporter info from Mantis: Giulio
- Reporter name: Giulio Bernardi
Description:
I'm having some issues porting old delphi code that uses TSynMultiSyn to lazarus.
The SynEdit component correctly displays data using the multisyn if it is loaded programmatically, but fails to highlight some parts when something is typed on the keyboard.
Here it is a very simple example that shows the problem.
The same example project is attached as a tar.bz2 file.
Steps to reproduce:
Create a new Application
Drop a TSynEdit on the main form
Drop a TSynMultiSyn and a TSynHTMLSyn
set the SynHTMLSyn as the Default Highlighter for the SynMultiSyn
Create a scheme for the SynMultiSyn (click Schemes, open the editor, press Add)
set the SynMultiSyn as the Highlighter for the SynEdit
Save, compile and launch the application
In the application, set the text to
&LtPos;html>
It will be highlighted
On the next line, type &LtPos;html> again (or any other html tag): it is not highlighted
Go at the beginning of the first line, press enter: the two tags are both highlighted now
Try to delete the just added line by pressing backspace: an ESynEditStorageMem exception is raised.
Mantis conversion info:
- Mantis ID: 22519
- OS: Linux x86_64
- OS Build: Fedora 16
- Build: rev 38058
- Platform: Linux x86_64, fpc 2.6.0
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 38175 (#b2905c41)
- Target version: 1.0.0
- LazTarget: 1.0