On Sun 12 Jan 2020 at 06:59:07 (-0600), Richard Owlett wrote: > I'm attempting to understand a shell script. > Pluma is apparently highlighting it based on the file extension (which > is 'sh'). > > I thought I understood what its highlighting meant. > I didn't ;{
Then you might start at https://en.wikipedia.org/wiki/Syntax_highlighting for a summary. > I attempted to do a web search and got primarily hits on people > wishing to add highlighting which Pluma does not provide by default. This appears either to contradict your second statement, or you've been using a system that *does* provide it. Which? assuming you now know what syntax highlighting is. Syntax highlighting is complemented by indentation. Whereas the former is normally imposed on the source when the editor opens the file, indentation is normally contained as part of the source code. The implication is that, for conforming code, the highlighting should be correct, but the indentation could be absent or completely wrong. Editors usually have commands to reindent regions of code or the whole buffer, so perhaps start by doing that. > I am NOT interested in adding any new features. > What are the default rules for a file with extension 'sh'? No idea. I take these things as they come, and then tweak them (perhaps). Someone mentioned Python. Don't touch any indentation in Python programs, because it is meaningful not cosmetic: changing the indentation is like adding/removing braces in other languages. Cheers, David.