Pedantry

Webster's Dictionary of the English Language

·noun The act, character, or manners of a pedant; vain ostentation of learning.