ð#Syntax10.Scn.FntAAFolds.Compile ~ Folds.Compile * Folds.Compile ^ Folds.ShowError Folds.Restore * Folds.SetProfile ----------------------------------- Folds allows the compilation of folded texts automatically inserting error elements at the error positions. Folds.Compile (^ | * | {filename} ~) compiles the specified text(s). If the text contains folds, they are silently unfolded before the compilation. Error elements are inserted at the error positions. They can be searched for with Folds.ShowError. Old error elements are removed before every new compilation and are not stored with Edit.Store. When called from the menu bar, Folds.Compile compiles the text in the viewer to which the menu belongs. Folds.ShowError Sets the caret to the next error element after the previous caret position and displays an error message in the Log Viewer. If there is no caret set, ShowError shows the first error in the text. If an error element is contained in a folded text part, the fold is automatically expanded. ShowError expects a table of error numbers and error messages in a specific file (OberonErrors.Text for default). Folds.Restore * Collapses all folds that were unfolded during Folds.ShowErrors in the marked viewer. Folds.SetProfile A couple of settings are stored in the file Folds.Profile which is read when module Folds is loaded. When these settings are changed in Folds.Profile they can be reloaded with the command Folds.SetProfile. The default contents of Folds.Profile (which are also the default settings when Folds.Profile is missing) are as follows: compiler = Compiler.Compile \s errorFile = OberonErrors.Text showWarnings = yes The settings allow to select a different compiler, different default compilation options, and a different error message file. They also specify if error elements should be inserted for warnings.