* Fix selection in codeviewer example * Limit line count on view layer * Fix last line ending * Fix missing last empty line in file * Refactor reading file * Add extra endPosition condition * Polish removing line endings