简体   繁体   中英

How can i format aspx-markup as html to show it on webpage

i've been using C. Coller's excellent CopyAsHtml-Visual Studio addin for copying C# code as html to a webpage.

Now, i started to wonder if there exists a similar tool for converting the aspx-markup to valid html to show on page? Functionality that i'm looking for can be seen on G. Houston's blog .

F.ex. if i feed this

<asp:Button id="btnSthing" runat="server"></button>

into the tool in link above, it generates the following for me:

<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color:     
#000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 
14px;padding: 5px; overflow: auto; width: 100%"><code>&lt;asp:Button id=&quot;
btnSthing&quot; runat=&quot;server&quot;&gt;&lt;/button&gt;</code></pre>

and i can simply copy and paste this into a website to show the aspx-markup used.

If there's a tool for this sort of functionality, that would integrate into VS, i'd like to hear about it! Other methods for achieving this effect would be greatly appreciated too!

greets, J.Arola

我不知道这种用于VS的工具,但是下面的网站允许您将几种语言的源代码(C#,Java,PHP,XML,HTML,ASPX)格式化为HTML: http://codeconverter.sharpdevelop。网络/FormatCode.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM