Recent

Author Topic: ATSynEdit 0.5 - with syntax hiliting support  (Read 4963 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
ATSynEdit 0.5 - with syntax hiliting support
« on: June 18, 2015, 12:31:20 am »

https://github.com/Alexey-T/ATSynEdit
https://github.com/Alexey-T/EControl (to support syntax hiliting by EC engine)

ATSynedit now supports syntax hiliting:
2 ways to syntax hilite text:
a) add OnCalcHilite event
b) add usage of "adapter", it's called auto, by ATSynedit.

One such adapted is done. Based on EControl sdk (site econtrol.ru). EControl supports 100+ lexers (C, C++, C#, Asm, Pascal, Go, Python, Java, JS, CSS, HTML, PHP... etc... etc). To see it's work: download URLs above and run demo "demo_adapter_econtrol".
Demo has about 40 lexers in combobox list, you can test any.
https://github.com/Alexey-T/ATSynEdit/tree/master/img , screenshots

Not made wiki page about ATSynedit. Yet.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #1 on: June 18, 2015, 03:46:30 pm »
Images
 

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #2 on: June 20, 2015, 02:54:30 am »

Basile B.

  • Guest
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #3 on: June 20, 2015, 06:37:14 am »
The demo using EControl can't be compiled because the project file refer to your own file system (E:\...). I've tried to convince you to switch to (true) git a few days ago...and after the failure, i think that one solution would be that you propose EControl as a package (lpk) and instead of refering to the external EControl source files, add a requirement to the package EControl...

I don't know if you see what i mean ? Do you understand that we, the users, can't compile this demo ? It's a pity because your control is very promising.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #4 on: June 20, 2015, 06:49:18 am »
Quote
-- i think that one solution would be that you propose EControl as a package
It is promising solution. What is change to do it? I make EC package with pas files. and?

Quote
the users, can't compile this demo 
Why you can't ? use files in dir.
 
« Last Edit: June 20, 2015, 06:52:23 am by Alextp »

Basile B.

  • Guest
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #5 on: June 20, 2015, 07:11:38 am »
Quote
Why you can't ? use files in dir.

because of this: http://i.imgur.com/7QN65xU.png

Quote
It is promising solution. What is change to do it? I make EC package with pas files. and?

Once compiled as package, you'll have to remove the references to your local files (E:\...) and add a requirement to the project:

http://i.imgur.com/5gQE18p.png

Of course at the current time it doesn't work but once the package setup, "econtrol" will be autocompleted in the field.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #6 on: June 20, 2015, 07:24:27 am »
I did: try update, pls (econtrol and demo)

Basile B.

  • Guest
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #7 on: June 20, 2015, 08:26:55 am »
Ok, thanks, this works fine like that.

EControl requires itself the ATSynEdit package, which is a bit strange (both could be a single package), but otherwise it's ok now, no more reference to your local file system.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #8 on: June 20, 2015, 08:30:10 am »
..EControl requires the ATSynEdit
Reason: it used TATStringBuffer

Btw. Good if u will use in D IDE. I will help

Edson

  • Hero Member
  • *****
  • Posts: 1296
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #9 on: June 24, 2015, 06:53:48 am »
ATSynEdit requires ECOntrol.
ECOntrol requires ATSynEdit.  %)
I think there is some architecture problem.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit 0.5 - with syntax hiliting support
« Reply #10 on: June 24, 2015, 06:58:49 am »
Need install in order: a) ATSyned packge b) ECon packge c) open demo_adaper_econtrol (needs a and b)

(only this demo needs a and b)

 

TinyPortal © 2005-2018