JS代码格式化和语法着色V2

2019-06-03 18:16:39王旭

                outputLn(str);
                str=" ";
                lastState="rn";
                if(i-glbP>200){
                    glbP=i+1;
                    glbTimer=setTimeout(core_analysis);
                    return;
                }
            break;
            case """:
                intNextQuote=i;
                while(intNextQuote!=-1&&intNextQuote<glbStr.length){
                    intNextQuote=glbStr.indexOf(""",intNextQuote+1);
                    if(intNextQuote==-1||glbStr.charAt(intNextQuote-1)!="")break;
                    intCount=0; intTemp=intNextQuote;
                    while(glbStr.charAt(--intTemp)=="")intCount++;
                    if(intCount%2==0)break;
                }
                if(intNextQuote==-1)break;
                str+="<span class="quote">"+htmlEncode(glbStr.substring(i+1,intNextQuote))+"</span>"";
                i=intNextQuote;
                lastState="";
            break;
            case "'":