the insert code feature was fixed to give proper monospacing ... that fix is now broken:
this code snippet should have nicely formatted leading spaces:
(a) String secretWord = "hello";
(b) String showAnswer = "*****";
(c) for (int i = 0; i < 100; i++)
{
(d) if (userGuess.Text == "h")
(e) {
(f) showAnswer = "h****";
(g) theWord.Text = showAnswer;
(h) if (userGuess.Text == "e")
{
(i) showAnswer = "he***";
(j) theWord.Text = showAnswer;
(k) if (userGuess.Text == "l")
{
(l) showAnswer = "hell*";
(m) theWord.Text = showAnswer;
(n) if (userGuess.Text == "o")
{
(o) showAnswer = "hello";
(p) theWord.Text = showAnswer;
} // if (userGuess.Text == "o")
} // if (userGuess.Text == "l")
} // if (userGuess.Text == "e")
} // if (userGuess.Text == "h")
(q) else
(u) theWord.Text = showAnswer;
(v) } // for (int i = 0; i < 100; i++)
this is the code from above with many of the spaces replaced by periods to show the code's shape:
(a)..String secretWord = "hello";
(b)..String showAnswer = "*****";
(c)..for (int i = 0; i < 100; i++)
.... {
(d)......if (userGuess.Text == "h")
(e)......{
(f)..........showAnswer = "h****";
(g)..........theWord.Text = showAnswer;
(h)..........if (userGuess.Text == "e")
............ {
(i)..............showAnswer = "he***";
(j)..............theWord.Text = showAnswer;
(k)..............if (userGuess.Text == "l")
................ {
(l)..................showAnswer = "hell*";
(m)..................theWord.Text = showAnswer;
(n)..................if (userGuess.Text == "o")
.................... {
(o)......................showAnswer = "hello";
(p)......................theWord.Text = showAnswer;
.................... } // if (userGuess.Text == "o")
................ } // if (userGuess.Text == "l")
............ } // if (userGuess.Text == "e")
........ } // if (userGuess.Text == "h")..
(q)......else
(u)..........theWord.Text = showAnswer;
(v)..} // for (int i = 0; i < 100; i++)
g.
P.S.: ie8 which is still is more or less tied as the major browser world wide (although not among developers).
win7
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
gerrylowry
All-Star
20577 Points
5721 Posts
code insertion bug has come back ...
Apr 06, 2012 05:05 PM|LINK
the insert code feature was fixed to give proper monospacing ... that fix is now broken:
this code snippet should have nicely formatted leading spaces: (a) String secretWord = "hello"; (b) String showAnswer = "*****"; (c) for (int i = 0; i < 100; i++) { (d) if (userGuess.Text == "h") (e) { (f) showAnswer = "h****"; (g) theWord.Text = showAnswer; (h) if (userGuess.Text == "e") { (i) showAnswer = "he***"; (j) theWord.Text = showAnswer; (k) if (userGuess.Text == "l") { (l) showAnswer = "hell*"; (m) theWord.Text = showAnswer; (n) if (userGuess.Text == "o") { (o) showAnswer = "hello"; (p) theWord.Text = showAnswer; } // if (userGuess.Text == "o") } // if (userGuess.Text == "l") } // if (userGuess.Text == "e") } // if (userGuess.Text == "h") (q) else (u) theWord.Text = showAnswer; (v) } // for (int i = 0; i < 100; i++)this is the code from above with many of the spaces replaced by periods to show the code's shape:
(a)..String secretWord = "hello"; (b)..String showAnswer = "*****"; (c)..for (int i = 0; i < 100; i++) .... { (d)......if (userGuess.Text == "h") (e)......{ (f)..........showAnswer = "h****"; (g)..........theWord.Text = showAnswer; (h)..........if (userGuess.Text == "e") ............ { (i)..............showAnswer = "he***"; (j)..............theWord.Text = showAnswer; (k)..............if (userGuess.Text == "l") ................ { (l)..................showAnswer = "hell*"; (m)..................theWord.Text = showAnswer; (n)..................if (userGuess.Text == "o") .................... { (o)......................showAnswer = "hello"; (p)......................theWord.Text = showAnswer; .................... } // if (userGuess.Text == "o") ................ } // if (userGuess.Text == "l") ............ } // if (userGuess.Text == "e") ........ } // if (userGuess.Text == "h").. (q)......else (u)..........theWord.Text = showAnswer; (v)..} // for (int i = 0; i < 100; i++) g. P.S.: ie8 which is still is more or less tied as the major browser world wide (although not among developers). win7gerrylowry
All-Star
20577 Points
5721 Posts
Re: code insertion bug has come back ...
Apr 06, 2012 05:07 PM|LINK
using Firefox 11.0, win7
(a) String secretWord = "hello"; (b) String showAnswer = "*****"; (c) for (int i = 0; i < 100; i++) { (d) if (userGuess.Text == "h") (e) { (f) showAnswer = "h****"; (g) theWord.Text = showAnswer; (h) if (userGuess.Text == "e") { (i) showAnswer = "he***"; (j) theWord.Text = showAnswer; (k) if (userGuess.Text == "l") { (l) showAnswer = "hell*"; (m) theWord.Text = showAnswer; (n) if (userGuess.Text == "o") { (o) showAnswer = "hello"; (p) theWord.Text = showAnswer; } // if (userGuess.Text == "o") } // if (userGuess.Text == "l") } // if (userGuess.Text == "e") } // if (userGuess.Text == "h") (q) else (u) theWord.Text = showAnswer; (v) } // for (int i = 0; i < 100; i++)with periods:
(a)..String secretWord = "hello"; (b)..String showAnswer = "*****"; (c)..for (int i = 0; i < 100; i++) .... { (d)......if (userGuess.Text == "h") (e)......{ (f)..........showAnswer = "h****"; (g)..........theWord.Text = showAnswer; (h)..........if (userGuess.Text == "e") ............ { (i)..............showAnswer = "he***"; (j)..............theWord.Text = showAnswer; (k)..............if (userGuess.Text == "l") ................ { (l)..................showAnswer = "hell*"; (m)..................theWord.Text = showAnswer; (n)..................if (userGuess.Text == "o") .................... { (o)......................showAnswer = "hello"; (p)......................theWord.Text = showAnswer; .................... } // if (userGuess.Text == "o") ................ } // if (userGuess.Text == "l") ............ } // if (userGuess.Text == "e") ........ } // if (userGuess.Text == "h").. (q)......else (u)..........theWord.Text = showAnswer; (v)..} // for (int i = 0; i < 100; i++)g.
tmorton
All-Star
56560 Points
9752 Posts
ASPInsiders
Moderator
Re: code insertion bug has come back ...
Apr 09, 2012 02:21 PM|LINK
Thanks for the report. We'll look into this and report back.
ASP.NET/IIS.NET Website Manager, Neudesic
gerrylowry
All-Star
20577 Points
5721 Posts
Re: code insertion bug has come back ...
Apr 09, 2012 10:24 PM|LINK
welcome
tmorton
All-Star
56560 Points
9752 Posts
ASPInsiders
Moderator
Re: code insertion bug has come back ...
May 03, 2012 04:22 PM|LINK
To follow up, this issue was resolved with last night's forums deployment.
ASP.NET/IIS.NET Website Manager, Neudesic