Personal tools

HaskellWiki talk:Syntax highlighting

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Spacing between code & paragraph text: new section)
 
(One intermediate revision by one user not shown)
Line 17: Line 17:
   
 
I hope this can be fixed. If help is needed, how can I contribute to HaskellWiki software? -- [[User:Daniel Díaz|Daniel Díaz]], 14:52 (UTC), 14/12/2010
 
I hope this can be fixed. If help is needed, how can I contribute to HaskellWiki software? -- [[User:Daniel Díaz|Daniel Díaz]], 14:52 (UTC), 14/12/2010
  +
  +
== Other languages ==
  +
  +
Is there a list somewhere of what other languages are actually available, and what names we should use when invoking them? --[[User:MeteorMatador|meteorMatador]] 22:48, 20 December 2011 (UTC)
  +
  +
== Spacing between code & paragraph text ==
  +
  +
I was looking at improving the formatting for the [[Roll your own IRC bot]] tutorial and corrected a minor part but I'm most interested in changing the layout to introduce a larger spacing between the code blocks and the text. Currently they render very close together for me in Chrome and Firefox.
  +
  +
I think the main issue is that something isn't putting text after a <haskell></haskell> blocks into <p></p> tags so they aren't picking up the css padding for paragraphs. I assume this is an issue in whatever code is providing the <haskell> tags. Is there anyway that this could be looked at and improved? Happy to help if I can.
  +
  +
- [[User:Michael Jones|Michael Jones]] 27 Nov 2013

Latest revision as of 20:13, 26 November 2013

Question: Would it be possible to have an markup tag, say <haskell-pretty> which would utilize the <math> environment to produce neat looking things like \operatorname{foo} :: \forall \alpha \beta . \alpha \rightarrow \beta, corresponding to
foo :: forall a b. a -> b
. — asks SebastianSylvan
It may be possible, but there are issues. Bear in mind Haskell type variables can be more than one character:
return :: (Monad monad) => a -> monad a
. I also find the TeX a bit ugly placed in the text.
An alternative might be to use Unicode more effectively: "foo :: ∀ m a b. (Monad m) ⇒ a → m b". —Ashley Y 23:38, 13 March 2006 (UTC)
If that happens then users will not be able to cut and paste code to try it out. Haskell looks the way Haskell looks, this wiki should embrace that, and help users understand it, not try to change it --Neil Mitchell 01:05, 14 March 2006 (UTC)

I'm wondering what's possible with automatic linking from names to Haddock docs in haskell and hask tags. How about a modular way we could extend the currently wired-in names & links for other libraries as well? I'm imagining something in the page markup that refers to one or more tables or php programs with additional declarations similar to those in haskell.php to be merged in with those declarations.

The reason this comes up for me is that I'm writing wiki pages for libraries, and I'm giving examples. It'd be great if a reader could simply click on any of the given names to jump to the given haddock doc (and from there to the source code and comment page). Conal 06:29, 17 January 2007 (UTC)

[edit] 1 Bug printing 'hask' tags

When I try to print a page with 'hask' tags, the content of the tag appears in a separated line. Thus, inline Haskell code becomes no inline.

I hope this can be fixed. If help is needed, how can I contribute to HaskellWiki software? -- Daniel Díaz, 14:52 (UTC), 14/12/2010

[edit] 2 Other languages

Is there a list somewhere of what other languages are actually available, and what names we should use when invoking them? --meteorMatador 22:48, 20 December 2011 (UTC)

[edit] 3 Spacing between code & paragraph text

I was looking at improving the formatting for the Roll your own IRC bot tutorial and corrected a minor part but I'm most interested in changing the layout to introduce a larger spacing between the code blocks and the text. Currently they render very close together for me in Chrome and Firefox.

I think the main issue is that something isn't putting text after a <haskell></haskell> blocks into <p></p> tags so they aren't picking up the css padding for paragraphs. I assume this is an issue in whatever code is providing the <haskell> tags. Is there anyway that this could be looked at and improved? Happy to help if I can.

- Michael Jones 27 Nov 2013