Search code examples
vimhamlsyntax-highlightingmacvimvim-syntax-highlighting

HAML inline javascript syntax highlighting in vim?


I have added some javascript code in my haml %script tag. But I noticed that syntax highlighting doesn't work for the javascript code inside the tag. Is there any good plug-in that can handle this? btw I use mac vim. Thank you!


Solution

  • Try :set ft=haml.javascript.