Hello, how can I make there be color in bash commands in shell script? Do the commands display without a highlighted color?
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
The highlighted color that I talk about are in addition to the Shell syntaxes such as If and others are those of bash such as echo, cd, etc. I will send an image as soon as I can But an example would be this echo "hello" the command is highlighted in the syntax
Em dom, 3 de mar de 2024 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
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? [image: 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
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...
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/8cb77313b92c556a7e757c6667de535...
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? [image: 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
On Mon, 2024-03-11 at 17:29 -0300, Wellington Almeida via Users 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
This is as it should be. Geany's shell syntax highlighting is simply less colorful here. Some things you can change by creating a custom filetype: file:///usr/share/doc/geany/html/index.html#toc-entry-197
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