Discuss Scratch

IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

For context read this.

In this advanced challenge, your goal is to make an amazing Code Editor that suits your needs!

There are no restrictions and no winners to quote gtoal:

I strongly recommend to every Scratcher that they try designing and writing their own editor, just for the fun of it. Ask yourself what sort of thing you often want to do, but can't using your favorite editor.

Current IDEs made so far:

IcyIDE
BKFighter Simple Text Editor
IcyCoders's BKFighter Simple Text Editor Edited
AirEditor
NickyNouse's editor
ZEdit
pop
Editron
a
Trusty


Made before the challenge but still cool:

Zide
Vide

Have fun!

Last edited by IcyCoder (Jan. 31, 2017 15:51:21)


Because JS is the future (echos) future future futur futu fut fu f
BKFighter
Scratcher
1000+ posts

The make your own code editor challenge.

IDE's are all well and good but real programmers…
Can't link because it has a swear word but you probably know what I mean.
(This is my excuse in case I forget to make one or get stuck).

Last edited by BKFighter (Jan. 7, 2017 00:45:14)


Need a reason to check out my profile?
How about things like:
Simulators?
Games?
Amazing Creations?

This siggy protected by: BKFighter Kumquataway Ltd
Created from processed Kumquat byproduct
Purchase for free* at this website! asdfasdfasdfasdfasdfasdfadfadfadadfasdfas;
gtoal
Scratcher
1000+ posts

The make your own code editor challenge.

1 Ooh err missus! Looks like I've started something here!
2
3 Just to be clear I meant a text editor rather than an IDE, ie it doesn't compile or run or debug projects, it just edits text.
4
5 Folks should post the sorts of problems that they come across which current editors don't handle.
6
7 For example, I use a pretty powerful editor that can do a lot of cool edits - but it has no facilities for doing arithmetic, so if I wanted to take an input file and modify it so that each line was prefixed by a line number - like these - I wouldn't be able to do it.
8
9 Emacs could do it - if you can program in Electric Lisp, but how many people can do that?
10
11 G
IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

gtoal wrote:

1 Ooh err missus! Looks like I've started something here!
2
3 Just to be clear I meant a text editor rather than an IDE, ie it doesn't compile or run or debug projects, it just edits text.
4
5 Folks should post the sorts of problems that they come across which current editors don't handle.
6
7 For example, I use a pretty powerful editor that can do a lot of cool edits - but it has no facilities for doing arithmetic, so if I wanted to take an input file and modify it so that each line was prefixed by a line number - like these - I wouldn't be able to do it.
8
9 Emacs could do it - if you can program in Electric Lisp, but how many people can do that?
10
11 G

I see well that is much more simple than what I was working on….

What my plan is to:

Make a simple clean editor that is extendable and has easy access to the command line.

Because JS is the future (echos) future future futur futu fut fu f
BKFighter
Scratcher
1000+ posts

The make your own code editor challenge.

I know this is going to be the dumbest entry here but this fits all my needs basically.
data:text/html,<h1>The BKFighter Simple Text Editor</h1><input style="height:100%;width:100%"></input>
Paste into URL to use
Features
-You can type in it
-Highly customizable
-If your school blocks the URL you just need to change a few characters to unblock it.

Honestly I'm that guy that doesn't care what the editor looks like or does, but I'd still be interested to see some other people's examples.

Last edited by BKFighter (Jan. 7, 2017 01:00:13)


Need a reason to check out my profile?
How about things like:
Simulators?
Games?
Amazing Creations?

This siggy protected by: BKFighter Kumquataway Ltd
Created from processed Kumquat byproduct
Purchase for free* at this website! asdfasdfasdfasdfasdfasdfadfadfadadfasdfas;
birdoftheday
Scratcher
500+ posts

The make your own code editor challenge.

@BKFighter

Not even <textarea> mate?

Am I the only person who likes 3.0 better than 2.0, or do the people who do just not talk about it?
BKFighter
Scratcher
1000+ posts

The make your own code editor challenge.

birdoftheday wrote:

@BKFighter

Not even <textarea> mate?

BKFighter wrote:

Honestly I'm that guy that doesn't care what the editor looks like or does
Also, I didn't know that was a thing.

Need a reason to check out my profile?
How about things like:
Simulators?
Games?
Amazing Creations?

This siggy protected by: BKFighter Kumquataway Ltd
Created from processed Kumquat byproduct
Purchase for free* at this website! asdfasdfasdfasdfasdfasdfadfadfadadfasdfas;
IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

Mine is going along… well…?

Because JS is the future (echos) future future futur futu fut fu f
BookOwl
Scratcher
1000+ posts

The make your own code editor challenge.

Sounds like fun!

who needs signatures
IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

BookOwl wrote:

Sounds like fun!
I know I am having a lot of fun!

Because JS is the future (echos) future future futur futu fut fu f
IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

OK my IDE is a WIP but here it is so far. BTW it is called IcyIDE

Features:

Simplistic look
Preview mode
Plugins
Javascript console for simple testing
Hackable

Coming soon:

Options having a GUI rather than being forced to code the options
Themes
File chooser
Package with Electron
Full-screen option
Addition and removal of tabs
Faster loading

http://output.jsbin.com/ponolurubi

Last edited by IcyCoder (Jan. 7, 2017 02:09:09)


Because JS is the future (echos) future future futur futu fut fu f
gtoal
Scratcher
1000+ posts

The make your own code editor challenge.

I started a screen editor a few years back but got sidetracked. I'ld like to finish it…

WIP: http://www.gtoal.com/vide/

Like emacs, it works by initially having no keys bound at all. Then you build commands out of a set of primitives that have command-line equivalents, eg ‘r’ to move right, which you then bind to the cursor-right key. You can then rebind keys to longer sequences which can use the same key while learning, to get the previous definition. You can use the programmablity to do things like program the enter key to indent to the level of the line above.

So all screen editing has a direct 1:1 correspondence with command-line equivalents, which means you can log a session and then reuse the commands as macros to perform similar edits in the future.

the command-line part is in http://www.gtoal.com/vide/ecinner.h and the screen driving is in http://www.gtoal.com/vide/vide.c

Since my windows PC is in a terminal state at the moment I'll have to work on Linux…

G
TheMonsterOfTheDeep
Scratcher
1000+ posts

The make your own code editor challenge.

I always wanted to make a text editor in curses, but I never did so. Maybe now would be a good time.

Of course, it wouldn't work on Windows. I suppose the first order of business would be to write a wrapper for the Windows command-line API and curses so that it would work everywhere. I know that some people have attempted to write a curses library for Windows, but so far I haven't been able to get any of those to work…

my latest extension: 2d vector math
DatOneLefty
Scratcher
1000+ posts

The make your own code editor challenge.

It isn't an IDE, but it is the best online Text Editor
https://captainwebservices.com/scratch/1110.html


Scratch data available at ScratchDB (Status)

Posts: bf97b44a7fbd33db070f6ade2b7dc549 (btw i use arch)
gtoal
Scratcher
1000+ posts

The make your own code editor challenge.

TheMonsterOfTheDeep wrote:

I always wanted to make a text editor in curses, but I never did so. Maybe now would be a good time.

Of course, it wouldn't work on Windows. I suppose the first order of business would be to write a wrapper for the Windows command-line API and curses so that it would work everywhere. I know that some people have attempted to write a curses library for Windows, but so far I haven't been able to get any of those to work…

I have, though it was some time ago. Just a case of fining the right library that's compatible with the compiler you're using.

I'ld have been able to point you right at it if my hard drive hadn't died last week :-(
TheMonsterOfTheDeep
Scratcher
1000+ posts

The make your own code editor challenge.

gtoal wrote:

Just a case of fining the right library that's compatible with the compiler you're using.
That's probably the main problem - I've never bothered to get any better compiler than tcc.

my latest extension: 2d vector math
gtoal
Scratcher
1000+ posts

The make your own code editor challenge.

TheMonsterOfTheDeep wrote:

gtoal wrote:

Just a case of finding the right library that's compatible with the compiler you're using.
That's probably the main problem - I've never bothered to get any better compiler than tcc.

there's a good chance it was this one: http://pdcurses.sourceforge.net (It was the only curses implementation I had noted in an old copy of my bookmarks that I saved on my web site)

If any source tweaking was needed it would have been minor.

And I used tcc and lcc back in those days - never MS C - so there's a good chance it'll stll work with whichever of those compilers it worked with back then because neither tcc nor lcc have been significantly updated for years.

G
NickyNouse
Scratcher
1000+ posts

The make your own code editor challenge.

Imma do one
IcyCoder
Scratcher
1000+ posts

The make your own code editor challenge.

NickyNouse wrote:

Imma do one
Cool

Because JS is the future (echos) future future futur futu fut fu f
Sigton
Scratcher
1000+ posts

The make your own code editor challenge.

BKFighter wrote:

I know this is going to be the dumbest entry here but this fits all my needs basically.
data:text/html,<h1>The BKFighter Simple Text Editor</h1><input style="height:100%;width:100%"></input>
Paste into URL to use
Features
-You can type in it
-Highly customizable
-If your school blocks the URL you just need to change a few characters to unblock it.

Honestly I'm that guy that doesn't care what the editor looks like or does, but I'd still be interested to see some other people's examples.
My favourite feature is that you can't do newlines It'd work for codegolfing languages I suppose…

I might make one, if not I'll probably just submit my PigeonScript IDE that I made a couple of months ago, since that kinda works

Sigton


Powered by DjangoBB

Standard | Mobile