When you write a Glimpse plugin, how do you add a clickable link?

When writing a Glimpse plugin, how do you render a clickable link? The HTML seems to encode all the output. I want to create a link in my plugin to connect to another page on the site to view more details.

Also, is there a way to make the Core Trace plugin linkable?

+3


source to share


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







All Articles