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!

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...
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

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!

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?

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?

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`.

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!

Link to post
Share on other sites

Please use unicode.len and unicode.sub instead of string sub and len

i found something wrong near integers after unicode string

when you write: "цвет&9синий"

you got on screen: "цвет& [ margin about 5 characters before int ] 9синий"

but its only visual bug

and sure please implement `select all` and `clear` funcs

 

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.