Menu

#12 quotations and new lines

open
pyrou
None
6
2007-09-19
2007-06-22
Anonymous
No

The text between " doesnt stay highlighted when on a new line.

Discussion

  • pyrou

    pyrou - 2007-09-19
    • priority: 5 --> 6
    • assigned_to: nobody --> pyrou
     
  • pyrou

    pyrou - 2007-09-19

    Logged In: YES
    user_id=1695796
    Originator: NO

    I will try to fix it..
    I think it's only necessary on php language?

     
  • Adam Jimenez

    Adam Jimenez - 2007-09-25

    Logged In: YES
    user_id=1871003
    Originator: NO

    this is a major problem for php code

     
  • Adam Jimenez

    Adam Jimenez - 2007-09-29

    Logged In: YES
    user_id=1871003
    Originator: NO

    potential fix:

    lines 10,11 on php.js

    { input : /\"(.*?)"/g, output : '<s>"$1"</s>' }, // strings double quote
    { input : /\'(.*?)'/g, output : '<s>\'$1\'</s>' }, // strings single quote

     
  • Adam Jimenez

    Adam Jimenez - 2007-09-29

    Logged In: YES
    user_id=1871003
    Originator: NO

    modification to deal with escaped quotes:

    { input : /\"([^"\\]*(\\.[^"\\]*)*)"/g, output : '<s>"$1"</s>' }, // strings double quote
    { input : /\'([^'\\]*(\\.[^'\\]*)*)'/g, output : '<s>\'$1\'</s>' }, // strings single quote

     
  • Adam Jimenez

    Adam Jimenez - 2007-11-27

    Logged In: YES
    user_id=1871003
    Originator: NO

    please commit this fix..

     

Log in to post a comment.