Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top