(function () {
function lookAhead(x, ipos, n) {
var i, c, text;
text = "";
for (i = ipos; i < ipos + n; i++) {
if (i < x.length) {
c = x.charAt(i);
text += c;
}
}
return text.toUpperCase();
}
var x, y, z, i, j, c, ch, text, status, ele;
if (!document.getElementsByClassName) {return;}
y = document.getElementsByClassName("htmlHigh");
for (j = 0; j < y.length; j++) {
z = y[j];
ele = "";
text = "";
script = false;
status = "TAGW";
x = z.innerHTML;
for (i = 0; i < x.length; i++) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (status == "ANG") {
if (c == "}") {
if (lookAhead(x, i, 2) == "}}") {
text += "}}" + "";
i++;
status = "TAGW";
continue;
}
}
}
if (status == "TAGW") {
if (c == "&") {
if (lookAhead(x, i, 7) == "<!--") {
text += "" + c;
status = "COM";
continue;
}
if (lookAhead(x, i, 4) == "<") {
if (script == true) {
if (lookAhead(x, i, 11) != "</SCRIPT") {
text += c;
continue;
}
if (lookAhead(x, i, 11) == "</SCRIPT") {
script = false;
}
}
text += "" + c;
status = "LT";
continue;
}
}
if (c == "{") {
if (lookAhead(x, i, 2) == "{{") {
text += "" + c;
status = "ANG";
continue;
}
}
}
if (status == "ELEW") {
if (ch != 32 && ch != 10 && ch != 13 && ch != 9) {
text += "" + c;
ele = c;
status = "ELE";
if (lookAhead(x, i, 9) == "SCRIPT>") {script = true;}
continue;
}
}
if (status == "ELE") {
if (ch == 32 || ch == 10 || ch == 13 || ch == 9) {
text += "";
status = "ATTW";
}
if (c == "&") {
if (lookAhead(x, i, 4) == ">") {
text += "" + c;
status = "GT";
continue;
}
}
ele += c;
}
if (status == "ATTW") {
if (c == "&")
if (lookAhead(x, i, 4) == ">") {
text += "" + c;
status = "GT";
continue;
}
if (ch != 32 && ch != 10 && ch != 13 && ch != 9) {
text += "" + c;
status = "ATT";
continue;
}
}
if (status == "ATT") {
if (c == "=") {
text += c + "";
status = "VALW";
continue;
}
if (c == "&") {
if (lookAhead(x, i, 4) == ">") {
text += "" + c;
status = "GT";
continue;
}
}
}
if (status == "COM") {
if (c == "-") {
if (lookAhead(x, i, 6) == "-->") {
text += c;
status = "COMW";
continue;
}
}
}
if (status == "COMW") {
if (c == "&") {
if (lookAhead(x, i, 4) == ">") {
text += c;
status = "GT";
continue;
}
}
}
if (status == "VALS") {
if (c == "'") {
text += c + "";
status = "ATTW";
continue;
}
}
if (status == "VALD") {
if (c == '"') {
text += c + "";
status = "ATTW";
continue;
}
}
if (status == "VALW") {
if (c == "'") {
status = "VALS";
text += c;
continue;
}
if (c == '"') {
status = "VALD";
text += c;
continue;
}
}
if (status == "LT") {
if (c == ";") {
text += c + "";
status = "ELEW";
continue;
}
}
if (status == "GT") {
if (c == ";") {
text += c + "";
status = "TAGW";
continue;
}
}
text += c;
}
z.innerHTML = text;
}})();
(function () {
function lookAhead(x, ipos, n) {
var i, c, text;
text = "";
for (i = ipos; i < ipos + n; i++) {
if (i < x.length) {
c = x.charAt(i);
text += c;
}
}
return text.toUpperCase();
}
var x, y, z, i, j, c, ch, text, status, temp, span;
if (!document.getElementsByClassName) {return;}
y = document.getElementsByClassName("cssHigh");
for (j = 0; j < y.length; j++) {
z = y[j];
text = "";
temp = "";
span = false;
status = "SELW";
x = z.innerHTML;
for (i = 0; i < x.length; i++) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (c == "<") {
text += c;
temp = status;
status = "TAG";
continue;
}
if (c == "/") {
if (lookAhead(x, i, 2) == "/*") {
text += "";
span = true;
temp = status;
status = "COM";
}
text += c;
continue;
}
if (status == "COM" ) {
if (c == "*") {
if (lookAhead(x, i, 2) == "*/") {
if (span) {
text += c;
i++;
text += x.charAt(i);
text += "";
span = false;
status = temp;
}
} else {
text += c;
}
continue;
}
}
if (status == "MED") {
if (c == "{") {
text += "" + c;
span = false;
status = "SELW";
continue;
}
}
if (status == "SELW") {
if (c == "@") {
if (lookAhead(x,i,5) == "@FONT") {
text += "" + c;
span = true;
status = "SEL";
continue;
} else {
text += "" + c;
span = true;
status = "MED";
continue;
}
}
if (c == "}") {
text += c;
continue;
}
if (ch != 32 && ch != 10 && ch != 13 && ch != 9) {
text += "" + c;
span = true;
status = "SEL";
continue;
}
}
if (status == "TAG") {
text += c;
if (c == ">") {
status = temp;
}
continue;
}
if (c == "&") {
text += c;
if (lookAhead(x, i, 6) == "&NBSP;") {
temp = status;
status = "NBSP";
}
continue;
}
if (status == "NBSP") {
text += c;
if (c == ";") {
status = temp;
}
continue;
}
if (status == "SEL") {
if (c == "{") {
if (span) {
text += "";
span = false;
}
text += c;
status = "PROW";
continue;
}
}
if (status == "PROW") {
if (c == "}") {
if (span) {
text += "";
span = false;
}
text += c;
status = "SELW";
continue;
}
if (ch != 32 && ch != 10 && ch != 13 && ch != 9) {
text += "" + c;
span = true;
status = "VALW";
continue;
}
}
if (status == "VALW") {
if (c == ":") {
text += c;
if (span) {
text += "";
span = false;
}
text += "";
span = true;
status = "VAL";
continue;
}
}
if (status == "VAL") {
if (c == "}") {
if (span) {
text += "";
span = false;
}
text += c;
status = "SELW";
continue;
}
if (c == ";") {
text += c;
if (span) {
text += "";
span = false;
}
status = "PROW";
continue;
}
}
text += c;
}
z.innerHTML = text;
}})();
(function () {
function lookAhead(x, ipos, n) {
var i, c, text;
text = "";
for (i = ipos; i < ipos + n; i++) {
if (i < x.length) {
c = x.charAt(i);
text += c;
}
}
return text.toUpperCase();
}
var x, y, z, i, j, c, ch, text, status;
if (!document.getElementsByClassName) {return;}
y = document.getElementsByClassName("jsonHigh");
for (j = 0; j < y.length; j++) {
z = y[j];
text = "";
status = "";
x = z.innerHTML;
for (i = 0; i < x.length; i++) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (status == "") {
if (c == '"') {
status = "OBJNAME";
text += "" + c;
continue;
}
if (c == "{") {
status = "OBJECT";
text += c;
continue;
}
text += c;
continue;
}
if (status == "OBJECT") {
if (c == '"') {
status = "OBJNAME";
text += "" + c;
continue;
}
text += c;
continue;
}
if (status == "OBJNAME") {
if (c == '"') {
status = "WAITCOLON";
text += c + ""
continue;
}
text += c;
continue;
}
if (status == "WAITCOLON") {
if (c == ":") {
status = "COLON";
text += c;
continue;
}
text += c;
continue;
}
if (status == "COLON") {
if (c == '"') {
status = "VALUE";
text += "" + c;
continue;
}
if (ch > 47 && ch < 58) {
status = "NUMBER";
text += "" + c;
continue;
}
if (c == "{") {
status = "OBJECT";
text += c;
continue;
}
if (c == "[") {
status = "ARRAY";
text += c;
continue;
}
text += c;
continue;
}
if (status == "ARRAY") {
if (c == ']') {
status = "";
text += c;
continue;
}
if (c == '{') {
status = "OBJECT";
text += c;
continue;
}
text += c;
continue;
}
if (status == "VALUE") {
if (c == '"') {
status = "OBJECT";
text += c + "";
continue;
}
text += c;
continue;
}
if (status == "NUMBER") {
if (ch < 48 || ch > 57) {
status = "";
text += "" + c;
continue;
}
text += c;
continue;
}
text += c;
}
z.innerHTML = text;
}})();
(function () {
function lookAhead(x, ipos, n) {
var i, c, ch, text;
text = "";
for (i = ipos; i < ipos + n; i++) {
if (i < x.length) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (ch == 32 || ch == 10 || ch == 13 || ch == 9 ) {
text += " ";
} else {
text += c;
}
}
}
return text;
}
function lookWord(x, ipos) {
var i, c, ch, text;
text = "";
for (i = ipos; i < x.length; i++) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (ch == 10 || ch == 13 || ch == 9 || ch == 32 || ch == 38 || ch == 40 || ch == 41 || ch == 42 || ch == 43 ||
ch == 44 || ch == 58 || ch == 47 || ch == 58 || ch == 59 || ch == 60 || ch == 61 || ch == 91 || ch == 93) {
return text;
} else {
text += c;
}
}
return text;
}
var x, y, z, i, j, k, c, ch, text, status, ele, comp, pos;
jsArr = ["var","boolean","break","case","catch","continue","debugger","default","do","else","finally","for",
"function","if","in","new","return","switch","throw","try","typeof","while","with"];
if (!document.getElementsByClassName) {return;}
y = document.getElementsByClassName("jsHigh");
for (j = 0; j < y.length; j++) {
z = y[j];
ele = "";
text = "";
status = "";
x = z.innerHTML;
for (i = 0; i < x.length; i++) {
c = x.charAt(i);
ch = c.charCodeAt(0);
if (ch == 32 || ch == 10 || ch == 13 || ch == 9 ) {
text += c;
continue;
}
if (lookAhead(x, i, 2) == "//") {
text += "";
pos = x.substr(i).indexOf("
");
if (pos == -1) {
text += x.substr(i);
i = x.length;
} else {
text += x.substr(i,pos + 4);
i += pos + 3;
}
text += ""
continue;
}
if (lookAhead(x, i, 2) == "/*") {
text += "";
pos = x.substr(i).indexOf("*/");
if (pos == -1) {
text += x.substr(i);
i = x.length;
} else {
text += x.substr(i,pos + 2);
i += pos + 1;
}
text += ""
continue;
}
if (c == "&") {
pos = x.substr(i).indexOf(";");
if (pos == -1) {
text += x.substr(i);
i = x.length;
} else {
text += x.substr(i,pos + 1);
i += pos;
}
continue;
}
if (c == "'" || c == '"') {
text += "";
pos = x.substr(i+1).indexOf(c);
if (pos == -1) {
text += x.substr(i);
i = x.length;
} else {
text += x.substr(i, pos + 2);
i += pos + 1;
}
text += ""
continue;
}
if (lookAhead(x, i, 4) == "
") {
i += 3;
text += "
";
continue
}
ele = lookWord(x, i);
if (ele) {
if (ele =="true" || ele == "false" || ele == "null" || isNaN(ele) == false) {
text += "" + x.substr(i,ele.length) + "";
i += ele.length - 1;
status = "";
continue;
}
for (k = 0; k < jsArr.length; k++) {
if (ele == jsArr[k]) {
text += "" + x.substr(i,ele.length) + "";
i += ele.length - 1;
status = "SPW";
break;
}
}
if (status == "SPW") {
status = "";
continue;
} else {
text += x.substr(i, ele.length);
i += ele.length - 1;
continue;
}
}
text += c;
}
z.innerHTML = text;
}})();