0

An example of my code with the comments to automatically generate the HTML file with:

    ///<summary>Starting at 2, up until the square root of 'x' (any factor larger than that would be too large), output all factors.</summary>
    ///<param name="factors">The list of factors.</param>
    ///<param name="x">The number to get factors of.</param>
    ///<returns>Returns a filled list of factors of 'x'.</returns>
    static List<int> CalcGCD(List<int> factors, int x)
    {

        for (int i = 2; i <= Math.Sqrt(x); i++)
        {
            while (x % i == 0)
            {
                Console.Write(i + " ");
                x = x / i;
                factors.Add(i);
            }
        }

        if (x > 2)
        {
            factors.Add(x);
            Console.WriteLine(x);
        }

        return factors;
    }

And this is what it outputs in the HTML file:

Starting at 2, up until the square root of 'x' (any factor larger than that would be too large), output all factors.

param name="factors">The list of factors.

param name="x">The number to get factors of.

returns>Returns a filled list of factors of 'x'.

summary>Get the common factors between a_factors and b_factors. Loops through both, and if the value is the same it removes it once from both and continues the process.

param name="common_factors">The list of common factors.

param name="a_factors">The list of factors for 'a'.

param name="b_factors">The list of factors for 'b'.

returns>Returns a list of common factors and outputs them.

Definition at line 18 of file Program.cs.

Why is the XML still there? How do I make it go away?

EpicBlargh
  • 1
  • 1
  • 5

1 Answers1

0

I had a similar issue using bold tags. My problem ended up being because the opening '<' was conjoined to the comment marker.

For me this worked:

\\! <b>bold text `</b>`

This did not:

\\!<b>bold text </b>
10SecTom
  • 2,484
  • 4
  • 22
  • 26