Home Download Buy Blog Forum Support

CSS semicolon not showing up automatically anymore!

CSS semicolon not showing up automatically anymore!

Postby melissa_samworth on Sun Feb 12, 2012 10:57 am

I save a stylesheet with the file extension .css
I type a selector, curly brackets, and a property. When I type the argument, it does not put a semicolon after it automatically anymore.

Like...

background {
color: blue;
}

Usually sublime puts the semicolon there automatically. I installed ZenCode using package control, and now it doesn't. Why? :(
melissa_samworth
 
Posts: 1
Joined: Sun Feb 12, 2012 10:54 am

Re: CSS semicolon not showing up automatically anymore!

Postby sublimator on Sun Feb 12, 2012 11:26 am

ZenCoding has completions for css abbreviations like `d:n` which after pressing tab will insert `display:none;` (including a semicolon)

It overrides the binding which does the auto insertion of `;` so as not to get `display:none;;` with two semi-colons.

I think, however, it should be possible to determine if there's already a trailing `;` and just not insert that.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: CSS semicolon not showing up automatically anymore!

Postby laksma on Sun Feb 12, 2012 8:09 pm

I don't have ZenCoding installed. When I write CSS, the semicolon is placed automatically.

Perhaps, the ZenCoding causing the issue.
laksma
 
Posts: 2
Joined: Sun Feb 12, 2012 6:26 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 24 guests