huilin1990 / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Pressing Tab turns PHP-Variable into an XML-Tag in Dreamweaver CS3 #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Dreamweaver CS3
2. Install ZenCoding
3. Create a PHP-file
4. Write a variable like $test and press the Tab-Key on your keyboard

What is the expected output? What do you see instead?
I want a simple Tab-Char.

What version of the product are you using? On what operating system?
Dreamweaver CS3 on Win XP SP3

Original issue reported on code.google.com by human.f...@gmail.com on 9 Mar 2011 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by serge....@gmail.com on 13 Mar 2011 at 9:58

GoogleCodeExporter commented 8 years ago
Since PHP may include HTML code, this behavior is perfectly valid. I was asked 
to make extension work properly with PHP documents in previous issues.

You can type space or other non-valid for abbreviation character and then Tab 
will be inserted correctly.

AFAIK, it is possible to tweak code not to expand in PHP code, but I don't 
recall how to do it.

Original comment by GreLIm...@gmail.com on 14 Mar 2011 at 9:32

GoogleCodeExporter commented 8 years ago
GreLImail, there’s a `zen_coding.escapteText()`function that escapes some 
control chars (including $) and allows you to paste text without breaking it

Original comment by serge....@gmail.com on 14 Mar 2011 at 10:06

GoogleCodeExporter commented 8 years ago
As I understood the problem isn't about inserting text but extending already 
existing. However, I think it make sense to prevent extending of the text which 
begins with $ at least in PHP editing mode. BTW it is possible that variables 
or mixins starting with $ will appear in CSS.

Original comment by GreLIm...@gmail.com on 15 Mar 2011 at 7:18