Open ttnghia179 opened 1 year ago
@ttnghia179
import { EditorView } from '@codemirror/view';
const activeLineTheme = EditorView.baseTheme(
{
"& .cm-activeLine": { backgroundColor: "#cceeff44" },
}
);
<CodeMirror
value="console.log('hello world!');"
height="200px"
extensions={[activeLineTheme]}
onChange={onChange}
/>
Hi, I want to change the active line programmatically. How should I start?