zend studio 9 css indent

General discussion on Zend Studio

zend studio 9 css indent

Postby polyanin on Tue Nov 22, 2011 7:17 am

zend studio 9.0.0 windows xp sp3
preferences->web->css->editor->Indent using spaces, Indentation size 4

Code: Select all
@charset "utf-8";
/* CSS Document */
.emptyClassForSafary {}
html {
    font-family: Arial,Helvetica,sans-serif;
    /*font-family: Verdana,Geneva,sans-serif;*/
    font-size: 13px;
    cursor: default;
    color: #000;
    background-color: #c0c0c0;
}
body {
    background: url('/capsule/templates/eb_home/img/mainbg_s.gif') center top repeat-y;
}
a {
    outline-style: none;
}
a:link {
    color: #005bc6;   
}
a:visited {
    color: #002c5c;   
}
a:hover {
    color: #d00000;   
}
a:active {
    color: #d00000;   
}
b, strong {
    font-weight: bold;
}
em {
    font-style: italic;
}
sub {
    vertical-align: sub;
    font-size: x-small;
}
.right {
    text-align: right;<---put cursor here and press [enter]
}
.headerPlace {

}


put cursor after "text-align: right;" and press [enter],

cursor position is at 0 instead of 4.
polyanin
 
Posts: 9
Joined: Sat Apr 17, 2010 6:25 pm

Re: zend studio 9 css indent

Postby polyanin on Tue Nov 22, 2011 7:10 pm

screen.png
screen.png (45.49 KiB) Viewed 2027 times
example
polyanin
 
Posts: 9
Joined: Sat Apr 17, 2010 6:25 pm

Re: zend studio 9 css indent

Postby sylvie6713 on Wed Nov 23, 2011 3:12 pm

Hi
I was able to reproduce it. It seems it is not relevant to spaces, happened to me also with tabs (default settings)
I'll open a bug.
Thanks for posting it
Sylvia Tancheva
QA Team, Zend
User avatar
sylvie6713
 
Posts: 296
Joined: Fri Feb 27, 2009 10:24 am
Location: Bulgaria

Re: zend studio 9 css indent

Postby ausdev6000 on Sat Nov 26, 2011 8:03 am

I also found this bug.

For now I can work around it by not defining element-agnostic CSS classes. Isn't this a problem from Eclipse Web Developer Tools, though?
ausdev6000
 
Posts: 16
Joined: Sat Nov 26, 2011 7:59 am

Re: zend studio 9 css indent

Postby polyanin on Fri Dec 23, 2011 7:40 am

9.0.1 bug is still present
polyanin
 
Posts: 9
Joined: Sat Apr 17, 2010 6:25 pm

Re: zend studio 9 css indent

Postby dedi49 on Sat May 12, 2012 6:20 pm

I have the same bug on Zend Studio 9.0.2
dedi49
 
Posts: 1
Joined: Sat May 12, 2012 6:18 pm

Re: zend studio 9 css indent

Postby sylvie6713 on Sun May 13, 2012 9:48 am

Hi
This problem seems to happen in case that the opening brace is on the same line, and does not happen when it is on a new line.
Code: Select all
.name {
   font-weight: bold;
| <-- cursor here   
}

.name
{
   font-weight: bold;
   | <-- cursor here
}
Sylvia Tancheva
QA Team, Zend
User avatar
sylvie6713
 
Posts: 296
Joined: Fri Feb 27, 2009 10:24 am
Location: Bulgaria

Re: zend studio 9 css indent

Postby polyanin on Sun May 13, 2012 7:19 pm

Religion does not allow me to write it ;).
polyanin
 
Posts: 9
Joined: Sat Apr 17, 2010 6:25 pm

Re: zend studio 9 css indent

Postby sylvie6713 on Mon May 14, 2012 7:46 am

I notified the devs ... I don't want to go against your religion :)
Sylvia Tancheva
QA Team, Zend
User avatar
sylvie6713
 
Posts: 296
Joined: Fri Feb 27, 2009 10:24 am
Location: Bulgaria

Re: zend studio 9 css indent

Postby polyanin on Wed May 23, 2012 6:21 am

It took half a year, but the problem is present.
In the Eclipse does not have this bug.
polyanin
 
Posts: 9
Joined: Sat Apr 17, 2010 6:25 pm

Next

Return to Zend Studio

Who is online

Users browsing this forum: Google [Bot] and 3 guests