emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Colors for pre elem. on orgmode.org
@ 2009-11-15 19:08 Sebastian Rose
  2009-11-16 13:04 ` Carsten Dominik
  0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Rose @ 2009-11-15 19:08 UTC (permalink / raw)
  To: Emacs-orgmode mailing list

Hi,


the colors on orgmode.org are made from an Emacs setup with a dark
background.

Because of the light background on the Web, code examples with syntax
highlighting are hard to read. I even avoid #+BEGIN_SRC and use
#+BEGIN_EXAMPLE instead.


I played a little locally, and found, that the following simple change
makes highlighted source code readable. Just put this in an exported
HTML file, just before the `</head>' tag and keep the original styles in
place, to see the results:


<style type="text/css">
pre {
    background-color:#333333;
    color:white;
}
</pre>

These are just the changed values.



Unfortunately, this changes the appearance significantly. Dark
background for all code.



As an alternative, we could change all foreground colors, in that we
keep the tint, but reduce the brightness of each. That way we would keep
the appearance and have readable code. I've changed the background to be
slightly lighter. Just put this in an exported HTML file, just before
the `</head>' tag and keep the original styles in place, to see the
results:


<style type="text/css">

pre {
    /* only the changed values for <pre> again */
    background-color:#fafafa;

    /* Use bigger font? courier is soo small on my system: */
    font-size:110%;
}


.org-string   { color:#BC2020; }
.org-builtin  { color:#5C2659; }
.org-keyword  { color:#5C128A; }
.org-doc      { color:#754C4C; }
.org-constant { color:#385D5E; }

.org-variable-name { color:#805F11; }
.org-function-name { color:#0000CC; }

</style>



What do you think?

How is the font-size of code on Windows and MAC (Safari)?



  Sebastian

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

end of thread, other threads:[~2009-11-17 19:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15 19:08 Colors for pre elem. on orgmode.org Sebastian Rose
2009-11-16 13:04 ` Carsten Dominik
2009-11-16 13:15   ` Sebastian Rose
2009-11-16 13:17     ` Greg Newman
2009-11-16 16:43       ` Sebastian Rose
2009-11-16 22:33         ` Rick Moynihan
2009-11-17 17:31           ` Eric S Fraga
2009-11-17 18:17             ` Sebastian Rose
2009-11-17 19:03               ` Eric S Fraga
2009-11-17 19:16                 ` Rick Moynihan
2009-11-16 15:56     ` Carsten Dominik

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