Page 1 of 1

CSS, Folding and AutoCompletion

Posted: Mon Mar 06, 2006 7:14 pm
by bjoern.wolf
Hi there,

## Folding

Oxygens folding mechanism is misbeving a little bit on some syntaxes. Following code will not work:

Code: Select all


var Foo = new Object();
Foo.Bar = {
create: function() {
//Some comments
//for testing
},
update: function() {
//Some comments
//for testing
},
remove: function() {
//Some comments
//for testing
}
}
So, after removing the commas, Oxygen will allow to fold those blocks but thats not a valid JS Syntax anymore :(

## AutoCompletion

Another issue i have with Oxygen is the way it completes CSS values. It removes an empty space between property and value even though i explicitly entered this empty space. Maybe this could get another "option" in the preferences?

Re: CSS, Folding and AutoCompletion

Posted: Tue Mar 07, 2006 2:14 pm
by sorin_ristache
Hello,
bjoern.wolf wrote:So, after removing the commas, Oxygen will allow to fold those blocks but thats not a valid JS Syntax anymore :(
It is true that keeping or removing the commas should not change the number of folds. We will fix that. To compute and mark the folds with visual indicators should not require a fully valid JS syntax. It is enough that the curly brackets can be matched. This allows you to fold areas which do not contain valid JS syntax code.
bjoern.wolf wrote:Another issue i have with Oxygen is the way it completes CSS values. It removes an empty space between property and value even though i explicitly entered this empty space.
It does not happen for me. Post a sample CSS file and specify the position where that happens.

Regards,
Sorin

Posted: Tue Mar 07, 2006 3:21 pm
by bjoern.wolf
Thanks for replying. The Problem with auto-completion a bit more detailed:

When i am entering something like

Code: Select all


.foo {
display: |
}
(notice the empty space after the property, the pipe stands for my cursor)

Oxygen will give me the valid values for this property, but after confirming the choosen value Oxygen will generate following

Code: Select all


.foo {
display:block|
}
Maybe my last post wasnt exactly describing the problem, so i hope this one will give a better understanding

Posted: Tue Mar 07, 2006 4:23 pm
by george
Hi Bjoern,

.foo {
__display:_|_
}

where _ stands for a space character
after
CTRL+Space, select block, ENTER results

.foo {
__display:_block|_
}

Please double check that you get indeed different results.

Best Regards,
George