...
What make/brand of computer and what operating system is it not working on?
Larry
Are you sure its a CR character?
It is probably a line-feed character(CHR$(10)) or even a NULL character(CHR$(0)).
Zlatko, scintilla uses chr$(13)+chr$(10) for the Return key, but if you load a unix-style file with chr$(10) only, it will be not extended to Windows style \r\n.
If you press CTRL+M, single chr$(13) will be added (MAC style).
Have you tried it without adding chr 13 and 10?
buffer = buffer + ln
I tried it.
It works good.
I guess the idea is that, people use "Scintilla", because, recreating what it does, would be a lot of work.
So, I guess you linked "SciLexer.DLL" (489.5 K), into either, "AB91.exe", or "ABruntime90.exe"; probably, "AB91.exe".
(I don't know anything about this kind of stuff.)
But anyway; it looks good, and it runs good.
Dan.