Menu

Haskell Syntax highlighting

2006-11-20
2012-11-13
  • Nobody/Anonymous

    ************

    Hi,
    I have created a "User Defined Language" file for Haskell.

    It has all Prelude functions, types, classes and reserved keywords (but if somebody more experienced checks this I will be grateful).

    The colours were inspired by http://www.haskell.org/haskellwiki syntax highlighting.

    Because in Haskell the layout is very important, the chosen font was mono-spaced (FixedSys).

    "Operators" are bringing me some troubles... I must work on them a little bit more.

    Anybody wants it?

    I am waiting orders :) ...

    Francisco.

    ************

     
    • Nobody/Anonymous

      In literate Haskell scripts (*.lhs), code lines are flagged with ">" as the first character and all other lines are treated as comments.  This switch encourages verbose inline documentation and terse code (and it actually work!).  The NP++ Haskell syntax highlighting does not work well in these documents, since unflagged lines are not recognized as comments.  Not only are comment lines not colored as comments (not so bad because the code lines have to be marked as code), but numbers, keywords, etc. are highlighted whenever they occur in the comment text.  This is very undesirable behavior and interferes with the readability of the document.  Wouldn't it be fairly simple to fix this?

       
      • Nobody/Anonymous

        The Haskell highlighter still contains a couple of errors.

        For example,

        import qualified Prelude

        highlights incorrectly.

        Also operators like

        x <--> y

        will be regarded as comments because they contain --

        I'm new to Notepad++; any hints how to fix this?

         
    • Skully

      Skully - 2006-12-24

      and where can i find your custom file for haskell?

       
    • Nobody/Anonymous

      post a link to it

       
    • Don HO

      Don HO - 2006-12-27

      Haskell will be supported directly by v4.0.

      Don

       
    • Nobody/Anonymous

      ************

      Here you have the xml:

      http://web.fi.uba.ar/~falbani/haskell/userdefinelang.xml

      If you find any error or just want to reach me: falbani at fi.uba.ar

      Francico.

      ************

       
      • Don HO

        Don HO - 2007-02-12

        Haskell is supported directly by v4.0.1 .

        Don

         
MongoDB Logo MongoDB