Using MSDN documents, is it possible to hide or filter inherited elements?

One of the coolest features I've seen in viewers is the ability to hide inherited elements so that you can focus only on what this particular subclass offers. A good example of this is here ...

http://james.newtonking.com/projects/json/help/html/T_Newtonsoft_Json_JsonConvert.htm

Actually, on this page there are various options for displaying help, and not just hiding inherited members.

Now, the online MSDN has the habit of just throwing everything under the sun at you, trying to figure out what the subclass is adding, not to mention getting the required tons of scans and even more scrolling to it.

However, is there a way, local or online, to enable these or those features? Has anyone done an external or third-party help viewer that does this or something similar?

(Note. I'm not sure if this is because it is not programming, but it is a kind of IDE-related thing, so I decided that I would play and put it here.)

Mark

+4
source share
2 answers

Hiding inherited items is one thing that I have missed in the lightweight style MSDN docs.

Fortunately, it can be easily solved using the litte bit in the javascript browser. For more information, see How to Hide Inherited Items on MSDN Pages .

You should be able to extend the principle used to hide any necessary information (for example, you could use icons to distinguish between static elements, methods, properties, etc.).

+2
source

Updated answer for 2016:

Bookmark it in a modern browser with the following javascript snippet as the url:

javascript:var trs=document.getElementsByTagName('tr');var l=trs.length;for (var i=0; i<l; i++) { var tr=trs[i]; if (tr.innerHTML.indexOf('(Inherited from ')>-1) tr.style.display=tr.style.display=='none'?'':'none'; }; void(0); 

Clicking this bookmark on the MSDN class documentation page will turn all inherited items on and off.

Javascript just looks at all the rows of the table ('tr') on the page, I find any containing the row '(Inherited from', and set their display style (visibility) to “none.” The row seems to span every instance of the inherited element.

0
source

All Articles