LinkSearchMenuExpandDocumentExternal-Link
    Search by
      Search by

      Code

      Inline code

      Code can be rendered inline by wrapping it in single back ticks.

      Lorem ipsum dolor sit amet, <inline code snippet> adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

      Heading with <inline code snippet> in it.

      Lorem ipsum dolor sit amet, `<inline code snippet>` adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      ## Heading with `<inline code snippet>` in it.

      Syntax highlighted code blocks

      Use Prism's syntax highlighting for code blocks by using three backticks, followed by the language name, then the block of code, followed by three more backticks:

      ```js

      // Javascript code with syntax highlighting.
      var fun = function lang(l) {
      dateformat.i18n = require('./lang/' + l)
      return true;
      }