Hi folks, This thread originally started here: https://groups.google.com/d/msg/tiddlywiki/V75v3bpq2SY/VoEXmDy_0sYJ I did copy the text over. The ZIP file can be found at the link above. -m
On Thursday, October 24, 2013 3:17:48 PM UTC+2, Jim wrote: > Hi Mario, > I attached a fairly cleaned up version of my TiddlyWiki. It’s a > compilation of help files that I have written over the years. And it > includes the following features… > > · CMeditCommands plugin modified to handle CodeMirror v3.18 Mode > Management > > · codemirror.js and codemirror.css updated to support CodeMirror v3.18 – > these were just taken from the CodeMirror script compressor page, > http://codemirror.net/doc/compress.html > > o Note: The codemirror.js file includes the vim.js keymap (see below) > > · Runmode.js and matchbrackets.js – again grabbed from the script > compressor page. (The matching bracket functionality was removed from > CodeMirror 3 series and placed in the matchbrackets.js file see, > http://codemirror.net/doc/upgrade_v3.html) > > · zCodeMirrorPlugin – updated to support CodeMirror v3.18. > > o <<cmModes>> and <<cmMimeObjects>> macros updated to support CodeMirror > v3.xx Mode Management > > o cm.listMimeNames() updated as above to support <<cmMimes>> macro > > o I now use the ‘content-type’ field to keep track of which mode the > editor is in. It is utilized within typeChooser.onTypeClick() and > cm.startEditor() > > o I modified the resizeEditor() function within the ‘CM tools and helper > functions’ area to support the F11 key editor resize function. It’s a bit > flakey, but it works for the most part – could use a bit of work. > > o I tried my best to note my changes within the code by placing ‘// JJY > Modifications’ or ‘// JJY Addition’ where I made changes > > o Oh, and I added a Vim editing mode check box to enable / disable the Vim > keymap. The checkbox appears under the ‘Guess syntax’ and ‘Expert mode’ > check boxes. > > · All the various language support files, python.js, vbscript.js, etc., > grabbed from the script compressor page for v3.18 – they are all tagged > with ‘cmtw’. > > You might also be interested in the work I did to get the > ListNavJQueryPlugin working with TiddlyWiki – many folks thought is wasn’t > possible on the net. The required files are included and listed below… > > · ListNavJQueryPlugin > · jjyListNavPlugin – includes my <<jjyListNav>> macro which is just a > modification to someone’s macro I found somewhere (can’t remember – perhaps > on the http://www.tiddlytools.com page). > > · myList – A simple list of tiddlers that will show up in the List Nav > listing > > · ‘JJY’s Help Files’ – The tiddler that uses the <<jjyListNav “myList”>> > macro > > CodeMirror v3.18 seems to work quite nicely now, except for the F11 key > support which is a little quirky, but still quite functional. I took the > liberty of including my name in the Authors list on zCodeMirrorPlugin and > CMEditCommands. But, feel free to remove it if you so choose. And, above > all, thanks for getting CodeMirror to work within TiddlyWiki! > > The contents of my TiddlyWiki were gathered over many years (I basically > took almost 200 text files I created over the years with helpful hints and > placed them in the TiddlyWiki). I gave credit for other’s works where I > could. > > Open the “JJY’s Help Files” tiddler to get a listing of all the contents > using the jjyListNav macro. > > Best regards, > Jim > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

