diff options
author | Ulrich Müller <ulm@gentoo.org> | 2018-09-23 16:23:20 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2018-09-23 16:23:20 +0200 |
commit | f568823a1bca21f40a402588871e6396df9322ad (patch) | |
tree | afe616c085f4551da0a31863cc2cd796e6d2e7d3 /appendices | |
parent | appendices/contributing/devbook-guide: Remove <abstract> tag. (diff) | |
download | devmanual-f568823a1bca21f40a402588871e6396df9322ad.tar.gz devmanual-f568823a1bca21f40a402588871e6396df9322ad.tar.bz2 devmanual-f568823a1bca21f40a402588871e6396df9322ad.zip |
appendices/contributing/devbook-guide: Change <pre> to <codesample>.
Diffstat (limited to 'appendices')
-rw-r--r-- | appendices/contributing/devbook-guide/text.xml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/appendices/contributing/devbook-guide/text.xml b/appendices/contributing/devbook-guide/text.xml index 42865d5..564e29d 100644 --- a/appendices/contributing/devbook-guide/text.xml +++ b/appendices/contributing/devbook-guide/text.xml @@ -38,7 +38,7 @@ Let's start learning the GuideXML syntax. We'll start with the the initial tags used in a GuideXML document: </p> -<pre caption="The initial part of a guide XML document"> +<codesample lang="sgml"><!-- The initial part of a guide XML document --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <!-- $Header$ --> @@ -63,7 +63,7 @@ using GuideXML.</i> <version><i>1</i></version> <date><i>2011-11-29</i></date> -</pre> +</codesample> <p> On the first lines, we see the requisite tag that identifies this as an XML @@ -135,7 +135,7 @@ link="#doc_chap2_pre1">previous excerpt</uri> and append a guide document: </p> -<pre caption="Minimal guide example"> +<codesample lang="sgml"><!-- Minimal guide example --> <chapter> <title><i>This is my chapter</i></title> <section> @@ -149,7 +149,7 @@ guide document: </body> </section> </chapter> -</pre> +</codesample> <p> Above, I set the chapter title by adding a child <c><title></c> @@ -180,7 +180,7 @@ Now, it's time to learn how to mark up actual content. Here's the XML code for an example <c><body></c> element: </p> -<pre caption="Example of a body element"> +<codesample lang="sgml"><!-- Example of a body element --> <p> This is a paragraph. <path>/etc/passwd</path> is a file. <uri>http://forums.gentoo.org</uri> is my favorite website. @@ -206,7 +206,7 @@ This is a warning. <impo> This is important. </impo> -</pre> +</codesample> <p> Now, here's how the <c><body></c> element above is rendered: @@ -218,13 +218,13 @@ This is a paragraph. <path>/etc/passwd</path> is a file. Type <c>ls</c> if you feel like it. I <e>really</e> want to go to sleep now. </p> -<pre caption="Code Sample"> +<codesample lang="sgml"><!-- Code Sample --> This is text output or code. # <i>this is user input</i> Make HTML/XML easier to read by using selective emphasis: <foo><i>bar</i></foo> -</pre> +</codesample> <note> This is a note. @@ -259,12 +259,12 @@ exactly, making it well-suited for code excerpts. You must name the <c><pre></c> tag with a <c>caption</c> attribute: </p> -<pre caption="Named <pre>"> +<codesample lang="sgml"><!-- Named <pre> --> <pre caption="Output of uptime"> # <i>uptime</i> 16:50:47 up 164 days, 2:06, 5 users, load average: 0.23, 0.20, 0.25 </pre> -</pre> +</codesample> </body> </subsection> @@ -522,7 +522,7 @@ the content. An example for indentation is: </p> -<pre caption="Indentation Example"> +<codesample lang="sgml"><!-- Indentation Example --> <table> <tr> <th>Foo</th> @@ -541,17 +541,17 @@ An example for indentation is: <li>First option</li> <li>Second option</li> </ul> -</pre> +</codesample> <p> <b>Attributes</b> may not have spaces in between the attribute, the "=" mark, and the attribute value. As an example: </p> -<pre caption="Attributes"> +<codesample lang="sgml"><!-- Attributes --> Wrong : <pre caption = "Attributes"> Correct: <pre caption="Attributes"> -</pre> +</codesample> </body> </subsection> @@ -571,12 +571,12 @@ Every sentence, including those inside tables and listings, should start with a capital letter. </p> -<pre caption="Periods and capital letters"> +<codesample lang="sgml"><!-- Periods and capital letters --> <ul> <li>No period</li> <li>With period. Multiple sentences, remember?</li> </ul> -</pre> +</codesample> <p> Code Listings should <e>always</e> have a <c>caption</c>. |