emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* htmlize and #+INCLUDE:
@ 2012-11-01  9:48 Fabrice Popineau
  2012-11-01 17:04 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Popineau @ 2012-11-01  9:48 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hi all,

Is there something special to do for htmlize to process an #+INCLUDE'd
source file ?
Up to now, it seems to ignore it. I'm using the new exporter.

Besides this, as far as I Can see, I have to use :
#+BEGIN_SRC java
but
#+INCLUDE: file java

Why to use a colon in one case and not in the other one? Or am I wrong here?

Best regards and thanks in advance for explanations

Fabrice

[-- Attachment #2: Type: text/html, Size: 568 bytes --]

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

* Re: htmlize and #+INCLUDE:
  2012-11-01  9:48 htmlize and #+INCLUDE: Fabrice Popineau
@ 2012-11-01 17:04 ` Nicolas Goaziou
  2012-11-01 17:31   ` Fabrice Popineau
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2012-11-01 17:04 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org

Hello,

Fabrice Popineau <fabrice.popineau@gmail.com> writes:

> Is there something special to do for htmlize to process an #+INCLUDE'd
> source file ?

No.

> Besides this, as far as I Can see, I have to use :
> #+BEGIN_SRC java

> but

> #+INCLUDE: file java

It's #+INCLUDE: "file" src java

> Why to use a colon in one case and not in the other one? Or am I wrong
> here?

#+INCLUDE: is a keyword, like #+TITLE: whereas #+BEGIN_SRC is a block,
like #+BEGIN_CENTER. Not the same object, not the same syntax.


Regards,

-- 
Nicolas Goaziou

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

* Re: htmlize and #+INCLUDE:
  2012-11-01 17:04 ` Nicolas Goaziou
@ 2012-11-01 17:31   ` Fabrice Popineau
  2012-11-01 18:00     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Popineau @ 2012-11-01 17:31 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org

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

> > Is there something special to do for htmlize to process an #+INCLUDE'd
> > source file ?
>
> No.
>
> Do you mean that it should work out of the box or that it is not working
at all?
Because for me:
- I can htmlize src blocks (with BEGIN_SRC)
- I can highlight src blocks with syntaxhighlighter  (by new-exporting to
html)
- I can highlight included src blocks with syntaxhighlighter

Given the fact that '#+INCLUDE: "file" src java' is expanded into an src
block,
I assume that htmlize should apply there too. Am I wrong?

Greetings,

Fabrice

[-- Attachment #2: Type: text/html, Size: 958 bytes --]

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

* Re: htmlize and #+INCLUDE:
  2012-11-01 17:31   ` Fabrice Popineau
@ 2012-11-01 18:00     ` Nicolas Goaziou
  2012-11-01 23:55       ` Fabrice Popineau
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2012-11-01 18:00 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org

Fabrice Popineau <fabrice.popineau@gmail.com> writes:

> Given the fact that '#+INCLUDE: "file" src java' is expanded into an src
> block,
> I assume that htmlize should apply there too. Am I wrong?

I think you're correct. A quick test shows me fontification is fine. Do
you have an ECM to show the problem?

Regards,

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

* Re: htmlize and #+INCLUDE:
  2012-11-01 18:00     ` Nicolas Goaziou
@ 2012-11-01 23:55       ` Fabrice Popineau
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Popineau @ 2012-11-01 23:55 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org

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

Thanks for the confirmation. There is no problem. It was me doing it wrong.
It works ok now.
I just have to chose between syntaxhighlighter, google code prettify or
htmlize.
I tend to prefer htmlize (probably more flexible as I can hack elisp code)
but there is thing about using my current theme with which I'm not very
comfortable.

Anyway, the more I'm using org-mode and the new exporter, the more I like
it.

Thanks for providing us with this tool.

Fabrice


2012/11/1 Nicolas Goaziou <n.goaziou@gmail.com>

> Fabrice Popineau <fabrice.popineau@gmail.com> writes:
>
> > Given the fact that '#+INCLUDE: "file" src java' is expanded into an src
> > block,
> > I assume that htmlize should apply there too. Am I wrong?
>
> I think you're correct. A quick test shows me fontification is fine. Do
> you have an ECM to show the problem?
>
> Regards,
>

[-- Attachment #2: Type: text/html, Size: 1393 bytes --]

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

end of thread, other threads:[~2012-11-01 23:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01  9:48 htmlize and #+INCLUDE: Fabrice Popineau
2012-11-01 17:04 ` Nicolas Goaziou
2012-11-01 17:31   ` Fabrice Popineau
2012-11-01 18:00     ` Nicolas Goaziou
2012-11-01 23:55       ` Fabrice Popineau

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).