Skip to content

[CLOSED] [JS Code Hints] Html script hinting #3469

@core-ai-bot

Description

@core-ai-bot

Issue by eztierney
Thursday May 02, 2013 at 20:35 GMT
Originally opened as adobe/brackets#3705


Implement codehints and jump-to-def for javascript inside <script> tags in a .html file.

To support html hinting, the code strips out the non-javascript parts of the html file. We replace them with whitespace so that the offset and cursor positions don't have to be translated. Then the javascript-only contents are sent to tern for processing so that the html tags don't confuse the js parser tern uses.

Also adds a few units tests to make sure html hinting continues to work.


eztierney included the following code: https://github.com/adobe/brackets/pull/3705/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions