[Typo3-UG Denmark] Preg on page output

Martin Seebach typo3lists at g-bach.dk
Mon Nov 29 16:45:05 CET 2004


Hej Jeppe,

Jeppe Vesterbaek wrote:

> I would, however, like to use the syntax highligther in a normal 
> "text" (RTE) content type and just mark the code, I want highligthed 
> with <MYCODE> some code here </MYCODE>. My idea was just to make a 
> preg_replace on the page output, grap all the <MYCODE> / </MYCODE> 
> tags and replace the contents between the tags.

You don't want to process the whole page content yourself. In the 
Extension Kickstarter, you can select a frontend plugin to be of type 
"Processing of userdefined tag", eg. <mytag></mytag>.
I don't know exactly how it works, but it seems to be what you need.

Venlig hilsen
Martin Seebach





More information about the TYPO3-UG-denmark mailing list