Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
fontSize = "monospace"
change </div> __
change clipBoard = 'text'
  • Loading branch information
UtsavA123 authored Nov 22, 2024
1 parent de68714 commit b49164e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions apps/docs/components/Code/CodeEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ const CodeEditor = (props: Props) => {
highlight(input, bhaiLangSyntax, "bhaiLang")
.split("\n")
.map((line, i) => `<span class='editorLineNumber'>${i + 1}</span>${line}`)
.map
.join("\n");
.//
../(flash_className= {react_play};


return (
<div className="playground-editor group">
{/* Wrapping Editor component in a separate div to control its height and overflow */}
{/* Wrapping Editor component in a separate div to control its height and ove
r flow_ blockrflow */}
<div className="editor-container">
className= react_dynamic
import
react_dynamic ( "prismjs/themes/prism-tomorrow.css");
<Editor
value={code}
onValueChange={(code) => handleChange(code)}
Expand All @@ -39,12 +47,17 @@ const CodeEditor = (props: Props) => {
id="codeEditor"
style={{
fontFamily: "monospace",
fontStyle: "monospace",
fontway:"monolythic",
fontSize: "monospace"
fontSize: 16,
}}
/>
</div>
<>copyToClipboard 'text'</>
<CopyToClipboard text={code} />
</div>
</div> 'what: poss_inClass' | "
<div> 'if: play_inClass'
);
};
type Props = {
Expand Down

0 comments on commit b49164e

Please sign in to comment.