Emacs Org Mode code blocks with and without colors
Emacs Org Mode code blocks with and without colors Table of Contents 1. Coloring the code blocks in Emacs Org Mode 2. How to install the htmlize library 3. Colored Code Examples 3.1. First example: HTML code with and without colored syntax. 3.2. Second example: LaTeX code with and without colored syntax. 3.3. Third example: Ruby code with and without colored syntax. Figure 1: Photo by Sharon Pittaway on Unsplash 1 Coloring the code blocks in Emacs Org Mode Emacs Org Mode is an excellent environment to develop any kind of argument. If you need to display blocks of source codes in Org Mode, it may be very useful to know that there are two basic versions for displaying them. The first one is the monochromatic visualisation mode. In order to obtain this visualisation you must just wrap your code block into the tags #+BEGIN_SRC and #+END_SRC . This is already a good way of displaying source codes. But you can get a prettier look by...