[pmwiki-users] Fixme icon

Simon nzskiwi at gmail.com
Thu Jan 9 16:35:12 PST 2020


Now you have a div with a class use local.css
https://www.pmwiki.org/wiki/Cookbook/LocalCSS to apply your styles.
This is far better than "hard coding"   style in markup.
Perhaps you could consider using categories
<https://www.pmwiki.org/wiki/PmWiki/Categories>, and avoid some markup,
e.g. see PmWiki's UpdateMe <https://www.pmwiki.org/wiki/Category/UpdateMe>
category.
____chao

Simon



On Fri, 10 Jan 2020 at 13:23, Robert Riebisch <rr at bttr-software.de> wrote:

> Hi Petko,
>
> Nice 2020 to you! :-)
>
> >> The following works for me, but I'm not sure about the number of
> >> backslashes in: \\(:fixme:\\)
> >>
> >>  Markup('fixme', 'directives', '/\\(:fixme:\\)/i',
> >>    "$PubDirUrl/fixme.gif\"fixme\"");
> >>
> >> Does the number depend on the usage of ' or "?
> >> I had look at "scripts/stdmarkup.php", but still don't have a clue.
> >
> > Your backslashes are fine.
>
> Now I wish to apply "vertical-align: middle;" to that icon.
>
> I tried different variants, but it won't work:
>
>         Markup('FIXME', 'directives', '/\\(:FIXME:\\)/', "(:div
> class=icon:)$PubDirUrl/fixme.gif\"FIXME\"\n(:divend:)");
>
> This shows the icon + a trailing "(:divend:)" in PmWiki preview. :-(
>
> I'll also take other solutions, of course.
>
> Thanks in advance!
>
> Cheers,
> Robert
> --
>               +++ BTTR Software +++
>      Home page: https://www.bttr-software.de/
> DOS ain't dead: https://www.bttr-software.de/forum/
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20200110/f1542374/attachment.html>


More information about the pmwiki-users mailing list