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


<!-- language: lang-py -->
while True:
    n = raw_input("Please enter 'hello':")
    if n.strip() == 'hello':


<!-- language: lang-js -->
var a = 3;
while( !(a < 0)){


<!-- language: lang-lua -->
local i = 1
while a[i] do
  i = i + 1


<!-- language: lang-bash -->
for f in /some/dir/*.$ext; do
    ffmpeg -i "$f" -vf transpose=2 -c:a copy -metadata:s:v rotate="" "$new"
  • Maybe we can come up with with the list of what needs to be added – v010dya May 4 '15 at 10:25
  • @Volodya Sounds great! My list is almost complete, but I could add more detail to scripting languages... I'm not an ffmpeg expert - could you please write the ffmpeg part? I will add it to my question, of course... Thanks. – p2or May 4 '15 at 11:33


Mods will still need to enable this on a per-tag basis, and I'm not completely certain that ffmpeg works as well as we'd like, but it has been enabled on the main site and meta.



Yes, it is possible, however it requires a CM to turn it on.

  • 1
    CM means Community Manager, ie a Stack Exchange employee. – AJ Henderson May 3 '15 at 19:02

Per discussion in the comments, here's my list of tools that should have their options added:

  • avconv
  • avidemux_cli
  • ffmpeg
  • ffmpeg2theora
  • mkvmerge
  • oggz-tools
  • transcode

I can help with full listing for avconv, oggz, and ffmpeg2theora. I can also do some basic things with ffmpeg (but i try to stay away from that community, so if somebody else wants to take over that job i'll be more than happy). Other tools i have used sufficiently to be able to generate a list looking at man pages where necessary.

What format should the options be in? Are we looking for a list of every potential option or do we need information about their potential order/interaction as well?

  • It's a flavour of Javascript, but After Effects expressions could be added to this list. There are unique expressions things like thisComp that would benefit from some syntax highlighting. – stib May 27 '15 at 5:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .