Skip to content
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

Template Syntax highlight #26

Closed
daslicht opened this issue Mar 21, 2016 · 2 comments
Closed

Template Syntax highlight #26

daslicht opened this issue Mar 21, 2016 · 2 comments

Comments

@daslicht
Copy link

Hi,
when using the @template() decorator you wont get syntax highlight or codecompletion in any ide.

Is there a way ?

Or is there a way to use inline templates like in 'normal' riot?

@nippur72
Copy link
Owner

if you use the inline string syntax, there can't be any syntax highlight, because for the compiler it's just a string. You must split it into a separate file (which gives you also the benefit of pre-compilation).

Anyway, TypeScript folks are working on language extensibility (see microsoft/TypeScript#6508) so perhaps in the future it will be possible to mix TypeScript code with foreign code like HTML, SQL etc.

@daslicht
Copy link
Author

Sounds great! Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants