Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the latest SynEdit version or clone?

Tags:

delphi

synedit

I havent used synEdit for a while, but today I found that I needed a good editor for a form with script support. As I went to download synEdit (which my mind had frozen in time as a "sure thing") I found that the original author had abandoned it. I am aware that FreePascal has a synEdit version - and I hear there is a more recent unicode version out there "somewhere"-- but where exactly can I get the newest and best version?

I would prefer unicode support if it's possible, but more importantly is support for dynamic styling (being able to add tokens to underline keywords, a bit like Delphi does when you access a variable of a class you just typed).

like image 631
Jon Lennart Aasenden Avatar asked Dec 22 '10 02:12

Jon Lennart Aasenden


2 Answers

http://synedit.sourceforge.net has a link to the Unicode version.

like image 89
Remy Lebeau Avatar answered Nov 05 '22 20:11

Remy Lebeau


SynEdit is much faster than any other text editor component. See the comparison benchmark here.

Currently I'm developing a new IDE for Arduino (official one is lack too much standard IDE features) to contribute to Arduino community. Since I want my IDE to run natively without rely on any VM and cross-platform is not my goal, so I took my o'good friend Delphi 7 and search for updated SynEdit VCL. Slightly dissapointing is it still has no very important feature: code folding (which you can say as "standard code editor feature" nowdays).

But after a little search I've found a descendant project which based on SynEdit which feature code folding: Mystix (hosted at SourceForge). You can simply overwrite your previous SynEdit source with this one (there is no new dpk package to install). It's based on SynEdit 2.0.1 anyway.

Documentation is a little vague (you have to throughfully examine the source code to get idea how to use it properly), but here is hint how to use the code folding feature:

SynEdit1.CodeFolding.FolderBarColor: = clDefault; 
SynEdit1.CodeFolding.HighlighterFoldRegions: = False; 
SynEdit1.CodeFolding.FoldRegions.Add(rtChar, False, False, True, '{', '}');
SynEdit1.CodeFolding.FoldRegions.Add(rtKeyword, False, False, True, '/*', '*/');
// and don't forget to initialize...
SynEdit1.InitCodeFolding;
// ... and enable it
SynEdit1.CodeFolding.Enabled: = True;

Mystix is released under same license as SynEdit (MPL).

like image 41
user2026189 Avatar answered Nov 05 '22 19:11

user2026189