javascript - Charset of a textarea, keyword not recognized -


i have editor it's called editarea , should work editor programming languages embedded in web page; using editor other stuff. it's exp'lained in manual of editarea we've built new syntax file, contains special characters, cause syntax has recognize contains italian words. below snapshot of syntax file:

    ,'keywords' : {      'feelings' : [         "emozioni","gioia","felicit\xe0", etc. 

and these regular expressions:

    ,'regexps' : {         'lemmas' : {         'search' : "()(#[a-za-z0-9'èéòàìù]*)()"         //'search' : "()(#[a-za-z0-9'èéòàìù\s]+#)()"         ,'class' : 'lemmas'         ,'modifiers' : 'g'         ,'execute' : 'before'     }, 

as can see letters accent expressed code in "keyword" , without code in "regular expression". problem words ends accent letter not "colorized" in righ way if they're typed alone. if type letter after accent recognized (but in case shouldn't recognized word lemmas regular expression). error quite confusing. tryed encoding , decoding input of text area , arguments of colorize_text function usign functions:

function encode_utf8(s) {   return unescape(encodeuricomponent(s)); }  function decode_utf8(s) {   return decodeuricomponent(escape(s)); } 

but nothing seem change. if has understood problem better me (i can't understand why colorize text rightly when add character word accent) please explain me in easy language. thank effort. agnese


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -