문제

Is there anyway to force TextWrangler to make alternate file extensions format like html? I use Twig and I like to name my templates homePage.twig, login.twig etc... But, sometimes (I don't know why) the code will not format strings, nodes and what not with alternate colors and I just end up with a big block of dark gray text. If I put at the top of the page TextWrangler will format the text, but I can't save the file that way. AND, the kicker is, this doesn't ALWAYS happen. Sometimes it will format correctly, sometimes it won't and I can't tell what is triggering it.

Thoughts?

도움이 되었습니까?

해결책

Found it under preferences:

enter image description here

I input .twig and set Map to: HTML.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top