Sevin777 / Ace.Tern

Tern plugin for Ace Editor
MIT License
78 stars 25 forks source link

Integrates tern-browser-extension in the demo #36

Open angelozerr opened 9 years ago

angelozerr commented 9 years ago

I have seen, that you have a demo with html (mode). In this demo if you type some javascript anywhere (inside html content), altough js must be inserted inside script tag:

<html>
var s = "";

<script>
  // here completion for s is available, although it should not.
</script>

</html>

To fix this problem you could integrates https://github.com/angelozerr/tern-browser-extension which parse your HTML with SAX and extract JS code from script tags. It gives you more features than completion for HTML elements ids, CSS selectors and event types.

Sevin777 commented 9 years ago

Thats pretty cool, but currently I'm working on a lot of other things that are a higher priority