Text this: Optical imaging of localized chemical events using programmable diamond quantum nanosensors