Prism (code syntax highlighter) was initialized by JS. If .prismOn class was present, it would append CSS and JS files to HEAD and FOOTER for loading, after that the highlighter was called.
This solution was prone for error due to the order of download CSS and JSS and running the highlighter. Furtermore the prism function was called on every pageload to check for .prismOn.
New solution removes prism from core JS. An info text is now available, which should help the user on how to insert highlightet code snippers.
I have also removed auto indentation from codemirror (raw html editor), because it was making wrong indentation of code snippets.
Prism (code syntax highlighter) was initialized by JS. If
.prismOn
class was present, it would append CSS and JS files to HEAD and FOOTER for loading, after that the highlighter was called.This solution was prone for error due to the order of download CSS and JSS and running the highlighter. Furtermore the prism function was called on every pageload to check for
.prismOn
.New solution removes prism from core JS. An info text is now available, which should help the user on how to insert highlightet code snippers.
I have also removed auto indentation from codemirror (raw html editor), because it was making wrong indentation of code snippets.