emacs-orgmode@gnu.org archives
 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 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).