Editor Support /
Ultra Edit
To configure UltraEdit for D
- Under the menu option Advanced item Configuration tab Syntax Highlighting
- Select Open (to open WORDFILE.TXT)
- Paste the code from the "UltraEdit Word File" (at the bottom of this page) at the bottom of this file. Alternatively, you can download the D wordfile from the UE website.
- If you have previously edited this file:
- Look for the first line that was pasted, beginning with /L10"D"
- Edit the number 10 in /L10 to insure that it is greater than the previous /L tag.
- Under the menu option Advanced item Configuration tab File Types
- Enter a file mask in File Names equal to: *.D
- Enter a file description in File Descriptions equal to: 'D' Files, (*.D)
- Click Insert
If you want to compile and run your D applications from UltraEdit:
- Under Advanced -> Tool configuration:
- a)
- "Command Line": Compile.bat
- "Working directory": %P
- "Menu Item Name": Compile
- Check "Save active file"
- Select "Output to List Box"
- Check "Capture output"
- Press "Insert"
- b)
- "Command Line": Run.bat
- "Working directory": %P
- "Menu Item Name": Run
- Uncheck "Save active file"
- Check "Show DOS Box"
- Uncheck "Capture output"
- Press "Insert"
- c) If you have a German keyboard, you should also do:
- "Command Line": -
- "Menu Item Name": Dummy
- Press "Insert"
- ... and move it to the very top. That way your custom tools start with CTRL+SHIFT+1 and not CTRL+SHIFT+0 (German keyboard layout: 1,2,3,4,5,6,7,8,9,0)
- d) You should move "Compile" to the top and position "Run" below it.
- e) Now put something like
... in a file called "Compile.bat" that resides in your source code folder.dmd <file.d>
- f) Then put something like
... in a file called "Run.bat" that resides in your source code folder.<file.exe> pause
To compile your project (really to invoke Compile.bat in the current directory) press CTRL+SHIFT+0 (1 on German keyboards).
To run your project press CTRL+SHIFT+1 (2 on German keyboards).
It doesn't matter which file is open/active when you run one of the tools - as long as it is in the same directory as Compile.bat and Run.bat. That way you can also edit them (try different compilation options etc.) and immediately see the changes.
UltraEdit Word File
|