Where can I find the sh syntax coloring of BBedit ?

436 views
Skip to first unread message

Peace Keeper

unread,
Dec 30, 2020, 5:20:18 AM12/30/20
to BBEdit Talk
I am using zsh as my favourite shell. So I want to check how and which words are highlighted by bbedit. When I understand it right, the sh language is a build in language ?
So is there any possibility to see what keywords and syntax is supported by bbedit for sh ( to extend that later also to zsh )

When I am correct then is the  Module documentation (of shebang menu) only for Perl ? Is it a possibility to extend that to other languages ( like zsh ) ?

Greg Raven

unread,
Dec 30, 2020, 8:21:55 AM12/30/20
to BBEdit Talk
My guess is that it would be under the Text Colors section of BBEdit preferences.

Peace Keeper

unread,
Dec 30, 2020, 8:32:00 AM12/30/20
to BBEdit Talk
Hi Greg,
sorry to say it's not :D There you could select the colors you would like to assign e.g. a comment or a string. But a) there is no folder for sh or shell languages and b) there are no keywords mentioned ( e.g. '#' is a keyword for a comment )
In the Languages section of the preference you could see that for the Unic Shell Script a 'sh' extension is used as default and the version of the language module. But you can't drill into the module itself.


Peace Keeper

unread,
Dec 30, 2020, 8:45:53 AM12/30/20
to BBEdit Talk
... one addition: I also opened the Content of BBEdit.app and have found *.txt files for Fortran , C ... etc - but not for shell keywords

Greg Raven

unread,
Dec 30, 2020, 8:51:10 AM12/30/20
to BBEdit Talk
And yet, when you create an .sh or .zsh file, BBEdit colorizes it, so there must be definitions somewhere.

Peace Keeper

unread,
Dec 30, 2020, 8:52:38 AM12/30/20
to BBEdit Talk
ok, second addition and solution: it is inside the App under Plugins as a BBedit Language Module. In Addition to a run-time, there are two txt files with Keywords and Predefined Names.
Reply all
Reply to author
Forward
0 new messages