Related: fdo#36815 print the text highlight range as well

Change-Id: Ic332b1968b5dc72d26bd704cce70a496ec81e0b8