Difference between revisions of "HaskellWiki:Community"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
== Syntax highlighting == |
== Syntax highlighting == |
||
+ | See [[HaskellWiki:Syntax highlighting]]. |
||
− | Syntax highlighting now works (using GeSHi) for a bunch of languages including Haskell (using Jason Dagit's file, somewhat modified). For lisp, for instance, use <code><pre-lisp></code>...<code></pre-lisp></code> to format a block of lisp (using the <code><pre></code> tag), and <code><code-lisp></code>...<code></code-lisp></code> to format text inline (using the <code><code></code> tag). |
||
− | |||
− | For Haskell, I've made <code><haskell></code> the same as <code><pre-haskell></code> and <code><hask></code> the same as <code><code-haskell></code>. |
||
− | |||
− | For instance: |
||
− | |||
− | <haskell> |
||
− | {- |
||
− | My program |
||
− | -} |
||
− | import Prelude |
||
− | |||
− | foo :: (Monad m) -> m (Int,Int) |
||
− | foo = (x-2,x - 1) where |
||
− | x = 3 |
||
− | |||
− | -- The main function |
||
− | main :: IO () |
||
− | main = do |
||
− | a <- foo |
||
− | putStr ("And the answer is: " ++(show (fst a))++"\n") |
||
− | </haskell> |
||
− | |||
− | Inline: <hask>import Prelude</hask>. |
||
− | |||
− | For Haskell (only) I have deliberately removed all formatting apart from foreground colour, and those I have tried to keep dark so as not to be visually distracting. —[[User:Ashley Y|Ashley Y]] 23:22, 8 March 2006 (UTC) |
||
− | |||
− | There's still some work to do on it. —[[User:Ashley Y|Ashley Y]] 18:07, 9 March 2006 (UTC) |
Revision as of 07:28, 10 March 2006
Licensing
Please have a look at the licensing information.
Subpages
Subpage support is switched on for all namespaces apart from Image: and MediaWiki:.
Special pages
Here are some special pages that may come in handy:
- Main page
- All pages of this wiki
- Recent changes
- Recent changes on articles you are “watching”
- Random article
- All special pages
- CSS style sheet