Skip to content

Commit

Permalink
Added syntax highlighting for ts and json
Browse files Browse the repository at this point in the history
  • Loading branch information
alterx committed Aug 1, 2018
1 parent 82835e6 commit 473dad9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Highlight.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Prism from "prismjs";
import PropTypes from "prop-types";
import React from "react";
import ReactDOM from "react-dom";
import loadLanguages from "prismjs/components/index.js";
import Prism from 'prismjs';
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import loadLanguages from 'prismjs/components/index.js';

import "prismjs/themes/prism.css";
import 'prismjs/themes/prism.css';

loadLanguages(["bash"]);
loadLanguages(['bash', 'typescript', 'json']);

class Highlight extends React.Component {
componentDidMount() {
Expand All @@ -30,7 +30,7 @@ class Highlight extends React.Component {
}

Highlight.propTypes = {
children: PropTypes.node.isRequired
children: PropTypes.node.isRequired,
};

export default Highlight;

0 comments on commit 473dad9

Please sign in to comment.