https://github.com/smilyorg/tw5-monaco
Monaco editor for TiddlyWiki
https://github.com/smilyorg/tw5-monaco
editor monaco plugin tiddlywiki tw5
Last synced: about 1 year ago
JSON representation
Monaco editor for TiddlyWiki
- Host: GitHub
- URL: https://github.com/smilyorg/tw5-monaco
- Owner: SmilyOrg
- Created: 2022-02-20T15:05:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T20:23:59.000Z (over 3 years ago)
- Last Synced: 2025-03-28T00:11:10.219Z (over 1 year ago)
- Topics: editor, monaco, plugin, tiddlywiki, tw5
- Language: JavaScript
- Homepage: https://smilyorg.github.io/tw5-monaco/
- Size: 656 KB
- Stars: 26
- Watchers: 4
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tw5-monaco
Supercharged code and text editor component using the excellent [Monaco Editor](https://microsoft.github.io/monaco-editor/) \- the editor that powers [Visual Studio Code](https://code.visualstudio.com/).
The integration is somewhat basic right now. See below.
Inspired by the [CodeMirror](#CodeMirror) plugin. Monaco Editor is licensed under MIT, copyright Microsoft.
## Disclaimer
This is very alpha-level code for now, so no guarantee that it will not delete all your text and tiddlers randomly, brick and/or otherwise corrupt your installation.
Of course I don't expect that to happen and for what it's worth, I wrote this readme with it, so it seems to work alright for what it is.
## Features
A lot of the out-of-the-box features of Monaco already work well.
* Syntax highlighting and formatting for [TiddlyWiki](#TiddlyWiki) wikitext, HTML, JS, Markdown
* Advanced multiselections and editing
* Scrollbar minimap
* Tiddler autocompletion
* Hover tooltips with tiddler contents
## Limitations
* **Online only**. The Monaco editor source itself will be loaded remotely from `unpkg.com`, so editing while offline isn't possible at this point.
* **No configuration**. Yet?
* **Highlighting heuristics**. Wikitext highlighting might not always be accurate due to missing [TiddlyWiki](#TiddlyWiki) parser text ranges.