CSS, Folding and AutoCompletion
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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:
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?
## 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
}
}

## 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?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: CSS, Folding and AutoCompletion
Post by sorin_ristache »
Hello,
Regards,
Sorin
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:So, after removing the commas, Oxygen will allow to fold those blocks but thats not a valid JS Syntax anymore
It does not happen for me. Post a sample CSS file and specify the position where that happens.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.
Regards,
Sorin
-
- 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
(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
Maybe my last post wasnt exactly describing the problem, so i hope this one will give a better understanding
When i am entering something like
Code: Select all
.foo {
display: |
}
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|
}
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service