A near-infrared fluorescent probe based on a novel rectilinearly π-extended rhodamine derivative and its applications.