Help talk:GeSHi

From Rosetta Code

Suggestion

Hello.
I would suggest that any <pre> editing effect, ie.causing a <pre> pair to be inserted in the result html page, under a language header {{header|LANG_TAG}} be automatic converted to the corresponding language syntax highlight( LANG_TAG ) effect, so that any further conversion is not need. New code may still use old style editing.
Is it feasible?-badmadevil 02:36, 23 February 2008 (MST)
EXAMPLE:
{{header|C}}
<pre>
printf("Hello, World!") ;
</pre>
Result HTML page display as
{{header|C}}
<C>
printf("Hello, World!") ;
</C>

This is a good idea... saddly my PHP is non existent so I can not write the code at this point. Do you know anyone that could write this kind of filter? I also wonder if an undesirable side effect would be that <pre>date</pre> and <pre>output</pre> would get unexpectedly converted/formated as C code.

I will continue the evaluation, maybe by the end of this I will have an understanding and can do the coding easily, or... know the ramifications of why we shouldn't.

NevilleDNZ 05:43, 23 February 2008 (MST)