Mark up files & directories

(This is a specific subset of the mixed changes in #403.)