How to use context help

If you have a (*.chm) which explains something based on keyword index, then you can set up user tools to look up keyword you just have typed in without escaping from the Editor.

The following example shows how to set up 'User Tools' to use LaTeX help file. We assume that you have LaTeX help file (LATEX2E.CHM) in the following directory. C:\texmf\doc\latex\help\LATEX2E.CHM

  1. Open Preferences dialog box and select User Tools page
  2. Select an empty slot and fill with the following arguments.
  • Menu Text: LaTeX Context Help
  • Command: C:\texmf\doc\latex\help\LATEX2E.CHM
  • Argument: $(CurrWord)
  • Initial dir: $(FileDir)
  • Hot key: F1
  • Close on exit: Yes
  • Save before execute: No

After that, you can press F1 to see the search index when the caret is on the word you want to look up.

How to use a online service

If you want to a online service to look-up a word which you have just typed in without escaping from the Editor, then

  1. Open Preferences dialog box and select User Tools page
  2. Select an empty slot and fill with the following arguments.
  • Menu Text: Online Service
  • Command: C:\Program Files\Mozilla Firefox\firefox.exe
  • Argument: https://dictionary.cambridge.org/spellcheck/english/?q=$(CurrWord)
  • Initial dir: $(FileDir)
  • Hot key: Ctrl+F1
  • Close on exit: Yes
  • Save before execute: No

After that, you can press Ctrl+F1 to see the contents when the caret is on the word you want to look up.

How to execute binary executable file

If you have finished editing 'test.c', and you already compiled this file into binary executable file named 'test.exe', then you can use user tools to execute this binary file to see the result without escaping from the Editor.

  1. Open Preferences dialog box and select User Tools page
  2. Select an empty slot and fill with the following arguments.
  • Menu Text: Execute Binary Executable
  • Command: C:\Windows\System32\cmd.exe
  • Argument: /C $(FileTitle)
  • Initial dir: $(FileDir)
  • Hot key: Ctrl+F5
  • Capture output: Yes or No
  • Save before execute: No

After that, you can press Ctrl+F5 while editing 'test.c' to execute 'test.exe'.

How to install a custom compiler

You may want to install a custom compiler besides the ones that come already. Here is a guideline you can follow to do so.

In this example, we assume that you install Borland C++ compiler which is free to use. Of course, there are more compilers available (LCC, DJGPP, FreeBasic for example). It is up to you which compiler to use,be aware that the platform already brings TCC and Mingw-w64

  1. Download 'FreeCommandLineTools.exe' from Embarcadero. https://www.embarcadero.com/free-tools/ccompiler/ .
  2. Install 'FreeCommandLineTools.exe' into 'C:\Borland\BCC55' directory.
  3. Add 'C:\Borland\BCC55\bin' to the existing path.
  4. Set compiler options and linker options.From the bin directory of your installation, create a 'bcc32.cfg' and a ' ilink32.cfg'file which will set the compiler options for the Include and Lib paths (-I and -L switches to compiler) by adding these lines:
  • Add these lines to bcc32.cfg

     -I"C:\Borland\BCC55\Include"
     -L"C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK"

  • Add these lines to ilink32.cfg

     
     -L"C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK"

How to compile source code with the custom compiler

If you have finished writing a program, then you can use user tools to compile this program into binary file without escaping from the Editor.

The following example assume that you already installed C++ Builder in 'C:\Borland\BCC55' directory as in the example above.

  1. Open Preferences dialog box and select User Tools page
  2. Select an empty slot and fill with the following arguments.
  • Menu Text: Compile C/C++ Source Code
  • Command: C:\Borland\BCC55\bin\bcc32.exe
  • Argument: $(FileName)
  • Initial dir: $(FileDir)
  • Hot key: Ctrl+F7
  • Capture output: Yes
  • Save before execute: Yes

After that, you can press Ctrl+F7 while editing 'test.c' to compile this source code.