[TW5] Tab or Indent - How do I do that?

825 views
Skip to first unread message

RichShumaker

unread,
Dec 10, 2014, 10:10:18 PM12/10/14
to tiddl...@googlegroups.com
How do I simply Indent something the way you do typically with the TAB key.
I am not defining things just simply trying to indent and the TAB key obviously has other functions.

So if I am writing something
         I then can put something in without any header stuff or other formatting.

Thanks for your help.

Rich Shumaker

Alex H

unread,
Dec 11, 2014, 7:08:57 AM12/11/14
to tiddl...@googlegroups.com
Hey Rich,

I'm not very familiar with tiddlywiki yet - so there is a good chance that there are better solutions, but here is what I've discovered yet:

1. If you just want plain text choose "Type: Plain Text",  then whitespaces are rendered as you type them - so you could just put like 4 of them at the beginning of the line.
2. you can put css in your tiddlers - so you could try something like this:
@@margin-left:50px;
hello world
@@
3. There are some WikiText elements which are indenting text like "block quotes" or "definitions" - I haven't found one which is just a indentation, for example "definitions" will put a empty line after them. But perhaps this is what you want anyway... You can check out all of them on http://tiddlywiki.com/static/WikiText.html

Good luck

RichShumaker

unread,
Dec 12, 2014, 2:41:04 AM12/12/14
to tiddl...@googlegroups.com
Thanks Alex,

I haven't found a simple <indent> format style like there is for other things like Bold Italics Underline

I will probably need to create a custom style for it and I will try the css you suggest as a start.
Plain Text is not going to work and Definition might.

Really just wanted to indent, #heheh.

Rich Shumaker

Birthe C

unread,
Dec 12, 2014, 4:15:26 AM12/12/14
to tiddl...@googlegroups.com
Hi Rich
Have a look at http://www.w3schools.com/css/css_text.asp


Birthe

RichShumaker

unread,
Dec 14, 2014, 2:04:28 PM12/14/14
to tiddl...@googlegroups.com
Thanks Birthe.
I found this while exploring the link you sent http://www.w3schools.com/cssref/pr_text_text-indent.asp
And
I get the issue with indent where BOLD or ITALICS or UNDERLINE are clear cut.
Indenting is not clear or cut, you can indent X or Y distance.
You can indent paragraphs.
You could indent
          at various levels
                  depending on what you are trying to do.

Time to explore CSS and customizing TW that way.

Wonder what other markup languages use for indenting.
My goal is to define some symbol to represent <<indent>> except I am at the beginning of my learning so we will see how that goes.
I was thinking of using -> to represent indent
so -> would be one indent(you would define the indent distance in your <<indent>> code)
->-> would be two indents ect.

I will ask the code questions as they come up over at the DEV site as this is now more than basic or advanced customization and is entering DEV territory.

Is there a better way I am missing in regards to the symbol(->)?

Thanks everyone for your help.

Rich Shumaker

Tobias Beer

unread,
Dec 14, 2014, 6:49:41 PM12/14/14
to tiddl...@googlegroups.com
Hi Rich,
 
My goal is to define some symbol to represent <<indent>> except I am at the beginning of my learning so we will see how that goes.

I think it's actually a nice idea to be able to indent text by starting a line with a defined number if spaces (that can be specified via some config tiddler),
i.e. make a parser rule that turns those into something yielding indentation of whatever follows.

When that config is set to -1, indentation is disabled, otherwise, the integer represents how many characters are needed to yield one level of indentation, i.e.

title: $:/config/text/indentation

2

...and then using 6 blanks when starting a newline yields 3 indents, in addition, it may be nice to be able to have that followed by a class, e.g.

      .myClass some content

That way you can easily set checkmarks or something like that.
I'd probably wrap an indent in a html <div> element with a left margin.

Best wishes, Tobias.
Reply all
Reply to author
Forward
0 new messages