Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

You know how there's that [ a p i ] tag on the other forum that takes you to the relevant API declaration in AllApi.net...what are the chances of an [ m s d n ] tag here that takes you to the class definition in MSDN.

 

e.g.

 

You need to look at [msdn]IEnumerator[/msdn]

 

becomes

 

You need to look at IEnumerator

Printer Monitor for .NET? - see Merrion Computing Ltd for details
  • *Gurus*
Posted

There is an [m s h e l p] tag which does something similar given the complete url of a local help page from the vs.net or framework sdk documentation.

 

Derek kindly made it for us, so perhaps he could clarify exactly how it works.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

  • *Gurus*
Posted

Wow. I did something "kindly" for once. What a change...

 

You can use the [mshelp] tag like such:

 

[mshelp]ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemExceptionClassTopic.htm[mshelp]

[mshelp=ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemExceptionClassTopic.htm]Exception class[/mshelp]

 

... which would generate the following:

 

[mshelp]ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemExceptionClassTopic.htm[/mshelp]

[mshelp=ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemExceptionClassTopic.htm]Exception class[/mshelp]

 

The tags take a http://ms-help:// URI as input, which is easily retrieved from a local installation of the .NET Framework SDK or MSDN.

 

As for what you're asking for? That would be rather tricky to accomplish, since mapping one word to its associated MSDN topic would be very tricky.

 

With that said we could generate a working redirect script over time that could be added to. I can start one on EliteVB if you wish. Either that or we could work on a more user-friendly version of MSDN, hosted and updated by us. This of course would require community support, since we're all busy people.

  • *Gurus*
Posted

Alright. I have an ASP.NET page running on our server which translates a fully-qualified class name or a namespace into its associated reference document on MSDN. This utility is limited, since it will not except a class that isn't fully qualified. For example, the utility will accept "System.Environment" but not "Environment". I don't see this as much of a problem, although I will work on a solution to allow for short class names.

 

If an administrator could create a vB Tag for this utility it would be great. The utility is located at the following URI:

http://www.elitevb.com/tools/msdn7itr/

 

It can be used like so:

http://www.elitevb.com/tools/msdn7itr/?item=System.IO

http://www.elitevb.com/tools/msdn7itr/?item=System.Environment

 

As Merrion suggested, I think [msdn] would be an appropriate name for the tag.

  • Leaders
Posted

Ask and you shall receive.

 

I've done both methods:

 

[msdn]System.IO[/msdn] = [msdn]System.IO[/msdn]

[msdn=System.IO]Find info on System.IO here[/msdn] = [msdn=System.IO]Find info on System.IO here[/msdn]

Those who live by the sword get shot by those who don't!
  • Leaders
Posted
Its probably better for sites aimed at novice users who may find themselves getting lost. However, for programmers, who by definition should be relatively advanced, it is just annoying to have the choice taken away.
Those who live by the sword get shot by those who don't!
  • *Gurus*
Posted
VBulletin opens internal links in new windows, which there is no reason for it to be doing. This is unacceptable, and you won't find too many people to argue against that. Of course vBulletin also opens external links in new windows, which is slightly justified, if not still a huge annoyance. I wouldn't bring it up if only external links opened in new browsers, but personally I find the lack of the control that a user should have... well, just that-- lacking.
  • Moderators
Posted
You're right it is better to be given a choice, but I find myself (on this site) always opening links in a new window. Especially when reading threads, I'll open 5, 10 at one time.
Visit...Bassic Software
  • *Gurus*
Posted (edited)

I'm guessing you included parenthesis after the namespace and class. This is not handled as of yet. For the time being enter parenthesis after the [msdn] tag.

[edit]The utility doesn't support methods yet anyway. Only namespaces and classes.[/edit]

Edited by Derek Stone
  • *Gurus*
Posted (edited)

[msdn=System.Diagnostics.Process]Process Class[/msdn]

[msdn]System.Diagnostics.Process[/msdn]

[edit]The above do not work, as you have stated. I'll look for the problem as soon as possible. Thanks for letting me know.[/edit]

[edit]The problem is now fixed. Thanks again.[/edit]

Edited by Derek Stone

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...