---
categories: [Widgets]
layout: page
title: Code
resource: true
url-js-extra: '//rawgit.com/tcollard/google-code-prettify/v1.0.4/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>