I'm trying to prototype ATSynedit as a base for a hybrid editor that would have a "line command" area on the left in addition to the traditional, possibly restricted way of accessing the editor through menus and such. A hybrid.
My only point of reference of a working code example is CudaText.
1) One question I have is around the gutter and bookmarks and what is possible; would it be possible to add, or reuse, a bookmarks-type gutter column that would contain short text instead of an icon? For example, it might have "====>" in it, or "CC15" or ".BM1"? How would I do that? I'm struggling understanding the basic design pattern for bookmarks and what is possible. Perhaps I don't know what resources exist beyond CudaText and the wiki describing the control. AI seems all over the place, mixing code from old versions, TSynEdit, etc.
2) My second question is re delays in updates being visible. I have a simple bookmark sort-of working, but I set it in a KeyDown or KeyUp event (not from a menu selection like CudaText does if that is important). I have to move the caret off of the bookmarked line after setting the bookmark for it to be drawn. I tried adding stuff about .Update and .Invalidate but that didn't work. I had similar problems trying to hook code and do stuff in OnChange / OnChangeLog / OnChangeDetailed events. I seemed to be able to access the correct caret position, but any change I made (even inserting text to a different control) seemed to be delayed until I moved off of the current line. Any ideas what's going on there? I'm creating the control in code, so it's getting whatever defaults based on that, and it is placed on a Page control (because my goal is a tabbed interface).
All my testing so far, both CudaText and my Lazarus IDE, are on Windows 10 22HH2.