joomla-developer-docs
joomla-developer-docs copied to clipboard
Syntax highlighting for code snippets
I need someone to work out how to get syntax highlighting within fenced code blocks.
See http://eddieajau.github.io/joomla-developer-docs/#/en/cms/platform/form/field-accesslevel.md
Ideally the XML should be highlighted.
May be highlight.js?
Well I was trying to implement highlight.js, but... It's working on my test page, but does not here. I tried the original implementation, tried to wrap it to timeout, but still nothing. May be someone can look on it? What I am missing?
Try this maybe? http://ngmodules.org/modules/angular-highlightjs
Thanks. Still no luck :( Did as described there, but it's not working :(
Looks not like my IDE but the code is highlighted, when I view it with Firefox and Chromium. edit: Sry, it's not, focus was on your test page ;( my mouse retired today, damn keyboard using. But maybe it's not working because on your test page the code is not generated with js like on the other one?
Dunno... May be I've incorrectly included angular-highlightjs or may be there is another issue. I was not working with the Angular earlier, so it's hard to me to solve it :)