Make sure to initialize syntax dropdown before setting syntax mode