SHIV5T3R / CO-DE

An Open Source Collaborative Code Editor
36 stars 26 forks source link

Feature: create code editor component #46

Closed DynamiteBob17 closed 10 months ago

DynamiteBob17 commented 10 months ago

Features of this pull request:

screenshot

hobi9 commented 10 months ago

Will the code editor look so small? Will be there the chance to change the programming language? Will the final version look like this? With the loading component + the conenct disconnect buttons?

DynamiteBob17 commented 10 months ago

If you look at the code, you can see that you can set the width and height of it or the editor itself can adapt to any styles of a possible parent container component/div or whatever, although the latter might not be explicitly stated anywhere. The programming language can be changed easily, just a file extension needs to be provided and the component will set the correct language. This is just the barebones code editor component, which can be styled further if necessary, again with any kind of wrapper component, div or whatever. And no, I just put the editor next to everything that's currently in App.tsx just so it's there to be tried out.

hobi9 commented 10 months ago

If you look at the code, you can see that you can set the width and height of it or the editor itself can adapt to any styles of a possible parent container component/div or whatever, although the latter might not be explicitly stated anywhere. The programming language can be changed easily, just a file extension needs to be provided and the component will set the correct language. This is just the barebones code editor component, which can be styled further if necessary, again with any kind of wrapper component, div or whatever. And no, I just put the editor next to everything that's currently in App.tsx just so it's there to be tried out.

perfect, thanks for clarifying. the pr looks good imho