├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 swyx 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > this list is now archived - look inside https://github.com/sw-yx/brain if you would like an updated list! thank you. 2 | 3 | # awesome-monaco-editor 4 | 5 | Resources and tips and tricks for https://github.com/microsoft/monaco-editor/! 6 | 7 | ## Monaco Wrappers 8 | 9 | - Web Component https://github.com/vanillawc/wc-monaco-editor 10 | - React https://github.com/react-monaco-editor/react-monaco-editor 11 | - React Native 12 | - non Open Source - https://github.com/microsoft/monaco-editor/issues/1365#issue-420813035 13 | - VS Code on iPad? - https://github.com/microsoft/vscode/issues/70764 14 | - [Corbin Crutchley](https://twitter.com/crutchcorn/status/1247048617816285184) 15 | 16 | ## Example codebases using Monaco 17 | 18 | other than VSCode of course 19 | 20 | - https://github.com/satya164/monaco-editor-boilerplate 21 | - https://github.com/malcolm-kee/malcolm-kee/blob/master/src/components/typescript-editor.tsx (used in [https://malcolmkee.com/typescript-for-react-developer/variables#array-and-tuple](https://malcolmkee.com/typescript-for-react-developer/variables#array-and-tuple) 22 | - https://github.com/sw-yx/svelte-zen-garden 23 | - https://github.com/statecharts/xstate-viz/tree/next/src 24 | - https://github.com/Lamden/wallet 25 | - https://github.com/eclipse-theia/theia (uses VScode) 26 | 27 | 28 | ## Helpful Blogposts 29 | 30 | - React 31 | - https://blog.expo.io/building-a-code-editor-with-monaco-f84b3a06deaf 32 | - https://www.swyx.io/writing/how-to-add-monaco-editor-to-a-next-js-app-ha3 33 | - Svelte 34 | - https://www.swyx.io/writing/svelte-zen-garden/ 35 | - Language Server Protocol 36 | - https://blog.codedamn.com/language-server-protocol-with-monaco-editor/ 37 | 38 | 39 | ## Monaco tips 40 | 41 | - add code folding icons https://github.com/sw-yx/svelte-zen-garden/issues/1#issuecomment-614101314 42 | - automatically load declaration files while typing https://github.com/lukasbach/monaco-editor-auto-typings 43 | --------------------------------------------------------------------------------