HTML Code Colorizer / Code Formatter


This Example Uses the VwdCms.CodeViewer to Add Color to an HTML Sample.

 

Read the VwdCms.CodeViewer server control article and documentation: VwdCms.CodeViewer Documentation

HTML code colorizing example:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASP.NET Code Colorizer - Render C# and ASP.NET
Code Samples in Color. VWD-CMS.
</title>
<meta name="description" content="ASP.NET Code Colorizer - Render C# and ASP.NET Code Samples in Color" />
<meta name="keywords" content="colorizer,coloring,color,colors, code,code colorizer,color code,code sample" />
<link href="/css/VwdCmsSite2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" action="Form1.aspx" name="Form1" id="Form1">
<h1 class="contenttitle">ASP.NET Code Colorizer -
Render C# and ASP.NET Code Samples in Color.
</h1>
<h2 class="contentsubtitle">Display C#, HTML, and JavaScript in color -
gives online code samples an appearance similar to Visual Studio.
</h2>
<p class="contenttext">
<span class="code">VwdCms.CodeViewer</span>
is a server control that automatically colorizes your
code samples. This ASP.NET code sample colorizer can
display and add color to code keywords in C#, HTML,
ASPX, and JavaScript. The CodeViewer can read
from a file or you can set its Text in the ASPX
page or in code.
</p>

<h2 class="contentsubtitle">Introduction</h2>

<p class="contenttext">
The
<span class="code">VwdCms.CodeViewer</span>
control is designed to make it very simple to add color
to your code samples. Visitors on your site can see code
samples in a friendly, familiar format - the colorized code
looks just like it does in Visual Studio.
</p>

<p class="contenttext">
See more examples using the
<span class="code">VwdCms.CodeViewer</span>
control now:
<a href="Example1.aspx" title="VwdCms.CodeViewer ASP.NET Server Control Online Examples" style="font-weight:bold;">VwdCms.CodeViewer Online Examples</a>
</p>
<br/>
</form>
</body>
</html>

This code sample has been automatically colorized by the VwdCms.CodeViewer control, an ASP.NET server control code colorizer that supports HTML, ASPX, XML, C#, and JavaScript code formats.