Skip to content

Commit

Permalink
Clarify samp element example and add a third one
Browse files Browse the repository at this point in the history
Fixes #1364.
  • Loading branch information
felixsanz authored and domenic committed Jun 2, 2016
1 parent 52d529d commit 4309d4b
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions source
Expand Up @@ -20260,11 +20260,11 @@ two&lt;/samp> but I didn't know what that meant.&lt;/p></pre>

<div class="example">

<p>This second example shows a block of sample output. Nested <code>samp</code> and
<code>kbd</code> elements allow for the styling of specific elements of the sample output using a
style sheet. There's also a few parts of the <code>samp</code> that are annotated with even more
detailed markup, to enable very precise styling. To achieve this, <code>span</code> elements are
used.</p>
<p>This second example shows a block of sample output from a console program. Nested
<code>samp</code> and <code>kbd</code> elements allow for the styling of specific elements
of the sample output using a style sheet. There's also a few parts of the <code>samp</code> that
are annotated with even more detailed markup, to enable very precise styling. To achieve this,
<code>span</code> elements are used.</p>

<pre>&lt;pre>&lt;samp>&lt;span class="prompt">jdoe@mowmow:~$&lt;/span> &lt;kbd>ssh demo.example.com&lt;/kbd>
Last login: Tue Apr 12 09:10:17 2005 from mowmow.example.com on pts/1
Expand All @@ -20274,6 +20274,18 @@ Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SM

</div>

<div class="example">

<p>This third example shows a block of input and its respective output. The example uses
both <code>code</code> and <code>samp</code> elements.</p>

<pre>&lt;pre>
&lt;code class=&quot;language-javascript&quot;>console.log(2.3 + 2.4)&lt;/code>
&lt;samp>4.699999999999999&lt;/samp>
&lt;/pre></pre>

</div>


<h4>The <dfn><code>kbd</code></dfn> element</h4>

Expand Down Expand Up @@ -118568,6 +118580,7 @@ INSERT INTERFACES HERE
Evgeny Kapun,
Ezequiel Garz&oacute;n,
fantasai,
Felix Sanz,
Felix Sasaki,
Francesco Schwarz,
Francis Brosnan Blazquez,
Expand Down

0 comments on commit 4309d4b

Please sign in to comment.