Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/03/2012, 01:18
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 14 años, 6 meses
Puntos: 331
Respuesta: visualizar codigo php en un textarea

Puedes hacerlo así:

Código PHP:
Ver original
  1. <form id="form1" name="form1" method="post" action="">
  2.   <label>
  3.   <textarea name="textarea">
  4.   &lt;?php echo $a; ?&gt;
  5.   </textarea>
  6.   </label>
  7. </form>

pero también hay plugins JS que lo hacen mejor y con buen formato. Saludos
__________________
Fere libenter homines, id quod volunt, credunt.