Skip to content
Snippets Groups Projects
Select Git revision
  • 50ffc11862ef5095b253a8033bb143b7c165b2c6
  • master default protected
  • 12-revise-part5-with-new-data-model-eic-to-eicd-etc
  • gatsby-update
  • npm-install-deps-fix
  • fix
  • oops
  • readme_2
8 results

codeblock.md

Blame
  • Whitney Armstrong's avatar
    Whitney Armstrong authored
    500a2da0
    History
    codeblock.md 681 B
    title: "Syntax Highlighting"
    metaTitle: "Syntax Highlighting is the meta title tag for this page"
    metaDescription: "This is the meta description for this page"

    The following is a code block with JavaScript language syntax highlighting.

    import React from 'react';

    Supports multiple languages.

    The following is a code block with diff. Lines with + highlighted in green shade indicating an addition. Lines with - highlighted in red shade indicating a deletion.

    - const data = ['1','2'];
    + const data = [1,2];

    Live Editing example

    <button className={'btn btn-default'}>Change my text</button>