Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] Javascript code folding

First I’m new to Orion code edit project. Please forgive me if my question was answered somewhere else, but I couldn’t find anything (googling)

 

I’m using the Code Edit widget in my project, and want to implement the code folding, but only the comments type of code is working out of the box, i.e.

 

/**

  *

  */

 

 

But following code is not able to be folded:

function myfunc () {

                var a =  1;

                var b = a + 1;

 

// a couple of hundreds of line of code here

 

 

                return b;

}

 

I’m wondering if that is possible I can implement a feature to be able to fold the above code:

 

+ function myfunc () {

 

 

Thanks in advance for any help.

 

--Z


Back to the top