Feature request: support syntax highlight for go:embed #1156
maito1201
started this conversation in
Discussions
Replies: 1 comment 2 replies
-
Currently syntax highlighting is not handled by this extension, but I think Another direction I was thinking about was to provide a document link - so users can easily access the source file/directory of the embedded data. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think there may be a better place to make this suggestion.
If you have a good idea, please let me know.
background
go:embed
is released at go 1.16🎉https://golangtutorial.dev/tips/embed-files-in-go/
I think it is Difficult to distinguish between
go:embed
and comment, especially ifgo:embed
mistypes.It works as
go:embed
.//go:embed something
It is just a comment.
// go:embed something
Feature request
I want new syntax highlight for
go:embed
.For example, When the input content is evaluated as
go:embed
, the color of highlight will change from green(comment color).I have no strong opinion about color preferences,
But I think it would be nice if it changed to the same color as reserved word or something.
Beta Was this translation helpful? Give feedback.
All reactions