coffeescript-netbeans icon indicating copy to clipboard operation
coffeescript-netbeans copied to clipboard

Highlight in the HTML file.

Open NN--- opened this issue 13 years ago • 5 comments
trafficstars

http://jashkenas.github.com/coffee-script/#scripts You can use

NN--- avatar Dec 17 '11 14:12 NN---

<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <script type="text/coffeescript">
            if window then alert "AAA"
            for own
        </script>
    </body>
</html>

This test.html works for me in the latest version

dstepanov avatar Dec 17 '11 15:12 dstepanov

The problem was with string that ends with &

No problems; window.location = 'a'

No highlight: window.location = 'a&'

NN--- avatar Dec 17 '11 15:12 NN---

Highlight fails also if you have comment with '<' character:

Try this

<script type="text/coffeescript">
# <![CDATA[

a = "abc"
b = "abc"

# ]]>
</script>

NN--- avatar Dec 17 '11 15:12 NN---

Comments also suffer from '&' symbols too.

Thanx.

NN--- avatar Dec 17 '11 15:12 NN---

It is because you cannot have this characters in html, it seems that netbeans skips them only in javascript.

dstepanov avatar Dec 17 '11 15:12 dstepanov