SmilyOrg / tw5-monaco

Monaco editor for TiddlyWiki

Home Page:https://smilyorg.github.io/tw5-monaco/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tw5-monaco

Supercharged code and text editor component using the excellent Monaco Editor - the editor that powers Visual Studio Code.

The integration is somewhat basic right now. See below.

Inspired by the 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 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 parser text ranges.

About

Monaco editor for TiddlyWiki

https://smilyorg.github.io/tw5-monaco/


Languages

Language:JavaScript 100.0%