3

Is there any other document creator software other than TeX (word processor, DTP, webapp etc.) that can include syntax highlighted source code in a number of programming languages?

For me it seems like a very unique feature to TeX, that without using an external tool (formatter website+copypaste, IDE+copypaste, separate executable, commercial plugin) you can include syntax-highlighted source code.

I'm specifically asking for software with the primary purpose of creating written documents (articles, books etc.), but with the ability to include syntax highlighted source code snippets. I'm aware of the following solutions:

  • LaTeX + listings or similar package
  • LaTeX + pygments python library + texments/verbments/minted/pygmentex package
  • Word processor + copypaste from an IDE/editor
  • Word processor + copypaste from a website such as http://www.tohtml.com
  • Word processor + some kind of plugin

From this list only the first option is completely implemented in LaTeX, while the others use at least 2 programs, one for the document editing and another for the highlighting. What I want to verify is the suspicion that LaTeX is the only way to create a document with code snippets without invoking external programs.

closed as off-topic by StrongBad, Martin Schröder, Claudio Fiandrino, Guido, mafp Oct 19 '13 at 14:58

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What is the workflow for the doc creation? Most editors notepad++ etc. has code highlighting capabilities and you can print it as is with PDF printer(I guess). But that doesn't feel like what you are asking. – percusse Oct 18 '13 at 18:37
  • 1
    pygments is a generic syntax highlighter which supports a lot of languages; minted uses it under the hood. :) – Paulo Cereda Oct 18 '13 at 18:50
  • And, of course, pandoc — which uses LaTeX for PDFs but can also create other formats like HTML with syntax highlighting. – DG' Oct 18 '13 at 18:55
  • start using VI. See blog.sanctum.geek.nz/unix-as-ide-editing for how to use VI as an IDE. – codeAndStuff Oct 18 '13 at 19:35
  • 4
    This question appears to be off-topic because it is explicitly asking for a program that is NOT TeX. – StrongBad Oct 19 '13 at 13:27