[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-11 Thread PMario
On Jan 4, 9:12 pm, Yakov yakov.litvin.publi...@gmail.com wrote:
 Ok, I put my TW aside and started to test TW downloaded from [1]. This
 time opening tiddlers and even type choosing went fine (by the way,
 tiddlywiki syntax highlighting is absolutely amazing thing). But when
 I tried to save changes, Opera crashed. Although, FireFox didn't so.
I just tried it with opera 10.60 win7. It works like a charm, if
tiddlysaver.jar is in the same directory as the tw.html file. Without
tiddlysaver.jar it crashed.

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-11 Thread PMario
It was opera 11.60.

There will be a new version of codemirror plugin soon.

It fixes the nbsp bug, and has a full height mode activated with
F11 if the editor is active.

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-11 Thread PMario
http://codemirror.tiddlyspace.com/
and
http://codemirror.tiddlyspot.com/

are up to date now.

New feature:
F11 .. toggle editor max height.

IMPORTANT
I also did some renaming. I removed the 2 coming from codemirror2.
If you did overwrite the  CodeMirror2Config shadow tiddler you'll need
to rename it to CodeMirrorConfig

Sorry about that, but I thought, it needs to be done early :)

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-11 Thread PMario
uups,
missed the http://codemirror-plugins.tiddlyspace.com/ space :)

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-04 Thread Yakov
Weird thing.

First, I've downloaded the whole new stuff from CodeMirror TiddlySpace
to a tw-document and it still doesn't work. PluginManager sais about
zCodeMirror2Plugin the same thing: Error: ReferenceError: Undefined
variable: CodeMirror. Then I downloaded the whole TiddlyWiki file
from [1] and there it works! The zCodeMirror2Plugin tiddlers are
identical! The only thing that I can see is that my tw-document has
core version of 2.6.0 while the one at [1] has 2.6.5; but the error
doesn't seem to be connected with that.. and yes, I tested in both
Opera and FireFox.

Ok, I put my TW aside and started to test TW downloaded from [1]. This
time opening tiddlers and even type choosing went fine (by the way,
tiddlywiki syntax highlighting is absolutely amazing thing). But when
I tried to save changes, Opera crashed. Although, FireFox didn't so.

Also, I found that nbsp; thing appears before the 1 in the first
line when there are more than 9 lines in the tiddler (10 is 2 symbols
to write).

Right, I'll try to dig a bit more but I don't have any good ideas what
to try as for now. Perhaps you can hint what to trace with debugger?

Regards,
Yakov.

[1] http://codemirror.tiddlyspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-04 Thread PMario
On Jan 4, 9:12 pm, Yakov yakov.litvin.publi...@gmail.com wrote:
 The only thing that I can see is that my tw-document has
 core version of 2.6.0 while the one at [1] has 2.6.5; but the error
 doesn't seem to be connected with that.. and yes, I tested in both
 Opera and FireFox.
I don't know, when 2.6.0 was released. But I only tested the plugin
with 2.6.5.

 Ok, I put my TW aside and started to test TW downloaded from [1]. This
 time opening tiddlers and even type choosing went fine (by the way,
 tiddlywiki syntax highlighting is absolutely amazing thing).
yup and if some autocompleting can be done, it will be even better :)

 But when
 I tried to save changes, Opera crashed. Although, FireFox didn't so.
I can test Opera with win7 only. But I don't have a development setup
in win. So, I'll need to use CMTW for testing. We'll see :)

 Also, I found that nbsp; thing appears before the 1 in the first
 line when there are more than 9 lines in the tiddler (10 is 2 symbols
 to write).
I know, that you mentioned this bug since the first post. But it seems
to be weird. If lineWrapping parameter is true and the first line is
longer than the editor width, there is no nbsp non breakable space
even if there are 11 lines :/

The problem isn't there at http://codemirror.net/mode/tiddlywiki/index.html.
It's there only if used with TW/TS.

 Right, I'll try to dig a bit more but I don't have any good ideas what
 to try as for now. Perhaps you can hint what to trace with debugger?
I did find out, that there is some init problem, if the editor is
initialised the very first time after page reoad. It needs a save and
reopen, to get propper highlighting. So I know about this one :)

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2012-01-01 Thread PMario
On Dec 31 2011, 3:14 pm, Yakov yakov.litvin.publi...@gmail.com
wrote:
 Do I have to reload all the tiddlers tagged cm2tw from [3] or [4] for
 use of CodeMirror in a single wiki?
yup. If you downloaded them prior to the new version. marijnh the
creator of CodeMirror refuses, to handle version numbers, so it should
be best to import them all (tagged cm2tw).

But take care with ViewTemplate and EditTemplate, if you have your own
template tweaks done allready. Have a look at the documentation.

At the momement, I don't want to use/upload the github head master
branch, so for the future, I think the cm plugins will be enough to
update.

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-31 Thread Yakov
 Did deploy the update. Codemirror is exactly V2.2 now.

Great, thanks.

I'm afraid, I'll have time to test in the New Year, so I'll let you
know the results a couple of days later.

Do I have to reload all the tiddlers tagged cm2tw from [3] or [4] for
use of CodeMirror in a single wiki?

 * tw.CodeMirrorPlugin [5] is the git repo, that creates the stuff.
 It's open for issues, and pull requests :)

Right. But I have to notice that the repository looks unexpectedly big
and it's easier to get the tiddlers from TiddlyWiki-page repositories
([3] or [4]) rather than from the GitHub (if you meant it).

 [1]http://codemirror-plugins.tiddlyspace.com/
 [2]http://codemirror-plugins.tiddlyspace.com/#CodeMirror2PluginInfo
 [3]http://codemirror.tiddlyspace.com/
 [4]http://codemirror.tiddlyspot.com/
 [5]https://github.com/pmario/tw.CodeMirrorPlugin

Happy New Year!

Regards,
Yakov.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-30 Thread PMario
Hi Yakov,
Did deploy the update. Codemirror is exactly V2.2 now. Downloaded from
it's tagged git repo.

* codemirror-plugins space is the one to be included, if you work with
TiddlySpace
* codemirror TiddlySpace  [3] contains some additional documentation
stuff.

* codemirror.tiddlyspot.com [4] contains the tiddlyspot upload stuff
and SimpleSearchPlugin, FieldsEditorPlugin, which is the minimum
requirements, to be usefull (for me). Since it is easy to delete
tiddlers from a downloaded TW, the tiddlyspot version contains all the
docu stuff. If _you_ don't like it, improve it and tell me :)

* tw.CodeMirrorPlugin [5] is the git repo, that creates the stuff.
It's open for issues, and pull requests :)

have fun!
mario

[1] http://codemirror-plugins.tiddlyspace.com/
[2] http://codemirror-plugins.tiddlyspace.com/#CodeMirror2PluginInfo

[3] http://codemirror.tiddlyspace.com/

[4] http://codemirror.tiddlyspot.com/

[5] https://github.com/pmario/tw.CodeMirrorPlugin

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-29 Thread PMario
Hi Yakov,
Uups, I haven't been very clear in my last post.
I didn't deploy the new version.

Since CM V2.2 changed the internal keyhandling mechanism, tab-key
handling is affected too. The library default values, don't work for
me. But I am sure, my settings won't work for others, so it is needed
to make things configurable, without making the whole thing more
complicated, as it is allready :/

And ... It turned out, that the core tab-key handling interferes with
CM tab key handling now.

I don't have a working fix at the moment but I'm close.

sry ;)
-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-29 Thread PMario
On Dec 28, 7:48 pm, Yakov yakov.litvin.publi...@gmail.com wrote:

Just to be sure. All .js files need to be tagged systemConfig

 tiddlers. By the way, it seems that tiddlywiki.js is not formatted as
 planned (extra //{{{ in the beginning of the tiddler, spaces before
 the first | in the table lines and before ! in the Info header
 line and also the

 ***///{{{
It seems this is some uglify.js AI effect, which tries to beautify the
comments, but destroys it for TW rendering :(
There shouldn't be any side effect. It's just rendering.

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-29 Thread Yakov
 Just to be sure. All .js files need to be tagged systemConfig

Yes, sure.

 I didn't deploy the new version.

Ok, just let me know when there is some working version available (I
subscibed for this thread).

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-28 Thread Yakov
Thanks Mario.

I tried the system again; now I get an error in zCodeMirror2Plugin:

Error: ReferenceError: Undefined variable: CodeMirror

indeed, I can't see the definition of the CodeMirror object in the
zCodeMirror2Plugin tiddler. Any ideas?

I installed all the

zCodeMirror2Plugin (systemConfig)
CMEditCommands (systemConfig)
CodeMirror2Config
CodeMirror2PluginInfo
,
codemirror.js
css.js
htmlmixed.js
javascript.js
overlay.js
python.js
runmode.js
tiddlywiki.js
xml.js
and
codemirror.css
default.css
tiddlywiki.css

tiddlers. By the way, it seems that tiddlywiki.js is not formatted as
planned (extra //{{{ in the beginning of the tiddler, spaces before
the first | in the table lines and before ! in the Info header
line and also the

***///{{{

line should be splitted into two lines (otherwise, the element which
contains code is a code element instead of usual pre).

Regards, Yakov.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-23 Thread PMario
The update worked well, but having consisten indentation handling
sucks.
CM:indentWithTabs, seems to interfere with the TW:chkInsertTabs
parameter. This caused some really strange behavior. Some tweaking
will be needed too.
-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: @Mario Installation of CodeMirror plugin into a single TW?

2011-12-22 Thread PMario
Hi Yakov,

I did tag all the tiddlers needed with cm2tw and added some info at
If you want to roll your own version, the following tiddlers are
needed. See: CodeMirror2PluginInfo [2] near the end.

Basically - Everything, that is part of the codemirror-plugins space
[1] is needed.

plus 2 tiddlers from codemirror space [3]

* StyleSheet adjustments
* EditTemplate adjustments
* ToolbarCommands adjustments ... described in HelloWorld [3]

I plan to release a TiddlySpot version but since CodeMirror itself was
in heavy development lately, I decided to wait until CM settles down
again. Now they released a version 2.2 which contains some cool stuff,
that I like to have in TW too.

codemirror-plugins space doesn't contain the 2.2 version of CM _yet_.
CM 2.2 introduced some minor incompatibilities. Some codemirror
setting veriables have been renamed/removed. CSS files have been
merged.

Some testing will be needed.

I tried, to automate the build and deploy mechanism as much as
possible, so I hope to get an updated version out before Xmas, as a
present for you ;)

-m

[1] http://codemirror-plugins.tiddlyspace.com/
[2] http://codemirror-plugins.tiddlyspace.com/#CodeMirror2PluginInfo
[3] http://codemirror.tiddlyspace.com/

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.