Using array indicies with [i] in code blocks.
by Eric Roberts · in Site Feedback · 04/22/2006 (9:23 am) · 0 replies
Hi,
If you create a code block and you use an array with an index of 'i' you get the rest of your post italicized.
e.g.
And as you can see - the rest of my post has been italicized because there's no terminating with the "[/i][/i]" which now makes it unitalicized ;).
A little annoying when posting code to have your code italicized.
Thanks,
- Eric
EDIT: The code inside the for loop should read myArray[i] = i + 2;
If you create a code block and you use an array with an index of 'i' you get the rest of your post italicized.
e.g.
for(int i = 0; i < 42; i++)
myArray[i] = i + 2;And as you can see - the rest of my post has been italicized because there's no terminating with the "[/i][/i]" which now makes it unitalicized ;).
A little annoying when posting code to have your code italicized.
Thanks,
- Eric
EDIT: The code inside the for loop should read myArray[i] = i + 2;
About the author