Hi all
I've been making a FLTK editor with syntax highlighting for both "sh" and "bash".
Please refer to
editor4sh.
This editor is written from scratch with fluid and is working in progress.
It's similar to the current editor you find in Xprogs.tcz but more.
You'll see some extra menu items, such as "Shell", "Color", "Auto Indent".
The "Shell" menu let you choose your default shebang.
The default is empty string (-other).
Whenever you open a new empty file, the chosen shebang will be added automatically.
To set your default shebang from command prompt:
-shell #!/bin/sh
-bash #!/usr/bin/env bash
-other Other unknown shebang
The "Color" menu switch let you turn on/off the syntax highlighting.
The coloring style by default is POSIX sh.
It can be set to bash via the aforementioned "Shell" menu.
The "Auto Indent" menu switch enable/disable the indenting behavior.
When the new input is '\n' (one char only),
the spaces and tabs at the beginning of the line are copied to the next.
I learn C++ learn as a hobby.
I may have done something stupid without knowing it.
Anyway ~~
Feedbacks are welcomed