1

I was elated to find out that I could use XML commenting in my javascript (i.e.):

/// <summary>Determines the area of a circle based on a radius parameter.</summary>
/// <param name="Name" type="String">Give this dude a NAME!</param>
/// <returns type="Nothing">The area.</returns>

That was until I realized that after I did this, my "public" methods were no longer listed in intellisense... :-(

 this.greet = function (greeting) {
        alert(greeting + " " + this);
    } 

The above would show up when I would instantiate var thePlayer = new player('bob'); ... thePlayer. <-- greet would be listed, UNTIL I threw in the above XML comments.

Does anyone have any experience with this and a work around? Being able to comment javascript into intellisense would be very nice!

3
  • Did you try commenting with *'s or just using two dashes instead of three/ Commented Apr 30, 2012 at 2:08
  • I added the asterisks HERE so the summary, param and returns tags would show up. These are the three that MS uses for the commenting. Also, 3 slashes so that VS would see that I am attempting XML commenting. Commented Apr 30, 2012 at 2:17
  • I'm assuming you only added the asterisks because you hadn't indented the comments (thus getting syntax highlighting) -- my edit should fix this Commented May 16, 2013 at 19:29

1 Answer 1

1

I think if you remove the (type="Nothing") from the returns it should show the members on a player.

Sign up to request clarification or add additional context in comments.

1 Comment

That's it! Thanks a ton! This is NOW cool again! Guess you can BREAK stuff even using XML commenting. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.