Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does netbeans support coloring for .sh (bash) scripts?

I use netbeans 6.8 beta and when i load .sh (bash) file it's not colored at all. i can add a new file association for the .sh extension but it doesn't seem that there is a known associated mime type.

like image 845
ufk Avatar asked Oct 28 '09 11:10

ufk


People also ask

Is it able to run bash scripts on sh shell?

Using bash command to run the script. We can also use sh to run the script as it will direct to the default shell in the setup environment. Using the sh command to run the bash script. From the above example, we were able to run a bash script using bash as well as the sh command.

Are bash and shell scripts the same?

Shell scripting is scripting in any shell, whereas Bash scripting is scripting specifically for Bash. sh is a shell command-line interpreter of Unix/Unix-like operating systems. sh provides some built-in commands. bash is a superset of sh.

What extension is used for bash scripts?

Normally, a Bash script file has . sh extension to make it clear that it is a shell script file.


1 Answers

I have not tried this myself but you can get shell script support in Netbeans if you install the C/C++ plugin.

like image 150
Rahul Avatar answered Sep 20 '22 11:09

Rahul