When you write a Glimpse plugin, how do you add a clickable link?
1 answer
You can write the original HTML output to the Glimpse plugin (aka Tab) by surrounding the line with exclamation marks ( !
).
Here's an example. You usually do something like this:
Trace.Write("<a href=\"http://www.google.com\">Link</a>");
Which outputs: <a href="http://www.google.com">Link</a>
in the trace tab.
To use "raw" HTML, add exclamation marks:
Trace.Write("!<a href=\"http://www.google.com\">Link</a>!");
The following will be displayed: Link on the trace tab.
+4
source to share