Share your repls and programming experiences

← Back to all posts
First Gen Text Editor (Clearcode.tk)
h
RohilPatel (1428)

Introducing Clearcode.tk

I have made a text editor, and I thought it was fun. I will make a second generation on an actual web server, but for now, I want your input on this.

A problem I have not thought about is the fact that I won't be able to save any of your progress when I make the switch to a server. In fact, you can only see your own work, and nobody else can. The server will help me store all of your projects.

My future goals are to have syntax, more themes, possibly another language or two, and indenting....its baddd right now lol!!

Leave any suggestions or comments you would like to see with clearcode

Have a nice day!

p.s. its been a while since I have posted

Commentshotnewtop
RiazuMacroni (46)

Great post. Like the functionality and its usability. Do you plan to implement any other languages other than html?

RohilPatel (1428)

possibly python, deno, nodejs, and swift. @uhmansoori

xxpertHacker (554)

You might be able to rip some functionality from my text editor at: XHTML Text Editor.

Rovy (10)

umm so what is it supposed to do

willstellar (11)

Wowwww. This isss ammmazzzing. Nice job!

awesome10 (225)

oh um nice! (i dont code html...)

RohilPatel (1428)

well, thanks, and you should try html, its fun!! @awesome10

RohilPatel (1428)

thanks!! do you have any suggestions not listed above in my description? @DannyIsCoding

DannyIsCoding (673)

@RohilPatel Umm... maybe making the keywords/tags colored.

Also, what does to have syntax mean?

RohilPatel (1428)

exactly what you just said lol 😂 @DannyIsCoding

DannyIsCoding (673)

@RohilPatel lol

Another idea would be auto-completer

xxpertHacker (554)

@DannyIsCoding Syntax is following the grammar rules and structure of a language, not coloring stuff, as Rohil had said.

Rovy (10)

ummm I don't understand it just shows the thing

Rovy (10)

it just shows clearcode.tk @RohilPatel

RohilPatel (1428)

yeah...... open that website, and get started with it. @Rovy

ironblockhd (388)

You could implement saving different projects in the browser using localStorage or indexedDB

RohilPatel (1428)

I know that, but I want people to see other people's work @ironblockhd

Theboys619 (58)

I think inserting the code into the html tag is better than the body tag.

RohilPatel (1428)

@Theboys619 that's not a bad idea. Wanna help me on this lol?

Theboys619 (58)

Sure i guess. Just msg me on discord @RohilPatel

RohilPatel (1428)

if I can, idk if u heard about my incident. @Theboys619

xxpertHacker (554)

@Theboys619 Why would you suggest that? The body tag is the be preferred over the html tag, although, neither are the ideal solutions.

Theboys619 (58)

Well its mainly to get the meta tags and title to work if there is already code on the file its replacing. The body will still work but there is other code in the head tag. So some data in the users head code will not work @StudentFires

xxpertHacker (554)

@Theboys619 Such as? Also, one can simply replace the contents of the already existing tags, .replaceChild(...), .innerText = ..., .remove(...), there's plenty of potential workarounds.

xxpertHacker (554)

@RohilPatel How about using a DOMParser and .replaceChild() on the HTML element? or maybe using a real File? Or even setting up a sever, writing their code into a file, sending it with the normal HTML mime-type text/html, and sending it to them? I'm pretty sure I can setup the File technique in a minute.

xxpertHacker (554)

@RohilPatel

"use strict";

self.location.replace(
	URL.createObjectURL(
		new File(
			[localStorage.getItem(`code`)],
			`new-file-name.html`, {
				type: `text/html`
			}
		)
	)
);

Done, one minute.

Theboys619 (58)

Well thats fine. But i am actually helping @RohilPatel in making a second version of this. Its going to use a server so we don't even need to use replaceChild or innerHTML, just files.
But I will also keep those things in mind.
@StudentFires

RohilPatel (1428)

thank you!!!! ur very active!! @Bookie0

Bookie0 (4591)

Lol yeah I just went to share and new @RohilPatel

RohilPatel (1428)

lol, the new ones need attention!! @Bookie0