Help talk:GeSHi: Difference between revisions
(Suggestion) |
|||
Line 1: | Line 1: | ||
=== Suggestion === |
|||
Hello.<br> |
Hello.<br> |
||
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.<br> |
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.<br> |
||
Line 13: | Line 13: | ||
printf("Hello, World!") ;<br> |
printf("Hello, World!") ;<br> |
||
</C> |
</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 <nowiki><pre>date</pre></nowiki> and <nowiki><pre>output</pre></nowiki> 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. |
|||
[[User:NevilleDNZ|NevilleDNZ]] 05:43, 23 February 2008 (MST) |
Revision as of 12:43, 23 February 2008
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)