Ah, you are right. I was thinking about pyrrole. Thanks.
Heh, no problem man. But my question remains unresolved.
I should make myself clearer at the same time. The book is claiming that imidazole is more basic than pyridine, and you can deduce so by looking at the protonated ions, i.e. the imidazolium ion and the pyridinium ion respectively.
In the imidazolium ion, you have 2 nitrogen atoms to spread the positive charge over, but the pyridinium ion only has one nitrogen on which to stabilize the positive charge. So, the imidazolium ion is more stable, making imidazole more basic.
My question is, doesn't spreading a positive charge onto an electronegative atom like N actually makes imidazolium ion more unstable?
P.S. Are there only 2 resonance structures for an imidazolium ion?
Look at the ring in B. So the C=C bond stays at the same place in both resonance structures?