This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190085 - Split file into peices && Javascript custom code folding
Summary: Split file into peices && Javascript custom code folding
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 19:18 UTC by baxter
Modified: 2014-10-06 13:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description baxter 2010-09-01 19:18:40 UTC
Hi,

I would like to suggest two features, the first feature is the ability to split an active file into multiple peices, this would be especially useful for large javascript where you want to orgainize your code but do not want to have to load a large number of files in the html doc to test.

The second is an easier more intuitive custom folding option. I tried the <editor-fold> in a javascript document and it never presented the folds. Also anon functions do not have folding capabilities in javascript development you need to place a function name for it to become foldable.

exposing the folding routine to allow for custom regex could be a great option.

Cheers,

Jay
Comment 1 baxter 2010-10-05 13:40:56 UTC
After reviewing further anon function do work in this context:

var anon = function() {...}

but do not become collapsable in this context:

function cart() {
...
return {
   test: function() {..}
}
}