monaco: the Monaco editor as a HTML widget

Yet another second editor in RStudio.

The Monaco editor is the code editor which powers 'VS Code'. It is particularly well developed for JavaScript. In addition to the built-in features of the Monaco editor, the widget allows to prettify multiple languages, to view the HTML rendering of Markdown code, and to view and resize SVG images.

With the help of htmltools::browsable, one can open two Monaco editors in the RStudio viewer pane:

The Monaco editor has many options. If you would like some of them to be available in the monaco package, please fill an issue.

As any HTML widget, the Monaco editor widget can be used in Shiny apps:

This app uses the sass package to compile some SCSS code to CSS code. It is one of the examples provided in the monaco package.

Related projects

editor in a sophisticated Shiny app. It is more developed than the monaco widget but using the Shiny app locks RStudio.

widget.

Copy Link

Version

Down Chevron

Install

install.packages('monaco')

Monthly Downloads

212

Version

0.2.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

May 18th, 2022

Functions in monaco (0.2.2)