Open joelspadin opened 4 weeks ago
c9b6b0ab88a11b61629737c7987e674dfbe8e355 uses the C++ syntax highlighter, which is probably close enough? Not sure I want to put in the work to make a devicetree highlighter, however if I did create one, the code block on the export page could be replaced with a readonly CodeMirror editor and the dependency on highlight.js could be removed.
2 was fixed by switching the code editor to CodeMirror, but this doesn't have support for devicetree highlighting, nor can the existing highlight.js or tree-sitter parsers be integrated with it.
https://github.com/lezer-parser/import-tree-sitter could potentially be used to create a parser from https://github.com/joelspadin/tree-sitter-devicetree