Skip to content

Test: Enable emmet for other languages #9500 #11139

Closed
@egamma

Description

@egamma

Test for #9500

Complexity 1

You can enable emmet for other languages both as a user and as a language contributor.

Enable emmet for a new language as a user.

As a user you can define an emmet syntax profile and associate an emmet supported profile to a language. For a list of supported emmet profiles see #9500 (comment). For example to associate java with the html syntax profile you can define the setting:

{
  "emmet.syntaxProfiles": {
    "java": "html"
  }
}
  • Verify that emmet abbreviations are expanded inside an java file using the html profile.

Enable emmet as a language provider

As a language provider you can associate your language with an emmet syntax profile by adding an emmet supported profile in the scope name of the grammar (textmate language grammar). For example, define the scope of you

        "grammars": [
            {
                "language": "foo",
                "scopeName": "text.html.foo"
            }
        ]

Define a language foo as shown above.

  • Verify that in file of type foo you emmet abbreviations using the html support.
  • Verify that you get emmet abbreviations independent of where html appears in the scope name.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions