Pocket Lua: Text Editor & Lua Interpreter

Note: My old username was dispeller. I go by ToldFable now.
http://toldfable.com/

I previously made a post on How to run Lua using Atom text editor.

While it’s cool to run Lua using Atom, there are a lot of steps to get things working.
Not only that but I got reports of things going wrong.
Troubleshooting is fun, but what if there was a better option?

Introducing Pocket Lua!

A quick and easy way to execute Lua code.


Pocket Lua is an app built using Electron and a series of other JavaScript libraries.
The two main libraries used are CodeMirror and Lua.vm.js. CodeMirror provides a very nice text editor and Lua.vm.js provides a Lua executor. I do not take credit for these individual components, I simply put these open sourced libraries together with an intuitive Ui.

EzUi is another library which was used in this project. I wrote EzUi in an attempt to make it easy to create HTML elements. EzUi is still in beta.

Features

  • Built in Lua Executor (lua.vm.js feature)
  • Works offline / without internet
  • Quick to open
  • Syntax highlighting (CodeMirror feature)
  • Multi-line typing (CodeMirror feature)
  • Open files
  • Save files
  • HTML formatting for text color and what not
  • Random fun quotes
  • Resize text area and output with draggable middle vertical bar

Planned

  • Autosaving
  • More fun quotes
  • Making file size a tiny bit smaller
  • Font changing

Project updates dropped due to lack of interest.
Still a useful piece of software, I just won’t be updating it.


Download

https://drive.google.com/open?id=1M6eJXbJlivbKD_9SmlbbjWGbij75olCy


This is my first practical electron app.
I’d appreciate any feedback.

12 Likes

Why use Pocket Lua over other things?

3 Likes

For the simplicity.
It’s a simple executable.

It’s a text editor with a Lua executor built in.

2 Likes

Pretty interesting project, I’ll be sure to check it out later but I have one question; is this just a vanilla Lua executor or do you emulate Roblox’s Lua VM?

4 Likes

You might want to rename the program to ‘Lua Interpreter’ or something like that. Someone might mistake this for a cheat program, because ‘Lua Executor’ is commonly associated with cheat programs in the context of Roblox.

2 Likes

Pretty sure it’s vanilla since Lua.vm.js ports lua, not roblox’s lua.

3 Likes

Seems like a cool idea but I can’t stand that font :joy:

3 Likes

I don’t see the advantage of using this over i.e. Lua Interpreter - Scripting Helpers where it’s just a website you can access easily from anywhere. It’s a cool application, but it wouldn’t suit my needs.

3 Likes

@metryy It’s just vanilla Lua

@ForbiddenJ Done

@LordOfLuxury I’ll add font changing to the planned features

@1TheNoobestNoob The main difference is that this is intended to be a nice looking text editor.
I have an idea for an update that will make this more practical.

3 Likes

@dispeller How do I download if it won’t let me, it will say this.
“Pocket Lua App.download”

Sorry about that.
I don’t own a Mac so it’s a little “hit or miss” with packaging for Mac/Darwin.
I suspect the problem is with the file being read as a folder instead of a .app file.
I’ve updated it.
Did that fix it?

Version 2 should be sure to fix this issue.

This is really cool! I’ll be downloading this.

1 Like