質問

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