Sign in Join
Wiki copytemporary

wiki documentation: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11# Guide to Wiki Editing
22
33## Overview
44
55Tutorials
66
77- [WikiPedia Tutorial](http://en.wikipedia.org/wiki/Wikipedia:Tutorial)
88- spam, no tut ! : <http://www.chat11.com/30_Second_Quick_Wiki_Tutorial> --- 30 Second Quick Wiki Tutorial
99
1010A [[Sand Box]] is available for practice.
1111
1212If you have any problems, please use this [Forum](https://forum.lazarus.freepascal.org/index.php?board=8.0). You can also leave a note or suggestion on our [[Site Feedback]] page.
1313
1414## Syntax Highlighting
1515
1616A Wiki for a programming language site needs a powerful way of showing source code in readable fashion. Therefore we use an automatic syntax highlighter to for sources.
1717
1818Use the "\<syntaxhighlight=pascal\>" tag for FPC and Pascal code.
1919
2020Use the "\<syntaxhighlight=delphi\>" tag for Delphi code.
2121
2222Note: "\<source=pascal\>" could also work but is not recommended (see [highlighter docs](http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Alternative_.3Csource.3E_tag))
2323
2424More languages are supported; for a list, see the [highlighter docs](http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages).
2525
2626- for XML code, use \<syntaxhighlight lang=xml\>
2727- for SQL code, use \<syntaxhighlight lang=sql\>
2828- for DOS/CMD window code, use \<syntaxhighlight lang=dos\>
2929- for bash/shell script code, use \<syntaxhighlight lang=bash\>
3030- for ini file content, use use \<syntaxhighlight lang=ini\>
3131- for Visual BASIC code, use \<syntaxhighlight lang=vb\>
3232- for Java code, use \<syntaxhighlight lang=java\>
3333- for JavaScript code, use \<syntaxhighlight lang=javascript\>
3434
3535The following example shows the use of the syntax highlighter in this Wiki:
3636
3737 <syntaxhighlight lang=pascal>
3838 Program Test;
3939 Uses Crt;
4040
4141 Var I : Integer;
4242
4343 Begin
4444 For I := 0 to 12 do
4545 WriteLn('Test ',I:2);
4646 End.
4747 </syntaxhighlight>
4848
4949results in this output
5050
5151``` pascal
5252Program Test;
5353Uses Crt;
5454
5555Var I : Integer;
5656
5757Begin
5858 For I := 0 to 12 do
5959 WriteLn('Test ',I:2);
6060End.
6161```
6262
6363Below is an example for XML sources.
6464
6565 <syntaxhighlight lang="xml">
6666 <xs:complexType name="DecimalWithUnits">
6767 <xs:simpleContent>
6868 <xs:extension base="xs:decimal">
6969 <xs:attribute name="Units" type="xs:string"
7070 use="required"/>
7171 </xs:extension>
7272 </xs:simpleContent>
7373 </xs:complexType>
7474 </syntaxhighlight>
7575
7676which results in:
7777
7878``` xml
7979<xs:complexType name="DecimalWithUnits">
8080 <xs:simpleContent>
8181 <xs:extension base="xs:decimal">
8282 <xs:attribute name="Units" type="xs:string"
8383 use="required"/>
8484 </xs:extension>
8585 </xs:simpleContent>
8686</xs:complexType>
8787```
8888
8989Below is an example for INI file content:
9090
9191 <syntaxhighlight lang=ini>
9292 [Section Name]
9393 Name=Value
9494 Height=23
9595 Width=32
9696 </syntaxhighlight>
9797
9898which results in:
9999
100100``` ini
101101[Section Name]
102102Name=Value
103103Height=23
104104Width=32
105105```
106106
107107For program output or other verbatim quotes simply indent the text by one character like this:
108108
109-`This text is indented from the left margin by one character.`
109+```text
110+This text is indented from the left margin by one character.
111+```
110112
111113You can also use \<pre\> and \</pre\> tags. For example:
112114
113115 This text begins with the &lt;pre&gt; tag and ends with the &lt;/pre&gt; tag
114116
115117## Keyboard shortcuts
116118
117119To display keyboard shortcuts use template Template:keypress:
118120
119121 <code>Ctrl</code>+<code>F12</code>
120122
121123This will show as:
122124
123125`Ctrl`+`F12`
124126
125127## Note
126128
127129To make text visible as a note use template Note:
128130
129131 <blockquote>'''Note:''' This is a note for the reader</blockquote>
130132
131133This will be displayed as:
132134
133135> **Note:** This is a note for the reader
134136
135137## Tip
136138
137139To make text visible as a tip use the Tip template:
138140
139141 <blockquote>'''Tip:''' This is a tip for the reader</blockquote>
140142
141143This will be displayed as:
142144
143145> **Tip:** This is a tip for the reader
144146
145147## Warning
146148
147149To make text visible as a warning use template Warning:
148150
149151 <blockquote>'''Warning:''' This is a warning for the reader</blockquote>
150152
151153This will be displayed as:
152154
153155> **Warning:** This is a warning for the reader
154156
155157---
156158*From the Free Pascal wiki, page "wiki documentation", as it stood on 2020-03-04 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history