Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
86 lines (75 loc) · 2.56 KB

File metadata and controls

86 lines (75 loc) · 2.56 KB
title Code
syntax-id code
syntax-summary `code`
description To denote a word or phrase as code, enclose it in backticks (`` ` ``).
examples
markdown html
At the command prompt, type `nano`.
At the command prompt, type <code>nano</code>.
additional-examples
name description markdown html
Escaping Backticks
If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (<code>``</code>).
``Use `code` in your Markdown file.``
<code>Use `code` in your Markdown file.</code>
name description markdown html
Code Blocks
To create code blocks, indent every line of the block by at least four spaces or one tab.
<html> <head> </head> </html>
<pre><code><html><head></head></html></code></pre>

To denote a word or phrase as code, enclose it in backticks (`).

Markdown HTML Rendered Output
At the command prompt, type `nano`. At the command prompt, type <code>nano</code>. At the command prompt, type nano.

Escaping Backticks

If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (``).

Markdown HTML Rendered Output
``Use `code` in your Markdown file.`` <code>Use `code` in your Markdown file.</code> Use `code` in your Markdown file.

Code Blocks

To create code blocks, indent every line of the block by at least four spaces or one tab.

    <html>
      <head>
      </head>
    </html>

The rendered output looks like this:

<html>
  <head>
  </head>
</html>
Note: To create code blocks without indenting lines, use fenced code blocks.