Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded languages in tagged templates #767

Open
abose opened this issue Dec 19, 2022 Discussed in #762 · 0 comments
Open

Embedded languages in tagged templates #767

abose opened this issue Dec 19, 2022 Discussed in #762 · 0 comments
Labels
core Core features enhancement New feature or request

Comments

@abose
Copy link
Member

abose commented Dec 19, 2022

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).

@abose abose added enhancement New feature or request core Core features labels Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core features enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant