forked from patternfly/patternfly-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.html
More file actions
43 lines (43 loc) · 1.55 KB
/
Copy pathcode.html
File metadata and controls
43 lines (43 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
categories: [Widgets]
layout: page
title: Code
resource: true
url-js-extra: '!URL_COMPONENTS!google-code-prettify/bin/prettify.min.js'
---
<h2>Inline</h2>
<p>For example, <code><section></code> should be wrapped as inline.</p>
<h2>User input</h2>
<p>To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd></p>
<h2>Basic block</h2>
<pre><p class="my-class">Sample text here...</p></pre>
<h2>Variables</h2>
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
<h2>Sample output</h2>
<samp>This text is meant to be treated as sample output from a computer program.</samp>
<h2>Syntax highlighting with google-code-prettify</h2>
<h3>Basic block</h3>
<pre class="prettyprint"><p class="my-class">Sample text here...</p></pre>
<h3>Larger block with line numbers</h3>
<pre class="prettyprint linenums lang-html">
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header></header>
<div role="main"></div>
<footer></footer>
<script src="js/script.js"></script>
</body>
</html>
</pre>
<script>
$(document).ready(function(){
prettyPrint();
});
</script>