The difference array is based on the outputstream array. < = > ~ constant, not modified line (green) < * > ~ modified, added/edited line (red) Fun fact: The text engine used in this project is part of a pre-alpha version of a larger project that I will release soon. Stay tuned.