TextFormattingRules 45 - 2004-07-11 - PeterThoeny
|
|
TWiki Text Formatting | |
HTML and TWiki Usability | |
< < |
- On collaboration pages, it's preferable NOT to use HTML, and to use TWiki shorthand instead - this keeps the text uncluttered and easy to edit.
- NOTE: TWiki is designed to work with a wide range of browsers and computer platforms, holding to HTML 3.2 compatibility in the standard installation - adding raw HTML, particularly browser-specific tags (or any other mark-up that doesn't degrade well) will reduce compatibility.
| > > |
- TIP: On collaboration pages, it's preferable NOT to use HTML, and to use TWiki shorthand instead - this keeps the text uncluttered and easy to edit.
- NOTE: TWiki is designed to work with a wide range of browsers and computer platforms, holding to HTML 4.0 and XHTML 1.0 compatibility in the standard installation - adding raw HTML, particularly browser-specific tags (or any other mark-up that doesn't degrade well) will reduce compatibility.
- Recommondations when using HTML:
- Use XHTML 1.0 Transitional syntax
- Do not span a tag over more then one line
- Remove all empty lines. TWiki inserts
<p /> paragraph tags on empty lines, which causes problems if done between tags that do not allow paragraph tags, like for example between table tags.
| |
TWiki HTML Rendering |
|
TextFormattingRules 44 - 2004-04-25 - PeterThoeny
|
|
TWiki Text Formatting | | | |
< < | Three spaces, a number, and another space. | > > | Three spaces, a number, a dot, and another space. Several types are available besides a number:
Type<-- --> |
Generated Style |
Sample Sequence |
1. |
Arabic numerals |
1, 2, 3, 4... |
A. |
Uppercase letters |
A, B, C, D... |
a. |
Lowercase letters |
a, b, c, d... |
I. |
Uppercase Roman Numerals |
I, II, III, IV... |
i. |
Lowercase Roman Numerals |
i, ii, iii, iv... |
| | | |
< < |
- Sushi
- Dim Sum
| > > |
- Sushi
- Dim Sum
- Sushi
- Dim Sum
- Sushi
- Dim Sum
| | | |
< < |
- Sushi
- Dim Sum
| > > |
- Sushi
- Dim Sum
- Sushi
- Dim Sum
- Sushi
- Dim Sum
| | | | wiki syntax
Main.TWiki users | |
> > |
escaped:
[[wiki syntax]] | | | |
> > |
escaped:
[[wiki syntax]] | | | |
TWiki and JavaScript | |
< < | You can use JavaScript for your TWiki applications. Sice TWiki rendering might interfere with JavaScript code you need to escape it with HTML comments and <pre> tags: | > > | You can use JavaScript for your TWiki applications. Since TWiki rendering might interfere with JavaScript code you need to escape it with HTML comments and <pre> tags: | |
<script language="JavaScript">
<!-- Hide JavaScript and <pre> escape TWiki rendering | |
-
- A: The
'&' character has a special meaning in HTML, it starts a so called character entity, i.e. '©' is the © copyright character. You need to escape '&' to see it as it is, so write '&' instead of '&' . Example: Type 'This & that' to get 'This & that' .
-- TWiki:Main.MikeMannix - 02 Dec 2001
| |
< < | -- TWiki:Main.PeterThoeny - 29 Mar 2004 | > > | -- TWiki:Main.PeterThoeny - 25 Apr 2004 | | |
|
TextFormattingRules 43 - 2004-03-30 - PeterThoeny
|
|
TWiki Text Formatting | | | |
< < | Three spaces and an asterisk. | > > | Three spaces, an asterisk, and another space. | | | | | |
< < | Six, nine, ... spaces and an asterisk. | > > | Six, nine, ... spaces, an asterisk, and another space. | | | | | |
< < | Three spaces and a number. | > > | Three spaces, a number, and another space. | | | | | center-spaced | cells are displayed center aligned. •
| right-spaced | cells are displayed right aligned. •
| 2 colspan || cells are displayed as multi-span columns (i.e., a cell with no text spans a column). • | |
< < | |^| cells with a caret indicate follow-up rows of multi-span rows. • | > > | |^| cells with a caret indicate follow-up rows of multi-span rows (this functionality is provided by TablePlugin). • | | If a row contains a large amount of text, and you want it to be more readable while editing the table, split the row into multiple text lines by ending each line with a backslash character '\' . •
Table cells wrap automatically as determined by the browser.
| | | Forced Links:
You can create a forced internal link by enclosing words in double square brackets.
Note: Text within the brackets may contain optional spaces; the topic name is formed by capitalizing the initial letter and by removing the spaces; for example, [[text formatting FAQ]] links to topic TextFormattingFAQ. You can also refer to a different web and use anchors. | |
< < | Note: To "escape" double square brackets that would otherwise be a correct link, use <nop> between the leading left square brackets, that is, begin with [<nop>[.... | > > | Note: To "escape" double square brackets that would otherwise be a correct link, prefix the leading left square brackets with an exclamation point, that is, begin with ![[.... | | | | | |
< < | Prevent a WikiWord from being linked by prepending it with the <nop> tag. | > > | Prevent a WikiWord from being linked by prepending it with an exclamation point. | | | |
< < | <nop>SunOS | > > | SunOS | | | |
< < | SunOS | > > | SunOS | | | |
-
- This feature allows you to enter an unclosed angle bracket - as a greater than or less than symbol - and have it automatically rendered as if you had entered its HTML character,
< , ex: a < b
- If you're pasting in preformatted HTML text and notice problems, check the file in a text processor with no text wrap. Also, save without hard line breaks on text wrap, in your HTML editing program.
| |
> > | TWiki and JavaScript
You can use JavaScript for your TWiki applications. Sice TWiki rendering might interfere with JavaScript code you need to escape it with HTML comments and <pre> tags:
<script language="JavaScript">
<!-- Hide JavaScript and <pre> escape TWiki rendering
... put your JavaScript code here...
// Stop hiding and stop </pre> escaping TWiki rendering -->
</script>
| | Hyperlinks
Being able to create links without any formatting required is a core TWiki feature, made possible with WikiWords. New TWiki linking rules are a simple extension of the syntax that provide a new set of flexible options. | | | |
< < |
- To "escape" a percent sign that would otherwise be interpreted as a variable, add
<nop> after the first percent sign. Write: %<nop>SOMEVARIABLE% to get: %SOMEVARIABLE%.
| > > |
- To "escape" a variable, prefix it with an exclamation point. Write:
!%SOMEVARIABLE% to get: %SOMEVARIABLE%.
| |
TWikiPlugin Formatting Extensions | |
-
- A: The
'&' character has a special meaning in HTML, it starts a so called character entity, i.e. '©' is the © copyright character. You need to escape '&' to see it as it is, so write '&' instead of '&' . Example: Type 'This & that' to get 'This & that' .
-- TWiki:Main.MikeMannix - 02 Dec 2001
| |
< < | -- TWiki:Main.PeterThoeny - 16 Mar 2004 | > > | -- TWiki:Main.PeterThoeny - 29 Mar 2004 |
|
|
|
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TextFormattingRules
|
|