apache / apache/netbeans

[JS] Add JSX highlighting to (html) tagged template literals

Open
#8,529 5 comments 0 reactions 0 assignees View on GitHub
Contribution welcome HTML JavaScript kind:feature needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

The JS editor already supports inline JSX, so maybe it would be feasible to reuse it for template literals with a tagFunction name of "html", see screenshot. This would be especially useful for anyone working with the lit framework. I would be happy to work on a pull request for this if needed.

![Image](https://github.com/user-attachments/assets/68b4e322-f436-4f13-a007-1619f1d5410d)

### Use case/motivation

_No response_

### Related issues

_No response_

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

Start in the JavaScript editor's existing inline JSX highlighting path and compare it with handling of tagged template literals named "html". Verify the result by opening an html-tagged template literal in the editor and confirming that its JSX is highlighted like inline JSX, including the lit use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.