IMHO sollten die Textareas für Templates sowie Modul-Ein- und Ausgabe im Backend monospaced Fonts verwenden – das macht für Code einfach mehr Sinn.
Unten kommt ein entsprechender Diff. Dabei ist mir aufgefallen, dass in der Modul-Ein- und Ausgabe die Höhe der Textarea jeweils ohne Einheit angegeben ist, daher habe ich das gleich mitgeändert und in beiden Fällen die "150" gegen "150px" ausgetauscht.
Ciao
Carsten
----------------------
Code: Alles auswählen
Index: redaxo/include/pages/module.modules.inc.php
===================================================================
RCS file: /cvsroot/redaxo/redaxo3_0/redaxo/include/pages/module.modules.inc.php,v
retrieving revision 1.8
diff -u -u -r1.8 module.modules.inc.php
--- redaxo/include/pages/module.modules.inc.php 30 Oct 2005 23:48:44 -0000 1.8
+++ redaxo/include/pages/module.modules.inc.php 10 Jan 2006 13:13:46 -0000
@@ -132,13 +132,13 @@
<tr>
<td valign="top">'.$I18N->msg("input").'</td>
<td colspan="2">
- <textarea cols="20" rows="70" name="eingabe" id="eingabe" style="width:100%; height: 150;">'.htmlspecialchars($eingabe).'</textarea>
+ <textarea cols="20" rows="70" name="eingabe" id="eingabe" style="width:100%; height: 150px;font-family: monospace">'.htmlspecialchars($eingabe).'</textarea>
</td>
</tr>
<tr>
<td valign="top">'.$I18N->msg("output").'</td>
<td colspan="2">
- <textarea cols="20" rows="70" name="ausgabe" id="ausgabe" style="width:100%; height: 150;">'.htmlspecialchars($ausgabe).'</textarea>
+ <textarea cols="20" rows="70" name="ausgabe" id="ausgabe" style="width:100%; height: 150px;font-family: monospace">'.htmlspecialchars($ausgabe).'</textarea>
</td>
</tr>'."\n";
Index: redaxo/include/pages/template.inc.php
===================================================================
RCS file: /cvsroot/redaxo/redaxo3_0/redaxo/include/pages/template.inc.php,v
retrieving revision 1.21
diff -u -u -r1.21 template.inc.php
--- redaxo/include/pages/template.inc.php 8 Jan 2006 22:39:41 -0000 1.21
+++ redaxo/include/pages/template.inc.php 10 Jan 2006 13:13:46 -0000
@@ -125,7 +125,7 @@
<tr>
<td valign="top">'.$I18N->msg("header_template").'</td>
<td colspan="2">
- <textarea name="content" id="content" cols="40" rows="5" style="width: 100%;height: 400px;">'.htmlspecialchars($content).'</textarea>
+ <textarea name="content" id="content" cols="40" rows="5" style="width: 100%;height: 400px;font-family: monospace">'.htmlspecialchars($content).'</textarea>
</td>
</tr>';