Forcing a fold within comments

Syntax highlighting, code folding, brace matching, code indenting, and function list

Forcing a fold within comments

Postby stevedurie » Tue Jun 14, 2005 2:31 pm

Hello,

I've been tinkering with wordfile.txt to accomodate a forced fold that is already present in much of my code, but can't seem to get it working.

The fold marker is a triple brace such as:
Code: Select all

' {{{ header
' stuff
' more stuff
' }}}

' {{{ variables
foo is x
' etc..
' }}}


I've tried "{{{" and "}}}" in the open/close strings, but that doesn't seem to work when the block is in a comment.

Any ideas?


thanks,
User avatar
stevedurie
Newbie
 
Posts: 4
Joined: Sun Aug 21, 2005 11:00 pm

Re: Forcing a fold within comments

Postby Mofi » Sat Aug 05, 2006 2:05 pm

Possible only with UltraEdit v12.00 and higher with

/Open Comment Fold Strings = "..."
/Close Comment Fold Strings = "..."

Note: Normal open/close fold strings must be also defined for that language to enable the code folding feature for that language. If you don't have useful open/close fold strings, define dummies.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4065
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting