The Code Folding branch under Configuration - Editor Display has the following options:
Save folded lines
If this option is selected, information regarding folded lines will be stored when a file is closed so that it will be opened in the same state the next time the file is edited. If this option is not selected, all lines will be unfolded the next time a file is loaded regardless of their fold state at the time a file is closed.
Enable show/hide lines and code folding
This setting permits hiding/showing selected text and folding/expanding code blocks. If this is not selected the folding gutter will not be visible in the edit window and folding is disabled. If a file is opened that exceeds the threshold specified for using temporary files under the Temporary Files branch in the File Handling section of configuration, and the option is set to open without a temporary file in this case, code folding will not be displayed.
Enable show/hide lines in non-syntax-highlighted files (above must also be set)
This setting permits text to be hidden in non-syntax-highlighted files and expanded/collapsed using the View menu commands. If this is not selected the folding gutter will not be visible in the edit window in non-syntax-highlighted files and folding is disabled.
Show last line of fold in syntax highlighted files
If this option is selected, the last line of a folded section will be displayed in files with syntax highlighting. If this option is not selected, only the initial line of a folded section will be displayed.
Automatically unfold hidden areas on Find and Goto
If this option is selected, and a Find or Goto command positions the cursor within folded text, that folded level will be unfolded automatically to correctly display the cursor in context.
Detect XHTML from DTD on file load
If this option is selected, the editor will scan files for a DOCTYPE declaration. If a DTD for XHTML 1.0 Strict or XHTML 1.1 is specified, the rules for elements associated with this document type will be respected for code folding and indentation.
Draw graphical lines
If this option is selected and Enable show/hide lines and code folding is selected above, lines are drawn in the folding gutter to the right of the line numbers to indicate where folding nodes begin and end.
Draw indent lines
If this option is selected and Enable show/hide lines and code folding is selected above, lines are drawn within the active file from the first indented line of a fold block to the last indented line of a fold block to indicate where folded sections begin and end.
|Posted - Thu, Oct 13, 2011 7:45 PM. This article has been viewed 2015 times.|
|Online URL: http://www.ultraedit.com/help/article/code-folding-1533.html|
Powered by PHPKB Knowledge Base Software