org-mode/lisp
Carsten Dominik d8780dbbee 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.
2009-02-12 18:29:06 +01:00
..
ChangeLog HTML export: Allow special colors for each TODO keyword 2009-02-12 18:29:06 +01:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-archive.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-attach.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-bbdb.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-bibtex.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-clock.el Allow previous state to be shown in state change log notes. 2009-02-12 09:48:07 +01:00
org-colview-xemacs.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-colview.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-compat.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-exp.el HTML export: Allow special colors for each TODO keyword 2009-02-12 18:29:06 +01:00
org-export-latex.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-faces.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-footnote.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-gnus.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-id.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-info.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-irc.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-jsinfo.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-list.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-mac-message.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-macs.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-mew.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-mhe.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-mouse.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-plot.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-publish.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-remember.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-rmail.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-table.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-timer.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-vm.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-w3m.el Release 6.22b 2009-02-10 20:21:33 +01:00
org-wl.el Release 6.22b 2009-02-10 20:21:33 +01:00
org.el Allow previous state to be shown in state change log notes. 2009-02-12 09:48:07 +01:00