The syntax highlighting doesn't work when creating a new file from a template
requested to merge 342486-the-syntax-highlighting-doesn-t-work-when-creating-a-new-file-from-a-template into master
What does this MR do and why?
The MR introduces the syntax highlighting for the new files created from a template.
Screenshots or screen recordings
Before | After |
---|---|
edit-before | edit-after |
How to set up and validate locally
- Go to a repository
- Add a new file
- After redirection to the edit page, apply any
.gitlab-ci.yml
template - Watch the file name is changed to
.gitlab-ci.yml
- The syntax highlighting should be updated and match the syntax highlighting of
.yml
files
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #342486 (closed)
Edited by Denys Mishunov