r/reactjs • • Nov 02 '19

I made a half assed code editor

575 Upvotes

25 comments sorted by

23

u/fistyit Nov 02 '19

Give the code? Me likey

22

u/[deleted] Nov 02 '19

I will post it on github once it's done

5

u/academicRedditor Nov 03 '19

No pressure, but I look forward to seeing this sh*t 😃🎉

1

u/fistyit Nov 03 '19

There was this https://github.com/StephenGrider/JSPlaygrounds only js though.

@op are you using the vs codes code editting library?

Edit: le this https://github.com/microsoft/monaco-editor

2

u/[deleted] Nov 03 '19

Codemirror

•

u/swyx Nov 03 '19

stalked OP's profile a bit - they made a couple other well received posts here and here

so far no code for this stuff yet

9

u/newimprovement Nov 03 '19

are you using __innerhtml for the actual html rendering, or something else?

0

u/[deleted] Nov 03 '19

[deleted]

2

u/crinkle_danus Nov 03 '19

Oh cool. I was thinking it is made up of a whole page textarea.

Edit: Oh you're talking about the HTML rendering. Lol. Dismiss my inferiority.

3

u/liveplusfan Nov 02 '19

Sickkk🔥🔥

2

u/fruitoftheloom23 Nov 03 '19

What text buffer does this use?

2

u/equal_odds Nov 03 '19

If you could use these features with key bindings that’d be super dope

2

u/Chetanoo Nov 03 '19

I like this one. Good job.

1

u/SteinJack Nov 03 '19

Good job. I think this could be a nice vscode extension.

1

u/[deleted] Nov 03 '19

Why’s this half assed?

1

u/Srz2 Nov 04 '19

This is a half ass more than my no ass implementation

1

u/samiraawad Nov 08 '19

Niceee !👌🔥

-7

u/kimchi_Anonymous Nov 02 '19

Wow this is pretty amazing tbh. I'm only an amateur coder but this looks like some shit the big boys like Microsoft or atom would adopt .

4

u/[deleted] Nov 03 '19

One day you will discover vim and remember this comment

1

u/kimchi_Anonymous Nov 19 '19

I use vim for bash scripting and traversing.

1

u/scottyrogers10 Nov 03 '19

It's a fun little app... But it doesn't give any benefit to a developer...

0

u/[deleted] Nov 02 '19

[deleted]

16

u/[deleted] Nov 02 '19

Yes, electronjs + react/redux/thunk

26

u/[deleted] Nov 02 '19

Since we're in the /r/reactjs subreddit I imagine it's react & electron

32

u/swyx Nov 03 '19 edited Nov 03 '19

why would you say something so controversial yet so brave