Hi Mario
Thank you very much for directing me to the StyleSheetLayout, and
StyleSheetColors shadow tiddlers. I found the following information:
StyleSheetColors
.viewer pre {border:1px solid [[ColorPalette::SecondaryLight]];
background:[[ColorPalette::SecondaryPale]];}
StyleSheetLayout
* html .viewer pre {width:99%; padding:0 0 1em 0;}
.viewer pre {padding:0.5em; margin-left:0.5em; font-size:1.2em; line-
height:1.4em; overflow:auto;}
However, I do not want to replace the .pre format with my custom
formatting. Instead, I want to keep the appearance of preformatted
text as it is and add an additional format that has different colours.
What I ended up putting in my StyleSheet tiddler was the following:
.myformat {
border: solid thin [[ColorPalette::PrimaryLight]];
background:[[ColorPalette::PrimaryPale]];
padding:0.5em; margin-left:0.5em; font-size:1em; line-height:1.4em;
overflow:auto;
font-family: 'Courier New', Courier, monospace;
}
Cheers
Andrew Mc
On Jan 22, 12:34 pm, PMario <[email protected]> wrote:
> hi
> Look at the shadowtiddlers: StyleSheetLayout, and StyleSheetColors and
> search for "pre" which holds the definition. Copy the lines to
> StyleSheet tiddler which will be executed after the shadow tiddlers
> and will overwrite the default values with your costum values.
>
> There is no need for {{myformat{ you can use {{{}}} then.
>
> regards Mario
>
> On Jan 22, 12:18 am, AndrewMc <[email protected]> wrote:
>
> > Hi everyone
>
> > I wish to create a custom css class that enables me to format text
> > with the appearance of a preformatted block of text, but with
> > different colours for the backgound and border (and perhaps font).
>
> > What css properties describe the default "preformatted block of text"
> > format that you get when you do the following?
> > {{{
> > This is a preformatted block of text.
>
> > }}}
>
> > I wish to be able to do something like the following:
> > {{myformat{
> > This is a preformatted block of text with custom colours.
>
> > }}}
>
> > Cheers
> > Andrew Mc
--
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.