代码高亮测试 December 14, 2014 这是一段javascript代码 function show(){ alert(1111); setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300);setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300);setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300); } function show(){ alert(1111); setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300);setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300);setInterval(function(){var a = 0; var b = 1; a = [b, b = a][0]; console.log(a); console.log(b);}, 300); } 这是一段css代码 body{ padding: 10px 20px; margin: 0 auto; } .box{ background-color: #eee; color: #666; font-family: "微软雅黑"; } 这是一段html代码 <div> <ul> <li>1111</li> <li>1111</li> <li>1111</li> <li>1111</li> </ul> </div> 这是一段object-c代码 #import "FOXEnvironment.h" const NSUInteger FOXDefaultNumberOfTests = 500; const NSUInteger FOXDefaultMaximumSize = 200; static NSUInteger FOXGetUIntegerFromEnv(const char *envname, NSUInteger defaultValue) { const char *envval = getenv(envname); unsigned long number = defaultValue; if (envval != NULL) { sscanf(envval, "%lu", &number); } return (NSUInteger)number; } FOX_EXPORT NSUInteger FOXGetNumberOfTests(void) { return FOXGetUIntegerFromEnv("FOX_NUM_TESTS", FOXDefaultNumberOfTests); } FOX_EXPORT NSUInteger FOXGetMaximumSize(void) { return FOXGetUIntegerFromEnv("FOX_MAX_SIZE", FOXDefaultMaximumSize); } FOX_EXPORT NSUInteger FOXGetSeed(void) { static NSUInteger ___seed; if (!___seed) { ___seed = FOXGetUIntegerFromEnv("FOX_SEED", (NSUInteger)time(NULL)); } return ___seed; } 好了,这个结束了