mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
feat: proper instructions for ps1/win as well.
This commit is contained in:
@@ -3,6 +3,13 @@ import ReactDOM from 'react-dom/client';
|
||||
|
||||
import { AppRoot } from './components/AppRoot';
|
||||
|
||||
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||
import hljsSyntaxPowerShell from 'react-syntax-highlighter/dist/esm/languages/hljs/powershell';
|
||||
import hljsSyntaxBash from 'react-syntax-highlighter/dist/esm/languages/hljs/bash';
|
||||
|
||||
SyntaxHighlighter.registerLanguage('ps1', hljsSyntaxPowerShell);
|
||||
SyntaxHighlighter.registerLanguage('bash', hljsSyntaxBash);
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<AppRoot />
|
||||
|
||||
Reference in New Issue
Block a user