~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/TextFormattingRules.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="1"}%
 
2
%STARTINCLUDE%
 
3
---+ Text Formatting
 
4
 
 
5
Working in Foswiki is as easy as typing in text. You don't need to know HTML, though you can use it if you prefer. Links to topics are created automatically when you enter WikiWords. And Foswiki shorthand gives you all the power of HTML with a simple coding system that takes no time to learn. It's all laid out below.
 
6
 
 
7
%TOC{depth="4"}%
 
8
 
 
9
#EditingShorthand
 
10
---++ Editing Shorthand
 
11
 
 
12
%INCLUDE{"EditingShorthand"}%
 
13
 
 
14
---++ Using HTML
 
15
 
 
16
%INCLUDE{"UsingHTML"}%
 
17
 
 
18
---++ Hyperlinks
 
19
 
 
20
Being able to create links without any special formatting is a core Foswiki feature, made possible with WikiWords and inline URLs.
 
21
 
 
22
---+++ Internal Links
 
23
 
 
24
   * GoodStyle is a WikiWord that links to the <nop>GoodStyle topic located in the current web.
 
25
 
 
26
   * NotExistingYet is a topic waiting to be written. Create the topic by clicking on the *?*. (Try clicking, but then, *Cancel* - creating the topic would wreck this example!)
 
27
 
 
28
---+++ External Links
 
29
 
 
30
   * Protocols matching the configuration parameter =LinkProtocolPattern=, which by default is set to =(file|ftp|gopher|https|http|irc|mailto|news|nntp|telnet)=, are linked automatically. You might change this setting to add more protocols (such as smb). Thus, all lines containing:
 
31
      * =file://...=
 
32
      * =ftp://...=
 
33
      * =gopher://...=
 
34
      * =https://...=
 
35
      * =http://...=
 
36
      * =irc://...=
 
37
      * =mailto:...@...=
 
38
      * =news://...=
 
39
      * =nntp://...=
 
40
      * =telnet://...=
 
41
   are linked automatically.
 
42
 
 
43
   * E-mail addresses like =name@domain.com= are linked automatically.
 
44
 
 
45
   * =[<nop>[Square bracket rules]]= let you easily create [[#SquareBrackets][non-WikiWord links]].
 
46
      * You can also write =[<nop>[http://yahoo.com Yahoo home page]]= as an easier way of doing external links with descriptive text for the link, such as [[http://yahoo.com/ Yahoo home page]].
 
47
 
 
48
---++ Macros
 
49
 
 
50
%INCLUDE{"MacrosQuickStart"}%
 
51
 
 
52
---++ Plugin Formatting Extensions
 
53
 
 
54
Plugins can extend the functionality of Foswiki into many other areas. There are a huge number of plugins available from the [[Foswiki::Extensions.WebHome][foswiki site]].
 
55
 
 
56
Currently enabled plugins on this installation, as listed by =%<nop>PLUGINDESCRIPTIONS%=:
 
57
%PLUGINDESCRIPTIONS%
 
58
 
 
59
Check on current Plugin status and settings for this site in [[%SYSTEMWEB%.Plugins]].
 
60
 
 
61
---++ Common Editing Errors
 
62
 
 
63
Foswiki formatting rules are fairly simple to use and quick to type. However, there are some things to watch out for:
 
64
 
 
65
   * *Q:* Text enclosed in angle brackets like =&lt;filename&gt;= is not displayed. How can I show it as it is?
 
66
      * *A:* The ='&lt;'= and ='&gt;'= characters have a special meaning in HTML, they define HTML tags. You need to escape them, so write ='&amp;lt;'= instead of ='&lt;'=, and ='&amp;gt;'= instead of ='&gt;'=. <br /> Example: Type ='prog &amp;lt;filename&amp;gt;'= to get ='prog &lt;filename&gt;'=.
 
67
 
 
68
   * *Q:* Why is the ='&'= character sometimes not displayed?
 
69
      * *A:* The ='&'= character has a special meaning in HTML, it starts a so called character entity, i.e. ='&amp;copy;'= is the =&copy;= copyright character. You need to escape ='&amp;'= to see it as it is, so write ='&amp;amp;'= instead of ='&amp;'=. <br /> Example: Type ='This &amp;amp; that'= to get ='This &amp; that'=.