This guide explains how to work with the frame editor for editing source code, LaTeX documents, Command-line terminal etc. The screenshot below shows a Python file and a Terminal. In order to get that view, the frame editor is split vertically first, and then the right frame is splitted horizontally. After that, the bottom right frame is changed to a Terminal.
Therefore, you can not only view the same Python source code file in two places, but you can also work with e.g. IPython on the command-line in the same directory.
Supported file types¶
If you open/create a file ending with
*.md, you’re presented by default with a split view of Markdown code on the left and HTML rendered output on the right hand side.
You can also write LaTeX formulas between
$ signs, e.g.
The markdown editor supports inverse search when source and rendered views are both visible (this is the default display for markdown files). If you double-click on markdown in the rendered view, the source view will scroll to display the corresponding line.
Plaintext / Source Code¶
A file ending in
*.txt is a plaintext file, which does not have any formatting.
Similarly, you can also edit plaintext files with a special purpose, e.g.
*.csv for CSV data,
*.yaml for structured data, and for source-code of software programs, there is
*.adb and many more!
*.html file and you’ll see the rendered output on the right hand side. You can switch the rendered view between “Preview” (which is faster) or “iframe” (which renderes the page as it is) depending on your needs. You can even close the editor pane, to just see the rendered HTML.
*.rmd file to work with R Markdown.
Depending on the configuration in the preamble, you either produce an HTML or PDF output.
Do not forget to switch the panel for the rendered output accordingly.
(In case you produce PDF and HTML output, you can even see both after splitting the panel.)
You can get multiple cursors while editing any file in the frame editor using the mouse and ctrl+click (cmd+click on Mac).
If you switch to Sublime keybindings in “Account” > “Preferences” > “Editor settings”, you can select text and then use ctrl-D (cmd-D on Mac) to multi-select the next occurrence of the same text.