improved selection wrap in pre tags