1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-13 14:29:30 +00:00

Update HTML export to use HTML 5

There's no need to use XHTML Transitional.  The only change outside
the template was to use "id" for anchors instead of "name", as the
latter is deprecated.
This commit is contained in:
Andy McFadden 2021-05-23 11:21:08 -07:00
parent 33ccdd91eb
commit 3bda6df786
2 changed files with 25 additions and 24 deletions

View File

@ -673,7 +673,7 @@ namespace SourceGen {
string trimLabel = Symbol.TrimAndValidateLabel(parts.Label,
mFormatter.NonUniqueLabelPrefix, out bool isValid, out bool unused1,
out bool unused2, out bool unused3, out Symbol.LabelAnnotation unusedAnno);
anchorLabel = "<a name=\"" + LABEL_LINK_PREFIX + trimLabel +
anchorLabel = "<a id=\"" + LABEL_LINK_PREFIX + trimLabel +
"\">" + parts.Label + "</a>";
}
}

View File

@ -1,38 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>$ProjectName$ Disassembly</title>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="description" content="SourceGen-generated disassembly of $ProjectName$" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="SourceGen-generated disassembly of $ProjectName$"/>
<link href="SGStyle.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="SGStyle.css"/>
</head>
<body>
<p style="font-size:smaller;"><a href="./">(back to project page)</a></p>
<h1>$ProjectName$ Disassembly</h1>
<div id="code-lines">
<!-- The CodeLines marker is not optional, and may only appear once -->
<p style="font-size:smaller;"><a href="./">(back to project page)</a></p>
<h1>$ProjectName$ Disassembly</h1>
<div id="code-lines">
<!-- The CodeLines marker is not optional, and may only appear once -->
$CodeLines$
</div>
</div>
<!-- SymbolTable is optional; remove this entire section from the template if you don't want it -->
<div id="symbol-table">
<h2>Symbol Table</h2>
<!-- SymbolTable is optional; remove this entire section from the template if you don't want it -->
<div id="symbol-table">
<h2>Symbol Table</h2>
$SymbolTable$
</div>
</div>
<div id="footer">
<hr/>
<p>HTML generated by <a href="https://6502bench.com/">6502bench SourceGen</a> v$AppVersion$
on $CurrentDate$ <!--$CurrentTime$--></p>
<p>Expression style: $ExpressionStyle$</p>
<!-- parameters: $GenParameters$ -->
</div>
<div id="footer">
<hr/>
<p>HTML generated by <a href="https://6502bench.com/">6502bench SourceGen</a> v$AppVersion$
on $CurrentDate$ <!--$CurrentTime$--></p>
<p>Expression style: $ExpressionStyle$</p>
<!-- parameters: $GenParameters$ -->
</div>
</body>
</html>