I would like to know how you can syntax highlighting in a LaTex document for codes.
An example of such document is this guide about a Pyhton library and Page 9.
Perhaps, the document is not built by LaTex. Perhaps, by Markdown and with some addons.
|
I would like to know how you can syntax highlighting in a LaTex document for codes. An example of such document is this guide about a Pyhton library and Page 9. Perhaps, the document is not built by LaTex. Perhaps, by Markdown and with some addons.
| |||
feedback
|
|
I'm guessing that you can look at Prettify. You might be able to create a custom CSS file for LaTeX and get Prettify set up for it... http://code.google.com/p/google-code-prettify/ I use this plug-in on my website: http://rsolberg.com/ViewBlog/2 StackOverflow also uses it! | |||
|
feedback
|
|
The listings package is one way to include syntax-highlighted source code listings in a LaTeX document. For other options, see the relevant entry in the TeX FAQ. | |||||
feedback
|