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
Add a face for other fields #735
Comments
Sounds doable. I'm thinking to do it in a slightly simpler way: give all of $1, $2, $3 |
@npostavs, how would you do it? with an overlay? Those would have to be cleaned up, remember. Anything else might clash with the syntax highlighting, be it font-lock or simple text properties. Yasnippet has once worked like this (before 0.6 though, I think), but I found it was distracting and clashed with the natural syntax highlighting. This way was much simpler, and also imitated TextMate better. |
Uh, I had thought fields already have overlays on them, but if not, this might indeed involve more complexity than I'd want to add for such a feature.
Eclipse uses |
Thanks for improving this. I'll love it! |
@fniessen, if it were up to me (but it isn't anymore) I wouldn't get my hopes up. Adding this feature needlessly bloats yasnippet's sensitive engine. |
Would it be possible to add a face (
yas-other-fields-highlight-face
or such) and to highlight all non-selected fields?The idea would be that:
That would make the variable elements in the template stand out a lot more.
Thanks a lot!
The text was updated successfully, but these errors were encountered: