[pmwiki-users] Fixme icon

Robert Riebisch rr at bttr-software.de
Thu Jan 9 16:23:00 PST 2020


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/



More information about the pmwiki-users mailing list