all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-->html text between @ should be red.
@ 2022-01-15 18:04 Uwe Brauer
  2022-01-15 18:20 ` Timothy
  2022-01-15 18:21 ` Juan Manuel Macías
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Brauer @ 2022-01-15 18:04 UTC (permalink / raw
  To: emacs-orgmode


Hi 

When I use org-mime-htmlize, then I can use the setting 

Render text between "@" in red color, you can use =org-mime-html-hook=,
#+begin_src elisp
(add-hook 'org-mime-html-hook
          (lambda ()
            (while (re-search-forward "@\\([^@]*\\)@" nil t)
              (replace-match "<span style=\"color:red\">\\1</span>"))))
#+end_src

And every text between @ appears red.

Can I have a similar setting when exporting an org file to html via the
«normal» html exporter?

Thanks 

Uwe Brauer 



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

end of thread, other threads:[~2022-01-15 21:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-15 18:04 org-->html text between @ should be red Uwe Brauer
2022-01-15 18:20 ` Timothy
2022-01-15 19:39   ` Uwe Brauer
2022-01-15 18:21 ` Juan Manuel Macías
2022-01-15 19:39   ` Uwe Brauer
2022-01-15 19:59     ` Juan Manuel Macías
2022-01-15 20:24       ` Uwe Brauer
2022-01-15 20:58         ` Juan Manuel Macías
2022-01-15 21:01           ` Uwe Brauer

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.