Italic or array index?

There seems to be a bit of a "conflict" with one of the code tags

Many programming languages use square brackets to provide a way
to access a single element of an array.

It is very common to use this within a "FOR" loop, and the most
common variable used in these loops is simply the letter "I".

So there is lots of code out there that looks like:


MyArray[ i ]



Without the extra spaces I added here, the board interprets this as
an "Italic" tag.

Maybe it would be better to require [ italic ] ... [ /italic ]
for italics, instead of just [ i ] ... [ /i ]



Comments

  • Hello

    I have also noticed this nice effect and I have not decided how to deal with it. Do you have a suggestions?

    /WEBMASTER


  • I modified the italics tag and take look at the Stylecode helppage for more details on how to use [italic]italic[/italic] in your posts from now on. I have changed the tag from [i] to [ italic ] instead.

    /WEBMASTER


  • Thank you!

    By the way, this is a great website, and getting better all the time!

    Keep up the good work!!!

  • Thanks!

    /WEBMASTER


    : Thank you!
    :
    : By the way, this is a great website, and getting better all the time!
    :
    : Keep up the good work!!!
    :


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories