On Wednesday, June 12, 2013 10:05:38 PM UTC+2, Yakov wrote: > > Two more things. First, I've got a problem with the indents. Most likely > it's a CodeMirror bug, but still.. I've changed my tabSize for JavaScript > to 8. Now I've got 4 spaces instead of 1 tab here and there. An example: I > create a tiddler, set its content-type to "text/javascript", type > > function a(b,c) { > var d = b; <- here I have tab, not spaces - this is changed by > google.groups > } >
As described in the CodeMirrorConfig: Global section if you use indentWithTabs: true. tabSize and indentUnit have to be the same value, otherwise you'll get strange behaviour. indentWithTabs: true tabSize: 8 indentUnit: 8 I did test this and it works. tabSize: 8 indentUnit: 4 this doesn't work. -m -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.