sahilatahar / Code-Sync

A real-time collaborative code editor featuring unique room generation, syntax highlighting, and auto-suggestions. Users can seamlessly edit, save, and download files while communicating through group chat
https://code-sync-live.vercel.app
MIT License
49 stars 24 forks source link

ERROR - Syntax Highlighting not available for this language #7

Closed alexsoin closed 1 month ago

alexsoin commented 1 month ago

When creating a file with any extensions other than js, an error appears Syntax Highlighting not available for this language :

изображение

(checked with ts, php, cs extensions)

At the same time, the compilation of the code occurs without problems:

изображение

sahilatahar commented 1 month ago

@alexsoin Thanks for creating the issue. I have checked it, and syntax highlighting for PHP and C# is not applying automatically, but syntax highlights are available for those languages. You can change the editor language manually from settings > Editor Language for now. I will fix this issue very soon.

alexsoin commented 1 month ago

this scenario also does not work:

https://github.com/sahilatahar/Code-Sync/assets/3787132/a2760af5-f93c-4add-be63-0d5cf9bbe856

alexsoin commented 1 month ago

ezgif-7-71ba741790

sahilatahar commented 1 month ago

@alexsoin Thank you for reporting this issue. I've addressed it by implementing a custom mapping solution to fix the syntax highlighting problem. If you encounter any further issues or have additional feedback, please don't hesitate to let me know. Your input is greatly appreciated!