I think the basic text widget of all the toolkit support text attributes (color, styles,…) and as the solutions for syntax highlighting and other stuff existed already, it was not a big stretch to add them instead of having two editors (the first user was the programmer)