Indent

By Sputbot Sputbot

Description

To be able to indent a new paragraph as with the tab key, copy the code or modify it to one's own needs.

Code

[[span style="margin-left:40px"]] This paragraph is indented. You can also change the number of pixels it is indented by changing the number before the px. Here are some examples: [[/span]]
[[span style="margin-left:20px"]] 1. Paragraph 1 [[/span]]
[[span style="margin-left:40px"]] 1.1. Paragraph 1.1 [[/span]]
[[span style="margin-left:40px"]] 1.2. Paragraph 1.3 [[/span]]
[[span style="margin-left:60px"]] 1.2.1. Paragraph 1.2.1 [[/span]]
[[span style="margin-left:20px"]] 2. Paragraph 2 [[/span]]
[[span style="margin-left:40px"]] 2.1. Paragraph 2.1 [[/span]]
[[span style="margin-left:20px"]] 3. Paragraph 3 [[/span]]

In action

This paragraph is indented. You can also change the number of pixels it is indented by changing the number before the px. Here are some examples:

1. Paragraph 1
1.1. Paragraph 1.1
1.2. Paragraph 1.3
1.2.1. Paragraph 1.2.1
2. Paragraph 2
2.1. Paragraph 2.1
3. Paragraph 3


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Sputbot


Rate this solution

If you think this solution is useful — rate it up!

rating: +22
NoriMori NoriMori 26 Nov 2014 06:26

Thank you! It really is ridiculous that there's no syntax for this already!

by NoriMori NoriMori , 26 Nov 2014 06:26
Helmut_pdorf Helmut_pdorf 26 Nov 2014 07:36

But for normal intended paragraph-start I use always the simmple
@@ @@ at the beginning…( non rendering the spaces inside..)


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 26 Nov 2014 07:36
Than show us your code!
Helmut_pdorf Helmut_pdorf 05 Nov 2010 06:04

if your code is not working..


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 05 Nov 2010 06:04
beepeearr beepeearr 05 Nov 2010 05:14

I can't get the above to work.

by beepeearr beepeearr , 05 Nov 2010 05:14
leiger leiger 05 Nov 2010 13:18

Yes, please post a link to the page you are using it on and let us view the source code. We'll try to figure out what the problem is.

Cheers,
Shane


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 05 Nov 2010 13:18
Indent Tag
Flawedspirit Flawedspirit 30 May 2009 13:16

It would be great if you could use a single character to indent that line, like wikia pages. They use the : or ; characters to indent a line. Hope someone manages to implement it! It would cut down on all the confusing code.

by Flawedspirit Flawedspirit , 30 May 2009 13:16
Right indent
Johnny_Ragweed Johnny_Ragweed 11 May 2009 22:06

Is there any way to indent from the right side of the page?

by Johnny_Ragweed Johnny_Ragweed , 11 May 2009 22:06
Re: Right indent
Helmut_pdorf Helmut_pdorf 12 May 2009 13:58

I would use span/div style="padding-right:20em;" or margin-right:…."

have a look at http://community.wikidot.com/howto:howto:embelish-text:examples


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 12 May 2009 13:58
page revision: 3, last edited: 16 Feb 2012 01:12
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /