Code Style WITHIN PHP Quoted Strings?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Code Style WITHIN PHP Quoted Strings?

vask
Does TextMate or perhaps another text editor support CODE STYLE within PHP quoted strings with the following syntax or a similar syntax:

/*FILETYPE*/'
'/*FILETYPE*/
"/*FILETYPE*/
"/*FILETYPE*/

where FILETYPE is the extension on the file.

ie) php_css.php
<?
$dark = true;
echo /*CSS*/'
font {
      '/*CSS*/ . $dark ? /*CSS*/'color: black;'/*CSS*/ : /*CSS*/'color:
white;'/*CSS*/ . '
      size: 20px;
      margin-top: 40px;
}
'/*CSS*/;
?>

Text Editor NOTES:
- You can NOT really see the code style in this post so let me explain.
- All code SHOULD have php code style by default.
- All code in between the /*CSS*/' and '/*CSS*/ SHOULD have css code
style. (NOT a single solid color for a quoted string.)

I have also posted this question at:
http://www.experts-exchange.com/Programming/Editors_IDEs/Q_24963912.html