Sublime Forum

Sublime text freezes during html style manipulation scenario

#1

I have been observing this issue for quite sometime now. And I wonder if this is the correct place to post it.

How to Reproduce

Consider the following block of code.
Where I am trying to add html via javascript using template string.

$(employeeDivEl).append(`
	<div class="appointment_ev" style="height: ${difference}px; background: ${employeeColor}">
		${item.start_date_time.format('hh:mm a')} - ${item.end_date_time.format('hh:mm a')}
		<br />
		${item.service_name}
		<br />
		<i>with</i>
		${item.customer_first_name} ${item.customer_last_name}
	</div>
`)

If in style after the opening " I press enter to go to new line. and then press tab
style="height: ${difference}px; background: ${employeeColor}"
The editor freezes and does not un-hang unless you force quit it and open it again.

I am using ubuntu 18.04 in Sublime Text v 3.1.1, Build 3176.
and I faced this issue in the HTML, Laravel Blade perspectives.

Hope it is clear.

0 Likes

#2

uninstall Emmet and the problem will disappear

0 Likes

#3

I don’t think I can do that… I love emmet too much. Almost as much as sublime. :grin:

0 Likes