The ICODE tags are used to highlight something. They are generally used when helping someone out and you are showing them what they need to change. If you use the ICODE tag to highlight it then it will make it easier for the person receiving help to understand where in the code you are talking about.
Here is an example:
Example Post:
Hello I am having trouble with this javascript code. It is giving me an error and not working correctly. Here is my code:
Code:
function whatever()
{
// Do some stuff then call function blah()
blah();
}
function blah();
{
document.getElementById("ICODE").style.backgroundColor = "yellow";
}
Now a reply might look something like this:
Oh well looking at your code I see you have inserted a semi-colon where there needs not be one. To fix your problem just remove the semi-colon at the end of the highlighted line:
Code:
function whatever()
{
// Do some stuff then call function blah()
blah();
}
function blah();
{
document.getElementById("ICODE").style.backgroundColor = "yellow";
}
As you can see it just makes locating errors, variables, functions, etc in the code easier to find when discussing with another person.
Hope this helped.
Bookmarks