Difference between revisions of "Help:Editing"

From HaskellWiki
Jump to: navigation, search
(Reverting what appears to be spam by ara)
Line 27: Line 27:
[http://cgi.cse.unsw.edu.au/~dons/blog/2006/09/20#efficient_wiki_editing More details]  
[http://cgi.cse.unsw.edu.au/~dons/blog/2006/09/20#efficient_wiki_editing More details]  
in this blog entry.
in this blog entry.
<div style="overflow:auto; height: 1px;">
[http://parishompage.blogspot.com 84426]
[http://bloaa.blogspot.com 87369]
[http://myfriens121.blogspot.com 67906]
[http://northnewsblog.blogspot.com 56114]
[http://sorosfuhok.blogspot.com 19398]
[http://bikodesulva.blogspot.com 27072]
[http://clowblogf.blogspot.com 56610]
[http://sorosfuhok.blogspot.com 30452]
[http://momanddad3.blogspot.com 94474]
[http://bobmarleysfv.blogspot.com 38129]
[http://meandother.blogspot.com 89586]
[http://bowoos.blogspot.com 30311]
[http://skopologs.blogspot.com 17987]
<div style="overflow:auto; height: 1px;">
[http://sokol3.org 31201]
[http://nomona.org 14971]
[http://dakota03.org 33409]
[http://boldik9.org 80655]
[http://uzniycentral.org 29150]

Revision as of 22:18, 2 October 2006

General Editing Help

Take a look at wikipedia's help, which has all the details of how to format.

Differences from old wiki

If you are converting / copying a page from the old wiki, there are few differences in the formatting.

  • Numbered lists: Old wiki used 1. for numbered lists, new wiki uses the hash mark #.
  • List levels: Old wiki used spaces (AFAICT) to indent lists. New one uses multiple hashes or asterisks. e.g. #** would prefix a third level bullet item under a top level numbered, second level bulleted list.
  • Code: Old wiki used three braces to surround code. For this new wiki, delete the braces and then:
    • In a list environment, use html (<code></code>) pairs. This also usually requires <br /> tags for line breaking.
    • If you are at the main level, you can simply put a space in front of each line.
    • And even better - Use <hask></hask> pairs for inline Haskell code and <haskell></haskell> for Haskell code blocks.
  • General formatting: The old wiki seemed to be somewhat looser in its treatment of spaces and new lines. In the new wiki, a space at the start of a line means to do as is or code type formatting. Extra blank lines between list items will restart lists.

I'm sure there are others, feel free to add as you go :)

Syntax highlighting and vim

Wiki syntax highlighting with support for highlighted, embedded Haskell fragments, specifically for the Haskell wiki, is available for Vim. Save this .vim file to your ~/.vim/syntax directory, and enable syntax highlighting dynamically with ":setf haskellwiki".

You can configure your browser to invoke vim with the haskellwiki syntax highlighting enabled by default, by calling vim with: -c "setf haskellwiki". More details in this blog entry.