[Typo3-UG Denmark] Preg on page output

Troels Kjær Rasmussen troelsr at msn.com
Mon Nov 29 18:43:20 CET 2004


Hej Jeppe.

(...går ud fra at du taler dansk)

1.Der findes en extension der allerede gør det du beder om via RTE´en - se 
her: http://typo3.org/extensions/repository/search/de_custom_tags

2.preg match er måske en mere "clean" tilgang til at erstatte tags, men det 
er sk...besværligt at få det til at spille med RTE´en.

mvh

Troels Kjær Rasmussen
"Martin Seebach" <typo3lists at g-bach.dk> wrote in message 
news:mailman.807.1101743178.15550.typo3-ug-denmark at lists.netfielders.de...
> 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