emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to control exported src color
@ 2011-06-15  6:44 silent
  2011-06-15 14:27 ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: silent @ 2011-06-15  6:44 UTC (permalink / raw)
  To: emacs-orgmode

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

hi,

I met a problem:

I use #+BEGIN_SRC html #+END_SRC in org, and export to html
but the source code's highlight color is not good,

could you please tell me how can I change the color ?


thanks!

[-- Attachment #2: org-exported_html_code.png --]
[-- Type: image/png, Size: 4506 bytes --]

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

* Re: how to control exported src color
  2011-06-15  6:44 how to control exported src color silent
@ 2011-06-15 14:27 ` Jambunathan K
  2011-06-16  8:21   ` silent
  0 siblings, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2011-06-15 14:27 UTC (permalink / raw)
  To: silent; +Cc: emacs-orgmode

silent <silent2600@gmail.com> writes:

> hi,
>
> I met a problem:
>
> I use #+BEGIN_SRC html #+END_SRC in org, and export to html
> but the source code's highlight color is not good,

Does your Emacs buffers look that way?

> could you please tell me how can I change the color ?

M-x customize-group RET org-export-htmlize

is a good starting point. But you have to do some homework.

Jambunathan K.

-- 

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

* Re: how to control exported src color
  2011-06-15 14:27 ` Jambunathan K
@ 2011-06-16  8:21   ` silent
  2011-06-16 17:01     ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: silent @ 2011-06-16  8:21 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

yes, I just checked my emacs, the buffer is much like the exported code,
emacs buffer not looks that bad because it using a dark blue background,

I changed to another color-theme, and the exported code looks much better,

I will try to customize org-export-htmlize later.

thanks!

2011/6/15 Jambunathan K <kjambunathan@gmail.com>:
> silent <silent2600@gmail.com> writes:
>
>> hi,
>>
>> I met a problem:
>>
>> I use #+BEGIN_SRC html #+END_SRC in org, and export to html
>> but the source code's highlight color is not good,
>
> Does your Emacs buffers look that way?
>
>> could you please tell me how can I change the color ?
>
> M-x customize-group RET org-export-htmlize
>
> is a good starting point. But you have to do some homework.
>
> Jambunathan K.
>
> --
>

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

* Re: how to control exported src color
  2011-06-16  8:21   ` silent
@ 2011-06-16 17:01     ` Eric Schulte
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Schulte @ 2011-06-16 17:01 UTC (permalink / raw)
  To: silent; +Cc: emacs-orgmode, Jambunathan K

silent <silent2600@gmail.com> writes:

> yes, I just checked my emacs, the buffer is much like the exported code,
> emacs buffer not looks that bad because it using a dark blue background,
>
> I changed to another color-theme, and the exported code looks much better,
>
> I will try to customize org-export-htmlize later.
>

Another option is to set the background of code segments to a dark
blue.  I often do that with the inclusion of a line like the following
in my Org-mode file.

#+style: <style type="text/css">pre{background-color: #232323; color: #E6E1DC;}</style>

Note, if you are using a color-theme, then the file defining the color
theme probably holds the html code of your background color, which could
then be copied directly as the <pre> element background.

Cheers -- Eric

>
> thanks!
>
> 2011/6/15 Jambunathan K <kjambunathan@gmail.com>:
>> silent <silent2600@gmail.com> writes:
>>
>>> hi,
>>>
>>> I met a problem:
>>>
>>> I use #+BEGIN_SRC html #+END_SRC in org, and export to html
>>> but the source code's highlight color is not good,
>>
>> Does your Emacs buffers look that way?
>>
>>> could you please tell me how can I change the color ?
>>
>> M-x customize-group RET org-export-htmlize
>>
>> is a good starting point. But you have to do some homework.
>>
>> Jambunathan K.
>>
>> --
>>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

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

end of thread, other threads:[~2011-06-16 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15  6:44 how to control exported src color silent
2011-06-15 14:27 ` Jambunathan K
2011-06-16  8:21   ` silent
2011-06-16 17:01     ` Eric Schulte

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).