[pmwiki-users] (:background:) markup

Hans design at flutesong.fsnet.co.uk
Sat Jul 30 18:02:23 CDT 2005


Another slight modification, which takes care to disallow any other
subsequent attributes apart from background:

Markup('background', 'directive',
  '/\\(:background\\s+((#\\w+,\\s*)*#\\w+\\s*{\\s*background:[^{};]*?[;]*\\s*})\\s*:\\)/e',
  "PZZ(\$GLOBALS['HTMLStylesFmt'][] = PSS(' $1 '))");


~Hans





More information about the pmwiki-users mailing list