[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Printing colo(u)r syntax highlighting in Emacs (was: Copying syntax highlighting in Textpad to Word)
The recent talk of printing in colo(u)r syntax-highlighted code
prompted me to look up how to do it in my editor of choice (despite
rarely printing code out!!!).
Under *NIX systems, assuming you have syntax highlighting for whatever
you are using (for Stata this could come from Emacs Speaks Statistics
(http://ess.r-project.org/) or Bill Rising's ado-mode
can be achieved by using the ps-print-buffer-with-faces command. Thus
you go to the buffer you want to print and...
and it'll come off your colo(u)r printer with all the higlighting.
I can't comment on how to do this under Windows or Mac systems as I
don't have access to either, but I did find the following description
(albeit a rather convoluted route involving exporting to postscript
then converting to pdf) of how to achieve this using Emacs under a
Windows environment at...
"An intellectual is a person who has discovered something more
interesting than sex." - Aldous Huxley
Email - firstname.lastname@example.org / email@example.com
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
* For searches and help try: