|
Fortran90This configuration component contains highlighting, active strings, dictionary, menus, keyword search, buttons and images, tool bar customizations, compilation support and many more for Fortran 90 computer language and its later standards, including the current Fortran 2003 standard. InstallationThe contents of the zip archive should be extracted in the following directory: %b\Config\Fortran90. Note that %b is different from %B. While %B always means the WinEdt installation directory, i.e.,
%b means:
After extraction you have to open WinEdt to execute the installation macro via Macros | Execute Macro... | _install_Fortran90.edt command. What does it contain?After installation a new item, named Fortran90 Editor, is added to the Options | Configurations menu. It does the following: Loads all menus and toolbar customizations related to Fortran90 mode. Static HighlightingYou can see the custom Fortran90 highlighting in action by answering "Yes" at the end of installation regarding the sample file or you can later open sample.f90 file by hand. Highlighting includes: Highlighted switches:
Highlighted keywords:
Dynamic Highlighting and Command CompletionDynamic highlighting and (dynamic) command completion is supported via the dynamicKeywords macro. It allows highlighting and command completion of user defined Fortran90 functions, subroutines, interfaces, and (some) variables gathered from WinEdt's Tree. Therefore, to use this feature you need to have dynamicKeywords files installed at %b\Macros\macro and, additionally, you have to set a Fortran90 Main file and then build a Tree. Dynamic highlighting and command completion can be triggered either manually, by choosing Tools | Update Dynamic Keywords, or automatically by using the related active strings, like "function<space>" or "subroutine<space>", for example. Active StringsTrigger Inserts
Document Menu
|
| Fortran Document | Creates an empty .f90 file with a header and some custom stamps already included as fortran comments |
| Fortran Program | Creates a new .f90 file with a header, some custom stamps, and a program statement. |
| Fortran Module | Creates a new .f90 file with a header, some custom stamps, and a module statement. |
Some Fortran90 Statements and Constructs:
| Program Start | Inserts a Fortran program statement with some user comments. Very useful to begin new programs from scratch. |
| Module Start | Inserts a Fortran module statement with some user comments. Very useful to begin new modules from scratch. |
| Function | Inserts a Fortran function statement. |
| Recursive Function | Inserts a Fortran recursive function statement. |
| Subroutine | Inserts a Fortran function statement. |
| Constructs | Inserts some Fortran constructs: case, do, forall, if, etc... |
| Statements | Inserts some Fortran statements: forall, if, open |
If it doesn't already exist, a new menu item called Update Dynamic Keywords will be added to the Tools Menu.
| Update Dynamic Keywords | This command updates syntax highlighting and code completion of user-defined variables, functions and procedures. This commands is not only useful to the Fortran90 mode, but for all other modes that use the Dynamic Keywords macro, so it will not be removed when uninstalling Fotran90 mode (not a bug). |
| Compile File (Ctrl+F8) | Compile your current Fortran file. If this file has dependencies, like modules or includes, you need to set it as Main File and then Build a Tree. Before compiling, you must select and configure your preferred Fortran compiler, this can be done in the Compiler Settings dialog. |
| Build & Run (F9) | Compile (if required), link into executable, and run (if build succeeded) the resulting executable file. Note that if you have previously set a Main File then this command compiles every (dependent) file in a project, tracking whether the compiled version of each file are already up to date in order to save time, and then it uses the linker to put it all together in an executable and then execute your project. |
| Run (F8) | Launch the executable. |
| Clean | Open Erase dialog window. Allows you to selectively delete output files. |
| Compiler Settings | Select your preferred compiler and change compiler settings. You can also set linker options. All settings are tied to the current fortran file or project. The information you entered here is saved in a configuration file (.mak) for future reference. The current supported compilers are:
|
| Add New Compiler | Allows you to add a not detected compiler manually by locating the compiler executable file (g95.exe, gfortran.exe, ifort.exe ...). In this way you can even use a Fortran compiler that is not actually installed, but is contained, for example, in your portable device. |
If you have downloaded the version of this component that comes with the Intel Visual Fortran Language Reference, then the Keyword Search command, or Ctrl+F1 shortcut, can be used to search for Fortran keywords and intrinsic procedures. If your download does not contain the help file (lref_for.chm), you can try downloading it from one of the links below and thereafter copy the help file to %b\Config\Fortran90 directory:
The Fortran90 Dictionary has most Fortran keywords and intrinsic procedures, it can be used for Command Completion by using the Ctrl+Enter shortcut.
If this option was selected in the installation procedure, a new macro replaces the original MDI Save Event macro. The purpose of this new macro is to automatically update custom time and file stamps while in Fortran90 mode. Time and file stamps are inserted as Fortran comments, begins with a dollar sign and ends with a colon (:). For example:
! $file: filename.f90 ! $date: August 28, 2009
Fortran90.zip [157 KB, without Intel Visual Fortran Language Reference]
Fortran90+Help.zip [1961 KB, including Intel Visual Fortran Language Reference]
The package requires the
which both must be saved in %b\Macros\macro (preferably) or %B\Macros\macro.
Configuration component contributed by Bernhard Enders <bgeneto
gmail.com>
| Configuration Component |