I have written papers where code snippets are used much as one often uses equations: that is, a few lines of code are treated as a "display" block that should be part of the flow of the document, but separate from the paragraphs surrounding them. They are then followed by an explanation of the terms in that snippet. This is particularly useful when writing papers about software libraries, either to explain functionality or to illustrate how mathematical ideas map to the usage of library functions.
I'm trying to do this in LaTeX, and would like the code snippets to have syntax highlighting. My question is: What tools to accomplish this are supported by various journals relevant to computational chemistry/chemical physics/matter modeling?
To illustrate the problems I hope to avoid, this question comes from an experience I had in publishing a pair of papers that were very code-focused. We had used
minted for nice, syntax-highlighted code. When we got to proofs, our code snippets had been treated as floating images that were then grouped together. Imagine grouping all the display equations in a paper -- the text where the display block was supposed to be becomes unintelligible. Additionally, because they were images, code snippets were also of all different sizes, and any change in proofs was like changing an image (i.e., we couldn't just say, "add a comma there," because they couldn't edit the text). It took months of iterating on the proofs before the PDF/print versions looked okay. Even after that, the HTML rendering of the article is pretty bad. So I would say that
minted is not well-supported by JCTC (at least, as of 2018/2019 when that paper was published).