Jump to content
weabow

Create hyperlink inside code

Recommended Posts

I would like to put a hyperlink somewhere in my code, to be able to jump clicking on it, in another unit, at a specific point (anchor).

 

Is it possible ?

Share this post


Link to post

Yes : typing some code in a unit, I would like to set a shortcut (link) to another piece of code somewhere else in the project.

Share this post


Link to post

I remember it did work by using DocumentationInsight XML comments, you had something like

<remarks>
  See the <see cref="App.Fizz.Buzz.pas|TFizzBuzz.init">init() method of TFizzBuzz</see> for more info
</remarks>

where you could then click on init() method of TFizzBuzz and the IDE would take you directly there.

 

If I recall correctly, that was removed in either XE5 or XE7 and Documentation Insight has to be purchased separately.

 

These days, the IDE still offers you to click on it, but clicking will do nothing except freeze the IDE for a few seconds 😪

 

A possible workaround is to specify the absolute path (including Unit & class name) so to make the references work.

Of course, they stop working if you rename either unit or class:

 

Edited by Der schöne Günther

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×