Skip to content

Add Svelte syntax highlighting support - #1809

Merged
emako merged 2 commits into
masterfrom
copilot/support-svelte-highlighting
Nov 19, 2025
Merged

emako merged 2 commits into
masterfrom
copilot/support-svelte-highlighting

Conversation

Copilot AI commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

PR Checklist

  • Functionality has been tested, no obvious bugs
  • Code style follows project conventions
  • Documentation/comments updated (if applicable)

Brief Description of Changes

Adds syntax highlighting for .svelte files in both Light and Dark themes.

Files Added:

  • Syntax/Light/Svelte.xshd - Light theme definition
  • Syntax/Dark/Svelte.xshd - Dark theme definition

Syntax Coverage:

  • Svelte directives: bind:, on:, use:, transition:, in:, out:, animate:, class:, style:
  • HTML tags and JavaScript keywords
  • Comments, strings, and CSS blocks

Implementation:

  • Follows existing Vue.js pattern
  • Auto-embedded as resources via project config
  • Loaded by HighlightingThemeManager at runtime

Related Issue (if any)

Closes feature request for Svelte syntax highlighting support

Additional Notes

Color schemes match existing Light/Dark theme conventions used by other language definitions in the plugin.

Original prompt

This section details on the original issue you should resolve

<issue_title>[feature-request] support highlighting of Svelte</issue_title>
<issue_description>Dark and Light mode.</issue_description>

<agent_instructions>support it using .xshd in TextViewer</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Svelte highlighting in TextViewer Add Svelte syntax highlighting support Nov 19, 2025
Copilot AI requested a review from emako November 19, 2025 11:13

@emako emako left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allright

@emako
emako marked this pull request as ready for review November 19, 2025 16:01
@emako
emako merged commit 1f96cf5 into master Nov 19, 2025
2 checks passed
ahocagil pushed a commit to ahocagil/UA-FastLook that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature-request] support highlighting of Svelte

2 participants