Eden Ridgway's Blog

.Net and Web Development Information

  Home :: Contact :: Syndication  :: Login
  105 Posts :: 1 Stories :: 78 Comments :: 3 Trackbacks

Search

Article Categories

Archives

Post Categories

Development

General

I came across the Natural Docs (http://www.naturaldocs.org/) project which takes a different approach to comment parsing. As .Net developers we have become accustomed to XML style comments such as <remark>Test method</remark>. Of course these kinds of comments are categorised nicely and easy to parse. Unfortunately I feel that the extra tags make the comments less readable. Of course the whole purpose of comments is that they should be read by other developers.

The Natural Docs project allows you to leave comments like this:

/*
Function: Multiply
Multiplies two integers and returns the result.
*/
public int Multiply (int x, int y) {
return x * y;
}

Natural Docs will then parse the code and produce an HTML file that looks like this:

posted on Thursday, July 07, 2005 3:50 AM
Comments have been closed on this topic.