I have a file open in Emacs which highlights the syntax and I want to share the file (with syntax highlighting) with another person who does not use Emacs.
Is it possible to export the file open in Emacs with syntax highlightning?
Any target format is ok: e.g. HTML, PDF, Image
You can use the command
M-x htmlfontify-bufferto create an html file with syntax highlighting from any buffer.It’s included in standard Emacs, definitely in version 24, I’m not sure about 23.