When highlighting a standard file at a known location I'd like to put the file name in the code block; preferably at the top. A hypothetical example would be
{% highlight apache show_filename=/etc/httpd/conf/httpd.conf %}
.... the file contents ....
{% endhighlight %}
which would then render a code block with a filename prefixed. Is there a way to accomplish this?
Another, a bit nicer solution which will work with kramdown:
And in you .css file you can make it look nice with your code snippet, for example like this:
Here you can find more info about this kramdown feature.
You can simply use the nice html5 figure tag.