AllBASIC

BASIC Developer & Support Resources => Toolbox => Topic started by: AIR on March 25, 2019, 11:07:23 pm

Title: Micro Terminal Editor
Post by: AIR on March 25, 2019, 11:07:23 pm
I do a lot of my coding via a ssh session, and just started using the Micro terminal editor.

Some would say I should just use VIM, but while I've used it I wanted something lighter, single binary, and cross platform.

(https://micro-editor.github.io/screenshots/micro-atom-dark.png)

It has different themes, supports cut/paste, mouse, and some other stuff.

Homepage (https://micro-editor.github.io/)

AIR.
Title: Re: Micro Terminal Editor
Post by: John on March 25, 2019, 11:11:20 pm
Does it run on the RPi and allow custom syntax highlighting?
Title: Re: Micro Terminal Editor
Post by: AIR on March 25, 2019, 11:19:29 pm
Yes, it runs on the Pi.

To add custom highlighting, you will probably need to recompile it (it's a GO app).

It supports a bunch of languages out of the box already...
Title: Re: Micro Terminal Editor
Post by: John on March 26, 2019, 12:49:44 am
It seems to lean towards Lua for scripting.

I like JED more as a console editor.
Title: Re: Micro Terminal Editor
Post by: AIR on March 26, 2019, 06:04:38 am
For the languages that I code in, JED is too limiting.  Plus full mouse support only seems to work in Linux, since you need gpm for the mouse.

JED doesn't do Go, Nim, Powershell, C#, and others that I use.  So while it may be cross platform, it's not especially cross language out the box.

AIR.
Title: Re: Micro Terminal Editor
Post by: AIR on March 26, 2019, 02:24:07 pm
To add custom highlighting, you will probably need to recompile it (it's a GO app).

I looked into this a bit more, and you don't need to recompile in order to add new syntax files.

You would store them in ~/.config/micro/syntax

I'm going to give creating a syntax file for MBC a go.  I created one for VSCode, so hopefully this should be simpler since the syntax files are in .yaml format....and loosely follow the syntax used by the NANO editor....

AIR.
Title: Re: Micro Terminal Editor
Post by: John on March 26, 2019, 02:30:44 pm
My focus is a web UI with sbhttpd.
Title: Re: Micro Terminal Editor
Post by: AIR on March 26, 2019, 04:58:44 pm
My focus is a web UI with sbhttpd.

That's fine.

Attached is MBC code inside of the Micro Editor.

AIR.
Title: Re: Micro Terminal Editor
Post by: John on March 26, 2019, 05:16:58 pm
Wow!

That looks great AIR.