How do I indent text?

815 views
Skip to first unread message

BarryS

unread,
Sep 19, 2008, 11:21:06 AM9/19/08
to TiddlyWiki
I have seen a post by Eric Shulman in which he states that, in order
to use indentation, it is necessary to put the following class
definition into [[StyleSheet]]:

.indent
{ display:block;margin:0;padding:0;border:0;margin-left:
2em; }

then, indentation can be used in a tiddler in the following way:
Apples
{{indent{bananas
{{indent{Peaches
{{indent{Watermelon}}}}}}}}}

Unfortunately I am a complete newbie at all this.
Can someone provide an 'idiots' guide into where this [[StyleSheet]]
that I need to edit is, and also where in the [[StyleSheet]] I paste
the above lines.

Many Thanks
Barry

FND

unread,
Sep 19, 2008, 11:29:47 AM9/19/08
to Tiddl...@googlegroups.com
> Can someone provide an 'idiots' guide into where this [[StyleSheet]]
> that I need to edit is, and also where in the [[StyleSheet]] I paste
> the above lines.

Just add that custom CSS code to the bottom of the StyleSheet[1] shadow
tiddler[2], which can be accessed via the sidebar's More > Shadowed tab.

Alternatively, you might use blockquotes[3]:
> blockquote, level 1
>> blockquote, level 2
>>> blockquote, level 3

HTH.


-- F.


[1] http://www.tiddlywiki.org/wiki/StyleSheet
[2] http://www.tiddlywiki.org/wiki/Shadow_Tiddlers
[3] http://www.tiddlywiki.org/wiki/TiddlyWiki_Markup#Blockquotes

Albertononi

unread,
Sep 19, 2008, 1:26:49 PM9/19/08
to TiddlyWiki
Hi BarryS,

I think the indent thing is already defined in StyleSheetLayout
(another shadow tiddler). So, just try to write the following:

{{indent{Hello world}}}

...and see if it works.

If you want to indent a full paragraph, you can use the following:

{{indent{
Hello world Hello world Hello world Hello world Hello world Hello
world Hello world Hello world Hello world Hello world Hello world
Hello world Hello world Hello world Hello world Hello world Hello
world Hello world Hello world Hello world Hello world Hello world
Hello world Hello world
}}}

...or alternatively:

:Hello world Hello world Hello world Hello world Hello world Hello
world Hello world Hello world Hello world Hello world Hello world
Hello world Hello world

Concerning the CSS code in StyleSheet, it allows you to configure the
indent thing the way you want.

Albertononi

Daniel Baird

unread,
Sep 19, 2008, 10:29:04 PM9/19/08
to Tiddl...@googlegroups.com
No-one has quite answered your question..

On Sat, Sep 20, 2008 at 1:21 AM, BarryS <barry.s...@virgin.net> wrote:
> [...]


> Can someone provide an 'idiots' guide into where this [[StyleSheet]]
> that I need to edit is, and also where in the [[StyleSheet]] I paste
> the above lines.

StyleSheet is a tiddler. You can find a link to it in your right
sidebar -- under the More tab, choose the Shadowed tab and look under
"S".

What goes in StyleSheet is CSS (see here:
http://reference.sitepoint.com/css/css ). Eric's code is a discrete
chunk of the CSS language, so it can go anywhere where it's not in the
middle of some other chunk of CSS. At the top or bottom of the
tiddler is a safe bet.

Cheers
;Daniel

--
Daniel Baird
/to be or not to be/ => /(2b|[^2]b)/ => /(2|[^2])b/ => /.b/
...optimise your regexes, people!

BarryS

unread,
Sep 22, 2008, 5:17:13 AM9/22/08
to TiddlyWiki
Hi All,

Thanks for the replies - unfortunately still no success.

Albertononi:
- I had a look at the 'StyleSheetLayout' shadow tiddler, but I cannot
see any mention of indentation in there.
- I have tried using the syntax to indent text in my tiddler, but it
appears on my screen exactly as I have typed it
(i.e. {{indent{Hello world}}} without any leading/trailing blanks).

Daniel:
- I don't seem to have a 'StyleSheet' shadow tiddler.
The only 'StyleSheet' type shadow tiddlers that I can see are
'StyleSheetColors', 'StyleSheetLayout' and 'StyleSheetPrint'.
- If I go searching around in my TW I find a 'StyleSheet' tiddler in
the 'Tags' tab, under 'systemTiddlers'.
I have tried adding Eric's code to the bottom of this 'StyleSheet',
but it doesn't appear to have made any difference.
(I did remember to 'save to disk', re-open the tiddlywiki in a new
tab).
-Does it matter that I am loading this TW file from a disk, rather
than it being hosted on a web-site?
Would this affect how it operates etc?

I can't help thinking that I am missing something very basic, I just
don't know what it is.
Any other suggestions/observations?

Regards
Barry


On 20 Sep, 03:29, "Daniel Baird" <danielba...@gmail.com> wrote:
> No-one has quite answered your question..
>
> On Sat, Sep 20, 2008 at 1:21 AM, BarryS <barry.small...@virgin.net> wrote:
> > [...]
> > Can someone provide an 'idiots' guide into where this [[StyleSheet]]
> > that I need to edit is, and also where in the [[StyleSheet]] I paste
> > the above lines.
>
> StyleSheet is a tiddler.  You can find a link to it in your right
> sidebar -- under the More tab, choose the Shadowed tab and look under
> "S".
>
> What goes in StyleSheet is CSS (see here:http://reference.sitepoint.com/css/css).  Eric's code is a discrete

BarryS

unread,
Sep 22, 2008, 6:05:17 AM9/22/08
to TiddlyWiki
Just another thought.

I think I may be using TiddlyWikiTasks (Not sure if this makes any
difference).
It was passed onto me by a colleague, who was a big fan.
Is there anyway I can find out if it is definitely TiddlyWikiTasks?

Regards
Barry

wolfgang

unread,
Sep 22, 2008, 7:05:01 AM9/22/08
to TiddlyWiki
Hi Barry,

> - I don't seem to have a 'StyleSheet' shadow tiddler.
> The only 'StyleSheet' type shadow tiddlers that I can see are
> 'StyleSheetColors', 'StyleSheetLayout' and 'StyleSheetPrint'.
> - If I go searching around in my TW I find a 'StyleSheet' tiddler in
> the 'Tags' tab, under 'systemTiddlers'.
> I have tried adding Eric's code to the bottom of this 'StyleSheet',
> but it doesn't appear to have made any difference.
> (I did remember to 'save to disk', re-open the tiddlywiki in a new
> tab).
> -Does it matter that I am loading this TW file from a disk, rather
> than it being hosted on a web-site?
> Would this affect how it operates etc?
>

For CSS it doesn't matter from where you load the TW.

That you found 'StyleSheetColors', and 'StyleSheetPrint' - but not the
'StyleSheet' tiddler is indicating that you searched them with the
custom search - and not how Daniel advised:

> StyleSheet is a tiddler. You can find a link to it in your right
> sidebar -- under the More tab, choose the Shadowed tab and look under
> "S".

Since 'shadowed' tiddler aren't found with the default search function
of a TiddlyWiki that would mean 'StyleSheetLayout' had been costumed
and saved as a real tiddler - and from this it seems very likely that
there are already custom style definition in there, which override
your additions of the 'StyleSheet' tiddler for indent.

Try the following:
# make a backup so you can revert the following step again
# delete StyleSheetLayout tidder and see what happens then

> It was passed onto me by a colleague, who was a big fan.
> Is there anyway I can find out if it is definitely TiddlyWikiTasks?

To you mean TeamTask?:

http://www.tiddlywiki.org/wiki/TeamTasks

Regards,

W.

BarryS

unread,
Sep 22, 2008, 10:39:18 AM9/22/08
to TiddlyWiki
Hi Wolfgang,

I've been doing a bit of 'Googling' and I think it is TiddlyWikiTasks,
however looking at the page I managed to find, it looks very old
(according to the timeline, the last update was January 2006!)
The link to the site I found is http://tiddlywikitips.com/TiddlyWikiTasks.html.

BarryS

unread,
Sep 22, 2008, 12:41:47 PM9/22/08
to TiddlyWiki
I have decided that TiddlyWikiTasks is probably a little out-of-date,
so I have downloaded the latest version of TW, and imported my
tiddlers into that from my original.
Indentation is now working as designed.
Thanks for all your help everyone

On 22 Sep, 15:39, BarryS <barry.small...@virgin.net> wrote:
> Hi Wolfgang,
>
> I've been doing a bit of 'Googling' and I think it is TiddlyWikiTasks,
> however looking at the page I managed to find, it looks very old
> (according to the timeline, the last update was January 2006!)
> The link to the site I found ishttp://tiddlywikitips.com/TiddlyWikiTasks.html.
Reply all
Reply to author
Forward
0 new messages