This dll will turn a regular Edit Box into a Decent Code Highlight and Editor
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
Syntax Highlighting Edit Box
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: Syntax Highlighting Edit Box
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.
My Stuff: mousey; volume; ahkinfo; instantbirder; npp highlighter; Dynamic File Menu; tv - a treeview library;
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: Syntax Highlighting Edit Box
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...
I still need to test the dll on all the versions of AHK...
Re: Syntax Highlighting Edit Box
just fyi @bgm have you tried https://github.com/G33kDude/RichCode.ahk ?
Re: Syntax Highlighting Edit Box
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.
To put it short, yes, I've tried GeekDude's richcode, but I'm doing something a bit complicated.
My Stuff: mousey; volume; ahkinfo; instantbirder; npp highlighter; Dynamic File Menu; tv - a treeview library;
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: Syntax Highlighting Edit Box
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
Re: Syntax Highlighting Edit Box
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?
My Stuff: mousey; volume; ahkinfo; instantbirder; npp highlighter; Dynamic File Menu; tv - a treeview library;
-
- Posts: 202
- Joined: 14 Aug 2016, 04:08
Re: Syntax Highlighting Edit Box
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
> 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 (v1)”
Who is online
Users browsing this forum: No registered users and 144 guests