Jump to content


Photo

Code Folding with SciTe


  • Please log in to reply
1 reply to this topic

#1 patgenn123

patgenn123
  • Members
  • 124 posts

Posted 02 June 2012 - 05:14 AM

Hello all,

I am still pretty new at programming and trying to understand how SciTe works.

It appears to me that the only two symbols that can be used to fold a block of code is ( and {.

As I am trying to block my code, sometimes I get huge pink sections that appear to me that I am doing something wrong.

When I go into the Global Properties, I see this section on folding:

# Folding
# enable folding, and show lines below when collapsed.
fold=1
fold.compact=0
fold.flags=16
fold.symbols=3
#fold.on.open=0
session.folds=1
fold.comment=1

What can I do to change it to a symbol such as & or whatever to create blocks of code?

This maybe a really dumb question.

Thanks in advance.

PG

#2 Guests

  • Guests

Posted 06 June 2012 - 11:16 PM

I don't know why you would want to change it to fold at & symbols cause that is weird.
Anyways ( ) and { } have specific functionality in the programming language you need to be careful where they are used. The fact that they usually require a start and an end lets the editor find and fold them and that is the only reason it works.

There is one more that you didn't list: it also folds around a comment section
/* Description of comments
These are my comments!
They work with multiple lines of text.
And they fold up in SciTE too!
*/