Getting code hyperlinks into FlexWiki

Reflector, when installed, adds a “code://” protocol handler, enabling hyperlinks to specified types in assemblies. This handler is similar to http:// or ftp://, but instead of taking you to a web site, it takes you to a type in an assembly!

For example, code://System.Web/System.Web.UI.WebControls.WebControl will launch Reflector and navigate to the WebControl type in the System.Web.UI.WebControls namespace.

Custom types can also be navigated to, although the associated assembly must be loaded first.

By default, FlexWiki does not handle all protocol handlers. To get it to handle the code:// protocol, a recompile is needed. I’m working with version Later versions are now available, but the code should be in a similar place. So, for version, changes are needed to the file: FlexWikiCore-

Change lines 1706 and 1707 – adding the ‘code|‘ segment next to the https?| text:

static string urlPattern = 
  @"((https?|code|ftp|gopher..." ) ;

static string urlPatternInBrackets = 
  @"((https?|code|ftp|gopher..." ) ;

I must say, it’s very handy for your team to be able to navigate directly to code from a Wiki entry.

← Back to all posts

Based on the theme by Bradley Taunt.
View the Github repo.