freeman-lab / regl-site

demo and documentation site for regl
http://regl.party
MIT License
10 stars 3 forks source link

Suggestion: Use monaco code editor in examples gallery #13

Open stevebest opened 7 years ago

stevebest commented 7 years ago

https://github.com/Microsoft/monaco-editor

With the expected soon arrival of TypeScript typings, regl example editor could really benefit from all the features offered by Monaco editor, such as

We could even build a custom syntax definition for syntax coloring of GLSL in frag and vert fields, kinda like JS/CSS embedded in HTML.

marklundin commented 7 years ago

The Monaco editor is not supported in mobile correct? Would this be a show stopper?

stevebest commented 7 years ago

I just tried the playground on my tablet (Chrome, Nexus 9) and yeah, it seems kinda broken.

Is editing code on mobile web really a goal? I can't recall any code editors that explicitly supported mobile, except textarea. :)