Hi, Jeremy, Mario,
in yesterday's Hangouts (#67) I raised the question about changing the tab
size (in number of intervals) for text files which I put in tiddlers of
type text/plain.
You said it depends on the browser and it's somewhat difficult (firefox) or
impossible...
I think you were talking about how tab is displayed in edit mode, however I
am interested in how it looks like when rendered.
So I looked around a bit and I think it depends on the highlight.js plugin
which is used for rendering such tiddlers.
I have found the following shadow tiddler: $:/
plugins/tiddlywiki/highlight/highlightblock.js
And there is a line there, which I assume should solve my problem:
hljs.tabReplace
= " ";
But whatever I put inside the double quotes, does not change how tab is
rendered in the codeblocks.
On the api website I also found this:
hljs.configure({
tabReplace: ' ', // 4 spaces
classPrefix: '' // don't append class prefix
// … other options aren't changed
})
hljs.initHighlighting();
But I don't know how to incorporate it in the wiki.
--
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/d/optout.