TW core uses the following CSS definition defined in the shadow
tiddler: StyleSheetLayout

.viewer pre {
 padding:0.5em;
 margin-left:0.5em;
 font-size:1.2em;
 line-height:1.4em;
 overflow:auto;
}

If you define the following within your StyleSheet tiddler

.myCodeStyle {
 font-family: monospace; /*<-*/
 padding:0.5em;
 margin-left:0.5em;
 font-size:1.2em;
 line-height:1.4em;
 overflow:auto;
}

(Additional changes may be needed. This depends on your requirements)

and use

{{myCodeStyle{ host <<tiddler [[General Information::Cname]]>>}}}

see: {{myCodeStyle{ <- the difference

it should produce what you want.

if it doesn't work, try
{{myCodeStyle{ host <<tiddler [["General Information::Cname"]]>>}}}


====
Additional info, that may or may not be important for you:

TW core renderer creates a html <pre> element if you use {{{ some
text }}} in your tiddler.

a construction like
{{myCssStyle{ some text}}}
creates a html <span class="myCssStyle"> element

a construction like
{{myCssStyle{some text
}}}

creates a html <div class="myCssStyle"> element


hope this helps
-mario

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

Reply via email to