If you mean, how to get the content: This is done by codetools in the IDE. It is not part of SynEdit.
If you got the text, then (afaik) you can set it to SynEdit.Hint (if memory serves...).
If you want a more fancy hint (like the IDE), then you need to open and paint your own hint. In the IDE "ide/sourceeditor.pp" use some html panel for that.
You can walk the pas highlighter to find procedures, but still need to parse them afterwards. But unlike codetool, that fails when there are certain $IFDEF.
Codetools have a test dir. Maybe that has some hints how to use them.... No idea, not looked at it myself.