Skip to content

Embedded languages in tagged templates #767

Open

Description

@abose

Discussed in #762

Originally posted by aral December 17, 2022
Just testing out Phoenix, possibly as a good tool for education when working on Kitten projects in the future, and it would be lovely to have syntax highlighting and language intelligence for embedded languages within tagged templates (as they’re used everywhere in it).

Specifically, for HTML and CSS:

const markup = html`
  <h1>I’m HTML</h1>
`
const styles = css`
   h1 { font-size: large; }
`

Haven’t looked into the code so I don’t know how easy/possible it is to implement but it seems like the typescript-language-server LSP is able to handle them at least (I’m using it in Helix Editor currently).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCore featuresenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions