coffeescript-netbeans
coffeescript-netbeans copied to clipboard
Highlight in the HTML file.
trafficstars
http://jashkenas.github.com/coffee-script/#scripts You can use
<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
The problem was with string that ends with &
No problems; window.location = 'a'
No highlight: window.location = 'a&'
Highlight fails also if you have comment with '<' character:
Try this
<script type="text/coffeescript">
# <![CDATA[
a = "abc"
b = "abc"
# ]]>
</script>
Comments also suffer from '&' symbols too.
Thanx.
It is because you cannot have this characters in html, it seems that netbeans skips them only in javascript.