From 44447eeefe61dbb16cab59900c3c061d9f207fbc Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 24 Nov 2014 17:09:32 -0800 Subject: Give all embedded live docs examples data-example-id attrs Refs #11410 --- docs/_includes/css/code.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/_includes/css/code.html') diff --git a/docs/_includes/css/code.html b/docs/_includes/css/code.html index ba2edc151..02acb1238 100644 --- a/docs/_includes/css/code.html +++ b/docs/_includes/css/code.html @@ -3,7 +3,7 @@

Inline

Wrap inline snippets of code with <code>.

-
+
For example, <section> should be wrapped as inline.
{% highlight html %} @@ -12,7 +12,7 @@ For example, <section> should be wrapped as inline.

User input

Use the <kbd> to indicate input that is typically entered via keyboard.

-
+
To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,
@@ -23,7 +23,7 @@ To edit settings, press ctrl + ,

Basic block

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

-
+
<p>Sample text here...</p>
{% highlight html %} @@ -33,7 +33,7 @@ To edit settings, press ctrl + ,

You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis scrollbar.

Variables

For indicating variables use the <var> tag.

-
+

y = mx + b

@@ -43,7 +43,7 @@ To edit settings, press ctrl + ,

Sample output

For indicating blocks sample output from a program use the <samp> tag.

-
+

This text is meant to be treated as sample output from a computer program.

{% highlight html %} -- cgit v1.2.3