Difference between revisions of "Help:Editing"

From JimboWiki
Jump to: navigation, search
Line 44: Line 44:
 
[x] A Completed Task
 
[x] A Completed Task
 
</tasks>
 
</tasks>
 +
 +
==How to do Syntax Highlighting==
 +
This doesn't work, don't bother.
 +
<!--===Example Code:===
 +
PHP:
 +
<pre>
 +
<source lang="php">
 +
<?php
 +
    v = "string";    // sample initialization
 +
?>
 +
html text
 +
<?
 +
    echo v;        // end of php code
 +
?>
 +
</source>
 +
</pre>
 +
C#
 +
<pre>
 +
<source lang="csharp">
 +
// Hello World in Microsoft C# ("C-Sharp").
 +
 +
using System;
 +
 +
class HelloWorld
 +
{
 +
    public static int Main(String[] args)
 +
    {
 +
        Console.WriteLine("Hello, World!");
 +
        return 0;
 +
    }
 +
}
 +
</source>
 +
</pre>
 +
===Produces:===
 +
<pre>
 +
PHP:
 +
<source lang="php">
 +
<?php
 +
    v = "string";    // sample initialization
 +
?>
 +
html text
 +
<?
 +
    echo v;        // end of php code
 +
?>
 +
</source>
 +
 +
C#:
 +
<source lang="csharp">
 +
// Hello World in Microsoft C# ("C-Sharp").
 +
 +
using System;
 +
 +
class HelloWorld
 +
{
 +
    public static int Main(String[] args)
 +
    {
 +
        Console.WriteLine("Hello, World!");
 +
        return 0;
 +
    }
 +
}
 +
</source>
 +
</pre>
 +
===Supported Languages===
 +
These are the languages known by GeSHi that can be used in the '''lang''' parameter:
 +
{| border="0" cellpadding="0" cellspacing="20"
 +
|- valign="top"
 +
|
 +
* actionscript
 +
* ada
 +
* apache
 +
* applescript
 +
* asm
 +
* asp
 +
* autoit
 +
* bash
 +
* blitzbasic
 +
* bnf
 +
* c
 +
* caddcl
 +
* cadlisp
 +
* cfdg
 +
* cfm
 +
* cpp-qt
 +
* cpp
 +
* csharp
 +
* css-gen.cfg
 +
* css
 +
|
 +
* c_mac
 +
* d
 +
* delphi
 +
* diff
 +
* div
 +
* dos
 +
* eiffel
 +
* fortran
 +
* freebasic
 +
* gml
 +
* groovy
 +
* html4strict
 +
* idl
 +
* ini
 +
* inno
 +
* io
 +
* java
 +
* java5
 +
* javascript
 +
* latex
 +
|
 +
* lisp
 +
* lua
 +
* matlab
 +
* mirc
 +
* mpasm
 +
* mysql
 +
* nsis
 +
* objc
 +
* ocaml-brief
 +
* ocaml
 +
* oobas
 +
* oracle8
 +
* pascal
 +
* perl
 +
* php-brief
 +
* php
 +
* plsql
 +
* python
 +
* qbasic
 +
* reg
 +
|
 +
* robots
 +
* ruby
 +
* sas
 +
* scheme
 +
* sdlbasic
 +
* smalltalk
 +
* smarty
 +
* sql
 +
* tcl
 +
* text
 +
* thinbasic
 +
* tsql
 +
* vb
 +
* vbnet
 +
* vhdl
 +
* visualfoxpro
 +
* winbatch
 +
* xml
 +
* z80
 +
|}
 +
-->

Revision as of 04:36, 27 April 2007

On how to edit pages

http://www.mediawiki.org/wiki/Help:Editing_pages

On how to format pages

http://www.mediawiki.org/wiki/Help:Formatting

How to make a reference

Example Code:

Text you want to reference about. <ref>reference data here will appear as a footnote</ref>. 
It's in the middle of some super great writing. <ref name="Hammel, Jack">if you name a reference, you can re-use it easily</ref>
You worked really hard on making sure everything was properly cited.<ref>this is another reference</ref>
When the article was done you were proud.<ref name="Hammel, Jack />

Don't forget to output the reference table like this:
<references />

Produces:

Text you want to reference about. [1] It's in the middle of some super great writing. [2] You worked really hard on making sure everything was properly cited.[3] When the article was done you were proud.[2]

Don't forget to output the reference table like this:

  1. reference data here will appear as a footnote
  2. 2.0 2.1 if you name a reference, you can re-use it easily
  3. this is another reference

How to do Tasks

Example Code:

<tasks>
[ ] A Simple Task (Name Of User Assigned to Task)
[1] A Priority 1 Task
[2] A Priority 2 Task (Name Of User Assigned to Task)
[3] A Priority 3 Task
[x] A Completed Task
</tasks>

You can make as many tasks as you like. Each task must be on its own line. Do not put anything else on the same line as a task. You do not need to assign the task to a user. The user does not have to be a vailid wiki username.

Produces:

<tasks> [ ] A Simple Task (Name Of User Assigned to Task) [1] A Priority 1 Task [2] A Priority 2 Task (Name Of User Assigned to Task) [3] A Priority 3 Task [x] A Completed Task </tasks>

How to do Syntax Highlighting

This doesn't work, don't bother.