From what I read here, and here; I expected there would be syntax highlighting for Dockerfile
files.
But I've tried it to apply highlighting to one answer of mine here, but it never shows.
I've tried using both docker
and dockerfile
as language hints, with the same (lack of) results.
(Just realized that on the question the asker attempted it using Dockerfile
as language hint, but again, no visible results).
After helpful prodding by rene, I realized that the language is not currently supported from the list that's posted within the corresponding post in uber-meta.
Following advice from zcoop98, I've also tried using lang-dockerfile
and lang-docker
, but the results appear to be hit-and-miss:
But maybe that's the intended result, and my expectations are the problem.
This is now a request that this highlighting is enabled, and if it's actually enabled and what I see when using lang-docker
is what we got... well, to see if we can get anything better than that.
We have hats. Now we need more variously coloured source-code files.
lang-dockerfile
produces some highlighting. Not a particularly nice one, though.lang-sh
. That doesn't highlight the Docker keywords, but it's definitely less random than the default.