Zyzle / base

An Angular/ngrx/Firebase driven snippets and bookmarking site

Home Page:https://zyzle.github.io/base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrismJS vs HighlightJS

Zyzle opened this issue · comments

Right now I've got branches for both highlightjs and prismjs proof of concept directives. Need to decide which one to use.

PrismJS + its plugins are definitely more feature rich than highlightjs so far however I've struggled to make it work.

HighlightJS doesn't have as many features but was relatively simple to get working in a directive.

maybe Prism could be run as a pipe instead, rather than a directive since the in page element highlighting didn't seem to work all that well. there's still the question of plugins though if loading those adds too much extra data or turns out to be difficult with SystemJS there's really not much benefit of Prism over highlight which still has simplicity on its side

Have made the call, will stick with highlight js for now, can revisit prism later on maybe

I'm wondering right now if the problems I was having with prism could be things I ran into later with HighlightJS namely view encapsulation of the styles and making sure the directive attaches to the correct component lifecycle hook, maybe worth having a look at?