Build Compile Options

CRiSP provides various facilities to enable automatic building (make utility), compiling and executing of programs, usually as part of a development environment. The Build/Execute dialog allows you to set up these options so that when the appropriate commands are invoked, CRiSP will know how to perform the desired action.


The following operations are supported:

Make (build)    Used to compile up all files in a project and produce one or more output files. This is normally controlled by a makefile script. You do not need to use a makefile and make system. CRiSP lets you define an arbitrary command to be invoked with this facility, so you could use it for any suitable purpose.

Performing a build is usually not a function of the current file you are editing, whereas compiling is.

Compiling    Used to convert a program written in a particular source language into some intermediate format, as part of a larger project. Compiling is dependant on the file you are editing at the time the function is invoked.

CRiSP allows you to create a macroised command to invoke, the actual command depending on your settings and the file you are editing at the time you invoke the action.


Execute    Used to execute an arbitrary program, for example the executable file generated by the make command above.

Parser    This is used to specify a compiler so that CRiSP can correctly parse the error and warning messages generated, and hence, correctly locate line numbers in the affected source files.  By default, CRiSP contains support for a wide variety of compilers and applications, so you should not need to set this option. If your compiler is listed then use it. If not, then contact support and we will gladly add additional compiler settings. If you do decide to do this, please provide some real life sample error and warning messages so we can do the job properly, along with the compiler name and version information.

All of these functions are available from the Tools menu, and from the toolbar (if the Compile toolbar has been enabled for display).

You can set up the various options using the OptionsBuild/Execute dialog.

Compile Options

CRiSP provides various facilities to enable automatic building (make utility), compiling and executing of programs, usually as part of a development environment. The Build/Execute dialog allows you to set up these options so that when the appropriate commands are invoked, CRiSP will know how to perform the desired action.

Compile Options:These options are used to control what happens when you invoke the ToolsCompile and ToolsMake commands.

Execute Options

This command is used by the ToolsExecute menu option. It is used to execute a command, usually based on the name of the current file. For instance, if the current file is called testit.cpp, then under Windows, CRiSP would attempt to execute the program testit.exe.

Infotips

infotips-crtags

Infotips, or code completion, is a facility for providing context sensitive help in the form of a popup menu or tooltip whilst you are typing in code. It is ideal for working on code where you have lots of functions or data structures but cannot remember exactly the syntax or format of a specific item. For example, the TCL language provides a number of functions which perform a generic action, but the specific task they perform is controlled by the first argument passed to the function. 

For example, the [string] function takes a number of arguments to perform things like string matching, sub-string extraction etc. By typing in the function as in: [string] with the cursor placed after the string keyword, a popup will appear:

Types of Tips
When tips are enabled, then the tips will popup automatically as you are typing – you don’t need to remember any keyboard shortcuts. There are two types of tips – menu tips where a list of possible options are shown, and unambiguous function help tips, showing the prototype of the function or entity you are typing. Function tips are normally popped up as a result of typing open parenthesis or a comma 

When typing a function call, CRiSP will popup a reminder tip as you type each function argument, highlighting the argument you are typing.
Menu tips are shown when there are more than one valid definition of the object (function or structure/class member). You can scroll through each one, and a popup function tip will show to the side of the menu popup (if one is available).
CRiSP will normally scan your own private tag database as part of your project to show you valid definitions. If no definitions are found then CRiSP will rely on its own built in database of tips. CRiSP comes with a variety of databases covering C, C++, Java, Perl, TCL, Cold Fusion, and SQL.

Enabling Tips
Infotips can be enabled on a per file extension basis. Visit OptionsLanguage Editing Modes where you can enable the tip for persistent settings.
The set tip command can be used to temporarily change code completion for the current buffer – either to enable or disable it. You can enable tips for the current buffer using the following Command:

prompt set command: set tip
You can disable tips by using the command: set notip

Invoking Tips
Normally, an infotip will popup as you are typing in. CRiSP detects the type of construct you are typing and based on internal databases or project tag files, will display a list of valid options. You can force CRiSP to evaluate the current construct and show a list of options by using the <Ctrl-Space> key. You can use this even if tips are turned off, or if you have just dismissed the popup window.
Examples of Tips
CRiSP supports a number of languages for info-tipping. Different languages have different specifications and the features provided by CRiSP vary for these languages. The following examples illustrate simple examples of invoking the tip feature.

HTML
CRiSP provides support for HTML files, prompting you with the valid element names after an opening angle bracket. To see this in action, edit a new HTML file, and type <. If tips are enabled then a popup menu will show the valid HTML elements available. To the right of this menu will be a comments window, showing a description of the element and the available attributes. (If tipping is not enabled, then press <Ctrl-Space> to get the popup). You can scroll through the list of valid elements and click on the attribute links for each element to get a short description of the features available.

Parser Options

These definitions are used for the Preprocess command which can be used to preprocess a file and show the results of hiding lines which are not to be included.