On 6 Jun 2014, at 21:45, coccoinomane wrote:
I would like to have information on the current scope to be printed, for example, as a tooltip. Again, by "scope" here I mean in the programming sense […]
You can write a custom command that takes “document” as input and shows its output in a tool tip.
This command can use the TM_LINE_NUMBER environment variable to figure out what line the caret is at, and then what “scope” you’re in.