Contents

_M.textadept.run

Module for running/executing source files. Typically, language-specific modules populate the compile_command, run_command, and error_detail tables for a particular language’s file extension.

Run Events


Functions


compile ()

Compiles the file as specified by its extension in the compile_command table.

See also:


execute (command, lexer)

Executes the command line parameter and prints the output to Textadept.

Parameters:


goto_error (pos, line_num)

When the user double-clicks an error message, go to the line in the file the error occured at and display a calltip with the error message.

Parameters:

See also:


run ()

Runs/executes the file as specified by its extension in the run_command table.

See also:


Tables


compile_command

File extensions and their associated ‘compile’ actions. Each key is a file extension whose value is a either a command line string to execute or a function returning one. This table is typically populated by language-specific modules.


error_detail

A table of error string details. Each entry is a table with the following fields:

When an error message is double-clicked, the user is taken to the point of error. This table is usually populated by language-specific modules.


run_command

File extensions and their associated ‘go’ actions. Each key is a file extension whose value is either a command line string to execute or a function returning one. This table is typically populated by language-specific modules.