Text this: Versatile photonic frequency synthetic dimensions using a single programmable on-chip device