1
0
mirror of https://github.com/golang/go synced 2024-11-05 19:56:11 -07:00
go/present/testdata/code.p
Russ Cox e41bc02694 present: add end-to-end rendering test
See testdata/README for test format.
This will make it easier to fix problems and not regress.
Markdown tests in followup CL (with bug fixes).

Change-Id: I5dedca26d3c29fd428066ffb38c6605343784a19
Reviewed-on: https://go-review.googlesource.com/c/tools/+/224957
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2020-03-23 17:17:23 +00:00

40 lines
545 B
OpenEdge ABL

Code
*
Code:
.code testdata/code.txt
Snippet:
.code testdata/code.txt /Snippet/
Highlight:
.code testdata/code.txt HL1
---
<h1>Code</h1>
<section>
<p>Code:</p>
<div class="code">
<pre><span num="1">code file</span>
<span num="2">Snippet</span>
<span num="3">important</span>
</pre>
</div>
<p>Snippet:</p>
<div class="code">
<pre><span num="2">Snippet</span>
</pre>
</div>
<p>Highlight:</p>
<div class="code">
<pre><span num="1">code file</span>
<span num="2">Snippet</span>
<span num="3"><b>important</b></span>
</pre>
</div>
</section>