Pedantic describes someone who is excessively concerned with minor details or formal rules, often in a way that shows off their learning. It refers to an annoying emphasis on academic precision at the expense of broader understanding or practical application.