UNPKG

react-styleguidist

Version:
25 lines (24 loc) 840 B
import 'prismjs/components/prism-clike'; import 'prismjs/components/prism-markup'; import 'prismjs/components/prism-markdown'; import 'prismjs/components/prism-css'; import 'prismjs/components/prism-css-extras'; import 'prismjs/components/prism-scss'; import 'prismjs/components/prism-less'; import 'prismjs/components/prism-javascript'; import 'prismjs/components/prism-flow'; import 'prismjs/components/prism-typescript'; import 'prismjs/components/prism-jsx'; import 'prismjs/components/prism-tsx'; import 'prismjs/components/prism-graphql'; import 'prismjs/components/prism-json'; import 'prismjs/components/prism-bash'; import 'prismjs/components/prism-diff'; /** * Highlight code. * * @param {string} code * @param {string} lang * @returns {string} */ export default function highlightCode(code: string, lang?: string): string;