The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Syntax highlighting and code coloring in HTML 4.01 with CSharpFormat (C#, VB, HTML, XML, ASPX)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Damir Tomicic

Posts: 2504
Nickname: damir
Registered: Apr, 2004

Damir Tomicic is Microsoft Regional Director for Germany and INETA Lead
Syntax highlighting and code coloring in HTML 4.01 with CSharpFormat (C#, VB, HTML, XML, ASPX) Posted: Jun 19, 2004 2:54 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Damir Tomicic.
Original Post: Syntax highlighting and code coloring in HTML 4.01 with CSharpFormat (C#, VB, HTML, XML, ASPX)
Feed Title: Damir Tomicic : community powered
Feed URL: http://tomicic.de/SyndicationService.asmx/GetRss
Feed Description: stuff about .NET, community and life - in several languages.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Damir Tomicic
Latest Posts From Damir Tomicic : community powered

Advertisement

Thanks to dedee for this link. Jean-Claude Manoli's "C# code format" [1] allows you to format your C#, VB or HTML/XML source code in HTML 4.01. The output is color-coded to make it easier to read, and the colors can be changed by modifying the CSS style sheet.

[1] http://www.manoli.net/csharpformat/

Here is my WinDays blog reader sample (Visual Studio 2005, ASP.NET 2.0) reformated with this tool. It looks great ;-)

 1: ///
 2: /// Blog reader sample for ASP.NET
   2.0
 3: ///
 4: <div>
 5:  <asp:XmlDataSource ID="XmlDataSource1" DataFile="http://tomicic.de/SyndicationService.asmx/GetRss"
 6:  XPath="rss/channel/item" Runat="server" /><%#XPath("pubDate")%>
 7:  <%#XPath("title")
   %>
 8:  <%# XPath("description")
   %>
 9:  &nbsp;
 10:  </div>
 11:  <br />
 12:  <asp:GridView ID="GridView1" Runat="server" BorderColor="#CCCCCC" BackColor="White"
 13:  BorderWidth="1px" BorderStyle="None" CellPadding="6" CellSpacing="6" DataSourceID="XmlDataSource1"
 14:  AllowPaging="True" PageSize="5" AutoGenerateColumns="False">
 15:  <FooterStyle ForeColor="#000066" BackColor="White">
 16:  </FooterStyle>
 17:  <PagerStyle BackColor="White" HorizontalAlign="Left" ForeColor="#000066">
 18:  </PagerStyle>
 19:  <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#006699">
 20:  </HeaderStyle>
 21:  <Columns>
 22:  <asp:TemplateField HeaderText="Damir
   Tomicic">
 23:  <ItemStyle ForeColor="#000066">
 24:  </ItemStyle>
 25:  <ItemTemplate>
 26:  <%#XPath("pubDate")%>
 27:  <br />
 28:  <b>
 29:  <a href="<%#XPath("link")
   %>">
 30:  <%#XPath("title") %></a>
   [<%#XPath("category") %>]
 31:  </b> 
 32:  <br />
 33:  <%# XPath("description")
   %> 
 34:  <a href="<%#XPath("link")
   %>">[Read more ...]</a>
 35:  </ItemTemplate>
 36:  </asp:TemplateField>
 37:  </Columns>
 38:  <SelectedRowStyle ForeColor="White" Font-Bold="True" BackColor="#669999">
 39:  </SelectedRowStyle>
 40:  <RowStyle ForeColor="#000066">
 41:  </RowStyle>
 42:  </asp:GridView>

Read: Syntax highlighting and code coloring in HTML 4.01 with CSharpFormat (C#, VB, HTML, XML, ASPX)

Topic: Again, it's not dead - au contraire: DCOM with C# Previous Topic   Next Topic Topic: Application Center Test, VS, and robots.txt

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use