aboutsummaryrefslogtreecommitdiff
path: root/doc/06_AdeptEditing.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-27 21:12:05 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-27 21:12:05 -0400
commitef23e13ac57cf6a8bcb04ccce10d2e5b34feec06 (patch)
tree558d22791c4461fc5b765ce9ef57dd2273df73e0 /doc/06_AdeptEditing.md
parent235a3a04d8cf7f80823d59a8ff6ec77fbf8e61d5 (diff)
downloadtextadept-ef23e13ac57cf6a8bcb04ccce10d2e5b34feec06.tar.gz
textadept-ef23e13ac57cf6a8bcb04ccce10d2e5b34feec06.zip
Integrated compile and run commands for most languages.
Compile and run should work out of the box for most languages. Also added a warning marker, renamed `compile_command` and `run_command` tables to `compile_commands` and `run_commands`, respectively, and renamed `error_details` to `error_patterns`, changing its structure to just hold patterns.
Diffstat (limited to 'doc/06_AdeptEditing.md')
-rw-r--r--doc/06_AdeptEditing.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/06_AdeptEditing.md b/doc/06_AdeptEditing.md
index 38f824a9..f27df547 100644
--- a/doc/06_AdeptEditing.md
+++ b/doc/06_AdeptEditing.md
@@ -212,7 +212,8 @@ search.
Being a programmer's editor, Textadept excels at editing source code. It
understands the syntax and structure of more than 80 different programming
languages and recognizes hundreds of file types. Textadept uses this knowledge
-to make viewing and editing code faster and easier.
+to make viewing and editing code faster and easier. It can also compile and run
+simple source files.
### Lexers
@@ -296,3 +297,22 @@ can define some too.
Pressing `Ctrl+/` (`⌘/` on Mac OSX | `M-/` in curses) comments or uncomments the
code on the selected lines. Selecting any part of a line renders the entire line
eligible for commenting or uncommenting.
+
+### Compile and Run
+
+Textadept knows most of the commands that compile and/or run code in source
+files. Pressing `Ctrl+Shift+R` (`⌘⇧R` on Mac OSX | `M-^R` in curses) executes
+the command for compiling code in the current file and `Ctrl+R` (`⌘R` | `^R`)
+executes the command for running code. A new buffer shows the output from the
+command and marks any recognized warnings and errors. Pressing `Ctrl+Alt+E`
+(`^⌘E` | `M-X`) attempts to jump to the source of the next recognized warning or
+error and `Ctrl+Alt+Shift+E` (`^⌘⇧E` | `M-S-X`) attempts to jump to the previous
+one. Double-clicking on warnings and errors also jumps to their sources. If
+Textadept does not know the correct commands for compiling and/or running your
+language's source code, or if it does not detect warning or error messages
+properly, you can [make changes][] in your [user-init file][].
+
+![Runtime Error](images/runerror.png)
+
+[make changes]: api/_M.html#Compile.and.Run
+[user-init file]: 08_Preferences.html#User.Init