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

feat(binaryField): Add support for VTL Syntax Highlight #31365

Merged

Conversation

zJaaal
Copy link
Contributor

@zJaaal zJaaal commented Feb 12, 2025

This pull request introduces a new custom language for Monaco Editor and refactors the existing code to support this language. The most important changes include adding the HTML base tokenizer, defining the Velocity language, and updating the relevant components to use the new language.

New Language Support:

  • Added HTML base tokenizer and states in html-monaco-language-base.ts to provide basic HTML syntax highlighting.
  • Defined the Velocity language with specific tokens and states in velocity-monaco-language.ts and integrated HTML tokenizer for comprehensive syntax support.

Component Updates:

  • Updated dot-binary-field-editor.component.ts to register and set the new Velocity language for .vtl files. [1] [2] [3]
  • Modified the test case in dot-binary-field-editor.component.spec.ts to reflect the language change from HTML to Velocity.

Code Cleanup:

  • Removed the old Velocity language definition from dot-wysiwyg-monaco/custom-languages/velocity-monaco-language.ts.
  • Adjusted imports and paths to accommodate the new language files in dot-wysiwyg-monaco.component.ts and tsconfig.json. [1] [2]

Screenshots

Screen.Recording.2025-02-12.at.4.21.13.PM.mov
Screen.Recording.2025-02-12.at.4.20.22.PM.mov

This PR fixes: #31300

@zJaaal zJaaal linked an issue Feb 12, 2025 that may be closed by this pull request
Copy link

Please use a Conventional Commit title format for this PR. For more information, see https://www.conventionalcommits.org/en/v1.0.0/

@zJaaal zJaaal changed the title feat(binary-field): Add support for VTL Syntax Highlight feat(Binary Field): Add support for VTL Syntax Highlight Feb 12, 2025
Copy link

Please use a Conventional Commit title format for this PR. For more information, see https://www.conventionalcommits.org/en/v1.0.0/

@zJaaal zJaaal requested a review from oidacra February 12, 2025 19:17
@zJaaal zJaaal enabled auto-merge February 12, 2025 19:23
@zJaaal zJaaal changed the title feat(Binary Field): Add support for VTL Syntax Highlight feat(binaryField): Add support for VTL Syntax Highlight Feb 12, 2025
@zJaaal zJaaal added this pull request to the merge queue Feb 12, 2025
Merged via the queue into main with commit c50c876 Feb 12, 2025
22 checks passed
@zJaaal zJaaal deleted the 31300-vtl-syntax-highlighting-missing-in-the-new-code-editor-modal branch February 12, 2025 22:32
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.

VTL Syntax highlighting missing in the new code editor modal
5 participants