Hi, Just wanted to stick this out into the ether to save time for those in the future. If you use vim / nvim and love writing diagrams code within latex but hate the screwed up syntax highlighting that results, here is a fix for you!
You can probably see the solution by just looking at this small commit: https://github.com/samtay/dotfiles/commit/5c0fe2899c46a04056eba0bb0d99aa9221427614 Github user @inkarkat has a plugin for specifying different filetype syntax highlighting within regions of other filetypes. Once you install his plugin(s), you can create the after/tex/syntaxfile.vim as seen in the commit above to automatically have latex files highlight "\begin{diagram} .. \end{diagram}" code blocks as Haskell code. Cheers, Sam -- You received this message because you are subscribed to the Google Groups "diagrams-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/diagrams-discuss/CAJtde5MZKfAh0eXvSobxHUo2XY_WkCn2KAFXKb6zkBtGup%3D0Lg%40mail.gmail.com.
