HTML export: Allow special colors for each TODO keyword
commitd8780dbbee10005d234fd33565b552d9f8ec6450
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Feb 2009 10:59:09 +0000 (12 11:59 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 12 Feb 2009 17:29:06 +0000 (12 18:29 +0100)
treeaa9f6deebb7d49c9c33312119bd9c85cfea71899
parentc32de18ae026aeef8f9c952033e5e840c87b5b75
HTML export: Allow special colors for each TODO keyword

Wanrong Lin writes:

    Right now in the HTML export the TODO keywords have either
    class="todo", or class="done". That loses all the face properties
    in the original TODO keywords. I think the TODO keywords faces are
    important visual aids to differentiate different types of TODO
    items, so I just wonder whether it is possible to keep the faces
    in the HTML.

This makes sense.  This commit adds, to each TODO keyword, an
additional class named after the keyword.  For example:

  <span class="todo WAITING">WAITING</span>

So each todo keyword gets class "todo" or "done" depending on which
general type it is.  And in addition it gets itself as class.

So go to your CSS file and configure like this:

.todo { font-weight:bold; }
.done { font-weight:bold; }
.TODO { color:red; }
.WAITING { color:orange; }
.DONE { color:green; }

Thanks to Sebastian Rose for the multiple-classes trick.
doc/org.texi
lisp/ChangeLog
lisp/org-exp.el