Rich-text editors (RTEs) and code editors