.Net在線編輯工具.NET Fiddle
介紹
推薦工具:.NET Fiddle
推薦理由:在線調(diào)試,編譯,運(yùn)行.net代碼,同時(shí)支持C#,VB.NET,F(xiàn)#
推薦說(shuō)明::對(duì)于.NET開(kāi)發(fā)者來(lái)說(shuō)是福音,因?yàn)槲覀兛梢圆挥迷贀?dān)心環(huán)境與龐大的IDE的問(wèn)題,不管在任何時(shí)間,任何環(huán)境,如果有了什么點(diǎn)子,打開(kāi)dotnetfiddle.net,輸入你的代碼;總的來(lái)說(shuō),它能夠讓你在瀏覽器窗體重復(fù)折騰代碼片段而無(wú)需運(yùn)行Visual Studio。當(dāng)你僅僅是調(diào)試少量代碼時(shí)這實(shí)在是太方便了。.NET Fiddle的一個(gè)最大賣(mài)點(diǎn)就是它是免費(fèi)的。
網(wǎng)站截圖:

小試牛刀
using System;public class Program{public static void Main(){string img = "ijk";
Console.WriteLine(ReplacehtmlBody(img));Console.WriteLine(ReplacehtmlBody2(img));}public static string ReplaceRegex(string content, string regParen, string replyContent){string strOutput = System.Text.RegularExpressions.Regex.Replace(content, regParen, replyContent);return strOutput;}public static string ReplacehtmlBody(string htmlBody){if (string.IsNullOrWhiteSpace(htmlBody)){return htmlBody;}return ReplaceRegex(htmlBody, "(i?)(\\]+\\>)", "$2max-width: 80% !important;$3");}public static string ReplacehtmlBody2(string htmlBody){if (string.IsNullOrWhiteSpace(htmlBody)){return htmlBody;}var reg = new System.Text.RegularExpressions.Regex("(\\]+\\>)", System.Text.RegularExpressions.RegexOptions.IgnoreCase);return reg.Replace(htmlBody, "$1max-width: 80% !important;$2");}}
<img style='max-width: 80% !important;aaa' />j<Img style='bbb' />k<img style='max-width: 80% !important;ccc' >img>i<img style='max-width: 80% !important;aaa' />j<Img style='max-width: 80% !important;bbb' />k<img style='max-width: 80% !important;ccc' >img>
網(wǎng)站地址
地址:
https://dotnetfiddle.net/
評(píng)論
圖片
表情
