[Pmwiki-users] Re: calculating directives
J. Meijer
commentgg
Sat Jun 19 19:52:00 CDT 2004
Hi. I improved the code to allow ?$a+$b? type expressions. It actually got
simpler.
Hope it works :-)
-jm
ps My keyboard uses the AltGr+[ and AltGr+] key-combinations to get to ?
and ?.
# inline calculations with var storage: ?formula? ?formula=$var? and ?$var?
$evalfulist='a?sinh?|a?cosh?|a?tanh?|deg2rad|rad2deg|sqrt|pi|log|'+
'log10|exp|pow|hexdec|dechex|round|rand|';
$evalfulist="((?:".str_replace('|','\\(|',$evalfulist).'&|>|'+
'<|\$\\w*|[0-9.eE+-\\/*%|~\\(\\) ])+?)';
$DoubleBrackets['/?'.$evalfulist.'(=\\$([a-z]*))??/e']=
"eval(str_replace('\$','\$gfr','\$$3='.
html_entity_decode('$1')).';return (\'$2\')?\'$1\':\$gfr;')";
----- Original Message -----
------------------------------
Date: Sat, 19 Jun 2004 19:42:16 +0200
From: Knut Alboldt <mailing at alboldt.de>
Subject: Re: [Pmwiki-users] Re: calculating directives ?
PS: how do you input the "<<" ">>", is it a key on your keyboard ? If yes,
which layout ?
More information about the pmwiki-users
mailing list