From d3bd58868dc5a399976669dcd734c9cc2801a774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Dietrich?= Date: Sun, 11 Sep 2022 18:32:58 +0200 Subject: [PATCH] added note on multiple files --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66eb77e..7fe2aa1 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ You may optionally specify any of the following module config, the `runCommand` ```js { "editorText": "Starting text in editor...", - "runCommand": "execute", // this is the subject under which the current code will be published for execution - "language": "cpp", // https://microsoft.github.io/monaco-editor + "runCommand": "execute", + "language": "cpp", "theme": "light" } ``` @@ -24,4 +24,19 @@ You may optionally specify any of the following module config, the `runCommand` `runCommand` defines the subject under which the current editor-input will be published. Other modules such as the [edrys_module-pyxtermjs](https://github.com/Cross-Lab-Project/edrys_module-pyxtermjs) can be configured to listen to this specific subject and execute some action when they receive this event. +### Multiple files + +It is also possible to define multiple files like this. + +```js +{ + "file": { + "main.cpp": "Hello world...", + "main.h": "another file another day" + }, + "runCommand": "execute", + "language": "cpp", + "theme": "light" +} +```