General TC > General TC Talk

Old FLTK Editor code?

(1/2) > >>

PDP-8:
Are there any version of the default fltk editor in the repos that doesn't come with syntax highlighting?

(and would it even work considering we're on fltk 1.3.5 or 1.3.6 - I have to look that up)

Saw some threads about it in some older dCore threads, so maybe possible?  Performance hit?  I use all the features, preview, favorites and so forth, but sometimes the highlighting gets a bit distracting for my non-programming text files.

curaga:
The fltk_projects repo has the editor source, but no such version without syntax hl. You can disable it by editing the source and building it, but not sure how much you need to edit. May be enough to comment the w->editor->highlight_data() and textbuf->add_modify_callback(style_update, w->editor); lines.

I think it's an FLTK sample app, so you could try tracking it down in FLTK repos.

Rich:
Hi PDP-8
You don't say what architecture you are looking for, so Here's what you can try:

For x86:
Unpack  http://tinycorelinux.net/5.x/x86/tcz/Xprogs.tcz  and grab the editor program from there.
Get  http://tinycorelinux.net/5.x/x86/tcz/fltk-1.1.10.tcz  and the  .dep  file.

OR
Unpack  http://tinycorelinux.net/6.x/x86/tcz/Xprogs.tcz  and grab the editor program from there.
That version was compiled against fltk-1.3.

For x86_64 (same song, different verse):
Unpack  http://tinycorelinux.net/5.x/x86_64/tcz/Xprogs.tcz  and grab the editor program from there.
Get  http://tinycorelinux.net/5.x/x86_64/tcz/fltk-1.1.10.tcz  and the  .dep  file.

OR
Unpack  http://tinycorelinux.net/6.x/x86_64/tcz/Xprogs.tcz  and grab the editor program from there.
That version was compiled against fltk-1.3.

I don't know when the syntax highlighting was added. I'm certain the TC5 versions don't have it. I suspect the TC6
versions don't have it either.

polikuo:
If you are using 64-bit, there's a editor with shell highlighting on the repo.
There's a button to switch on and off the highlighting function.
It was written entirely from scratch with the help of the IDE called "fluid".
You can grab the code and check for early commits for cross reference.

--- Code: ---Title:          editor4sh.tcz
Description:    A FLTK editor for sh / bash
Version:        git commit 9317831
Author:         polikuo
Original-site:  https://github.com/polikuo/editor4sh
Copying-policy: OpenSource
Size:           36K
Extension_by:   polikuo
Tags:           editor bash shell
Comments:       A simple FLTK editor for plain text and shell scripts
Change-log:     2021/03/23 First Version
Current:        2021/03/23 First Version

--- End code ---

PDP-8:
Wow - thanks guys!

I'm running 12.0 64 bit only here on many machines, so I'll unarchive the tcz's you referenced and check them out.  Great tip Curaga and awesome links Rich.  Dillo handled 'em just fine with save-as.

Polikuo - just wow man!  I'm blown away.  And the the way you handled the toggle between highlighting is absolutely brilliant by changing to a slightly larger font for non-highlighted.  In fact, that larger font would also be the cool beans as an option to incorporate into TC itself.  Different discussion, but again - what I thought was a bug when toggling turned out to be a really cool feature.

That really helps me find those semicolons when they should be commas in my code!  :)

The only thing I miss is cut-n-paste in the menus.  I'll try the usual unix mouse keys to do that when I get back to the box.  I tried yank-yank-put, but that didn't work. hah.

Simply outstanding - thanks again.  It was there all along.  Lesson learned - take the time to read the descriptions!


Navigation

[0] Message Index

[#] Next page

Go to full version