weabow 6 Posted July 9, 2021 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
Lars Fosdal 1792 Posted July 9, 2021 Very thin description. Are we talking design time in source code? Share this post Link to post
weabow 6 Posted July 9, 2021 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
Der schöne Günther 316 Posted July 9, 2021 (edited) 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: 2021-07-09-08-49-29.mp4 Edited July 9, 2021 by Der schöne Günther Share this post Link to post