Works fine for me.
Just one point, for Sub OrientationLock_Click the - sign is missing.
There is a Tab sign between Sub and Orientation_Click.
Removing the Tab and replacing it by a space works as expected.
Seems like the whole missing text is appended to the last line. You can horizontally scroll the view to see it (I'm guessing as I'm still unable to reproduce it).
@rbsoft can you please try to play with it and see if you are able to add more lines before this line, or delete this line and see if something changes?
I am using Windows XP Pro SP3, normal DPI settings. Regional settings are German.
I do not know what the B4A editor is based on (maybe Scintilla or so). Could it be that another editor based on the same runtime causes the problem? (Just an idea...)
It's kind of weird. I created a new project, added a code module, and pasted some subs from other projects into it. Here the problem starts at line 1281 (see scrnshot). The file size is sufficient smaller, 37 compare to 57 kb.
This is very odd. In your screenshot in post #10 there is a box character where the problem appears to start indicating an unknown character. However looking with a hex editor I see nothing wrong at that point in the file and it behaves properly for me in the IDE.
The line number difference between the IDE and another text editor is expected as there are additional information lines at the beginning which the IDE doesn't count as program lines.
I get the same problem on my 'old' computer with Windows XP SP3.
Also with the SQLiteDB and the GPSExample programs.
It seems that with files bigger than ~33kbytes the problem appears.
I copied the code until the last corect line from the big files into a new module.
In two examples the file size of these modules is about 33kbytes.