lorenzos / ZenCodingNetBeansPlugin

Zen Coding plugin for NetBeans
233 stars 57 forks source link

abbreviations inside inline css #2

Closed sasquach closed 13 years ago

sasquach commented 13 years ago

Abbreviation inside inline css are expanded as they where html, not css.

For example, let's have index.html like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <style type="text/css" media="screen">
    body {
        background: #fff;
    }
    </style>
</head>
<body>
    <p style="color: red">Lorem ipsum</p>
</body>
</html>

If I write

fw:b

inside <style/> or in style property in <p/> the abbreviation will be expanded into

<fw:b></fw:b>

insted of

font-weight: bold
lorenzos commented 13 years ago

You are right. I will try to solve it, but at the moment I don't know how to realize if I'm in the "style part" of the HTML document. But there’s no need to despair, I will do that work!

Stay up to date.

lorenzos commented 13 years ago

Try with the new 0.6 package. It should work. Tell me, and I will close this discussion.

sasquach commented 13 years ago

Quick test... and it works :) Thanks