문제

I'm trying to get Emmet (as an Ace Editor extension) to work within Liquid template. I need Emmet to treat Liquid lang as HTML since there is no difference if we're talking about tag expand abbreviation.

Here is my current setup for Ace (all required JS files are loaded properly):

var template = ace.edit('ace-template');
template.getSession().setMode('ace/mode/liquid');
var Emmet = require('ace/ext/emmet');
Emmet.setCore(window.emmet);
template.setOption("enableEmmet", true);

Am I doing anything wrong here?

도움이 되었습니까?

해결책

take a look at that line: https://github.com/ajaxorg/ace/blob/master/lib/ace/ext/emmet.js#L391

I hope this will help you.

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