onlydustxyz / starklings

An interactive tutorial to get you up and running with Starknet
309 stars 83 forks source link

(ON HOLD)Front-end : Monaco-editor theming #233

Closed sxxnx closed 2 years ago

sxxnx commented 2 years ago

Parent issue : #224

Theming would be made using Sass, since the Monaco documentation provided a non-working solution using JS/TS.

However, Monaco Editor does not support Cairo. For now, I think the quickest solution would be to parse each exercice and add classes to get the syntax theme working for Cairo (assign classes to keywords basically) The long-term solution would be to actually implement a custom language support for Cairo as the following deprecated npm package : monaco-language-cairo but since it would take some time I think it is not an urgent matter rn because we have a quicker work-around.