SourceForge logo
SourceForge logo
Menu

phpwiki-talk

From: Bruno B. G. <br...@ls...> - 2004年12月28日 12:34:26
	Is there some practical way to define new tags and have them
substituted to code by a preprocessor? What I'm looking for is something
pretty similar to what in C would be:
#define <math> <?plugin TeX2png text="$$
#define </math> $$" ?>
	So when someone writes:
<math>x^2</math>
it's preprocessed and translated to:
<?plugin TeX2png text="$$y^2+x$$" ?>
before being processed by the wiki. I think it would clean the syntax
and ease some repetitive tasks.
	It seems that there's no support at all for it, and I'm willing
to implement it, but I need a bit of help to find myself around the
code. I suppose this code would go into BlockParser.php, perhaps at
_getBlock?
	Any ideas or suggestions are appreciated.
-- 
Bruno Barberi Gnecco <brunobg_at_users.sourceforge.net>
http://www.lsi.usp.br/~brunobg/
Never worry about theory as long as the
machinery does what it's supposed to do.
		-- R.A. Heinlein
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /