all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Colorizing 'emacs-lisp' when it is exported?
@ 2013-12-22 16:03 Sharon Kimble
  2013-12-22 18:29 ` Jambunathan K
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-22 16:03 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org, help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Thanks to auntie google I've found out how to keep the formatting of
elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the beginning
of the code block, and '#+END_SRC' at the end. Whilst its in .emacs its
nicely colorized, but how do I colorize the output when its been
exported please? For once, google has drawn a blank, unfortunately!

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
  2013-12-22 16:03 Colorizing 'emacs-lisp' when it is exported? Sharon Kimble
@ 2013-12-22 18:29 ` Jambunathan K
  2013-12-22 18:48   ` Sharon Kimble
       [not found] ` <mailman.10075.1387736986.10748.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Jambunathan K @ 2013-12-22 18:29 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org


Sharon Kimble <boudiccas@talktalk.net> writes:

> Re: Colorizing 'emacs-lisp' when it is exported?

Search for htmlize or htmlfontify in the Org-mode and Emacs manuals.

> For once, google has drawn a blank, unfortunately!

Emacs is self-documenting.  If you are serious about using Emacs you
will ditch google (and even Emacswiki).



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
  2013-12-22 18:29 ` Jambunathan K
@ 2013-12-22 18:48   ` Sharon Kimble
  0 siblings, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-22 18:48 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]

On Sun, 22 Dec 2013 23:59:43 +0530
Jambunathan K <kjambunathan@gmail.com> wrote:

> 
> Sharon Kimble <boudiccas@talktalk.net> writes:
> 
> > Re: Colorizing 'emacs-lisp' when it is exported?
> 
> Search for htmlize or htmlfontify in the Org-mode and Emacs manuals.
> 
> > For once, google has drawn a blank, unfortunately!
> 
> Emacs is self-documenting. 

So I've discovered, install a package, and then click on it again and
it auto-generates a readme.txt file, and that was a big surprise!

> If you are serious about using Emacs you
> will ditch google (and even Emacswiki).
> 
I find it very useful to google error messages.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
       [not found] ` <mailman.10075.1387736986.10748.help-gnu-emacs@gnu.org>
@ 2013-12-22 18:52   ` Emanuel Berg
  0 siblings, 0 replies; 13+ messages in thread
From: Emanuel Berg @ 2013-12-22 18:52 UTC (permalink / raw)
  To: help-gnu-emacs

Jambunathan K <kjambunathan@gmail.com> writes:

>> For once, google has drawn a blank, unfortunately!
>
> Emacs is self-documenting.  If you are serious about
> using Emacs you will ditch google (and even
> Emacswiki).

In Emacs-utopia perhaps.

Emacs is not really "self-documenting". There is a
clever help mode that immediately gets access to the
Elisp docstrings, function prototypes, and more (and
this is made possible but the dynamic nature of
Emacs/Lisp).

*And* there are manuals included (shipped with Emacs,
or obtainable and then possible to integrate).

As for the included manuals, there is nothing amazing
about that, and that was very common before the
Internet: an on-line manual (i.e., a manual that wasn't
on paper) was shipped with the software.

This is all very practical and in combination with the
elaborate Emacs interface to access it all it makes for
a great thing, but not so great so you in general can
"ditch" Google (or the Internet) and be better off.

As always, it comes down to not only what it is, but
even more so how you use it.

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
  2013-12-22 16:03 Colorizing 'emacs-lisp' when it is exported? Sharon Kimble
  2013-12-22 18:29 ` Jambunathan K
       [not found] ` <mailman.10075.1387736986.10748.help-gnu-emacs@gnu.org>
@ 2013-12-22 19:00 ` Pascal J. Bourguignon
  2013-12-22 23:49 ` Sean O'Halpin
  3 siblings, 0 replies; 13+ messages in thread
From: Pascal J. Bourguignon @ 2013-12-22 19:00 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: emacs-orgmode

Sharon Kimble <boudiccas@talktalk.net> writes:

> Thanks to auntie google I've found out how to keep the formatting of
> elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the beginning
> of the code block, and '#+END_SRC' at the end. Whilst its in .emacs its
> nicely colorized, but how do I colorize the output when its been
> exported please? For once, google has drawn a blank, unfortunately!

I use htmlize-buffer (or htmlize-region) from htmlize.

-- 
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ?  C'est le moment d'acheter !"




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
  2013-12-22 16:03 Colorizing 'emacs-lisp' when it is exported? Sharon Kimble
                   ` (2 preceding siblings ...)
  2013-12-22 19:00 ` Pascal J. Bourguignon
@ 2013-12-22 23:49 ` Sean O'Halpin
  2013-12-23  0:07     ` Sharon Kimble
  3 siblings, 1 reply; 13+ messages in thread
From: Sean O'Halpin @ 2013-12-22 23:49 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org

On Sun, Dec 22, 2013 at 4:03 PM, Sharon Kimble <boudiccas@talktalk.net> wrote:
> Thanks to auntie google I've found out how to keep the formatting of
> elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the beginning
> of the code block, and '#+END_SRC' at the end. Whilst its in .emacs its
> nicely colorized, but how do I colorize the output when its been
> exported please? For once, google has drawn a blank, unfortunately!
>
> Sharon.

Have you set this?

    (setq org-src-fontify-natively t)

Regards,
Sean



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [O] Colorizing 'emacs-lisp' when it is exported?
  2013-12-22 23:49 ` Sean O'Halpin
@ 2013-12-23  0:07     ` Sharon Kimble
  0 siblings, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-23  0:07 UTC (permalink / raw)
  To: Sean O'Halpin; +Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

On Sun, 22 Dec 2013 23:49:04 +0000
"Sean O'Halpin" <sean.ohalpin@gmail.com> wrote:

> On Sun, Dec 22, 2013 at 4:03 PM, Sharon Kimble
> <boudiccas@talktalk.net> wrote:
> > Thanks to auntie google I've found out how to keep the formatting of
> > elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the
> > beginning of the code block, and '#+END_SRC' at the end. Whilst its
> > in .emacs its nicely colorized, but how do I colorize the output
> > when its been exported please? For once, google has drawn a blank,
> > unfortunately!
> >
> > Sharon.
> 
> Have you set this?
> 
>     (setq org-src-fontify-natively t)

No I haven't, but I have now. I'll have a further play with it tomorrow
I think. Thanks :)

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
@ 2013-12-23  0:07     ` Sharon Kimble
  0 siblings, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-23  0:07 UTC (permalink / raw)
  To: Sean O'Halpin; +Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

On Sun, 22 Dec 2013 23:49:04 +0000
"Sean O'Halpin" <sean.ohalpin@gmail.com> wrote:

> On Sun, Dec 22, 2013 at 4:03 PM, Sharon Kimble
> <boudiccas@talktalk.net> wrote:
> > Thanks to auntie google I've found out how to keep the formatting of
> > elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the
> > beginning of the code block, and '#+END_SRC' at the end. Whilst its
> > in .emacs its nicely colorized, but how do I colorize the output
> > when its been exported please? For once, google has drawn a blank,
> > unfortunately!
> >
> > Sharon.
> 
> Have you set this?
> 
>     (setq org-src-fontify-natively t)

No I haven't, but I have now. I'll have a further play with it tomorrow
I think. Thanks :)

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [O] Colorizing 'emacs-lisp' when it is exported?
  2013-12-23  0:07     ` Sharon Kimble
@ 2013-12-24 14:43       ` Sharon Kimble
  -1 siblings, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-24 14:43 UTC (permalink / raw)
  To: Sharon Kimble
  Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org, Sean O'Halpin

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

On Mon, 23 Dec 2013 00:07:22 +0000
Sharon Kimble <boudiccas@talktalk.net> wrote:

> On Sun, 22 Dec 2013 23:49:04 +0000
> "Sean O'Halpin" <sean.ohalpin@gmail.com> wrote:
> 
> > On Sun, Dec 22, 2013 at 4:03 PM, Sharon Kimble
> > <boudiccas@talktalk.net> wrote:
> > > Thanks to auntie google I've found out how to keep the formatting
> > > of elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the
> > > beginning of the code block, and '#+END_SRC' at the end. Whilst
> > > its in .emacs its nicely colorized, but how do I colorize the
> > > output when its been exported please? For once, google has drawn
> > > a blank, unfortunately!
> > >
> > > Sharon.
> > 
> > Have you set this?
> > 
> >     (setq org-src-fontify-natively t)
> 
> No I haven't, but I have now. I'll have a further play with it
> tomorrow I think. Thanks :)
> 
> Sharon.

I've just been trying this out, and its not colorizing the source-code
once its published. You can see it here
http://www.sharons.org.uk/2013/12/19/hello-world/ and how do I get it
so that the block of source-code is shown completely instead of being
folded away please?

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Colorizing 'emacs-lisp' when it is exported?
@ 2013-12-24 14:43       ` Sharon Kimble
  0 siblings, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-24 14:43 UTC (permalink / raw)
  To: Sharon Kimble
  Cc: help-gnu-emacs@gnu.org, emacs-orgmode@gnu.org, Sean O'Halpin

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

On Mon, 23 Dec 2013 00:07:22 +0000
Sharon Kimble <boudiccas@talktalk.net> wrote:

> On Sun, 22 Dec 2013 23:49:04 +0000
> "Sean O'Halpin" <sean.ohalpin@gmail.com> wrote:
> 
> > On Sun, Dec 22, 2013 at 4:03 PM, Sharon Kimble
> > <boudiccas@talktalk.net> wrote:
> > > Thanks to auntie google I've found out how to keep the formatting
> > > of elisp on export to html using '#+BEGIN_SRC emacs-lisp' at the
> > > beginning of the code block, and '#+END_SRC' at the end. Whilst
> > > its in .emacs its nicely colorized, but how do I colorize the
> > > output when its been exported please? For once, google has drawn
> > > a blank, unfortunately!
> > >
> > > Sharon.
> > 
> > Have you set this?
> > 
> >     (setq org-src-fontify-natively t)
> 
> No I haven't, but I have now. I'll have a further play with it
> tomorrow I think. Thanks :)
> 
> Sharon.

I've just been trying this out, and its not colorizing the source-code
once its published. You can see it here
http://www.sharons.org.uk/2013/12/19/hello-world/ and how do I get it
so that the block of source-code is shown completely instead of being
folded away please?

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [O] Colorizing 'emacs-lisp' when it is exported?
       [not found]     ` <mailman.10273.1387896225.10748.help-gnu-emacs@gnu.org>
@ 2013-12-24 14:58       ` Ted Zlatanov
  2013-12-24 17:24         ` Peter Dyballa
  2013-12-24 18:55         ` Sharon Kimble
  0 siblings, 2 replies; 13+ messages in thread
From: Ted Zlatanov @ 2013-12-24 14:58 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, 24 Dec 2013 14:43:23 +0000 Sharon Kimble <boudiccas@talktalk.net> wrote: 

SK> I've just been trying this out, and its not colorizing the source-code
SK> once its published. You can see it here
SK> http://www.sharons.org.uk/2013/12/19/hello-world/ and how do I get it
SK> so that the block of source-code is shown completely instead of being
SK> folded away please?

I wanted to mention that I use the `htmlize' package, which lets me
export a fontified region or file to HTML, works with any major Emacs
mode, and doesn't require any Org machinery.  It's probably closer to
what the OP wants.

Ted


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [O] Colorizing 'emacs-lisp' when it is exported?
  2013-12-24 14:58       ` [O] " Ted Zlatanov
@ 2013-12-24 17:24         ` Peter Dyballa
  2013-12-24 18:55         ` Sharon Kimble
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2013-12-24 17:24 UTC (permalink / raw)
  To: Ted Zlatanov, Sharon Kimble; +Cc: help-gnu-emacs


Am 24.12.2013 um 15:58 schrieb Ted Zlatanov:

> I wanted to mention that I use the `htmlize' package, which lets me
> export a fontified region or file to HTML

And once you have the colourful HTML version displayed in an HTML viewer ("internet browser"), you can print it, for example as PDF. I think this is a kind of export… (but it should also be possible to print the colourful buffer as PostScript, which can also be converted to PDF, saving all the colours and – possibly – fonts)

--
Greetings

  Pete

If you're not confused, you're not paying attention.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [O] Colorizing 'emacs-lisp' when it is exported?
  2013-12-24 14:58       ` [O] " Ted Zlatanov
  2013-12-24 17:24         ` Peter Dyballa
@ 2013-12-24 18:55         ` Sharon Kimble
  1 sibling, 0 replies; 13+ messages in thread
From: Sharon Kimble @ 2013-12-24 18:55 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

On Tue, 24 Dec 2013 09:58:12 -0500
Ted Zlatanov <tzz@lifelogs.com> wrote:

> On Tue, 24 Dec 2013 14:43:23 +0000 Sharon Kimble
> <boudiccas@talktalk.net> wrote: 
> 
> SK> I've just been trying this out, and its not colorizing the
> SK> source-code once its published. You can see it here
> SK> http://www.sharons.org.uk/2013/12/19/hello-world/ and how do I
> SK> get it so that the block of source-code is shown completely
> SK> instead of being folded away please?
> 
> I wanted to mention that I use the `htmlize' package, which lets me
> export a fontified region or file to HTML, works with any major Emacs
> mode, and doesn't require any Org machinery.  It's probably closer to
> what the OP wants.
> 
Not really, I'm using 'org2blog' to convert an .org posting into a
wordpress blog article, and just needing to colorize source code
outputted to wordpress. 

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-12-24 18:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-22 16:03 Colorizing 'emacs-lisp' when it is exported? Sharon Kimble
2013-12-22 18:29 ` Jambunathan K
2013-12-22 18:48   ` Sharon Kimble
     [not found] ` <mailman.10075.1387736986.10748.help-gnu-emacs@gnu.org>
2013-12-22 18:52   ` Emanuel Berg
2013-12-22 19:00 ` Pascal J. Bourguignon
2013-12-22 23:49 ` Sean O'Halpin
2013-12-23  0:07   ` [O] " Sharon Kimble
2013-12-23  0:07     ` Sharon Kimble
2013-12-24 14:43     ` [O] " Sharon Kimble
2013-12-24 14:43       ` Sharon Kimble
     [not found]     ` <mailman.10273.1387896225.10748.help-gnu-emacs@gnu.org>
2013-12-24 14:58       ` [O] " Ted Zlatanov
2013-12-24 17:24         ` Peter Dyballa
2013-12-24 18:55         ` Sharon Kimble

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.