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

Twig snippets only for *.twig files #24

Closed
zewa666 opened this issue Sep 26, 2013 · 6 comments
Closed

Twig snippets only for *.twig files #24

zewa666 opened this issue Sep 26, 2013 · 6 comments

Comments

@zewa666
Copy link

zewa666 commented Sep 26, 2013

Hi there,

could you widden the scope of to apply to .html/.htm files too?
The reason is that I use .html named files as views instead of the default .twig

Maybe create some settings for this so the users can change it according to their needs.

Greetz
Zewa

@uhnomoli
Copy link
Owner

As long as the syntax is being used for the file, filename shouldn't matter. Are snippets not working for you in files using the syntax?

@zewa666
Copy link
Author

zewa666 commented Sep 27, 2013

I honestly dont get what what you mean when saying syntax. Are you talking about the trigger word like "for"? Anyway when I rename my file to have .twig as extension it works but no luck with .html

@uhnomoli
Copy link
Owner

What text editor are you using? What I meant was, if you change the syntax highlighting of the opened file to HTML (Twig) then the snippets will work as expected.

@zewa666
Copy link
Author

zewa666 commented Sep 27, 2013

Im using sublime Text 2. Will try your advice and come back with the result, currently not next to my PC.

@zewa666
Copy link
Author

zewa666 commented Sep 28, 2013

Ok this seems to work. Thx for the tip

@zewa666 zewa666 closed this as completed Sep 28, 2013
@uhnomoli
Copy link
Owner

No problem.

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