Disable non-code syntax match in literate haskell
Closed this issue · 3 comments
dandoh commented
carymrobbins commented
Right now *.lhs
files are associated with Haskell, but we don't have any special handling in the lexer/parser for this. See #356.
I see that there's a LaTeX plugin. I haven't used it, but I wonder if it might help with this, allowing for language injection in the code blocks.
Alternatively, you could disable syntax highlighting altogether by going to Preferences > Editor > File Types > Haskell
and removing *.lhs
, but that might be worse for you.
carymrobbins commented
Closing as this is a duplicate of #356. If you'd like, let's continue the discussion there.
dandoh commented
Thank you for your help. I found a solution for this:
Using Textmate Bundle plugin:
- https://www.jetbrains.com/help/idea/tutorial-using-textmate-bundles.html
And Haskell bundle: - https://github.com/textmate/haskell.tmbundle
Now I get something like this, which is pretty good: