| 2243 | }, |
| 2244 | // splits block comments, which are single tokens, into multiple lines of output |
| 2245 | blockline = function beautify_script_output_scope_blockline(x:string):void { |
| 2246 | const commentLines:string[] = x.split(lf), |
| 2247 | ii:number = commentLines.length; |
| 2248 | let hh:number = 0; |
| 2249 | if (levels[a] > 0) { |
| 2250 | do { |
| 2251 | commentLines[0] = tab + commentLines[0]; |
| 2252 | hh = hh + 1; |
| 2253 | } while (hh < levels[a]); |
| 2254 | } |
| 2255 | hh = 1; |
| 2256 | build.push(commentLines[0]); |
| 2257 | if (hh < ii) { |
| 2258 | do { |
| 2259 | linecount = linecount + 1; |
| 2260 | code.push("<li>"); |
| 2261 | code.push(String(linecount)); |
| 2262 | code.push("</li>"); |
| 2263 | build.push(`<em class="line">
</em></li><li class="c0">${commentLines[hh]}`); |
| 2264 | hh = hh + 1; |
| 2265 | } while (hh < ii); |
| 2266 | } |
| 2267 | }, |
| 2268 | //a function for calculating indentation after each new line |
| 2269 | nlscope = function beautify_script_output_scope_nlscope(x:number):void { |
| 2270 | let dd = 0; |