-
Notifications
You must be signed in to change notification settings - Fork 66
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
Creation of a poly-mode for a T4-like language #268
Comments
I checked the values of the following variables:
And they are both |
OK I'm not entirely sure but after changing themes a few times I managed to get what I was looking for :-) The final mode is as follows:
And it looks like so: Ideally I'd like them to be even more visually distinctive, but this is good enough for now. Thanks! |
Hi poly-mode developers,
Thanks for an extremely useful mode. I have setup a simple derived mode that almost does all I need. My objective is to define a mode for a file format very similar to Microsoft's T4, text-templating language [1]. The main exception is where they use C# as the host language, I use C++. I have defined the mode as follows:
The main problem I have at present is that when I open a file with this mode, I don't see either the host or the inner mode highlighted with a different background as I see on your examples (please see screenshot below of what I see). They all have the same background, making it hard to distinguish. Ideally, I'd like them to be visually quite distinct, as the examples are.
A second, but slightly less important problem, is that I am not matching correctly lines starting with:
This is probably some basic regex error, so I'm playing around with regexes. At any rate, any pointers as to what I am doing wrong would be greatly appreciated.
Many thanks for your time.
[1] https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates?view=vs-2019
The text was updated successfully, but these errors were encountered: