Menu

#70 Bug quote - " and '

open
nobody
None
5
2010-01-26
2010-01-26
Anonymous
No

FireFox. iMacros. If write in code one quote ( " or '). Example in regular expression...Then all colors in code changing on blue color....

Discussion

  • Nobody/Anonymous

     
  • Anonymous

    Anonymous - 2010-02-17

    I have also noticed this bug in the Xml reg Syntax. I managed to solve the problem by modifying the xml.js file in the "edit_area/reg_syntax" folder.

    To do so:
    1) Set the QUOTESMARKS to an empty set (ie remove 1: "'", 2: '"' from braces)
    2) Add the following to REGEXPS definition section:

    ,'attributeValuesDoubleQuote': {
    'search' : '(=[ \t]*)("[^ \r\n\t=]+")()'
    ,'class' : 'attributevalues'
    ,'modifiers' : 'g'
    ,'execute' : 'before' // before or after
    }
    ,'attributeValuesSimpleQuote': {
    'search' : "(=[ \t]*)('[^ \r\n\t=]+')()"
    ,'class' : 'attributevalues'
    ,'modifiers' : 'g'
    ,'execute' : 'before' // before or after
    }

    3) Add the following to REGEXPS styles section:

    ,'attributevalues': 'color: #6381F8;'

     

Log in to post a comment.