On 25.06.2016 08:37 Svets wrote:
> Solved this with Fl_Browser and Fl_Multi_Browser. Should have used this
> from the start.
Great, if this is okay for you.
> I'm not sure this can be achieved with Fl_Text_Editor.
You'd need to use a fixed width (aka mono spaced) font, such as Courier.
There is at least one mono spaced built into FLTK, probably FL_COURIER.
You might also want to take a look at test/editor.cxx that uses a fixed
font for normal text editing but proportional font(s) for comments etc.
(open a C source file with the editor demo, and you'll see...).