However, there are some issues to me:
1) code sections (mine, as well as those in the SyntaxHighlighter3
pluginInfo tiddler) are surrounded by a black frame whose dimensions
are wider than the tiddler display area. Is it possible to remove/
controll size of such frame ?
2) Since each section is invariably wider than the tiddler body, there
is an horizontal lift at the bottom of each . How to get rid of it ?
3) Plain text sections (coded with 3 curly braces) sometime appear
with Syntaxhighlighter style and sometime not... no matter the
configuration options of the plugin ? How could I "stabilize" that
behaviour ?
Btw for interested people: I was intitially interested in using a
brush developped eslewhere found here [2]
to highlight the code of the R statistical suite [3].
4) Has someone found a working alternative to highlight R code within
TW ?
thanks !
[1] http://syntaxhighlighter.tiddlyspace.com/#SyntaxHighlighterPlugin3
[2] http://www.demitri.com/code/
[3] http://cran.r-project.org/
Do you have a link to a test-case/space, where you have the problems
mentioned in 1-3).
1) seems to be some StyleSheet issues.
I've seen, that syntax highlighter got some improvements, since it
moved to github. I'll have a look soon.
>4) Has someone found a working alternative to highlight R code within TW ?
At the moment I'm using codemirror for syntax highlighting [a]. There
is a "view only" mode and it's possible to have realtime highlighting
also in edit mode. There is a mode to highlight R, but I didn't check
it.
Using codemirror is optimized for TiddlySpace at the moment. So if you
need to include it into an existing TW, may be some more docu will be
needed. To use it with tiddlyspace, just include "codemirror-plugins"
space into your space.
Important!
Codemirror plugins and syntaxHighlighter plugins will _not_ work
together. This is by intention.
-m
[a] http://codemirror.tiddlyspace.com/
[b] http://codemirror-plugins.tiddlyspace.com/
[[ShCore.css]]
[[ShThemeDefault.css]]
-m
Sorry for the late answer.
- The post on SyntaxHighlighterPlugin3 here seems to solve issue #3)
(see my first post).
- I put [[ShCore.css]] and [[ShThemeDefault.css]] on a personnal
StyleSheet, itself being referenced in the default StyleSheet: could
it be a problem ?
- Thanks to Paolo regarding issue #4): I found it before but since I
read it is designed for wordpress I concluded that it would not fit
TW. Am I wrong ?
- regarding issues #1) and #2), I was methodically (read slowly) on my
way to test the customizations made on the StyleSheet to isolate a
possible conflict but I had to switch to another task... I remember
that I partially solved the horizontal lift problem.... but obtained a
vertical lift permanently.... I made no porgress regarding the black
frame around code sections.
I'll post here my results.
Cheers
http://groups.google.com/group/tiddlywiki/browse_thread/thread/2e7e52f8c1ba386f?hl=fr
Due to the TS include mechanism, it is possible, that a public
StyleSheet from an included space interferes with your space.
> - Thanks to Paolo regarding issue #4): I found it before but since I
> read it is designed for wordpress I concluded that it would not fit
> TW. Am I wrong ?
> - regarding issues #1) and #2), I was methodically (read slowly) on my
> way to test the customizations made on the StyleSheet to isolate a
> possible conflict but I had to switch to another task... I remember
> that I partially solved the horizontal lift problem.... but obtained a
> vertical lift permanently.... I made no porgress regarding the black
> frame around code sections.
I did encounter some problems with invalid comments inside style sheet
tiddlers
/*
some comment
*/
will break the style sheet chain. It needs to be
/* some comments */
just a guess.
-m