Style links depending on file format

Style your links depending on the depending on the file format. For example you can style your pdf file links in an other color.

Other relevant snippets: