The highlighting lexers are from the Lexilla project https://github.com/ScintillaOrg/lexilla.

The bash lexer has only one wordlist which is used by Geany for bash keywords https://github.com/geany/geany/blob/8d97d8f15dda2f9691232820bb6814162fb2473e/data/filedefs/filetypes.sh#L20

If someone made a PR to add the built-in commands to that list it might be accepted, that would get read and echo highlighted the same as if fi etc.

There are a number of properties that can be set to control the bash lexer, but the only documentation is in the lexer code https://github.com/ScintillaOrg/lexilla/blob/8cb77313b92c556a7e757c6667de5359e320701d/lexers/LexBash.cxx#L212

You might try setting some of those.

Otherwise improvements to the highlighting lexer can be contributed to the Lexilla project.

Cheers
Lex


On Tue, 12 Mar 2024 at 17:03, Wellington Almeida via Users <users@lists.geany.org> wrote:
Hello, I decided to attach one in order to facilitate understanding, you can observe the difference in the syntax coloring between the two editors in Vim until the variable receives coloring?
Captura de tela_2024-03-11_17-25-44.png

Em dom., 3 de mar. de 2024 às 07:58, Lex Trotman via Users <users@lists.geany.org> escreveu:
Not sure what you mean by colour in "bash commands"

The highlighting is of the bash syntax, eg if fi for done quoted
strings etc, so those types of items will be what is highlighted. But
if you mean lines that run executable commands then the list of
executables on any system is not fixed and nothing the highlighting
lexers could know, but syntactic items that are part of the command
(like strings) should be highlighted.

But note the highlighting lexer is not bash, some fancy bash code
might confuse and break the highlighting.

On Sun, 3 Mar 2024 at 19:13, Wellington Almeida via Users
<users@lists.geany.org> wrote:
>
> Hello, how can I make there be color in bash commands in shell script? Do the commands display without a highlighted color?
>
> --
> Wellington Almeida
> Rio de Janeiro - Brasil
> _______________________________________________
> Users mailing list -- users@lists.geany.org
> To unsubscribe send an email to users-leave@lists.geany.org
_______________________________________________
Users mailing list -- users@lists.geany.org
To unsubscribe send an email to users-leave@lists.geany.org


--
Wellington Almeida
Rio de Janeiro - Brasil
_______________________________________________
Users mailing list -- users@lists.geany.org
To unsubscribe send an email to users-leave@lists.geany.org