");
for (var i = 0; i
");
line_num++;
} else if (codeArr[i] == "\"" && codeArr[i-1] != "\\") {
if (slash_star_comment_opened) {
htmlTxt += (codeArr[i]);
continue;
}
if (quote_opened) {
htmlTxt += (codeArr[i]+"");
quote_opened = false;
} else {
htmlTxt += (""+codeArr[i]);
quote_opened = true;
}
} else if (codeArr[i] == "/") {
if (codeArr[i+1] == "*") {
if (slash_slash_comment_opened || slash_star_comment_opened) {
htmlTxt += (codeArr[i]);
continue;
}
slash_star_comment_opened = true;
htmlTxt += (""+codeArr[i]+codeArr[i+1]);
i++;
} else if (codeArr[i+1] == "/") {
if (slash_star_comment_opened || slash_slash_comment_opened) {
htmlTxt += (codeArr[i]);
continue;
}
slash_slash_comment_opened = true;
htmlTxt += (""+codeArr[i]+codeArr[i+1]);
i++;
} else {
htmlTxt += (codeArr[i]);
}
} else if (codeArr[i] == "*") {
if (codeArr[i+1] == "/") {
if (slash_slash_comment_opened) {
htmlTxt += (codeArr[i]);
continue;
}
if (slash_star_comment_opened) {
slash_star_comment_opened = false;
htmlTxt += (codeArr[i]+codeArr[i+1]+"");
i++;
}
} else {
htmlTxt += (codeArr[i]);
}
} else if (codeArr[i] == "\t") {
//keyword
htmlTxt += (" ");
} else if (codeArr[i] == "<") {
//keyword
htmlTxt += ("<");
} else {
htmlTxt += (codeArr[i]);
}
}
htmlTxt += ("