The text editor used in Stylo is Monaco. This is the same component used in VSCode and VSCodium. It can also be found in a whole range of editors available on the web.

By using Monaco in Stylo, several writing functions have been incorporated:

  • Search and replace (CTRL/Cmd+F and CTRL/Cmd+H) ;
  • Use of regular expressions;
  • Comparison between different versions of the same document (line-by-line operation);
  • Autocompletion for references and text.

In addition, right-click in the text editor to access other editing options:

  • Copy (CTRL/Cmd+C);
  • Palette command (F1): gives access to all actions (and keyboard shortcuts) available with Monaco;
  • Metopes: blocks for infratextual markup in compliance with the Metopes chain;
  • Lightweight markup language: transforms selected text into bold, italic or hyperlinked text using Markdown light syntax, as well as creating footnotes. Indicates corresponding keyboard shortcuts.

To access the Command Palette directly via a keyboard shortcut, you can use the F1 key (Alt + F1 on Internet Explorer, and fn + F1 on the Mac keyboard).

Also, to transform a text selection in your Stylo document into a MarkDown comment (which will therefore not be visible on export or on the public annotation link), you can use the keyboard shortcut ctrl + k and then ctrl + c (command, on Mac keyboard).

Autocomplete #

An autocomplete function has been implemented in the Monaco text editor. For the moment, autocompletion only concerns bibliographic references.

Just start typing [@ or simply @ and the text editor will suggest all your references associated with the article. If you wish to refine autocompletion, simply add the first letter of the author’s name to narrow down the suggestions: [@b. To ensure that bibliographic references are processed correctly by the Pandoc conversion software, don’t forget to enclose your reference in square brackets [].

Bibliography-Autocompletion