Did you know? XPCE supports a sophisticated styled text engineSearch Documentation:
SWI-Prolog owl logoPredicate write_term/2