<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="generator" content="Jasper Bedaux" />
<style type="text/css">
.comment { color: #999999; font-style: italic; }
.string { color: #006600; }
.bool { color: #000000; font-weight: bold; }
.operator { color: #663300; font-weight: bold; }
</style>
<title>C++2HTML: Convert C++ code to syntax highlighted (colored) HTML</title>
<script type="text/javascript">
versionOK = false
</script>
<script type="text/javascript; version=1.5">
versionOK = true
</script>
<script type="text/jscript">
if (parseFloat(ScriptEngineMajorVersion() + "." + ScriptEngineMinorVersion()) >= 5.5) versionOK = true
</script>
<script type="text/javascript">
if (versionOK) {
// edit lines below to change the output style
comment = {color:"#999999", bold:false, italic:true, name:"comment"} // comment blocks and lines
precompiler = {color:"#000099", bold:false, italic:false, name:"pre"} // precompiler lines
operator = {color:"#663300", bold:true, italic:false, name:"operator"} // operator and punctuator symbols
stringLiteral = {color:"#009900", bold:false, italic:false, name:"string"} // string and wide char string literals
charLiteral = {color:"#009900", bold:false, italic:false, name:"char"} // char and wchar_t literals
intLiteral = {color:"#999900", bold:false, italic:false, name:"int"} // integer literals
floatLiteral = {color:"#996600", bold:false, italic:false, name:"float"} // floating point literals
boolLiteral = {color:"#000000", bold:true, italic:false, name:"bool"} // boolean literals
types = {color:"#0000FF", bold:false, italic:false, name:"type"} // built-in type names
flowControl = {color:"#0000FF", bold:false, italic:false, name:"flow"} // program flow control keywords
keyword = {color:"#0000FF", bold:false, italic:false, name:"keyword"} // other keywords
/*
// edit lines below to change the output style
comment = {color:"#999999", bold:false, italic:true, name:"comment"} // comment blocks and lines
precompiler = {color:"#000099", bold:false, italic:false, name:"pre"} // precompiler lines
operator = {color:"#663300", bold:true, italic:false, name:"operator"} // operator and punctuator symbols
stringLiteral = {color:"#009900", bold:false, italic:false, name:"string"} // string and wide char string literals
charLiteral = {color:"#009900", bold:false, italic:false, name:"char"} // char and wchar_t literals
intLiteral = {color:"#999900", bold:false, italic:false, name:"int"} // integer literals
floatLiteral = {color:"#996600", bold:false, italic:false, name:"float"} // floating point literals
boolLiteral = {color:"#000000", bold:true, italic:false, name:"bool"} // boolean literals
types = {color:"#FF6633", bold:false, italic:false, name:"type"} // built-in type names
flowControl = {color:"#FF0000", bold:false, italic:false, name:"flow"} // program flow control keywords
keyword = {color:"#990000", bold:false, italic:false, name:"keyword"} // other keywords*/
}
</script>
<script type="text/javascript" src="highlight.js">
</script>
<script type="text/javascript">
function disable() {
if (!versionOK) {
document.forms[0].xhtml[0].disabled = true
document.forms[0].xhtml[1].disabled = true
document.forms[0].t.disabled = true
document.forms[0].convert.disabled = true
}
}
</script>
</head>
<body onload="disable()">
<form action="">
<textarea name="t" rows="20" cols="70" style="wrap: none;"></textarea><br />
<a onclick="if (!document.forms[0].xhtml1.checked) document.forms[0].xhtml1.checked = true">
<input type="radio" name="xhtml" id="xhtml1" checked="checked" /> Generate valid XHTML 1.1 (recommended, see below)</a><br />
<a onclick="if (!document.forms[0].xhtml2.checked) document.forms[0].xhtml2.checked = true">
<input type="radio" name="xhtml" id="xhtml2" /> Generate old (non-valid) HTML using font color tags (not recommended)</a><br />
<input type="button" id="convert" value="Convert" onclick="colorCode(this.form)" />
<small>(can take some time for large pieces of code)</small>
</form>
</body>
</html>