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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
************
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.
************
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?
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?
and where can i find your custom file for haskell?
post a link to it
Haskell will be supported directly by v4.0.
Don
************
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.
************
Haskell is supported directly by v4.0.1 .
Don