[Feature proposal] Enable syntax highlighting when editing snippets
When adding new snippets, users can type a file name with extension to indicate the file type. At this point, the main editor should reflect the corresponding syntax highlight to enhance the UX.