(sorry if you get this twice -- my first mail got rejected) Hi, For the Nedit editor (version 5.0 and higher), I made highlighting patterns for Haskell scripts and literal Haskell scripts. Here is the code: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Haskell highlighting for Nedit !! Koen Claessen, September 1998 nedit.highlightPatterns: \ Haskell:1:0{\n\ comments1:"{-":"-}"::Comment::\n\ comments2:"--":"$"::Comment::\n\ comments3:"#!":"$"::Comment::\n\ strings:"""":"""":"\\n":String::\n\ chars:"'.'":::String::\n\ keywords:"<(type|data|let|in|case|of|module|class|where|instance|import|do|deriving|-\\>|\\<-|=\\>|if|then|else|newtype|hiding|infix|infixl|infixr|primitive)>":::Keyword::\n\ symbols:"<(\\||\\.|:|=)>":::Keyword::\n\ braces:"[{}\\[\\]]":::Keyword::\n\ }\n\ Literate Haskell:1:0{\n\ comments1:"{-":"-}"::Comment:Code:\n\ comments2:"--":"$"::Comment:Code:\n\ comments3:"#!":"$"::Comment:Code:\n\ strings:"""":"""":"\\n":String:Code:\n\ chars:"'.'":::String:Code:\n\ keywords:"<(type|data|let|in|case|of|module|class|where|instance|import|do|deriving|-\\>|\\<-|=\\>|if|then|else|newtype|hiding|infix|infixl|infixr|primitive)>":::Keyword:Code:\n\ symbols:"<(\\||\\.|:|=)>":::Keyword:Code:\n\ braces:"[{}\\[\\]]":::Keyword:Code:\n\ comments11:"{-":"-}"::Comment:Code1:\n\ comments21:"--":"$"::Comment:Code1:\n\ comments31:"#!":"$"::Comment:Code1:\n\ strings1:"""":"""":"\\n":String:Code1:\n\ chars1:"'.'":::String:Code1:\n\ keywords1:"<(type|data|let|in|case|of|module|class|where|instance|import|do|deriving|-\\>|\\<-|=\\>|if|then|else|newtype|hiding|infix|infixl|infixr)>":::Keyword:Code1:\n\ symbols1:"<(\\||\\.|:|=)>":::Keyword:Code1:\n\ braces1:"[{}\\[\\]]":::Keyword:Code1:\n\ Code:"^\\>":"$"::Plain::\n\ CodeBeginEnd:"^[\\\\]begin{code}$":"^[\\\\]end{code}$"::Meta Keyword::\n\ Code1:"^":"$"::Plain:CodeBeginEnd:\n\ Text:"^.":"$"::Text Comment::\n\ }\n\ nedit.languageModes: \ Haskell:.gs .hs:"#!/usr/bin/runhugs.*":Auto::::\n\ Literate Haskell:.lhs:"#!/usr/bin/runhugs.*":Auto::::\n\ nedit.styles: \ Keyword:blue3:Plain\n\ Comment:red4:Italic\n\ Text Comment:grey35:Plain\n\ String:darkgreen:Plain\n\ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You can load it into nedit5.0.1 and higher by saving it to a file (e.g. "haskell"), and typing: nedit -import haskell See the result, and then do "save preferences". For nedit5.0, see: ftp://ftp.fnal.gov/pub/nedit/v5_0_2/contrib/highlight_pats/arm.pats For more information about nedit, see: http://www-pat.fnal.gov/nirvana/nedit.html Comments are welcome. Regards, Koen. -- Koen Claessen, [EMAIL PROTECTED], http://www.cs.chalmers.se/~koen, Chalmers University of Technology.