Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2013, 13:23
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 17 años, 2 meses
Puntos: 51
Respuesta: Como hago esto? (array's)

si utilizas nombre de funciones encierralas ente comillas simples

Código Javascript:
Ver original
  1. <script>
  2. var BuscarExpresion = ['new', 'for', 'switch', 'case', 'sizeof', 'public', 'return',
  3.               'if', 'else', 'while', 'true', 'false', 'double', 'try', 'void'];
  4. for(var n in BuscarExpresion )
  5. Texto = Texto.RemplazarArray(new RegExp("/\b"+BuscarExpresion[n]+"\b/","g"), ColorearExp);
  6. </script>
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft