Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
LoganDark

ShEdit - edit.lua, but with syntax highlighting

Recommended Posts

I decided to make an editor with syntax highlighting, just for the fun of it.

The name stands for "syntax highlighting editor", it's very unoriginal, but I'm bad at names :P

To use it, run this command on OpenOS: pastebin get ZnwyunqL /bin/shedit.lua

The color scheme was (sorta, I redid it later) copied from this paste.

Features:

  • Syntax highlighting!
  • Indent on enter
  • Line numbers
  • Jump to line
  • Hex colors are highlighted with the color they refer to (example: image.png.22be056833d7a7c6610d723fbd5a2be6.png)

And probably more in the future if I need them..

Screenshot:

f7041247ca.png

Any recommendations or comments are appreciated!

Share this post


Link to post
Share on other sites
1 minute ago, TuxMan20 said:

Like it! reminds me of Atom default scheme :D 

I'll install it and give it a go for sure!

It's just the Monokai color scheme, originally from Sublime Text.

Share this post


Link to post
Share on other sites
On 12/7/2017 at 9:10 AM, Slamakans said:

7j0Qqtx.png 

u've got some tabs there :o

I prefer working with tabs. Tab character support is on my to-do list. It'll (probably....) be implemented soon. For now, I just use Atom, an unlisted pastebin, and

pastebin run

to develop ShEdit :P 

Edited by LoganDark
Probably...

Share this post


Link to post
Share on other sites

Honestly, I haven't seen too many programs like this for OpenComputers. It seems really cool.The funny part is, for any Linux users your program could also mean Shell Editor (just a fun tip).

Share this post


Link to post
Share on other sites

This is pretty amazing!

Surely all the colors mean the GPU has a tough life, but this is 200% better than the default editor :)

I actually like it showing tabs as special characters, allows me to manually get rid of them :D

Share this post


Link to post
Share on other sites
3 hours ago, ManIkWeet said:

This is pretty amazing!

Surely all the colors mean the GPU has a tough life, but this is 200% better than the default editor :)

I actually like it showing tabs as special characters, allows me to manually get rid of them :D

The GPU does have a tough life. Very tough life. 3/10 IGN.

:o you would get rid of tabs? How rude! Tabs are people too, you know! /s

Share this post


Link to post
Share on other sites
3 hours ago, LordMZTE said:

Love it! but PLEASE add auto complete it would make programming so much easier

I would, but I have a long list of features I'd like to add. AST generation would be nice, but first I'd like to do some other stuff. Sorry I haven't gotten around to it yet!

Share this post


Link to post
Share on other sites

I can't instal this editor. I put the line "pastebin get ZnwyunqL /bin/shedit.lua" but nothing happen the code shows this: 

Usages:

pastebin put [-f] <file>

pastebin get [-f]  <id> <file>

pastebin get [-f]  <id> [<arguments>]

 

And nothing more happen.

 

Could you please help?

thanks

Share this post


Link to post
Share on other sites
2 hours ago, EderV said:

I can't instal this editor. I put the line "pastebin get ZnwyunqL /bin/shedit.lua" but nothing happen the code shows this: 

Usages:

pastebin put [-f] <file>

pastebin get [-f]  <id> <file>

pastebin get [-f]  <id> [<arguments>]

 

And nothing more happen.

 

Could you please help?

thanks

That's certainly not right. It says right in the usage "pastebin get <id> <file>". Are you sure your install isn't messed up?

Share this post


Link to post
Share on other sites
5 minutes ago, LoganDark said:

That's certainly not right. It says right in the usage "pastebin get <id> <file>". Are you sure your install isn't messed up?

I don't know, I'm pretty new with this mod of Open Computer. I just copy paste this in a simple computer.

Should I've done something before trying to install this?

Share this post


Link to post
Share on other sites
Just now, EderV said:

I don't know, I'm pretty new with this mod of Open Computer. I just copy paste this in a simple computer.

Should I've done something before trying to install this?

Have you installed OpenOS first?

Share this post


Link to post
Share on other sites

I already install OS from Floppy Disc

 

I writed  "/tmp# pastebin get ZnwyunqL /bin/shedit.lua" and It has downloaded yet but now I don't know hot to create a script that includes that editor

 

How can I create that?

Share this post


Link to post
Share on other sites
Just now, EderV said:

I already install OS from Floppy Disc

 

I writed  "/tmp# pastebin get ZnwyunqL /bin/shedit.lua" and It has downloaded yet but now I don't know hot to create a script that includes that editor

 

How can I create that?

After running that command you should be able to just run `shedit <file>` and be brought to the editor, just like `edit`.

Share this post


Link to post
Share on other sites

Thankyou so much. Now it's working.

Do you continue improving this "pluging" or you abandoned it?

 

PD: Nice job with this :)

Share this post


Link to post
Share on other sites
Just now, EderV said:

Thankyou so much. Now it's working.

Do you continue improving this "pluging" or you abandoned it?

 

PD: Nice job with this :)

Unfortunately I haven't worked on it in almost 2 years. I have a future editor planned but I also have a busy schedule.

I understand this is a really nice thing to have and I'd love to continue it, I just don't have the time or motivation at the moment.

Feel free to use it in its current state though, or modify/improve it!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.