Term: clever trousers
Example: oh, you're such a clever trousers with your puns, aren't you, neil?
Definition: someone who makes snide remarks, or otherwise is acting in a fashion that makes others believe they are being smug