langchain-ai / open-canvas

📃 A better UX for chat, writing content, and coding with LLMs.
https://opencanvas.langchain.com/
MIT License
2.58k stars 377 forks source link

Update code syntax highlighting to support all other languages #120

Closed bracesproul closed 3 weeks ago

bracesproul commented 3 weeks ago

Update the code editor to support proper syntax highlighting for all currently non supported languages. This requires installing the following dependencies: @codemirror/lang-json @codemirror/lang-rust @codemirror/lang-xml @nextjournal/lang-clojure @replit/codemirror-lang-csharp

Then, update the if statements in the CodeRenderer JSX component to support these new languages. (or refactor into a cleaner util) Update the PROGRAMMING_LANGUAGES variable and ProgrammingLanguageOptions type inside types.ts with the new languages.