Leo : Basics   Derived Files Part 2  

Leo has a second way of creating derived files. This is the @file directive. This directive at first seems similar to the @root directive, but there is an important conceptual difference. When you use the @file directive, outline information is always written to the derived file. Therefore, you cannot use the @silent directive.

The benefit of using the @file directive is that there is no longer any need to explicity tangle and untangle.  Tangling and untangling happen automatically by opening a .leo file and saving it. This makes alternating between Leo and another editor or IDE completely transparent.

In addition, when you use the @file directive, you can have unnamed sections. To see how these work, read on...

 
screenbooks home site

1 of 9
  Text Author: Joe Orr   Copyright 2002 All Rights Reserved  
  Created with ScreenBook Maker   Last update: 8/12/2002   Additional Trademark and Copyright Information