Adding line numbers to our editor to make it easier for users to navigate and fix errors in their scripts.
One comment about using css here. Webpack of the component injects a bunch of default style information into the component upon build, so the style information is not propagated into the component from css. Therefore we still need to use style={editorStyle} to get the right styles for the component.
Adding line numbers to our editor to make it easier for users to navigate and fix errors in their scripts.
One comment about using css here. Webpack of the component injects a bunch of default
style
information into the component upon build, so the style information is not propagated into the component from css. Therefore we still need to usestyle={editorStyle}
to get the right styles for the component.Editor with line numbers:
Signed-off-by: Taras Priadka tpriadka@pixielabs.ai