add syntax highlight and code preview to realtime console