react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

className not working in zebraStripes

Open ritik307 opened this issue 7 months ago • 8 comments

I am trying to add zebraStripes on my codemirror and my goal here is to add zebraStripes to the line of code where the className = 'text-wrapper' but tehe feature isnt working. Can anyone help Following is the code:

     <CodeMirror
            value={jsonData}
            height="90vh"
            theme="dark"
            extensions={[langs.jsx(), zebraStripes({
              className: "text-wrapper"
            }),]}
            onDoubleClick={(event, value) => {
              handleDoubleClick(event, value);
            }}
            onChange={(value) => {
              handleOnJsChange(value);
            }}
        />

Screenshot:

Screenshot 2024-07-22 at 4 51 36 PM

ritik307 avatar Jul 22 '24 11:07 ritik307