Lazarus

Announcements => Third party => Topic started by: Erhan Hitay on June 30, 2021, 01:58:08 pm

Title: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 01:58:08 pm
TBCEditor synedit alternative or like synedit It would be nice to port this component set to lazarus. Is there who will do it?

Description
Powerful edit control for RAD Studio with syntax highlighting and so on.
Compiled demos for 32-bit and 64-bit Windows included.

Informations
Status: Fully functional
Source: Included
Size: 22 421kB

https://torry.net/authorsmore.php?id=7354 (https://torry.net/authorsmore.php?id=7354)

https://torry.net/files/vcl/edits/rich/TBCEditor.zip (https://torry.net/files/vcl/edits/rich/TBCEditor.zip)
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 03:22:07 pm
TBCEditor github

https://github.com/errorcalc/TBCEditor (https://github.com/errorcalc/TBCEditor)

https://github.com/errorcalc/TTextEditor (https://github.com/errorcalc/TTextEditor)
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Edson on June 30, 2021, 03:49:55 pm
Looks good. It would be good, to show the advantages/disadvantages from SynEdit.  I see the wordwrap and minimap interesting.

I think Lazarus IDE needs a more modern editor, with capabilities for plugin support , showing icons, showing controls or additional information text in source code like Visual Studio or Intellij IDEA do.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 04:54:48 pm
synedit is out of date. TBCEditor or TTextEditor is more up to date. It is also advantageous that the highlights are taken and processed from the external text file, not the component. its hierarchy is easier than synedit. I tried converting the files to lazarus units. I encountered too many errors. Some mistakes are meaningless. I encountered a typo where there was no typo. I think it has to do with the debugger. I am not sure.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: AlexTP on June 30, 2021, 05:03:02 pm
It has less functions than ATSynEdit, as far as I remember.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 05:16:23 pm
atsynedit econtrole dependent. There seems to be a licensing problem in econtrol. it conflicts with the basic licensing logic of lazarus. but lazarus ide can use atsynedit or tbceditor or ttexteditor instead of synedit. synedit can be updated and new features can be added.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: AlexTP on June 30, 2021, 05:53:55 pm
>atsynedit econtrole dependent. There seems to be a licensing problem in econtrol.

EControl is only an OPTION, ie it is not required, it is the separate package!
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 06:18:57 pm
sorry. I misunderstood.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: wp on June 30, 2021, 06:19:16 pm
Tried to convert the package to Lazarus: more than 100 units, very specific to Delphi --> a lot of work, and gave up.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: AlexTP on June 30, 2021, 06:25:19 pm
Offtopic: One can even support BCEditor 'syntax files' for ATSynEdit - by creating the 'adapter' unit. (EControl also has the adapter)
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Edson on June 30, 2021, 07:19:44 pm
Hi Alex.

Can ATSynEdit show color blocks like Visual Studio Code?

Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: AlexTP on June 30, 2021, 07:49:15 pm
Edson,
this is custom function which must be programmed by 'user of component', like other custom popups - e.g. LSP popups.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: AlexTP on June 30, 2021, 07:52:10 pm
Edson,
ah, colored squares inside the text.
This is not supported - I think it's not nice design of VSCode, because these squares shift the text righter. CudaText (on ATsynedit) does it in different way - https://wiki.freepascal.org/CudaText#HTML_color_codes_underlining
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Erhan Hitay on June 30, 2021, 08:16:44 pm
https://github.com/errorcalc/TBCEditor (https://github.com/errorcalc/TBCEditor)

TBCEditor Description:

A syntax highlighting edit control for RAD Studio (Delphi/C++ Builder) with code folding, completion proposal, matching pair, minimap, sync edit, multi-caret editing, word wrap, support for non-fixed-width fonts, etc. External highlighter and color scheme files are in JSON format which can be also loaded from a stream.

screenshot: https://cloud.githubusercontent.com/assets/11475177/20067778/2e403442-a51f-11e6-8c3e-532ae48b7d72.png (https://cloud.githubusercontent.com/assets/11475177/20067778/2e403442-a51f-11e6-8c3e-532ae48b7d72.png)
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: marcov on June 30, 2021, 08:31:44 pm
Tried to convert the package to Lazarus: more than 100 units, very specific to Delphi --> a lot of work, and gave up.

Yes, that is also the impression that I got, very massive and possibly designed with 2-byte strings in mind, so it might be hard to convert to anything else.
Title: Re: TBCEditor v.1.0b like synedit by Lasse Rautiainen
Post by: Edson on June 30, 2021, 09:09:17 pm
https://github.com/errorcalc/TBCEditor (https://github.com/errorcalc/TBCEditor)

The part I don't like is
"Documentation will be written after the project stabilizes and dust settles.".
TinyPortal © 2005-2018