Code to format texts into Textus format