I usually use minted to display highlighted source code. But it seems as if minted would not support Java bytecode (see list of supported languages).
How can I insert highlighted java bytecode?
(Is there perhaps another "language" that has a similar instruction set? Does listings have an option for bytecode? Has somebody manually created a highlighting file for minted/listings?)
listings
is easier than writing a new lexer forpygments
. It is a matter of adding the appropriate keywords on different lists:\keywords=[1]{iconst,iload,iconst}
,\keywords[2]={goto,return}
, etc... Each keyword type can be highlighted differently usingkeywordstyle=[1]{\color{blue}}
and so on.