Hi,
Looking with firebug to your link. It is a
<p> .. paragraph element with class='command'

html at your example looks like
<p class='command'>
your text here
</p>

====  1  ===============
using TW looks like

{{command{
your text here
}}}

Adding the following to the TW StyleSheet Tiddler

/*{{{*/
.command {
background-color : #F9F9F9;
border      : 1px dashed #2F6FAB;
color       : black;
font-family : "Courier New", Courier, mono;
font-size   : 12px;
font-style  : italic;
line-height : 1.1em;
padding     : 1em;
margin      : 0 0 0.8em;
}
/*}}}*/
==========================

======= 2 ================
As you mentioned allready TW uses the <pre> tag
CSS definitions found at

StyleSheetColors .. color definition
.viewer pre {
  border:1px solid [[ColorPalette::SecondaryLight]];
  background:[[ColorPalette::SecondaryPale]];
}


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

and maybe some other places.

changing the above 2 to your needs, putting it to StyleSheet will
overwrite the default definition for
{{{
your text here
}}}
=======================

tested 1 .. works for me
didn't test 2

regards mario


On Apr 23, 7:42 am, realthor <[email protected]> wrote:
> That markup makes a solid line rectangle around the inclosed text with
> the background colored in one of the colors defined in the
> ColorPalette , can't remmember which one. I am sure it can be done
> with some CSS but I am not familiar with CSS and nor I have any idea
> where to modify and which element (from the source code of the wiki I
> can see it's the <pre> tag that it is used just before any text I
> enter inside {{{ }}} ).
> If you didn't see on the previous link what I am talking about perhaps
> it is more obvious here:http://www.howtoforge.com/
> bastille_firewall_centos
>
> On Apr 22, 11:24 pm, Mike <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > Have you tried
> > {{{my code here}}}
>
> > or
>
> > {{{
> > my code here
> > my code here
> > my code here
> > my code here
>
> > }}}
>
> > Mike
>
> > On Apr 22, 11:25 am, realthor <[email protected]> wrote:
>
> > > hello everybody,
>
> > > i am new on the forums and also new with tidlywiki and have one
> > > question: is it possible to have a formatting of code snippets or file
> > > (copy/paste from files) like a dashed box around the code, see an
> > > example here:http://www.dokuwiki.org/syntax
>
> > > thanks
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> > --
> > 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 
> > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/tiddlywiki?hl=en.

-- 
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