Expression > Forums - Accueil > Expression Studio > Words, spaces, and underscores
Poser une questionPoser une question
 

QuestionWords, spaces, and underscores

  • jeudi 14 mai 2009 05:55frosty1433 Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    I'm actually using Expression Web 2, but I'm assuming this minor problem is consists throughout the entire Expression suite.

    I have the following constant in PHP; "TESTING_123". If I want to quickly copy and paste that entire constant, I double click it. But the only thing that is highlighted is "TESTING", "_123" is left off. If I have the following "function foo ($var1, $var2)", and I want to quickly copy and paste "foo" for use throughout the script, I try the same method, but I get "foo ". (with the space)

    These behaviors seem backwards to me. Is it at all possible to be able to select the entire constant, and/or select just the name of the function without the space? (through some option) I looked throughout page editor options, but I found nothing about it.

    I believe it's these very minor imperfections, that in the long run, make it inconvenient to a perfectionist like me. I also realize this is the behavior of a browser, or a normal text editor. And it that case, it can be convenient. However, we're modifing code which doesn't use regular grammer, we're dealing with code that's very different from a normal human language. I think a code editor should acknowledge that, and realize "this_this" means "this_this" and not "this this". "function" means "function", not "function is part of a sentence". Most other code editors that I have tried, do it correctly, or what seems to me to be correct.

    Are there any ways I can suggest a feature request or behavior change for Expression?

Toutes les réponses

  • jeudi 14 mai 2009 06:42frosty1433 Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    Another example about the doubling clicking words, followed by a space:
    I have the following PHP array; "$test['var']". Say I want to rename "$variable = $test['var'];" to "$var = $test['var'];". I double click 'var' within the array, and then double click 'variable' and paste. It becomes "$var= $test['var'];". (without a space) Very minor, but being a perfectionist it's also very hard to ignore that.