From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: How to optionally export source blocks to HTML as only black-and-white? Date: Sun, 28 Sep 2014 18:19:13 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYNkS-0002xx-Gh for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYNkN-0004BA-Mm for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:19:24 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:45882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYNkN-0004Ax-Hq for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:19:19 -0400 Received: by mail-ob0-f169.google.com with SMTP id uz6so2254627obc.14 for ; Sun, 28 Sep 2014 16:19:13 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Good evening, It is great being able to export documents either to ASCII or HTML or PDF. When I want to export to HTML, sometimes I want code blocks to be black and white and sometimes I want the syntax highlighting to be the same as in Emacs. For the latter, `htmlize' does all of the work. For the former, I am stuck. I am not sure how to do it. It looks like coming up with a custom style-sheet might do it, but that is probably wrong. One option I've been considering is to change the color theme before exporting, and I will try that. Question: what is the best way to produce black and white pre blocks for source code in export to HTML? Kind regards, --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson