How to add Syntax Highlighting for java?
ericbv opened this issue · 3 comments
I'm trying to add syntax highlighting for java but i can't figure it out.
I have the same problem, have you solved it?
Currently it seems like syntax highlighting is only working for JS and CSS because the additional languages import was commented out in markdown.component.ts
. As a test, I cloned the repo onto my local uncommented and built and all the syntax highlighting works.
Could someone from the project jump in here? It seems this was originally commented out for AOT but Im not having any AOT issues with the above mentioned file uncommented.
To get the highlighting you can revert to version 2.2.0 "angular2-markdown": "2.2.0"
and use --no-aot
flag. Its not ideal but if colorful code snippets are more important than AOT go for it.