DiffBox does not show the diff for LESS files
Closed this issue · 4 comments
Also, just noticed this:
3debug.js:41 Exception in template helper: Error: Unknown language: "less" at c [as highlight] (http://localhost:3000/packages/simple_highlight.js.js?b359e0c16a3d193b5b3287a90988d97c674a1b71:59:3901) at http://localhost:3000/packages/mdg_tutorial-diff-box.js?177415cf7d8f520b8ffa3bfae2067e9bb495751c:192:35 at Array.map (native) at Object.Template.DiffBox.helpers.lines (http://localhost:3000/packages/mdg_tutorial-diff-box.js?177415cf7d8f520b8ffa3bfae2067e9bb495751c:183:47) at bindDataContext (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2880:16) at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1651:16) at http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2928:66 at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12) at wrapHelper (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2927:27) at Object.Spacebars.call (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:172:18)
in the console. I think that the default highlight parser should be used in case like this...
@dotansimha the newest version now doesn't highlight a language it doesn't recognize.
Also added a special case for .less
to highlight as CSS, let me know if it works for you: 35cb8ef
Awesome! Thanks!