File-Icons is a WordPress plugin. It adds CSS classes to links using regular expressions. This makes it quite easy to add icons to links.