Skip to content

feat: SQL Editor - Syntax Coloring #3317

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

Merged
merged 7 commits into from
Jun 2, 2025
Merged

Conversation

sogladev
Copy link
Member

Adds SQL syntax with MySQL dialect and upper case auto completions. Highlighting uses the github light theme to match the existing HighlightJS highlighting

new dependencies

TLDR;

Highlight.js really isn't intended to be used as a live code editor.
https://stackoverflow.com/questions/19346975/highlight-js-in-textarea
highlightjs/highlight.js#1356

CodeMirror 6 wrapper for Angular
https://github.com/acrodata/code-editor

CodeMirror https://codemirror.net

sql lang support https://www.npmjs.com/package/@codemirror/lang-sql

CodeMirror github theme https://www.npmjs.com/package/@uiw/codemirror-theme-github

Closes

continuation of

How to test

  • F9 button
  • copy button
  • resizing bottom right corner
  • mouse over highlighting and copying

other libs for reference

monaco: electronjs struggled with asset imports
ace: soon to be or already deprecated for newer Angular versions

@Helias Helias requested a review from FrancescoBorzi May 14, 2025 22:19
@Helias
Copy link
Member

Helias commented Jun 1, 2025

I made some minor improvements, if the build pass I will merge the PR, good job!

@Helias Helias merged commit 0df6b89 into azerothcore:master Jun 2, 2025
12 checks passed
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.

[Enhancement] - SQL Editor - Syntax Colouring!
3 participants