Code block syntax highlighting per group basis

Is there a way to make code block syntax highlighting more convenient for a bunch of code blocks of the same syntax?
For example to make groups of code blocks in a document follow the same syntax highlighting style without having to explicitly define it on every code block?

My suggestion would be this to be done with a flag to indicate which group needs the same syntax highlighting. (I do question if this is possible without impacting much of the document rendering.)

Here is a visual example of a group -grp flag:

code blocks below this code block flag will be all powershell syntax highlighting

  
```powershell-grp
dir
```
```
dir *.zip
```

code blocks below this code block flag will be all bash syntax highlighting

  
```bash-grp
ls
```
```
ls -a
```

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.