Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top