added support for large sql scripts and line number in edit window