No edit summary |
|||
Line 12: | Line 12: | ||
== Launching the editor in probcli == | == Launching the editor in probcli == | ||
The probcli REPL (read-eval-print-loop) supports the command <tt>:e</tt> to open the current file in the external editor, as specified in the "EDITOR" preference. | The [[Using_the_Command-Line_Version_of_ProB|probcli]] REPL (read-eval-print-loop) supports the command <tt>:e</tt> to open the current file in the external editor, as specified in the "EDITOR" preference. | ||
You can set this preference using | You can set this preference using | ||
probcli -repl -p EDITOR PATH | probcli -repl -p EDITOR PATH | ||
Line 22: | Line 22: | ||
A [https://github.com/bivab/prob.vim VIM plugin for ProB is available]. | A [https://github.com/bivab/prob.vim VIM plugin for ProB is available]. | ||
It shows a quickfix list of parse and type errors for classical B machines (.mch) using the [Using_the_Command-Line_Version_of_ProB|command line tool probcli]. | It shows a quickfix list of parse and type errors for classical B machines (.mch) using the [[Using_the_Command-Line_Version_of_ProB|command line tool probcli]]. | ||
== Atom == | == Atom == |
ProB Tcl/Tk contains an editor in which syntax errors are displayed and which can be used to edit B, CSP, Z and TLA+ models. The editor of Tcl/Tk, however, has a few limitations:
It is possible to open the files in an external editor. You can setup the editor to be used by modifying the preference "Path to External Text Editor" in the "Advanced Preferences" list (available in the "Preferences" menu). You can then use the command "Open FILE in external editor" in the "File" menu to open your main specification file with this editor. You can also use the command-key shortcut "Cmd-E" for this.
The probcli REPL (read-eval-print-loop) supports the command :e to open the current file in the external editor, as specified in the "EDITOR" preference. You can set this preference using
probcli -repl -p EDITOR PATH
In case errors occurred with the last command, this will also try and move the cursor to the corresponding location in the file.
A VIM plugin for ProB is available. It shows a quickfix list of parse and type errors for classical B machines (.mch) using the command line tool probcli.
Some BBedit Language modules for B, TLA+, CSP and Prolog are available.
A package b.el is available.