Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently I discover a power of MC to view/edit certain types of file. For example this:

    View=%view{ascii} tmp=%p; javap -c ${tmp%%.class}

from ~/.mc/bindings take me brief look for Java class methods/fields by pressing F3. But it is hard to look when all code use same colors. I would like to see keywords and types highlighted in some form.

Is it possible (and how) make user customization for syntax highlighting in build-in Midnight Commander editor/viewer (by regex)?

share|improve this question

1 Answer 1

Can't say anything about colours, but the binding needs to be updated to view class files within a jar:

     View=%view{ascii} tmp=%f; xyxy=${tmp##*/}; javap -classpath ${tmp%/*.class} -c ${xyxy%.class}
share|improve this answer
Sorry but you just copy what I write by myself (( –  gavenkoa Oct 20 '12 at 17:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.