Add a getLineOfOffset method in the SyntaxDocument (as it exists in the JEditor class) to get the line of an offset in the document
Call only one method when calling replaceText in the JEditor
Add a DefaultDiffEngine to get a not graphical diff between two texts
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Add a getLineOfOffset method in the SyntaxDocument (as it exists in the JEditor class) to get the line of an offset in the document
Call only one method when calling replaceText in the JEditor
Add a DefaultDiffEngine to get a not graphical diff between two texts