使用方法:在Visual Studio的Tools菜单下选择导入导出设置即可。
使用效果如下:
C#:
code
public static string Undent(string s){ int num; string[] strArray = s.Split(new char[] { '\n' }); int startIndex = 0x7fffffff; foreach (string str in strArray) { num = 0; while ((num < str.Length) && (num < startIndex)) { if (!char.IsWhiteSpace(str[num])) { startIndex = num; break; } num++; } } new StringBuilder(); for (num = 0; num < strArray.Length; num++) { if (strArray[num].Length > startIndex) { strArray[num] = strArray[num].Substring(startIndex); } } return string.Join("\n", strArray);}
Html:
code
XML:
code
JavaScript:
code
$(function () { $(".catListComment").append($("
- ")); $(".divRecentCommentAticle").each(function () { var tmp = $(this).next().html(); $(this).next().remove(); $(this).appendTo(".catListComment ul").replaceWith("
- " + $(this).html() + "" + tmp + " "); }); $("#mainContent, #main,.forFlow").css("min-height", $("#sideBar").height() + 300); $(".code div").click(function () { $(this).next().slideToggle('normal'); }); $(".commentform").contents().not("[nodeType=1]").remove(); $("#comment_form>p:contains('Ctrl+Enter')").nextAll().not($(".relative_search")).remove(); $("#ctl05_divCommentPannel").siblings().not($(".relative_search")).remove(); $("#ctl05_divLoginPannel").nextAll().not($(".relative_search")).remove(); $("#navList li").hover(function () { $(this).animate({ top: -20 }, 500); }, function () { $(this).animate({ top: 0 }, 500); });});
CSS:
感兴趣的的朋友可以从这里下载: