Using the integrated editor
Overview
The PureBasic editor has been created specifically for the PureBasic programming language and has many features specially designed for it. It will become more and more powerful and will support advanced editing like word filling, visual IDE etc...
Basic usage:
The PureBasic editor accepts any standard ASCII characters, and loads and saves files in the ASCII format. It uses all the standard Windows shortcuts to edit the text:
Arrow Keys : Move the cursor in the four directions
Shift + Arrow Keys : Select the text
Ctrl + Home : Go to the top of the source file
Ctrl + End : Go to the bottom of the source file
The most important menu shortcuts are:
Ctrl + S: Save the current source code without any request
Ctrl + L: Load a new source code
F1: Bring up the PureBasic manual online help (this document). If F1 is pressed on a PureBasic or Windows keyword, it will go directly to the keyword definition.
F5: Start the compilation and launch the program
This editor has an auto-indent fonction which always keeps the cursor in the currently indented block, providing easy source code editing.
Special features:
There is a menu called 'Compiler' and it is through this you can control the PureBasic compiler. Menu items:
* Compile/Run: Compile the source code and run it.
* Debugger: Switch which toggles the runtime debugger on and off
* Options:
- Create an icon: An icon will be added to the created executable
- NT4 compliant executable: Allow a multimedia application or game (using DirectX) to run without trouble on NT4. In this case, DirectX 3 is used instead of DirectX 7 (Service Pack 3 needed on the NT4 though).
- Enable Inline ASM: Allows the use of ASM keywords directly in the source code. Be cautious as a variable cannot have the same name as an x86 keyword (MOV, TST, JMP etc...)
* CreateExecutable: Create a final executable, including the icon if necessary.
Other options like Find, Save As, Cut/Copy/Paste are classic ones like in any other editors...