Author Topic: Micro Terminal Editor  (Read 5205 times)

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Micro Terminal Editor
« 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.


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

Homepage

AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 3598
    • ScriptBasic Open Source Project
Re: Micro Terminal Editor
« Reply #1 on: March 25, 2019, 11:11:20 PM »
Does it run on the RPi and allow custom syntax highlighting?

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Micro Terminal Editor
« Reply #2 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...

Offline John

  • Forum Support / SB Dev
  • Posts: 3598
    • ScriptBasic Open Source Project
Re: Micro Terminal Editor
« Reply #3 on: March 26, 2019, 12:49:44 AM »
It seems to lean towards Lua for scripting.

I like JED more as a console editor.
« Last Edit: March 26, 2019, 02:44:16 AM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Micro Terminal Editor
« Reply #4 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.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Micro Terminal Editor
« Reply #5 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.

Offline John

  • Forum Support / SB Dev
  • Posts: 3598
    • ScriptBasic Open Source Project
Re: Micro Terminal Editor
« Reply #6 on: March 26, 2019, 02:30:44 PM »
My focus is a web UI with sbhttpd.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: Micro Terminal Editor
« Reply #7 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.

Offline John

  • Forum Support / SB Dev
  • Posts: 3598
    • ScriptBasic Open Source Project
Re: Micro Terminal Editor
« Reply #8 on: March 26, 2019, 05:16:58 PM »
Wow!

That looks great AIR.