Code Block

Code formatting is used to highlight inline code snippets or display block code samples. This enhances readability and ensures clarity in documentation, tutorials, and technical content.


Usage:

  • Inline Code – For small code snippets inside text.
  • Block Code – For larger, structured code examples.
  • Syntax Highlighting – Improves readability for developers.

Inline Code

Use inline code when referencing commands, functions, or variables within a paragraph.

To start creating a changeset, run yarn changeset. Then you'll be prompted to select packages for release.

To start creating a changeset, run <code>yarn changeset</code>. Then you'll be prompted to select packages for release.

Block Code

Use block code to display larger code samples, such as HTML, CSS, or JavaScript snippets.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>MyWebsite</title>
  <meta name="description" content="">
  <meta name="author" content="">

  <!-- Mobile Specific Metas -->
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

  <!-- CSS -->
  <link rel="stylesheet" href="path/to/amazium.css">
  <link rel="stylesheet" href="styles/layout/layout.css">

  <!-- Favicons -->
  <link rel="shortcut icon" href="img/favicon.ico">
  <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon.png">
</head>
<body>

  ...

</body>
</html>
<code>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</code>
  1. Components: Card
  2. Components: Table