# Fix: Comment shortcut in Svelte files now respects if the line\(s\) are HTML vs JS/TS \(\#5860\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cf3b4b0ba79e342fb6a41659d52daac1f7aa2703)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cf3b4b0ba79e342fb6a41659d52daac1f7aa2703

Requested commit: cf3b4b0ba79e342fb6a41659d52daac1f7aa2703

Commit: cf3b4b0ba79e342fb6a41659d52daac1f7aa2703

Tree: f3105503cf0e700c252aaf513f5d98eb0b335793

Author: Chase Weaver

Committer: GitHub

## Message

```
Fix: Comment shortcut in Svelte files now respects if the line(s) are HTML vs JS/TS (#5860)

Release Notes:

- Fixed: When using the comment shortcut, previously HTML or JS/TS would
all prefix lines with `// `. This PR brings the comments inline with
what is expected (`// ` for JS/TS, `<!-- ... -->` for HTML). Fixes
[#4578](https://github.com/zed-industries/zed/issues/4578).
```

## Parents

- [71ec781215c2abbd22d44d6d4aec7b139f818876](https://git.cafe/gitcafe/zed/commit/71ec781215c2abbd22d44d6d4aec7b139f818876?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cf3b4b0ba79e342fb6a41659d52daac1f7aa2703?format=markdown)
