I'm writing this without seeing hangout 99, so this could be moot.

Having the product (and scars) to prove it, I've implemented editing tools 
for my own DSLs in both CodeMirror and Ace.  Ace is, IMO, far, far easier 
to work with and (perhaps more importantly for TW5 purposes) far easier to 
hack and extend. (Aside: one of the simplest-sounding yet longest lasting 
issues I had with CodeMirror, was controlling its width in a flexible and 
dynamic manner (not something that is needed in TW - you typically don't 
need to drag the editor itself around the UI)).

My intention when I used Ace was to provide a simple editor that allowed a 
JSON-like DSL to be displayed and edited such that keyword property names 
(quoted strings) in the JSON could be coloured as though they were actual 
keywords in the DSL language.  With that as my brief, I had it working in 
(comparatively speaking) "no time" and realised I could go a lot further.  
Cutting it short, I ended up with an IDE and debugger with watches, 
stepping, you-name-it.  The editor now has all the bells and whistles you'd 
expect - line numbers, code folding, search/replace, current item match 
highlighting... and mostly "for free".  Anyway...

Since TW syntax is primarily "HTML", I'd start with the HTML lang in Ace 
and build an editor using the current TW structure (i.e. apply Ace to the 
existing TW textarea element).

Just my 0.02.

Ace: https://ace.c9.io/


On Thursday, March 24, 2016 at 6:49:55 AM UTC-5, Mat wrote:
>
> Alex,
>  
>
>> In hangout 99 didn't Eric demo something similar to the feature you are 
>> talking about?
>>
>
> Ha - in deed! At around 0:46 Eric shows what seems to be pretty much what 
> I'm talking about (ironically, a mere minute before I join the hangout).
>
>
> @Eric - what are your thoughts on what I'm writing above here about a 
> generic container widget? Does the idea with a user friendly "widget" for 
> this make sense? Are e.g the "Intelligent Code Completion" ideas realistic?
>
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/856a95b3-f7b5-485a-bf98-d09676eabf9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to