DOC use hyperlink colour when in tt

This is a fix for #3002. I haven't checked how nicely this works in all context where it applies, but I agree with @thomasahle that API reference links are easy to miss at the moment.