CSS, Folding and AutoCompletion

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bjoern.wolf
Posts: 2
Joined: Mon Mar 06, 2006 7:06 pm

CSS, Folding and AutoCompletion

Post 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?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: CSS, Folding and AutoCompletion

Post 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
bjoern.wolf
Posts: 2
Joined: Mon Mar 06, 2006 7:06 pm

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply