- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
19 -
Joined
-
Last visited
-
Days Won
6
LoganDark last won the day on September 29
LoganDark had the most liked content!
About LoganDark
-
Rank
Junior Member
Contact Methods
-
Minecraft
LoganDark
-
GitHub
LoganDark
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
kirkarr reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
AR2000AR reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
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!
-
After running that command you should be able to just run `shedit <file>` and be brought to the editor, just like `edit`.
-
Have you installed OpenOS first?
-
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 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!
-
ZefTheFox reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
Ta©ti Tac0Z reacted to an answer to a question: Efficient way of drawing syntax highlighting
-
Okay, thank you! I searched everywhere for some sort of double buffering API, but couldn't find it on the forums. I'll be sure to check it out
-
LoganDark changed their profile photo
-
I'm working on a new text editor (from scratch) that will do syntax highlighting on Lua code. I have a proper lexer all ready to go and I'm ready to start on the actual application, but I don't want to skimp on one of the best features: syntax highlighting! I'm looking for a quick and efficient way of drawing syntax highlighting, aka multicolored text. I'm not sure if there's anything more efficient than gpu.setForeground then gpu.set repeatedly, but if there is, I'd like to know! And if there isn't, I'd also like to know.
-
rick3333 reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
Thanks, I'm actually planning on recreating it from scratch soon! ;3
-
rater193 reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
Trealin reacted to a post in a topic: ShEdit - edit.lua, but with syntax highlighting
-
The GPU does have a tough life. Very tough life. 3/10 IGN. you would get rid of tabs? How rude! Tabs are people too, you know! /s
-
lua How can I store each line of a file in an array in Lua?
LoganDark replied to Occhioverde's question in Programming
Molinko's solution is simpler, probably faster, and probably also more efficient. Just saying. -
lua How can I store each line of a file in an array in Lua?
LoganDark replied to Occhioverde's question in Programming
It's "Lua", not "LUA". To read an entire file, use something like this: To split it into lines (I could probably do this better with patterns, but it works): And, looking at PIL, there's a function called table.remove. "The table.remove function removes (and returns) an element from a given position in an array, moving down other elements to close space and decrementing the size of the array." So just call table.remove(lines, 1). That should get you every line from 2 onwards. You should know how to do the rest. Molinko's solution is simpler, probab -
Feel free, just make sure to give me credit if you base it off of my code!
-
To install: pastebin get 3up32qD5 /bin/tellraw.lua This is my tellraw program, which can be used in combination with the debug card to make Result: You may ask, how does the program work? It's pretty simple and easy, really. Whatever you type will be inserted into the text input. Even keys like tab and enter insert their respective characters (represented in the text box as small symbols like ). You can change the color by clicking on one of the 16 colors. The arrow points to the currently selected color. The quit button does just that, and the run button broadcasts th
-
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
-
If you're going to be rewriting it, my honest feedback would be I prefer the original Monokai colors, your editor looks like the colors are close enough but not quite