Use LaTeX Listings to correctly detect and syntax highlight embedded code of a different language in
- by D W
I have scripts that have one-liners or sort scripts from other languages within them. How can I have LaTeX listings detect this and change the syntax formating language withing the script? This would be especially useful for awk withing bash I believe.
Bash
#!/bin/bash
... # usage message to catch bad input without invoking R
... # any bash…