added fixes for better displaying code inside text editor