i do such things with custom tags:
(add-to-list 'muse-publish-markup-tags
'("hl" t nil nil 'ignore))
(add-to-list 'muse-html-markup-tags
'("hl" t nil nil my-muse-highlight-tag))
(defun my-muse-highlight-tag (beg end)
"normal text
<hl>yellow background text
can be multiple paragraphs
</hl>
normal text again"
(save-excursion
(goto-char beg)
(muse-insert-markup "<span style=\"background-color:yellow\">")
(goto-char end)
(muse-insert-markup "</span>")
))
On Sun, 2010-02-14 at 03:13 -0800, Joel wrote:
> I would like to customize muse with a markup rule to 'highlight' text
> like one would highlight with a highlighter on paper. The markup
> region could be defined by some character like '^' or '%' or perhaps
> even {} and within the region the background color would be yellow and
> when publishing the characters would be replaced by <span
> style="background-color:yellow"> and </span>.
>
> In the same vein, is it possible to customize the appearance of
> <div></div> tags that would approximate the appearance of the html
> text in emacs?
>
>
> _______________________________________________
> Muse-el-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/muse-el-discuss
--
Baranyi Péter <[email protected]>
_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss