joelspadin / zmk-layout-helper

Tool for creating physical layouts for ZMK firmware
https://zmk-layout-helper.netlify.app/
1 stars 0 forks source link

Code editor breaks if lines wrap #2

Closed joelspadin closed 1 month ago

joelspadin commented 1 month ago

react-simple-code-editor doesn't seem to have any way to use horizontal scrolling instead of wrapping text, and this causes problems like incorrect line numbers and not allowing scrolling all the way to the end of the code.

CodeMirror seems like a good replacement, but it doesn't have a devicetree parser, so I would either need to remove syntax highlighting for devicetree or port a devicetree parser to the Lezer system.