From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Styling HTML output Date: Fri, 26 Aug 2011 22:07:52 +0000 Message-ID: References: <3799.1314386770@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_002_CA7D8285455A2kenwilliamsthomsonreuterscom_" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx4ZM-0001Au-Ti for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qx4ZL-0000cF-2T for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:08:08 -0400 Received: from mailout2-trp.thomsonreuters.com ([163.231.6.26]:18963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qx4ZK-0000c3-UI for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 18:08:07 -0400 In-Reply-To: <3799.1314386770@alphaville.americas.hpqcorp.net> Content-Language: en-US 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: nicholas.dokos@hp.com Cc: bzg@altern.org, emacs-orgmode@gnu.org --_002_CA7D8285455A2kenwilliamsthomsonreuterscom_ Content-Type: text/plain; charset="us-ascii" Content-ID: <43B433EAB2F6DB4490705EE40DB57DA9@local> Content-Transfer-Encoding: quoted-printable On 8/26/11 2:26 PM, "Nick Dokos" wrote: >Two things: > >o application/octet-stream is not the right MIME type for the > attachment.[...] > >o Presumaby the following should say
:[...]
>


Thanks, I think this update is better.  Unfortunately I don't think my
mailer (stupid Outlook) can change the attachments, so I'll inline it here.



>From c3fd3627d6f912fe1108eff1fc2893ff6c4631bb Mon Sep 17 00:00:00 2001
From: Ken Williams 
Date: Fri, 26 Aug 2011 13:45:44 -0500
Subject: [PATCH] Add an entry for code-output styling in HTML/CSS.

---
 org-hacks.org |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/org-hacks.org b/org-hacks.org
index 6c926a0..754d1a8 100644
--- a/org-hacks.org
+++ b/org-hacks.org
@@ -1618,6 +1618,34 @@ workaround, one can use the following:
   ,#+LATEX: }
 #+end_src
=20
+*** Styling code sections with CSS
+
+Code sections (marked with =3D#+begin_src=3D and =3D#+end_src=3D) are expo=
rted
+to HTML using =3D
=3D tags, and assigned CSS classes by their content
+type.  For example, Perl content will have an opening tag like
+=3D
=3D.  You can use those classes to add styl=
ing
+to the output, such as here where a small language tag is added at the
+top of each kind of code box:
+
+#+begin_src lisp
+(setq org-export-html-style
+ "")
+#+end_src
+
+Additionally, we use color to distinguish code output (the =3D.example=3D
+class) from input (all the =3D.src-*=3D classes).
+
 * Hacking Org: Working with Org-mode and other Emacs Packages.
 ** org-remember-anything
=20
--=20
1.7.5






--
Ken Williams
Senior Research Scientist
Thomson Reuters
http://labs.thomsonreuters.com



>


--_002_CA7D8285455A2kenwilliamsthomsonreuterscom_
Content-Type: application/octet-stream;
	name="0001-Add-an-entry-for-code-output-styling-in-HTML-CSS.patch"
Content-Description: 0001-Add-an-entry-for-code-output-styling-in-HTML-CSS.patch
Content-Disposition: attachment;
	filename="0001-Add-an-entry-for-code-output-styling-in-HTML-CSS.patch";
	size=1844; creation-date="Fri, 26 Aug 2011 22:07:51 GMT";
	modification-date="Fri, 26 Aug 2011 22:07:51 GMT"
Content-ID: <4340869492415C449809E19D448A6466@local>
Content-Transfer-Encoding: base64

RnJvbSBjM2ZkMzYyN2Q2ZjkxMmZlMTEwOGVmZjFmYzI4OTNmZjZjNDYzMWJiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBLZW4gV2lsbGlhbXMgPGtlbi53aWxsaWFtc0B0aG9tc29ucmV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