Syntax Highlighting Edit Box

Post your working scripts, libraries and tools
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Syntax Highlighting Edit Box

03 Mar 2018, 08:24

This dll will turn a regular Edit Box into a Decent Code Highlight and Editor

Image
Image from my WIP

The project is on github, along with AHK Include and Test file

https://github.com/icuurd12b42/tmcsyntaxEB

I need Help fixing the test File. I'm experiencing weird things with the OnResize event and reading from the ini.

I also need help for creating language files and with the syntax coloring
User avatar
BGM
Posts: 419
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

Re: Syntax Highlighting Edit Box

03 Mar 2018, 10:07

This looks pretty interesting! I have a little GUI that I made which I always wanted syntax colouring in. I am rather daunted by the complexity of scintilla and have always wished for something easier.
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Re: Syntax Highlighting Edit Box

03 Mar 2018, 15:42

Same... and none of these syntax highlighters I found are for "any" language... they usually are language specific or use the .net interface for plugging into your project... which is not usable in AHK.


I still need to test the dll on all the versions of AHK...
User avatar
BGM
Posts: 419
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

Re: Syntax Highlighting Edit Box

03 Mar 2018, 17:26

Guest - well, I originally used richtext, but my process got to complicated trying to escape characters. Then a fellow helped me with a scintilla dll, then he got fed up and wouldn't talk to me anymore, and I was never able to get the source files - just the dll. So I sort of got dumped on there. Now I'm stuck.

To put it short, yes, I've tried GeekDude's richcode, but I'm doing something a bit complicated.
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Re: Syntax Highlighting Edit Box

04 Mar 2018, 07:09

darnit why is it always after you search and gave up and work for days one end that something pops up like that. that thing looks well made... but I'm too committed now :)
guest3456
Posts: 2396
Joined: 09 Oct 2013, 10:31

Re: Syntax Highlighting Edit Box

04 Mar 2018, 11:45

icuurd12b42, great work. did you write the dll yourself?

User avatar
BGM
Posts: 419
Joined: 20 Nov 2013, 20:56
GitHub: bgmCoder
Contact:

Re: Syntax Highlighting Edit Box

04 Mar 2018, 14:47

Am I right in understanding that the dll effects syntax for particular languages only? What if you want to use a syntax in a custom language?
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Re: Syntax Highlighting Edit Box

05 Mar 2018, 03:56

You can define your own language. I got Javascript 3.0 defined along with a mix of other things in the test files. you can take a peek at the .lng files.

> did you write the dll yourself?
Yes, after I gave up trying to find a highlighter that was easy to use, g33k link excluded, I decided to brush up my 90's winapi skills for custom controls and use my recently acquired code parsing concept to make something simple...

I just completed ansi char and wide char support and 64 bit support... I just found a slew of edit box messages that will bypass the 64k limit and made a test app in c++... in a few days I think the code part will be complete. The issue of concern for me is the language files... I suck at making a balanced color scheme

Return to “Scripts and Functions”

Who is online

Users browsing this forum: ozz and 18 guests