Is it possible to enable syntax highlighting for most popular scripting languages in this context (python, lua, javascript) and bash for a faster understanding? In addition it would be nice to highlight ffmpeg arguments, but I don't know if this is possible at all...
Yeah, it's enabled!
Based on this post: What is syntax highlighting and how does it work? we have to explicitly override the highlighting via html comment like:
<!-- language: lang-or-tag-here -->
code goes here
python
<!-- language: lang-py -->
while True:
n = raw_input("Please enter 'hello':")
if n.strip() == 'hello':
break
javascript
<!-- language: lang-js -->
var a = 3;
while( !(a < 0)){
alert("hello");
a--;
}
lua
<!-- language: lang-lua -->
local i = 1
while a[i] do
print(a[i])
i = i + 1
end
bash
<!-- language: lang-bash -->
ext=mp4
for f in /some/dir/*.$ext; do
new=${f/%.$ext/-rotated.$ext};
ffmpeg -i "$f" -vf transpose=2 -c:a copy -metadata:s:v rotate="" "$new"
done