Is there a tool available which would convert the sources given into HTML with links?

By links I mean that every type, class, and method used would point via href to its definition.

I haven't managed to make highlight, syntax-highlight, nor pygments work this way. Even if it supports input from ctags, it only adds the title attribute, but not links.